Skip to content

Run the e2e tests against a strict-mode server - #224

Merged
maximmaxim345 merged 1 commit into
mainfrom
test/strict-e2e-tests
Oct 29, 2026
Merged

maximmaxim345 merged 1 commit into
mainfrom
test/strict-e2e-tests

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

What does this implement/fix?

The e2e tests now start the test server in strict mode, so a client that breaks the spec is rejected instead of only logged.

Every known violation has been fixed, so the known-violation list is removed and any non-compliance fails the test.

Types of changes

  • Bugfix (non-breaking change which fixes an issue): bugfix
  • New feature (non-breaking change which adds functionality): new-feature
  • Enhancement to an existing feature: enhancement
  • Breaking change (changes the public API or the protocol in a way that is not backwards compatible): breaking-change
  • Refactor (no behavior change): refactor
  • Documentation only: documentation
  • Maintenance / chore: maintenance
  • CI / workflow change: ci
  • Dependencies bump: dependencies

@github-actions github-actions Bot added the maintenance Maintenance or chores label Oct 29, 2026
@maximmaxim345
maximmaxim345 requested a balanced review from Copilot October 29, 2026 12:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the stricter protocol-compliance test changes.

No open issues 🎉

What changed in this PR

This PR tightens protocol compliance checks in the SDK’s end-to-end test infrastructure by running the test server in strict mode and treating all logged non-compliance as test failures.

Changes:

  • Configure the test server to reject non-compliant clients.
  • Remove the known-violation allowlist and its filtering logic.
  • Update unit tests to use strict-mode rejection messages while preserving deferred reporting for expected-failure tests.
File Description
tests/​unit/​aiosendspin-server.test.ts Update rejection fixtures and non-compliance assertions.
tests/​helpers/​sendspin-server.py Enable strict protocol compliance enforcement.
tests/​helpers/​known-violations.ts Delete the empty known-violation allowlist.
tests/​helpers/​aiosendspin-server.ts Fail on any logged non-compliance without allowlist filtering.

Review effort: Balanced

@maximmaxim345
maximmaxim345 merged commit 7282880 into main Oct 29, 2026
4 checks passed
@maximmaxim345
maximmaxim345 deleted the test/strict-e2e-tests branch October 29, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance or chores

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants