Skip to content

ci: main red at c14846a66e1d: unit #3315

Closed

Description

@github-actions

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

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

Activity

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

    @schlessera
    Owner

    Claiming (token wi-3315-c0324c45). Branch fix/3315-artifact-static-loading from origin/main c23a581. Plan: root-cause the REDUCED_MOTION_STATIC_LOADING failure in the artifact full state matrix, fix it deterministically, then declare the PR with integrate.ts declare-fix.

  4. added this to the 0.45.0 milestone on Nov 2, 2026
  5. schlessera commented on Nov 2, 2026

    @schlessera
    Owner

    Incident owner's decision: fix (hardening), declared as #3334. The maintainer chose this route under the 2026-11-02 recovery ruling on #2934.

    Evidence:

    Not reverted, because nothing here points at #3279. The root cause is tracked in #3333. The record clears when #3334's main run, which includes the red set, is green.

  6. schlessera commented on Nov 2, 2026

    @schlessera
    Owner

    Root cause found for the light 1280 failure, with evidence that #3334 does not close it. I'm reporting this to the incident owner. I have not opened a competing PR or touched #3334. Claim token wi-3315-c0324c45 stands down.

    Cause. The assertion reads every .bk-ghost on the page. At 1280 the Files panes also mount the tree's Loading files frame (FileTreeView, Placeholder lines={4}), next to the file's own Loading file frame (5 ghosts). The tree frame unmounts as soon as its /api/files/tree listing lands. Playwright's locator.evaluateAll resolves the elements in one browser task and runs the callback in a later one. A tree ghost detached in between has getComputedStyle(el).animationName === "", so every(... === "none") fails. That explains why only 1280 fails: at 320 the tree is hidden while a file is open. No .bk-ghost ever animates, so this is not a reduced-motion regression.

    Evidence, all in local real Chrome:

    • A DOM mutation timeline captured at the failing assertion: 172ms "File status: Loading file" g=9, then 248ms g=5. The check saw ["","","","","none","none","none","none","none"].
    • A minimal Playwright probe: nodes replaced from a page setTimeout(0) loop were detached inside evaluateAll callbacks 215 times in 2,000 calls. A detached element's animationName is "".
    • Bad base c23a5811c, under load (16 busy cores): light 1280 failed 3/40 and 2/40 with REDUCED_MOTION_STATIC_LOADING.
    • Deterministic forcing (temporary, not committed): hold /api/files/tree so the tree frame is mounted, then detach that frame on the first getComputedStyle call (restored on the next task). This is exactly "the listing lands between the query and the evaluation".
      • Base: (fail) artifact full state matrix light 1280 … REDUCED_MOTION_STATIC_LOADING, Expected true, Received false.
      • test(ui-react): measure reduced-motion loading ghosts once they are attached and settled #3334 head 780f13661: (fail) … REDUCED_MOTION_STATIC_LOADING ["","","","","none","none","none","none","none"]. Waiting for an attached ghost plus two frames narrows the window, but the selector still includes the tree frame, which can detach at any time.
      • The fix below: 2/2 pass.

    Deterministic fix on branch fix/3315-artifact-static-loading, head 407f1e12b, based on c23a5811c. It scopes the check to the file's own frame, which the held content route keeps mounted: page.getByRole("group", { name: "Loading file", exact: true }).locator(".bk-ghost").evaluateAll(...). The test's other checks are unchanged. There is no wait, retry or timeout change; proof-system classify says it is not a proof-system change.

    • Under the same 16-core load, light 1280 passed 80/80 with zero REDUCED_MOTION failures. The whole file passed 32/32.
    • bun run check:pr --base origin/main passed (lint/leakage, env docs, changesets, affected fast invariants: 210 pass). bun run typecheck passed (with the 4 GB heap that check-pr.ts uses).
    • A grep for the same shape found no other Playwright evaluateAll over a page-global selector that reads computed styles.

    Suggested next step for the incident owner: replace the #3334 hunk with the scoped locator, or pick up the branch above. The two-frame wait is then unnecessary. The fix is one line plus its comment.

  7. github-actions commented on Nov 2, 2026

    @github-actions
    Author

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

  8. added
    priority: p1
    on Nov 3, 2026
  9. schlessera commented on Nov 3, 2026

    @schlessera
    Owner

    Triage 2026-11-03 at main 3d3516a02: this incident is resolved; recommending closure by the assignee.

    Labels: added priority: p1 because the issue carries the 0.45.0 milestone. No agent-ready, because no coding work is left on this issue.

  10. schlessera commented on Nov 3, 2026

    @schlessera
    Owner

    Decision (maintainer, 2026-11-03): close as completed. #3334 (926d1573bb) fixed the red-main failure and main push run 41504814872 passed the failing set. The root cause noted in the 2026-11-02 18:49 comment (the check reads every .bk-ghost on the page) is carried into #3333.

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

Metadata

Metadata

Assignees

Labels

area: cipriority: p1type: fix

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions