You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tests: five session tests fail only under parallel load — find the shared cause #176
Follow-up from #141's fix wave: three internal/session tests failed under parallel load during the wave and passed alone every time. They are not in .github/known-red.txt.
TestTheDesignStartedEventNamesTheResolvedModel (harness_model_test.go) — failed twice in full-suite runs while five sibling suites ran; passed alone and on a quiet full run.
The two already-ledgered flakes (TestOnlyADesignsOwnThreadCarriesTheReviseVerb, TestInterruptedTurnDoesNotWakeOnTheNoteItDrained) are the same family. Five tests that fail only under load is a shared cause, not five coincidences.
The mechanism
Reproduce deliberately: go test -count=3 -race ./internal/session/ while a ./internal/tui3/ run is in flight, and GOMAXPROCS=2 go test -count=5 -run '<the five>' ./internal/session/. Capture the first failure's full output (not tail).
Find the shared state: a timing assumption (time.Sleep standing in for a signal), a global written by one test and read by another, a shared temp path or env var, a goroutine from a previous test still delivering events. Fix the cause in the code or the test harness — never by loosening an assertion.
If one test is genuinely load-only and cannot be made deterministic, ledger it in both.github/known-red.txt and CLAUDE.md with the reason, in the same commit.
Acceptance
The five tests pass -count=5 under a concurrent tui3 run on the Linux box, or each remaining one is ledgered with a named cause.
Any fixed test that was in the ledger is removed from both places in the same commit.
The PR body names the shared cause.
Drafted with CodeAF · reviewed and owned by the author
Activity
Two nodes, one journal: the shared cause behind five load-only sessio…
Two nodes, one journal: the shared cause behind five load-only sessio…
Parity: NO. Layer B found two reds that no cell could reach
tasks: pin every tasks-page fixture clock to local zone, not just one (…
tasks: make the tasks-page test fixtures $TZ-stable (#1808) (#1809)