Skip to content

ci: main red at 132505f0bdac: tests/test-invocation-lifetime.test.ts #4081

Closed

Description

@github-actions

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

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 16, 2026
  2. self-assigned this
    on Nov 16, 2026
  3. schlessera commented on Nov 16, 2026

    @schlessera
    Owner

    Fix claimed by worker wi-20261116-6298f1d4 (orchestrator 0.45.0-orchestrator).

    • Main red at 132505f0bdac (record run 43858822733).
    • Claim term ends 2026-11-16T13:02:53.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 16, 2026

    @schlessera
    Owner

    Red-main evidence: decision

    • Incident: main red at 132505f0bdac (record run 43858822733)
    • From: worker wi-20261116-6298f1d4, orchestrator 0.45.0-orchestrator (claimant)
    • SHA: 132505f0bdacd8a69748efce2ff572cbe763e2e7
    • Choice: fix PR
    • Summary: Flake in the watch-rerun timing, unrelated to CONTRACT: feat(ui-sdk): read-only reference pool growth status (#3515) #4064; a test-only fix waits for the first watch run to finish and builds failure labels lazily
    **Choice: fix (test-only), not revert.** This is a flake in the test's own timing, not a regression from #4064.
    
    Cause evidence
    - Failing case: `wrapper watch reruns rebuild instead of borrowing live outer authority` (unit (3), run 43858822733). The first watch run printed `WATCH_CONSUMER 1`, and for the next 10 s no rerun printed `WATCH_CONSUMER 2` (`SECOND_WATCH_CONSUMER`, `tests/test-invocation-lifetime.test.ts:182`).
    - #4064 cannot reach this test. The test builds a private fixture checkout from a fixed list of `scripts/*` files plus `packages/core/tests/cli-harness.ts` and two `packages/ui-react/tests/fixtures/runtime-*` files (`invocationFixture`, `tests/helpers/test-invocation-fixture.ts:6-37`). #4064 changes none of them. Under `scripts/` it changes only `scripts/native-proof/*`. Its other changes are in ui-sdk's native reference pool, docs and the api-report. The verdict was `closure-unknown`, not a traced dependency.
    - The same case passed in 2.4–3.8 s on the four main runs before the bad SHA (43849565555, 43844647238, 43840844397, 43836699141).
    - It did not reproduce locally: 3 runs with Bun 1.4.4, 8 more under a 20-loop CPU burn, and 5 with CI's Bun 1.4.2 all passed. A minimal `bun test --watch` probe always reran after an edit made immediately after the test's last statement (40/40 on Bun 1.4.2), including an edit made while the test body was still running.
    - The failure label is built when `until` is called, so the output in the CI annotation was captured before the 10 s wait began. It shows nothing about what happened during the wait. The root cause inside Bun's watch reload is therefore not established.
    
    Fix
    - Wait for the first watch run's own summary (`Ran 1 test across 1 file`), not only its marker line, before editing. The edit then cannot land inside that run's teardown, and the rerun it starts is the only one the test waits for. The claim under test is unchanged: the rerun must rebuild and consume `cargo = 2` without borrowing the outer authority.
    - Labels that report output are now built when the wait ends, so a recurrence shows what actually arrived. The same bug class at the survivor-fallback wait (`:84`) is fixed too.
    
    Dependency and conflict assessment
    - A revert of #4064 would remove unrelated good work (the read-only pool growth status and its contract docs) and would not touch the failing test, so it is not supportable.
    - The fix changes only `tests/test-invocation-lifetime.test.ts`. No later squash on main touches that file.
    
    Route
    - The expedited `--fixes-main-run` path needs the failing file shown red at the exact base. A flake that does not reproduce cannot supply that (`scripts/red-main-expedite.ts:59`), so the fix lands as a declared fix through ordinary candidate confirmation.
    
  5. schlessera commented on Nov 16, 2026

    @schlessera
    Owner

    Red-main evidence: related

  6. added this to the 0.45.0 milestone on Nov 16, 2026
  7. github-actions commented on Nov 16, 2026

    @github-actions
    Author

    Squash e66cf4c8f9d7d6b3085361902a90f8f2bda827ea from #4065 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43862590255).

  8. github-actions commented on Nov 16, 2026

    @github-actions
    Author

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

  9. schlessera commented on Nov 16, 2026

    @schlessera
    Owner

    Outcome: main is green, and the record is cleared.

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.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