Windows test suite, part 2: ICMP resets on UDP, bound ports, line endings, the remaining Windows test fixes and a Windows test job #365

Merged
claude merged 10 commits from feature/8-windows-test-suite-2 into develop 2026-11-06 21:49:18 -05:00
Owner

Part 2 of the Windows test suite epic. With it, the whole .NET suite passes natively on Windows (Lofnheim), and every push to develop and main runs it there.

Product changes (Windows)

  • #17: a UDP client that closes its port before the reply no longer makes a listener log a receive warning or stall. IgnoreIcmpPortUnreachable (Ninlil.Common.Extension) turns off SIO_UDP_CONNRESET. It is applied to plain DNS and DNSCrypt UDP (through ListenSocketSet), DHCPv4, DHCPv6, TFTP and the DHCPv6 relay's upstream socket. Ninlil.Dhcp.Common references Ninlil.Common.Extension, which is decision Q-ARCH-1.
  • #364: with EnableSourcePortPool on, a pooled outbound UDP socket no longer fails a later query with a reset left over from an earlier send to a dead upstream. Before, that failure also marked a healthy forwarder unhealthy. One-off sockets keep the fast failure.
  • BoundPort on ListenSocketSet, UdpDnsListener, TcpDnsListener and DnsCryptUdpListener, so tests can bind port 0.

CI

  • #18: a new test-windows job on lofnheim, on push to develop and main only.
    • It builds the admin console on the runner and runs the solution without RequiresDocker tests (those run on Linux). The DNSSEC rollover class runs alone.
    • A clean-up step stops leftover processes inside the job's workspace.
    • 30-minute limit; about 6 minutes measured.
    • It does not gate draft or publish.
  • #16: .gitattributes keeps LF line endings on a Windows checkout whatever core.autocrlf says.

Tests

  • #339: SecondHostTests probes /status. The host never mapped /health; it answered 200 only through the SPA fallback when a console was built.
  • #363: DnsCryptExpiredCertificateTests binds port 0, waits for the listener, and its client ignores the Windows reset.
  • #364: PlainForwarderClientTests binds UDP on port 0 and TCP on the same number, and waits for both.
  • Plain and Core tests bind port 0 and read BoundPort where one socket is enough. Where several sockets must share one number, a reserved port remains, with a comment saying why.
  • This branch includes a merge of develop (#353, #355, #358, #360).

Verified

  • Two verifier passes: 9b596adf..d1a83213, and d1a83213..90d3e6b9.
  • Red then green on Lofnheim for #17 and #364.
  • On Lofnheim, the whole solution without Docker tests: 56 of 56 projects pass after #364. Ninlil.Web.Tests passed 2353 of 2353 with the console and 2349 without it.
  • On Linux in the CI container, the whole solution without Docker tests is green. The build has 0 warnings, and csharpier and lint are clean.
  • The test-windows job's first real run is the develop push after this merge, which I will watch.

Closes #16
Closes #17
Closes #339
Closes #363
Closes #18
Closes #364
Refs #8

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

Part 2 of the Windows test suite epic. With it, the whole .NET suite passes natively on Windows (Lofnheim), and every push to develop and main runs it there. **Product changes (Windows)** - **#17:** a UDP client that closes its port before the reply no longer makes a listener log a receive warning or stall. `IgnoreIcmpPortUnreachable` (Ninlil.Common.Extension) turns off SIO_UDP_CONNRESET. It is applied to plain DNS and DNSCrypt UDP (through `ListenSocketSet`), DHCPv4, DHCPv6, TFTP and the DHCPv6 relay's upstream socket. `Ninlil.Dhcp.Common` references `Ninlil.Common.Extension`, which is decision Q-ARCH-1. - **#364:** with `EnableSourcePortPool` on, a pooled outbound UDP socket no longer fails a later query with a reset left over from an earlier send to a dead upstream. Before, that failure also marked a healthy forwarder unhealthy. One-off sockets keep the fast failure. - `BoundPort` on `ListenSocketSet`, `UdpDnsListener`, `TcpDnsListener` and `DnsCryptUdpListener`, so tests can bind port 0. **CI** - **#18:** a new `test-windows` job on `lofnheim`, on push to develop and main only. - It builds the admin console on the runner and runs the solution without `RequiresDocker` tests (those run on Linux). The DNSSEC rollover class runs alone. - A clean-up step stops leftover processes inside the job's workspace. - 30-minute limit; about 6 minutes measured. - It does not gate `draft` or `publish`. - **#16:** `.gitattributes` keeps LF line endings on a Windows checkout whatever `core.autocrlf` says. **Tests** - **#339:** `SecondHostTests` probes `/status`. The host never mapped `/health`; it answered 200 only through the SPA fallback when a console was built. - **#363:** `DnsCryptExpiredCertificateTests` binds port 0, waits for the listener, and its client ignores the Windows reset. - **#364:** `PlainForwarderClientTests` binds UDP on port 0 and TCP on the same number, and waits for both. - Plain and Core tests bind port 0 and read `BoundPort` where one socket is enough. Where several sockets must share one number, a reserved port remains, with a comment saying why. - This branch includes a merge of develop (#353, #355, #358, #360). **Verified** - Two verifier passes: 9b596adf..d1a83213, and d1a83213..90d3e6b9. - Red then green on Lofnheim for #17 and #364. - On Lofnheim, the whole solution without Docker tests: 56 of 56 projects pass after #364. `Ninlil.Web.Tests` passed 2353 of 2353 with the console and 2349 without it. - On Linux in the CI container, the whole solution without Docker tests is green. The build has 0 warnings, and csharpier and lint are clean. - The `test-windows` job's first real run is the develop push after this merge, which I will watch. Closes #16 Closes #17 Closes #339 Closes #363 Closes #18 Closes #364 Refs #8 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #16
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #17
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Merge develop into feature/8-windows-test-suite-2
All checks were successful
Build / Compute Version (push) Successful in -2m42s
Build / Test .NET (push) Successful in 3m55s
Build / Lint and Script Tests (push) Successful in -1m28s
Build / Test Admin Console (push) Successful in -1m19s
Build / Pack and Push NuGet Packages (common) (push) Successful in -2m32s
Build / Pack and Push NuGet Packages (dhcp) (push) Successful in -2m10s
Build / Pack and Push NuGet Packages (dns-server) (push) Successful in -1m58s
Build / Stage Draft Release (push) Successful in -2m42s
Build / Pack and Push NuGet Packages (dns-core) (push) Successful in -2m8s
Build / Build Binary (linux-amd64) (push) Successful in -45s
Build / Build Binary (linux-arm64) (push) Successful in -31s
Build / Build Binary (macos-amd64) (push) Successful in -46s
Build / Build Binary (macos-arm64) (push) Successful in -1m11s
Build / Build Binary (windows-amd64) (push) Successful in -1m5s
Build / Build and Push Image (push) Successful in -2m36s
Build / Smoke Test the Windows Binary (push) Successful in 15s
Build / Build Arch Linux Packages (push) Successful in -2m5s
Build / Build and Test Deb and RPM Packages (push) Successful in -45s
Build / Publish Release (push) Successful in -2m41s
Build / Pipeline (push) Successful in 0s
d1a83213c5
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #339
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #363
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #363
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #18
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #364
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #364
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The Windows test job's clean-up stops only processes inside its own workspace, and a lost port pair no longer leaves listeners undisposed in the forwarder test
All checks were successful
Build / Pack and Push NuGet Packages (dns-core) (push) Successful in -2m5s
Build / Test .NET (pull_request) Successful in 5m27s
Build / Pack and Push NuGet Packages (dns-server) (push) Successful in -1m47s
Build / Build Binary (linux-amd64) (push) Successful in -57s
Build / Build Binary (linux-arm64) (push) Successful in -41s
Build / Build Binary (macos-amd64) (push) Successful in -49s
Build / Stage Draft Release (pull_request) Successful in -2m43s
Build / Pack and Push NuGet Packages (common) (pull_request) Successful in -2m27s
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Successful in -1m56s
Build / Build Binary (macos-arm64) (push) Successful in -41s
Build / Build Binary (windows-amd64) (push) Successful in -50s
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Successful in -2m8s
Build / Smoke Test the Windows Binary (push) Successful in 17s
Build / Build Binary (linux-amd64) (pull_request) Successful in -52s
Build / Build Binary (linux-arm64) (pull_request) Successful in -43s
Build / Build Binary (macos-amd64) (pull_request) Successful in -33s
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Successful in -2m2s
Build / Build Arch Linux Packages (push) Successful in -2m8s
Build / Build Binary (macos-arm64) (pull_request) Successful in -38s
Build / Build Binary (windows-amd64) (pull_request) Successful in -46s
Build / Build and Push Image (push) Successful in -2m38s
Build / Smoke Test the Windows Binary (pull_request) Successful in 15s
Build / Build Arch Linux Packages (pull_request) Successful in -2m11s
Build / Build and Push Image (pull_request) Successful in -2m38s
Build / Build and Test Deb and RPM Packages (push) Successful in 31s
Build / Publish Release (push) Successful in -2m42s
Build / Pipeline (push) Successful in 0s
Build / Build and Test Deb and RPM Packages (pull_request) Successful in -7s
Build / Publish Release (pull_request) Successful in -2m41s
Build / Pipeline (pull_request) Successful in 0s
c742a8410a
Refs #18
Refs #364
Refs #8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit 595945de79 into develop 2026-11-06 21:49:18 -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!365
No description provided.