Skip to content

test(diagnostic): prove unmasked HTTP early EOF on merged Apple SwiftNIO - #27

Closed
ThorFuchs wants to merge 2 commits into
mainfrom
diagnostic/swiftnio-upstream-eof-2026-11-23
Closed

ThorFuchs wants to merge 2 commits into
mainfrom
diagnostic/swiftnio-upstream-eof-2026-11-23

Conversation

@ThorFuchs

Copy link
Copy Markdown
Owner

HTTP #12 — diagnostic consumer proof against merged Apple SwiftNIO, not a release dependency

The upstream fix is merged as apple/swift-nio#3783, exact merge commit a7d4e6b50c9be24d3a55f1a50e6e52bfc1d683d5. Published SwiftNIO 2.105.1 predates the merge. Our current HTTP release graph still resolves 2.105.0 without the fix.

This draft PR is strictly for proving the consumer behavior now, while waiting for an official SwiftNIO version containing the merge. Do not merge this diagnostic branch or close #12 as a release gate.

Changes (three new diagnostic files, no production source edits)

  • Scripts/qualify-swiftnio-upstream-eof.sh: creates isolated checkouts and verifies the exact upstream SHA; uses local swift package edit swift-nio --path overrides in both root and Conformance fixture workspaces without publishing a revision dependency. Enforces no unrelated SwiftPM pin drift.
  • In the disposable checkout only, replaces exactly three known-issue wrappers with ordinary do { ... } scopes, retaining every test assertion, body, and deadline unchanged.
  • Runs the named cases under Debug and optimized Release (six focused receipts); verifies each selected test actually ran and passed, and retains full logs, source diff, dependency graphs, and provenance as an artifact, including on failure.
  • Optional local MCP_NIO_PROOF_MODE=full additionally runs the full unmasked SDK and release fixtures and both official referees.
  • .github/workflows/nio-upstream-eof-proof.yml: dedicated self-hosted macOS 27 CI on this diagnostic branch, retaining evidence.
  • Docs/Release/NIO_UPSTREAM_EOF_PROOF.md: reproducible runbook and explicit release limits.

Three tracked tests: unmasked in the proof only

  1. nativeHTTPPeerDisconnectCancelsWithoutProviderCompletion
  2. nativeHTTPRepeatedFINReleasesOwnersAndRecovers
  3. nativeTLSPeerProcessExitCancelsBeforeResponseHead

Source and test evidence

Acceptance / explicit non-claims

Refs #12. Diagnostic only; no tag, fork, timeouts, test weakening, API change, or release-GO assertion.

@ThorFuchs
ThorFuchs marked this pull request as ready for review November 23, 2026 19:03
ThorFuchs added a commit that referenced this pull request Nov 25, 2026
…28)

H1 — official SwiftNIO release integration and Studio-only CI.

Requires SwiftNIO 2.105.2+; root/fixture locks select official tag b003027fc38b649a43e9aad77c3d4e4a2c5b6997 containing apple/swift-nio#3783. Remove three known-issue scopes without altering assertions or deadlines. No runtime changes, fork or unrelated pin drift. Core remains d892bd34add1ad067ae6f286bd74c824486d8c07.

H1.3 qualification receipt (2026-11-25):
- Native full run at 9c1f78e: 13/13 stages, 245/245 cumulative Swift tests, 4/4 referee runs, 812/812 recorded checkout comparisons.
- CI #64 at PR head 576ff38, tested merge 018ab8f, base d2e4cb5: 3/3 jobs PASS on Studio native Debug, optimized Release, and Linux ARM64 optimized compile/link. Both native fixtures linked; all three unmasked disconnect cases passed in both modes, server 37/37 required + 13/13 extensions and client 37/37 (25 OAuth) each mode.
- No hosted runner or GitHub artifact uploads; local native evidence retained. Linux is ARM64 compile-only; AMD64 and runtime qualification remain separate.

CI: https://github.com/ThorFuchs/Swift-MCP-Server-HTTP/actions/runs/45604079743
Reviewed receipt: #28 (comment)
Native receipt: Docs/Release/H1_SWIFTNIO_RELEASE_QUALIFICATION.md

Refs #12 and #27. H2/#20, #21, #25, #14 and final RC1 gates remain open. No claim of complete raw referee coverage or native AMD64 qualification.

Copy link
Copy Markdown
Owner Author

Superseded by the official SwiftNIO 2.105.2 integration in PR #28, merged at 2cbedd510b15f510c24373ea45ca4fc9cf754cbe. The focused upstream-merge diagnostic remains useful historical evidence; its local dependency edit and disposable unmasking are not merged. CI #64 passed on the regular release graph. Closure without merge verified. No branch deletion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[1.0/P0] Unmask macOS HTTP disconnect cancellation tests; upstream SwiftNIO early EOF

1 participant