Skip to content

fix(tests): drop the duplicate listeners the events merge kept (V388 amendment) - #381

Merged
randomizedcoder merged 1 commit into
mainfrom
fix/tcp-controller-duplicate-listeners
Dec 3, 2026
Merged

randomizedcoder merged 1 commit into
mainfrom
fix/tcp-controller-duplicate-listeners

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

What

nix/tests/tcp-controller/default.nix carried two listeners definitions in one attrset — a hard evaluation error. nix flake check and nix build .#test-tcp-controller-vm have been failing on main since 2818adb76 (the events arc's merge).

Root cause

Two independent fixes for the same miss (the listener model a739d59cc moved the unspecified module default to a unix socket and the tcp-controller fixture was the one not updated):

  • V388 (f9c1c0853, 2026-11-24, events branch): the name=prometheus,serves=health listener — the value the arc's recorded vm-all run proved (8 sentinels).
  • 1b0bbd2ce (2026-11-26, main): a name=health,serves=health listener — same address, same fix, landed unseen two days later.

a3cf04042 ("Merge main into goip/parity-events and resolve monitor conflicts") resolved the hunk by keeping both sides — textually clean, semantically a duplicate key. Nothing caught it: the gate battery and CI both run the individual checks; nothing evaluates the whole flake.

The fix

Delete the 1b0bbd2ce hunk (its 3-line comment + listener), keeping V388's name=prometheus value — the one the recorded vm-all run proved. The harness probes by address (127.0.0.1:9088/readyz, tools/tcp-controller-integration/main.go:122), so only the duplicate mattered. Recorded in V388's ledger row as an amendment (the 2818adb76→7ce0f408a8 damage window, and why it went unseen).

Runtime is not re-run: the kept value is byte-identical to the state V388's recorded vm-tcp-controller/vm-all run proved, and no change in the window touches the fixture or the daemon.

Verification

  • nix build .#test-tcp-controller-vm — green (previously the eval error)
  • flake packages walk under --no-build — 79 derivations evaluate; the remaining proto-audit failure there is a GC'd fetch-cargo-vendor-ua-fix.drv in this local store, not tree damage (nix build .#proto-audit is green)
  • check battery: lint-baseline, gofmt, nix-fmt, go-vet, test-goip-docs, test-goip-monitorfile, netlink-audit, vm-lib-exp, cli-help-smoke-goip-parity, test-focused-goip — all green
  • Go gates on the merged tree (this change touches no Go): both full suites go test -count=1 ./... and -tags goip_write ./... (114 ok each), go vet both modes, gofmt — all green

🤖 Generated with pi

…amendment)

a3cf040 ("Merge main into goip/parity-events and resolve monitor
conflicts") resolved this hunk by keeping both sides: the events branch's
V388 fix (f9c1c08, name=prometheus) and main's independent two-days-later
fix of the same miss (1b0bbd2, name=health). Two `listeners` keys in one
attrset are a hard evaluation error, so packages.x86_64-linux.test-tcp-controller-vm
failed to evaluate from the arc's merge (2818adb) through 7ce0f40.
Nothing caught it because the gate battery and CI both run the individual
checks, never a whole-flake evaluation.

Keep V388's name=prometheus value - the one the recorded vm-all run proved
(the harness probes by address, so only the duplicate mattered) - and record
the repair in V388's ledger row.

Verification: nix build .#test-tcp-controller-vm, the flake's packages walk
(79 derivations, --no-build; the remaining proto-audit failure there is a
GC'd fetch-cargo-vendor .drv in this store, not tree damage - the package
builds), and the check battery: lint-baseline, gofmt, nix-fmt, go-vet,
test-goip-docs, test-goip-monitorfile, netlink-audit, vm-lib-exp,
cli-help-smoke-goip-parity, test-focused-goip, all green.

🤖 Generated with [pi](https://github.com/badlogic/pi-mono)
@randomizedcoder
randomizedcoder merged commit a686a7d into main Dec 3, 2026
1 check passed
@randomizedcoder
randomizedcoder deleted the fix/tcp-controller-duplicate-listeners branch December 3, 2026 09:12
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 participant