Skip to content

ci: main red at 05bf0d6a02fb: browser #4098

Closed

Description

@github-actions

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

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: #3628.

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 claim-9f8287dc (orchestrator orch-431cf361).

    • Main red at 05bf0d6a02fb (record run 43892489696).
    • Claim term ends 2026-11-16T16:36:48.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 05bf0d6a02fb (record run 43892489696)
    • From: worker claim-9f8287dc, orchestrator orch-431cf361 (claimant)
    • SHA: 43d73cbe618b49f0ce18807391c63606410a38dc
    • Choice: fix PR
    • Summary: Markup stories time out encoding a 12 MP layer on hosted runners; fix the stories
    **Cause (browser).** `stories/images/MarkupEditor.stories.tsx` → Over The Cap (`Unable to find role="alert"`) and Submitted (`expected "onSubmit" to be called 1 times, but got 0 times`), introduced by #4093 (squash `43d73cbe6`). Both stories encode the 3024 × 4032 raft layer before asserting and wait with Testing Library's 1 s default. They failed at ~1.2–1.4 s on main runs 43892489696 (storybook-light), 43894354295 (both themes) and 43895025405 (storybook), and pass in ~0.3 s locally and on the PR's candidate run: a timing budget, not a behaviour regression. No other story or browser test failed in those runs.
    
    **Fix, not revert.** The change is story-only: those two stories encode the same scene at a quarter size (1/16 of the pixels) and wait up to 4 s, inside Vitest's 5 s test limit. Reverting #4093 would remove the delivered markup components that later work (#3975) builds on; nothing else depends on the two stories.
    
    **Unit (`packages/ui-server/tests/app-state-isolation.test.ts`, timeout signature).** Not reached by #4093 (ui-kit and the ui-react mask editor only). It passed on the later main runs 43894354295 and 43895025405. The fix PR does not touch it; the green main run that clears this record must include it.
    
  5. added this to the 0.45.0 milestone on Nov 16, 2026
  6. github-actions commented on Nov 16, 2026

    @github-actions
    Author

    Squash 5c9869caad2fd5fabf1ee8e5dd892344b1fa0dbc from #4051 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43894354295).

  7. github-actions commented on Nov 16, 2026

    @github-actions
    Author

    Squash 524986d8a79d1cf593f9159fcaa43a07684cab1f from #4073 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43895025405).

  8. github-actions commented on Nov 16, 2026

    @github-actions
    Author

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

  9. github-actions commented on Nov 16, 2026

    @github-actions
    Author

    Squash 80e5d372f96eaece849d0fdfac95f5a84925845c from #4071 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43896380732).

  10. schlessera commented on Nov 16, 2026

    @schlessera
    Owner

    Red-main evidence: decision

    • Incident: main red at 05bf0d6a02fb (record run 43892489696)
    • From: worker claim-9f8287dc, orchestrator orch-431cf361 (claimant)
    • SHA: de113bd8237646bda73a12d4b61d75ed4e92826d
    • Choice: fix PR
    • Summary: Story projects lack NoIdleEncodingForWebTests; stub the encoder in the two stories
    **Reassessment after #4099.** Main run 43903824165 (squash `de113bd82`) failed the same two stories in `storybook` at 4279/4405 ms with the quarter-size scene: 1/16 of the pixels and a 4 s wait, so encode size was not the cause and the first decision's timing diagnosis was wrong.
    
    **Cause.** The story projects (`storyProject` in `packages/ui-kit/vitest.config.ts`) launch Chromium without `--enable-blink-features=NoIdleEncodingForWebTests`; the `visual` project sets it. Without it, `canvas.toBlob` defers PNG encoding to idle time (`packages/ui-kit/tests/visual/README.md`, "The `visual` project's Chromium uses `NoIdleEncodingForWebTests`"), which a loaded hosted runner does not reliably give. Supporting evidence: `tests/visual/markup-editor.visual.tsx`, which encodes for real under the flag, passed in every main run; only the two story cases that call the real encoder fail; they pass locally.
    
    **Fix.** Those two stories pass an `exportLayer` that reports a fixed byte count and assert the exact over-cap message and the submitted layer's size, counts and notes. Real encoding stays proven under the flag in the visual project. Not a revert: #4093's product code is not implicated.
    
    **Unit (`app-state-isolation.test.ts`).** Unchanged assessment: not reached by #4093, passed on later main runs; the clearing main run must include it.
    
  11. github-actions commented on Nov 16, 2026

    @github-actions
    Author

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

  12. schlessera commented on Nov 16, 2026

    @schlessera
    Owner

    Closed: recovery proof recorded above (main run 43912992687 green on 04ac259).

  13. schlessera commented on Nov 16, 2026

    @schlessera
    Owner

    Recovered. #4100 squashed as 04ac25983755d29c30f14fb57493616b5a7c34d4 (parent de113bd82, tree 0ade24f9 = its confirmed candidate checkout). Main CI run https://github.com/schlessera/brain-kit/actions/runs/43912992687 on that commit completed success, including the browser stories and packages/ui-server/tests/app-state-isolation.test.ts; main-status cleared the record from that run.

    #4099 (quarter-size scene) merged first but did not fix the cause; #4100 replaced its approach. Cause: the story projects run Chromium without NoIdleEncodingForWebTests, so real toBlob encoding in two stories depended on runner idle time.

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