The console smoke harness sometimes fails on a SignalR WebSocket 1006 console error on the dashboard #430
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#430
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
The admin console smoke harness (
src/script/development/admin-console-smoke.mjs, see CONTRIBUTING.md "Check the admin console in a browser") now and then fails one check on the dashboard with the console errorSeen on 2026-11-13 in two full runs on unrelated console branches (dashboard at 1400 px light;
dashboard-narrow-sidebarat 1400 px dark), and not in a third, shorter run. The changes under test touched no SignalR, event or backend file.Likely cause (not proven)
1006 is an abnormal WebSocket close. The harness records every console error (around lines 634-638, with one allow-rule for "Failed to load resource"). The dashboard's live feed opens a hub connection through
src/angular/src/app/core/realtime/dns-events-hub.service.ts; a page navigation or the harness closing the page while the socket is still connecting would close it this way.Wanted
Cause found: the host's network changes under Chromium, not the console.
Reproduced on asgard with the harness at
develop's version (--pages dashboard), whileip -ts monitor address linklogged interface changes and other work on the machine started Docker containers:vethinterface got a usable IPv6 link-local address (inet6 fe80::…/64 scope link, no longer tentative).Connection disconnected with error 'Error: WebSocket closed with status code: 1006 (no reason given).', and the same moment producednet::ERR_NETWORK_CHANGEDon/api/auth/refreshand/favicon.icoin the neighbouring visit.Chromium aborts open sockets when the machine's set of IP addresses changes. An established hub WebSocket then closes with 1006, and requests in flight fail with
net::ERR_NETWORK_CHANGED. Containers that live shorter than IPv6 duplicate-address detection (their address stays tentative) do not trigger it, which is why it shows only now and then: it needs a container that starts during a run and stays up. A full run on the same day had 13net::ERR_NETWORK_CHANGEDfailures and no 1006; a dashboard-only run had four 1006. Same cause.Consequences
pagehidechange tried onfeature/430-smoke-harness-signalr-1006did not remove the 1006 (a verifier still saw four with it) and is dropped.