The DNS-over-TLS write-deadline test no longer fails when a loaded runner cuts the stalled client before its first query #361

Merged
claude merged 1 commit from feature/360-dot-write-deadline-flake into develop 2026-11-06 19:08:15 -05:00
Owner

The DNS-over-TLS write-deadline test no longer fails when a loaded runner delays the stalled client's first query past the class's 400 ms idle timeout. This is a test-only change in DnsOverTlsSessionTests.cs.

  • Cause: FramedDnsStreamSession.ReadLoopAsync closes a connection whose first frame does not arrive within the idle timeout after the handshake. The single-shot stalled client then either got a broken pipe (PR run 1298) or wrote into a buffer nobody read, so no transfer started (develop run 1300, TimeoutException at line 128). A 700 ms delay before the write reproduces the run-1300 failure.
  • Fix:
    • The stalled client retries connect plus AXFR until the new BulkZoneTransferService.TransferStarted fires, with fresh signals per attempt. Only then does the test check the other client and the write deadline.
    • ManyPipelinedQueriesOnOneTlsConnection_AreAllAnswered and AnAxfr_ThatTakesLongerThanTheIdleTimeout_Completes retry their whole exchange through RunUntilServedAsync. Connection-cut exceptions are retried; assertion failures are not.
  • No product bug: a started transfer whose client stops reading is still aborted by the per-write deadline, and the test still asserts it.
  • Verified: 20/20 runs from the coder and 20/20 from the verifier in the CI container, the DoT test project 47/47, 0 warnings, csharpier clean.

Closes #360

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

The DNS-over-TLS write-deadline test no longer fails when a loaded runner delays the stalled client's first query past the class's 400 ms idle timeout. This is a test-only change in `DnsOverTlsSessionTests.cs`. - **Cause:** `FramedDnsStreamSession.ReadLoopAsync` closes a connection whose first frame does not arrive within the idle timeout after the handshake. The single-shot stalled client then either got a broken pipe (PR run 1298) or wrote into a buffer nobody read, so no transfer started (develop run 1300, `TimeoutException` at line 128). A 700 ms delay before the write reproduces the run-1300 failure. - **Fix:** - The stalled client retries connect plus AXFR until the new `BulkZoneTransferService.TransferStarted` fires, with fresh signals per attempt. Only then does the test check the other client and the write deadline. - `ManyPipelinedQueriesOnOneTlsConnection_AreAllAnswered` and `AnAxfr_ThatTakesLongerThanTheIdleTimeout_Completes` retry their whole exchange through `RunUntilServedAsync`. Connection-cut exceptions are retried; assertion failures are not. - **No product bug:** a started transfer whose client stops reading is still aborted by the per-write deadline, and the test still asserts it. - **Verified:** 20/20 runs from the coder and 20/20 from the verifier in the CI container, the DoT test project 47/47, 0 warnings, csharpier clean. Closes #360 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The DNS-over-TLS write-deadline test no longer fails when a loaded host delays its first query past the idle timeout
All checks were successful
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Successful in -1m57s
Build / Build Binary (linux-amd64) (pull_request) Successful in -1m4s
Build / Build Binary (linux-arm64) (pull_request) Successful in -38s
Build / Build Binary (macos-amd64) (pull_request) Successful in -35s
Build / Stage Draft Release (push) Successful in -2m43s
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Successful in -1m58s
Build / Test .NET (push) Successful in 6m13s
Build / Pack and Push NuGet Packages (common) (push) Successful in -2m23s
Build / Pack and Push NuGet Packages (dhcp) (push) Successful in -2m9s
Build / Build Binary (macos-arm64) (pull_request) Successful in -50s
Build / Pack and Push NuGet Packages (dns-core) (push) Successful in -1m52s
Build / Build Binary (windows-amd64) (pull_request) Successful in -30s
Build / Pack and Push NuGet Packages (dns-server) (push) Successful in -1m47s
Build / Smoke Test the Windows Binary (pull_request) Successful in 16s
Build / Build Binary (linux-amd64) (push) Successful in -59s
Build / Build Binary (macos-amd64) (push) Successful in -40s
Build / Build Binary (linux-arm64) (push) Successful in -29s
Build / Build Arch Linux Packages (pull_request) Successful in -2m20s
Build / Build Binary (macos-arm64) (push) Successful in -51s
Build / Build and Push Image (pull_request) Successful in -2m36s
Build / Build Binary (windows-amd64) (push) Successful in -29s
Build / Build Arch Linux Packages (push) Successful in -2m30s
Build / Smoke Test the Windows Binary (push) Successful in 15s
Build / Build and Push Image (push) Successful in -2m14s
Build / Build and Test Deb and RPM Packages (pull_request) Successful in 36s
Build / Publish Release (pull_request) Successful in -2m37s
Build / Pipeline (pull_request) Successful in 0s
Build / Build and Test Deb and RPM Packages (push) Successful in -13s
Build / Publish Release (push) Successful in -2m41s
Build / Pipeline (push) Successful in 0s
00e879993f
Closes #360

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit c9d5cd5c63 into develop 2026-11-06 19:08:15 -05:00
Sign in to join this conversation.
No reviewers
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil!361
No description provided.