Skip to content

ci: main red at 401c66b0b856: packages/ui-sdk/tests/worker-output-budget.test.ts #3583

Closed

Description

@github-actions

Main is red at 401c66b0b85609f0a519f1ae7950ff7be3db8832 (first failing main run: https://github.com/schlessera/brain-kit/actions/runs/41887305459).

Failing tests and categories:

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.

Activity

  1. added
    type: fixSomething is broken and must behave the way it is documented.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    on Nov 4, 2026
  2. self-assigned this
    on Nov 4, 2026
  3. schlessera commented on Nov 4, 2026

    @schlessera
    Owner

    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.
  4. schlessera commented on Nov 4, 2026

    @schlessera
    Owner

    Red-main evidence: decision

    `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.
    
  5. added
    priority: p0Drop everything: a security hole, data loss, or a broken release.
    on Nov 4, 2026
  6. added this to the 0.45.0 milestone on Nov 4, 2026
  7. github-actions commented on Nov 4, 2026

    @github-actions
    Author

    Main is green again: run https://github.com/schlessera/brain-kit/actions/runs/41896047009 at 70ce32e843975d029c14ed43c71b4de88ecc7bd9 included the failing set and passed. The red-main record is cleared.

  8. schlessera commented on Nov 4, 2026

    @schlessera
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: ciCI workflows, the gates they run, release scripts, packaging.priority: p0Drop everything: a security hole, data loss, or a broken release.type: fixSomething is broken and must behave the way it is documented.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions