Skip to content

ci: main red at 141c2437a02c: browser #4125

Closed

Description

@github-actions

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

Failing tests and categories:

Every failure here is post-merge proof, which ready confirmation does not run, so ordinary confirmation and merges continue. Each main run includes this failing set until one 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: fix
    area: ci
    on Nov 17, 2026
  2. self-assigned this
    on Nov 17, 2026
  3. schlessera commented on Nov 17, 2026

    @schlessera
    Owner

    Fix claimed by worker wi-20261117-3975m (orchestrator orch-t3129941).

    • Main red at 141c2437a02c (record run 43987217487).
    • Claim term ends 2026-11-17T01:51:29.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 17, 2026

    @schlessera
    Owner

    Red-main evidence: decision

    **Choice: fix (test timing). No revert.**
    
    **Cause evidence.** Neither failure follows a code change.
    - `layout`: `hygiene-review.layout.tsx` failed at 141c243 (main run 43986818137) and passed at 40779d4 (run 43987217487). 40779d4 changes only ui-server native-proof scripts, so the UI under test is identical in both.
    - `browser`: `native-buttons.visual.tsx` failed on "raw picker row has an inset focus ring" at 40779d4 and passed at 141c243, on the same UI code.
    - Local, in the pinned Playwright image, `hygiene-review.layout` failed:
      - at 0ef4dff, the parent of 141c243 without #3975: 2 of 4 runs;
      - at 141c243: 1 of 4;
      - at 40779d4: 2 of 3.
    
      A different case timed out on each run, always "Matcher did not succeed in time".
    
    **Mechanism.**
    - Every poll in the hygiene file waits on a real fixture-server round trip under Vitest's 1-second `expect.poll` default. The file's own server-bound polls already use 5 seconds.
    - `ring()` focuses the picker row and then sends a keyboard round trip before reading its style. Focusing the row blurs the combobox, which closes its results 150 ms after blur, as the file's own comment notes. On a loaded runner the row can be gone before the read.
    
    **Dependencies and conflicts.** Reverting #4104 is unsupported: the hygiene flake reproduces without it, and it does not touch either test. The fix changes two test files only. No product code changes, and no other test depends on them.
    
    **Proof.** With the fix, `hygiene-review.layout` passed 6 of 6 runs and `native-buttons` (rail-coarse) 3 of 3. A mutation that requires a 3px outline in the new picker check fails on "raw picker row has an inset focus ring", so the check can still fail.
    
  5. added this to the 0.45.0 milestone on Nov 17, 2026
  6. github-actions commented on Nov 17, 2026

    @github-actions
    Author

    Squash 7dfadc217c406255935f7fc626594acf2c2e8b9a from #4120 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43998641805).

  7. schlessera commented on Nov 17, 2026

    @schlessera
    Owner

    Red-main evidence: fix-attempt

    The record gained a third failure on main run 43997103849 (squash 1e6c0c67d, #4122): unit, packages/ui-react/tests/attachment-read-runtime.test.ts. In that same run browser and layout passed in every shard.
    
    Cause: a race in the test, not the squash. #4122 changed nothing under packages/.
    - The test waits for `lastAssistant() !== null`, which the reply's empty placeholder already satisfies, then awaits the server's turn and reads the store once (line 180). The reply's last frames can still be in flight: `Expected: "The permit says: …" Received: ""`.
    - A probe after that wait printed "" on three of three local real-Chrome runs, so the wait never waited for the reply.
    
    Fix: PR #4136, declared for this record. It waits for the store to hold the reply text and then asserts it. Three local real-Chrome runs pass; removing the fixture's text_delta fails the named assertion. It carries a recorded independent review with no findings.
    
    It does not touch the browser and layout failures; those stay with #4135.
    
  8. schlessera commented on Nov 17, 2026

    @schlessera
    Owner

    Red-main evidence: log

    • Incident: main red at 141c2437a02c (record run 43987217487)
    • From: worker claim-ae3e2cad, orchestrator orch-7c9068b428c36e6b (contributor)
    • SHA: 1e6c0c67d164e4df3a72a6655da89439d7f0264e
    • Summary: The new attachment-read runtime unit failure blocks ordinary non-fix confirmation before acquisition; the backend reply passed while the mounted UI reply was empty.
    Main run [43997103849](https://github.com/schlessera/brain-kit/actions/runs/43997103849), head `1e6c0c67d164e4df3a72a6655da89439d7f0264e`, fails [unit (3)](https://github.com/schlessera/brain-kit/actions/runs/43997103849/job/133752165537).
    
    The final shard summary names one failing test: `packages/ui-react/tests/attachment-read-runtime.test.ts:180`. The backend's content-dependent reply and recorded attachment read pass the preceding assertions; the mounted page's `lastAssistant()` returns an empty string where the test expects that reply. No local reproduction or cause is established by this log.
    
    This unit failure is now in the shared red-main record, so ordinary non-fix confirmation is refused before reservation acquisition. The existing declared fix #4135 currently changes `hygiene-review.layout.tsx` and `remaining-buttons.cases.tsx`. An exact-path search of open issue bodies returned no separate attachment-runtime issue; this evidence stays on the existing incident.
    
  9. github-actions commented on Nov 17, 2026

    @github-actions
    Author

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

  10. schlessera commented on Nov 17, 2026

    @schlessera
    Owner

    Recovered. Main is green and the red-main record is cleared.

    • Fix: test(ui-react): give the hygiene review's polls and the picker focus-ring check room on a loaded runner (#4125) #4135, merged as aaa6221d46b3aa83991053750ae3059eb1486f82 after its candidate run 43999433851 passed.

    • Recovery proof: main CI run https://github.com/schlessera/brain-kit/actions/runs/44001979141 on aaa6221, including the failing set: browser (1), browser (2), browser (3), layout (1) and layout (2) all passed. That run cleared the record (clear, run 44001979141).

    • Cause: pre-existing timing flakes in tests the squash at 141c243 did not touch.

      • hygiene-review.layout.tsx polled real fixture-server round trips under Vitest's 1-second default.
      • The native-buttons picker focus-ring check raced the combobox's 150 ms close-on-blur.

      Both now have room on a loaded runner, and the new picker check still fails under mutation.

    • No revert: the #3975 change (141c243) stays. The flake reproduced without it.

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