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
CI flake: 'canonical update retains the gate's completed retirement on a later busy file' fails intermittently on ubuntu #245
agent:readyHuman-approved for autonomous work by ocsi-fixerfix:pr-openocsi-fixer opened a PR for this ticketreleasedseverity:lowEnhancement, refactor proposal, decision record, docs polishtest-integrityTest/eval integrity: mutation sweep, invariant pinning, assertion strength
PR #243 run 41333886059 (head d9be220, branch touching only e2e/): the test job failed once with:
(fail) canonical update retains the gate's completed retirement on a later busy file [8.58ms] — expect(...superseded_by).toBeDefined() at test/lock-partial-outcomes.test.ts:109
plus an Unhandled error between tests from appendLog (src/logfmt.ts:96) via record (src/evidence.ts:116)
Rerun of the same commit: green (841→842 pass). Main has been green on every recent push. The PR diff cannot affect this test (e2e/-only), so it is a pre-existing ubuntu-runner flake in the held-file (0444) race family: the gate's durable-retirement step and the evidence appendLog fault injection appear to race the harness's hold window, and the unhandled rejection lands between tests.
Suspect shape
The test expects the gate to complete the retirement of the FIRST row before the busy-file failure strikes the second write; if the evidence append (a fire-and-forget record) rejects outside the awaited path, superseded_by may not yet be durable at assertion time — or the hold does not bite as intended on the ubuntu filesystem for the exact line the test aims at.
Fix direction
Reproduce under gh run stress (rerun the test job N times on ubuntu), then either await the evidence record inside the held window or gate the assertion on a settled store (bounded poll), and surface the stray rejection instead of letting it escape as an unhandled error.
Another occurrence, same family: #248 attempt 1 on Windows, 7 fails in concurrency.test.ts + lifecycle-evidence.test.ts (all hook-timeout cascades; supersede racing inflated 550ms -> 5555ms by a slow worker), green on rerun of the same SHA.
Concrete hardening this points at: Bun applies the default 5s timeout to beforeEach/afterEach hooks even when the test itself carries a longer override (the 30s on "a concurrent reader never sees a half-written file" does not protect its afterEach). Suggested fix (small PR): pass an explicit timeout to the hooks in test/concurrency.test.ts and test/lifecycle-evidence.test.ts (e.g. afterEach(fn, 30_000)), so a starved worker degrades to slow CI instead of red CI.
Root-caused, fixed (commit on refactor/tool-registry, ships with #247): the Windows-red family is Bun's 5s default test timeout vs genuinely slow work under --parallel=4 on Windows runners — process-spawning scenarios measured 5272ms green (prune sweep) and 4990ms (viewer mutation), so a slightly slower worker tips them over, Bun kills the racer children (racer-d1 exited null), and finish() rejects after teardown. Second half: hook timeouts stay at 5s even when the test carries a longer override — the lifecycle-evidence hook died at 8.3s next to its 30s test.
The commit gives every test and hook in scenarios-consistency / concurrency / lifecycle-evidence an explicit 30s budget, no assertion changes. Remaining question for this issue: whether --parallel=4 should drop to 2 on Windows CI to reduce contention at the source — the budgets make the suite tolerant, not the runner less loaded.
osi-spec-hash: c502133b6bd90eb2 2026-11-03T22:01:46Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
agent:readyHuman-approved for autonomous work by ocsi-fixerfix:pr-openocsi-fixer opened a PR for this ticketreleasedseverity:lowEnhancement, refactor proposal, decision record, docs polishtest-integrityTest/eval integrity: mutation sweep, invariant pinning, assertion strength
Activity
abogartz commentedon Nov 1, 2026
Another occurrence, same family: #248 attempt 1 on Windows, 7 fails in
concurrency.test.ts+lifecycle-evidence.test.ts(all hook-timeout cascades;supersede racinginflated 550ms -> 5555ms by a slow worker), green on rerun of the same SHA.Concrete hardening this points at: Bun applies the default 5s timeout to
beforeEach/afterEachhooks even when the test itself carries a longer override (the 30s on "a concurrent reader never sees a half-written file" does not protect itsafterEach). Suggested fix (small PR): pass an explicit timeout to the hooks intest/concurrency.test.tsandtest/lifecycle-evidence.test.ts(e.g.afterEach(fn, 30_000)), so a starved worker degrades to slow CI instead of red CI.test: 30s budgets for the process-spawning and lock-racing scenarios (#…
abogartz commentedon Nov 1, 2026
Root-caused, fixed (commit on refactor/tool-registry, ships with #247): the Windows-red family is Bun's 5s default test timeout vs genuinely slow work under
--parallel=4on Windows runners — process-spawning scenarios measured 5272ms green (prune sweep) and 4990ms (viewer mutation), so a slightly slower worker tips them over, Bun kills the racer children (racer-d1 exited null), andfinish()rejects after teardown. Second half: hook timeouts stay at 5s even when the test carries a longer override — the lifecycle-evidence hook died at 8.3s next to its 30s test.The commit gives every test and hook in scenarios-consistency / concurrency / lifecycle-evidence an explicit 30s budget, no assertion changes. Remaining question for this issue: whether
--parallel=4should drop to 2 on Windows CI to reduce contention at the source — the budgets make the suite tolerant, not the runner less loaded.ocsi-triager commentedon Nov 3, 2026
osi-spec-hash: c502133b6bd90eb2 2026-11-03T22:01:46Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
Merge pull request #276 from abogartz/fix-issue-245-20261103T2230Z
abogartz-opencode-self-improvement commentedon Nov 4, 2026
🎉 This issue has been resolved in version 0.15.20 🎉
The release is available on:
Your semantic-release bot 📦🚀