ci: main is red — errcheck flags the unchecked defer ln.Close() in six_port_health_wiring_test.go (shipped in f18d1122) #1353
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1353
Loading…
Add table
Add a link
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?
Symptom
Every
cirun onmainfails at the Go seam stage. Reproduced deterministically on the runner host atf18d1122(the currentorigin/mainhead):That is the only diagnostic —
go build,go vet,go testandgofmtare all clean.scripts/seam-smoke.shrunsgolangci-lint run ./...at the stageGo: go.work resolves both modules; build, vet, test, lint each, so the whole seam exits 1 there and no later stage runs.Cause
f18d1122("the newsletters send half rides the community's own mail relay…", #1310 / ADR 0229) added a real listener to the six-port wiring test to pin the relay fact as a live dialer:net.Listener.Close()returns anerror, soerrcheckflags it. This is genuinely new in the repo: every otherdefer …Close()incontrol-plane/**is on an*httptest.Server, whoseClose()returns nothing — which is why the pattern has never tripped the linter before..golangci.ymlis unchanged since the repo skeleton (be7efcc3, 2026-07-25) and enableserrcheckwithexclude-use-default: false. The linter did not change; the code did. Not a harness fault.Fix
Match the convention the repo already uses for error-returning closers (
control-plane/cmd/smoke-mail/mailserver.go:137,datacollectionshealth_integration_test.go:81):Note the test also does an explicit
_ = ln.Close()further down (line ~184) to prove a closed relay reads as "nothing listens" — so the deferred close is a belt-and-braces double close and must stay error-ignoring, nott.Fatal-on-error.Acceptance
nix develop --command golangci-lint run ./...exits 0 from the repo root.bash scripts/seam-smoke.shreaches past theGo: go.work resolves both modules…stage.go test ./control-plane/...still green — the test's three relay states (no apex / listening / closed) are unchanged.Evidence
heal-Matou-idss-1788961766-1285725, signature45de4fa78631, run https://git.matou.nz/Matou/idss/actions/runs/20654run-verdict.txt:stage=Go: go.work resolves both modules; build, vet, test, lint each,exit=1, one error line (the one above).Filed by the swarm healer: product-class fault, so no code was touched.
swarm-claim host=elitebook-distributed-server-03 run=20674
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1353 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope