fix(test): stop three parallel tests writing the package knobs #1137
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!1137
Loading…
Reference in a new issue
No description provided.
Delete branch "aos/claude/knob-race"
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?
Found by running
go test -race, whichjust testdoes not do, so main is green on this today.applyKnobswrites the package-level tuning variables. Three tests call it and taket.Parallel(), so they rewritemaxToolResultBytesand its neighbours while other parallel tests read them.Mine, and I had already caught it once
I introduced these in #1113. The same hazard bit me earlier in the same session on
TestTheAdmissionBoundLeavesAQueueBehindThePool, where I droppedt.Paralleland wrote a comment explaining why. I then wrote three more parallel knob tests without applying my own lesson. The convention was already there to read: not one test inknoboverride_test.gotakest.Parallel.The three now carry that same comment, so the next reader gets a reason rather than an unexplained absence.
go test -raceover the package is clean, andjust gateis green.One thing left deliberately undone
just testruns without-race, so nothing in CI caught this and nothing would catch the next one. Whether the gate should race the suite is a real cost question: it roughly doubles a run, against #838's measurement of 57s fortesttoday. I have noted it on #1136 rather than changing the gate inside a bug fix.closes #1136