Skip to content

ci: main red at e04768a3f421: browser #3427

Closed

Description

@github-actions

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

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.

Possibly related open issues: #1849, #2551, #2793, #2924, #2925, #3170.

Activity

  1. added
    type: fix
    area: ci
    on Nov 3, 2026
  2. schlessera commented on Nov 3, 2026

    @schlessera
    Owner

    Red-main evidence: ruled-out

    First bad `e04768a3f` is the merge of #3369 (epic #1646, sub-PR #3312). Its tree `92c73f01ad2e` is byte-identical to the checkout tree that passed every selected job in #3369's exact-candidate confirmation run 41568619778. So the code alone does not reproduce the failure.
    
    Main run 41570686958 failures:
    
    1. `unit (1)`, `packages/ui-react/tests/connection-continuity-runtime.test.ts:215`: the fixture's own free-space guard refused. `TurnFixtureFreeSpaceError: Turn fixture brain filesystem at "/tmp/odysseus-continuity-…/brain" has 2665283584 available bytes; requires at least 3844357734.4 bytes (max(5% of total, 2147483648 bytes))`. The runner disk was short of space before the test began.
    2. `unit (1)`, `packages/ui-server/tests/ws-scope-caps.test.ts:116` ("claude: true voice stops without a grant", and the dictation and "backlogged four-call overshoot" cases): the voice turn stopped on `dimension: "free_space_floor"`, `cap: 3844357734.4`, `count: 2607411200`, instead of the call-count cap the test drives (`cap: 2, count: 2`). That is the same runner disk shortfall, observed through the production free-space floor.
    3. `unit (1)`, `packages/ui-react/tests/tracker-runtime.test.ts:111/167`: `waitForFunction` timed out at 15000 ms, on the same runner.
    4. `browser (3)`: "continuous focused corners and contained control rings: light 1280" timed out at 16030 ms.
    
    Assessment: failures 1 and 2 come from hosted-runner free disk space, not from #3312's diff. #3312 changes the Gemini Files video relay for keyless workers; it does not touch free-space accounting or these fixtures. Failures 3 and 4 are timeouts on the same pressured runners. A deterministic fix probably belongs in test/CI isolation from host disk, for example an injected `statfs` for `ws-scope-caps` or reclaiming disk space before the unit shards. That is not a revert of #3369.
    
  3. self-assigned this
    on Nov 3, 2026
  4. schlessera commented on Nov 3, 2026

    @schlessera
    Owner

    Fix claimed by worker wi-20261103-land2ac8 (orchestrator orch-land2ac8).

    • Main red at e04768a3f421 (record run 41570686958).
    • Claim term ends 2026-11-03T09:03:28.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.
  5. added this to the 0.45.0 milestone on Nov 3, 2026
  6. schlessera commented on Nov 3, 2026

    @schlessera
    Owner

    Red-main evidence: decision

    Cause: the hosted unit runner's root filesystem, where turn fixtures keep their brains under /tmp, fell below the turn free-space floor (`max(5% of total, 2 GiB)`, about 3.84 GB). In main run 41570686958, `connection-continuity-runtime.test.ts:215` refused on its guard with 2665283584 bytes available against 3844357734.4 required. The `ws-scope-caps.test.ts` voice turns stopped on `free_space_floor` (`count: 2607411200`) instead of the cap the test drives. The merged tree `92c73f01ad2e` passed every job in #3369's exact confirmation run 41568619778, so the code alone does not reproduce the failure.
    
    Choice: fix, not revert. #3379 (Closes #3256) removes unused preinstalled toolchains during unit setup before proof. It fails setup as a named infrastructure prerequisite unless the floor plus a 12 GiB proof reserve remains, and samples the fixtures' filesystem during proof (`tmp/runner-disk.json`, `disk` in `tmp/proof-resources.json`). Reverting #3369 would not raise runner disk.
    
    Dependencies and conflicts: #3379 merged cleanly onto main `e04768a3f` (merge `ae8ec2819`). `tests/ci-disk.test.ts` passes 9/9 and `check:pr --base origin/main` passes. It is a proof-system change taking the expedited fix path (ci-utility proof-system lane rules 3 and 7). The `tracker-runtime.test.ts` and `browser (3)` timeouts in the same run are assessed separately after the fix run.
    
  7. schlessera commented on Nov 3, 2026

    @schlessera
    Owner

    Red-main evidence: log

    • Incident: main red at e04768a3f421 (record run 41570686958)
    • From: worker wi-20261103-land2ac8, orchestrator orch-land2ac8 (claimant)
    • SHA: 3d3516a0247702560c09c5a0889bdec39b8313fb
    • Summary: expedited proof: red set green on fix head 41601069536; every shard's runner disk stayed far above the floor
    Expedited fix proof (ci-utility, proof-system lane rule 7) for declared fix #3379, merged as squash `3d3516a0247702560c09c5a0889bdec39b8313fb`.
    
    **Red on the bad base**: main run 41570686958 at `e04768a3f`, job `unit (1)`:
    - `connection-continuity-runtime.test.ts:215` failed: `TurnFixtureFreeSpaceError ... has 2665283584 available bytes; requires at least 3844357734.4 bytes (max(5% of total, 2147483648 bytes))`.
    - `ws-scope-caps.test.ts:116` failed: voice turns stopped on `dimension: "free_space_floor"`, `count: 2607411200`, `cap: 3844357734.4`, in the claude and pi "true voice stops without a grant", "dictation pauses, grants once…" and "pi: backlogged four-call overshoot is Stop-only" cases.
    - `tracker-runtime.test.ts:111/167` (`unit (1)`) and `browser (3)` "continuous focused corners and contained control rings: light 1280" timed out at 15–16 s.
    
    **Green on the fix head**: exact-candidate run 41601069536, head `ae8ec2819`, base `e04768a3f`, checkout parents `[e04768a3f, ae8ec2819]`, tree `0b1d5e50bce9`. Every selected job and `proof` passed.
    
    Runner disk, from `BRAIN_RUNNER_DISK` (setup reclaim) and the `disk` field of `BRAIN_RESOURCE_RECEIPT` / `tmp/proof-resources.json`:
    
    | Job | Reclaim before → after | Proof start / minimum / end | Floor | Samples | belowFloor |
    | --- | --- | --- | --- | --- | --- |
    | unit (1) | 81.53 → 106.74 GiB (5 toolchains removed) | 106.60 / 102.28 / 106.50 GiB | 7.21 GiB | 815 | false |
    | unit (2) | 81.53 → 106.74 GiB | 106.60 / 99.82 / 105.98 GiB | 7.21 GiB | 1020 | false |
    | unit (3) | 81.53 → 106.74 GiB | 106.60 / 101.39 / 106.34 GiB | 7.21 GiB | 711 | false |
    | unit (4) | 81.53 → 106.74 GiB | 106.60 / 99.87 / 104.08 GiB | 7.21 GiB | 891 | false |
    | browser (3) | no reclaim (not a unit job) | 83.40 / 75.13 / 80.52 GiB | 7.21 GiB | 664 | false |
    
    Every shard stayed far above the floor throughout proof.
    
    The red set on the fix head:
    - `connection-continuity-runtime.test.ts` (`unit (1)`): passed, "a turn admitted for one recipient's origin reaches only that origin (#2695)". The bad run failed this file in its fixture guard.
    - `ws-scope-caps.test.ts` (`unit (4)`): 12 passed, including `claude: true voice stops without a grant`, `claude:` and `pi: dictation pauses, grants once, refuses a second grant and Stops normally`, and `pi: backlogged four-call overshoot is Stop-only`.
    - `tracker-runtime.test.ts` (`unit (1)`): both "mounted trackers > 320 phone, dark, coarse pointer" cases passed (2.8 s and 3.4 s).
    - `browser (3)`: "continuous focused corners and contained control rings" passed in all four cells (dark/light × 320/1280, 5.9–11.4 s).
    
    **Caveat:** this run's runners have a larger disk than the bad run's. The floor is 7.21 GiB here, which implies about 144 GiB total, against 3.84 GB (about 77 GB total) on the failing runner. So this run shows the reclaim works (about 25 GiB recovered) and that disk sampling and attribution work. It does not reproduce the small-disk runner. On a runner like the failing one, setup now either keeps floor plus the 12 GiB proof reserve after reclaim, or fails as a named infrastructure prerequisite, never as a product test failure. The two timeouts both passed here, so I'm opening no separate flake issues for them now. If either recurs on a run whose disk stayed above the floor, it gets its own issue.
    
    The next main run, on `3d3516a02`, is the complete backstop.
    
  8. github-actions commented on Nov 3, 2026

    @github-actions
    Author

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

  9. schlessera commented on Nov 3, 2026

    @schlessera
    Owner

    Recovery proof: the declared fix #3379 landed as squash 3d3516a0247702560c09c5a0889bdec39b8313fb, with candidate run 41601069536 against base e04768a3f. Main run 41603623435 on that commit includes the failing set and finished success. The red-main record cleared on that run.

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

Metadata

Metadata

Assignees

Labels

area: citype: fix

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions