The admin console smoke harness repeats a visit that failed while the machine's network addresses changed #455

Merged
claude merged 5 commits from feature/430-smoke-harness-network-change into develop 2026-11-14 04:03:55 -05:00
Owner

Closes #430

Cause. The 1006 does not come from the console. When the machine's set of IP addresses changes while the harness runs (measured: a Docker container's veth interface getting a usable IPv6 link-local address), Chromium aborts its open sockets. The dashboard's hub WebSocket then logs WebSocket closed with status code: 1006, requests in flight fail with net::ERR_NETWORK_CHANGED, and an aborted token refresh can leave the browser with a revoked refresh cookie, so later visits answer 401 (the product side of that is #451). The evidence is in the issue.

Change (smoke harness and CONTRIBUTING.md only).

  • The harness polls the machine's addresses. A visit that has a failed check while the addresses changed is repeated once, after signing the user in again; only the second attempt counts. A repeat that is disturbed again is not repeated: its failures stand.
  • A visit that fails with a 401 on the refresh route is treated the same way when the addresses changed since that user's last sign-in.
  • Every repeat is a note in the report with the addresses that were added or removed, and the summary counts them.
  • No error text is allowed: on a stable address set a 1006, a failed request or a 401 fails the check as before.

Checked. A verifier accepted it in three passes: quiet dashboard runs exit 0 with no repeat; runs beside container starts exit 0 with repeat notes; a deliberate console error still fails; a naturally aborted refresh was recovered by the sign-in on repeat. Under constant container churn a run can still fail, by design. Known limit, stated in the code: a refresh 401 is excused once per sign-in when any address change happened since that sign-in, and the note makes each case visible.

No CHANGELOG entry: a development script.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

Closes #430 **Cause.** The 1006 does not come from the console. When the machine's set of IP addresses changes while the harness runs (measured: a Docker container's veth interface getting a usable IPv6 link-local address), Chromium aborts its open sockets. The dashboard's hub WebSocket then logs `WebSocket closed with status code: 1006`, requests in flight fail with `net::ERR_NETWORK_CHANGED`, and an aborted token refresh can leave the browser with a revoked refresh cookie, so later visits answer 401 (the product side of that is #451). The evidence is in the issue. **Change (smoke harness and CONTRIBUTING.md only).** - The harness polls the machine's addresses. A visit that has a failed check while the addresses changed is repeated once, after signing the user in again; only the second attempt counts. A repeat that is disturbed again is not repeated: its failures stand. - A visit that fails with a 401 on the refresh route is treated the same way when the addresses changed since that user's last sign-in. - Every repeat is a note in the report with the addresses that were added or removed, and the summary counts them. - No error text is allowed: on a stable address set a 1006, a failed request or a 401 fails the check as before. **Checked.** A verifier accepted it in three passes: quiet dashboard runs exit 0 with no repeat; runs beside container starts exit 0 with repeat notes; a deliberate console error still fails; a naturally aborted refresh was recovered by the sign-in on repeat. Under constant container churn a run can still fail, by design. Known limit, stated in the code: a refresh 401 is excused once per sign-in when any address change happened since that sign-in, and the note makes each case visible. No CHANGELOG entry: a development script. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #430

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

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #430

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #430

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Merge develop into the smoke harness branch
All checks were successful
Build / Compute Version (pull_request) Has been skipped
Build / Test .NET on Windows (pull_request) Has been skipped
Build / Windows Test Gate (pull_request) Has been skipped
Build / Test Admin Console (pull_request) Successful in -1m5s
Build / Stage Draft Release (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (common) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Has been skipped
Build / Pipeline (pull_request) Successful in 0s
Build / Lint and Script Tests (pull_request) Successful in -2m4s
Build / Test .NET (pull_request) Successful in 5m0s
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (pull_request) Has been skipped
Build / Build Binary (linux-arm64) (pull_request) Has been skipped
Build / Build Binary (macos-amd64) (pull_request) Has been skipped
Build / Build Binary (macos-arm64) (pull_request) Has been skipped
Build / Build Binary (windows-amd64) (pull_request) Has been skipped
Build / Build Arch Linux Packages (pull_request) Has been skipped
Build / Build and Test Deb and RPM Packages (pull_request) Has been skipped
Build / Build and Push Image (pull_request) Has been skipped
Build / Smoke Test the Windows Binary (pull_request) Has been skipped
Build / Publish Release (pull_request) Has been skipped
6b6daf4b4e
Refs #430

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit 5eca0e85d8 into develop 2026-11-14 04:03:55 -05:00
claude deleted branch feature/430-smoke-harness-network-change 2026-11-14 04:03:55 -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!455
No description provided.