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: main red at 401c66b0b856: packages/ui-sdk/tests/worker-output-budget.test.ts #3583
Hosted proof whose merge ref contains this commit is refused or cancelled, and integrate.ts refuses ordinary confirmation and merges, until a main run that includes this failing set is green. Declare a fix or targeted revert PR with bun scripts/integrate.ts declare-fix <pr>; the first confirmed fix wins. Only a green main run that includes this failing set clears the record, so a failure that does not reproduce still needs a declared fix to land.
One orchestrator owns the fix: it claims it with bun scripts/red-main-incident.ts claim --worker <id> --orchestrator <id>, which writes the claim into the red-main record. After a quick assessment the claimant chooses a fix PR or a targeted revert PR from causal and current-tree evidence, and records that choice and its rationale here as decision evidence; a red check or the latest squash alone is not proof of cause. Every other orchestrator adds evidence here with bun scripts/red-main-incident.ts evidence ... instead of opening another issue.
Fix claimed by worker orch-0988fe94 (orchestrator orch-0988fe94).
Main red at 401c66b0b856 (record run 41887305459).
Claim term ends 2026-11-04T19:51:21.000Z; the claimant renews it with bun scripts/red-main-incident.ts renew. After it ends, any orchestrator may take the fix over with claim.
Everyone else: add evidence here with bun scripts/red-main-incident.ts evidence; do not open another incident.
`packages/ui-sdk/tests/worker-output-budget.test.ts`, case "strict refuses 8 MiB of staging past a 1 MiB allowance", failed at `:34` in main run 41887305459 on `401c66b0b`. It was the only failure, with 2337 tests passing. The worker exited 0 (the `:32` check passed), but `stdout` was **empty** where the test expected `"ENOSPC\n1048576\n"`: both lines were missing, not just one.
**Cause: an ordering race in the test.**
- **How stdout is read:** the test fills `stdout` from `worker.stdout.on("data", …)`, then asserts as soon as `await worker.exited` resolves. A process exiting doesn't mean its stdout pipe has been drained. If the exit resolves before the stream's last `data` events (and its `end`), the assertion reads an incomplete buffer.
- **Why it's intermittent:** an empty buffer means the exit won that race completely, and that only happens under load.
- **History:** the test hasn't changed since 2026-10-14 (#1848).
**#3565 did not cause this.** Its 32 files change media hygiene, and none of them is the worker launcher, output staging, turn-temp or this test.
**Choice: fix, not revert.** The test will wait for both of the worker's output streams to end, as well as the process to exit, before it asserts. The product behaviour (ENOSPC at a 1 MiB allowance) is unchanged. The `maintenance` variant has the same shape and is fixed the same way.
Activity
schlessera commentedon Nov 4, 2026
Fix claimed by worker
orch-0988fe94(orchestratororch-0988fe94).401c66b0b856(record run 41887305459).bun scripts/red-main-incident.ts renew. After it ends, any orchestrator may take the fix over withclaim.bun scripts/red-main-incident.ts evidence; do not open another incident.schlessera commentedon Nov 4, 2026
Red-main evidence: decision
401c66b0b856(record run 41887305459)orch-0988fe94, orchestratororch-0988fe94(claimant)401c66b0b85609f0a519f1ae7950ff7be3db8832fix(ui-sdk): wait for worker output streams to end before asserting o…
github-actions commentedon Nov 4, 2026
Main is green again: run https://github.com/schlessera/brain-kit/actions/runs/41896047009 at
70ce32e843975d029c14ed43c71b4de88ecc7bd9included the failing set and passed. The red-main record is cleared.schlessera commentedon Nov 4, 2026
Cleared: main CI run https://github.com/schlessera/brain-kit/actions/runs/41896047009 at
70ce32e84(#3585) passed with the failing set included, and the red-main record is cleared. Closing.