Skip to content

ci: main red at 9c7eb25825fd: packages/ui-react/tests/notification-zone.test.tsx #3801

Closed

Description

@github-actions

Context

The original failing main SHA is 9c7eb25825fdad5f4485db0df472188805edb450, CI run 42637989210, unit shard 3, packages/ui-react/tests/notification-zone.test.tsx. The claimant’s causal receipt supersedes the earlier unverified shared-process-timer hypothesis: two slot-timer spies capture delays only over 60,000 ms, while (armSlot, packages/ui-react/src/components/activity/digest-card.tsx:70-73) schedules msUntilNextSlot(Date.now()) + 30,000. In the last 30 seconds before a local slot, the delay is at most 60 seconds and the spy captures nothing. The receipt pins the observed 16:59:45 Athens window and reaches the exact two expected-length/received-zero failures. An isolated passing run outside that window does not rule it out. The latest voice-field squash did not touch this cause.

Delivered correction: PR #3802 merged as 4b8db90dee643cd67ef6acc7c122294f262d92ec, which is the inspected main. Its only changed file is the notification-zone test: the two cases pin a fictional midday clock and restore it with the timer spy in finally. Product slot scheduling is unchanged. Current anchors are the midday pin and its two uses (MIDDAY, packages/ui-react/tests/notification-zone.test.tsx:202-203; the two slot-timer test blocks at :205-241 and :288-316). The PR retains the failing-time control and restored passes; these are attributed results, not reruns by this triage.

Remaining state at readback: main-push CI run 42647872557 is still in progress at the delivered squash. No green main result or cleared incident is claimed. The incident record, its existing claimant and assignment remain authoritative; this triage does not claim or renew the incident.

Scope

Finish incident verification for the delivered correction: reconcile exact-main selected proof, including the original failing file, with the red-main record. Preserve the original causal receipt and separate it from earlier passing controls. Only if current evidence establishes a remaining defect does further implementation need scoping; do not repeat the already-merged clock repair.

Out of scope

Product calendar/notification changes, a speculative revert of the voice-field change, increased deadlines, weaker assertions, an unchanged green retry as a repair, a second incident, claim takeover, release publication, or bypassing the red-main record and ordinary integration gates.

Acceptance criteria

  • The causal frozen-clock witness retains the two original timer-count failures, and the delivered test clock and spies are restored after each case.
  • Exact-main evidence includes the original failing test file; every selected required job has its actual result, with missing, cancelled or unexpected skips kept distinct from success.
  • The red-main record is cleared only by the existing green-main rule for the failing set. A merged PR or passing unrelated workflow alone does not complete this incident.
  • Existing assignment, claim ownership and 0.45.0 attribution are preserved. Completion is reconciled by the incident owner after the required evidence; triage leaves the issue open.

Verification

Inspect the linked immutable squash and complete current main proof, then reconcile with the red-main incident tooling. The focused recipe remains bun run test packages/ui-react/tests/notification-zone.test.tsx; it is not a substitute for the recorded wall-clock witness or required main proof. No new runtime invocation or proof rerun was performed in this triage.

Contract impact

None. The delivered correction is test-only and changes no product calendar semantics or machine surface.

Classification and membership

Priority p1 reflects the actual immediate fix and verification commitment in current milestone 0.45.0. Keep type: fix and add area: ui-react for the owning tests alongside CI. The brief has no unresolved factual prerequisite and can carry agent-ready while its existing assignee owns verification; readiness does not claim a green incident. Keep standalone: #736 matches calendar-isolation work but has 100 native children, and the other open epic outcomes do not own this complete incident. No forced attachment is made.

Triage 2026-11-09 at main 4b8db90dee643cd67ef6acc7c122294f262d92ec: Folded the claimant’s causal result and merged fix into the current brief, specified the exact remaining main-proof gate, and classified the already-owned incident. No claim, assignment, milestone, CI run or closure was changed.

Original incident protocol

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

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: fix
    area: ci
    on Nov 9, 2026
  2. self-assigned this
    on Nov 9, 2026
  3. schlessera commented on Nov 9, 2026

    @schlessera
    Owner

    Fix claimed by worker wi-3762-c3762bksp (orchestrator orch-3762-bksp).

    • Main red at 9c7eb25825fd (record run 42637989210).
    • Claim term ends 2026-11-09T16:12:02.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 9, 2026

    @schlessera
    Owner

    Red-main evidence: reproduction

    • Incident: main red at 9c7eb25825fd (record run 42637989210)
    • From: worker wi-3685-c7e1, orchestrator orch-3685b2 (contributor)
    • SHA: 9c7eb25825fdad5f4485db0df472188805edb450
    • Summary: notification-zone.test.tsx passes 3/3 alone at 9c7eb25; hosted failure is two setTimeout-count assertions in a shared unit process
    `bun run test packages/ui-react/tests/notification-zone.test.tsx` passed in 3 of 3 runs, run alone, at `9c7eb2582` (a clean detached worktree with `bun install --frozen-lockfile`). The hosted failure in run 42637989210, job `unit (3)`, comes from the two timer-count assertions at `notification-zone.test.tsx:225` (`timers` length 2 expected) and `:294` (length 1 expected). That job runs this file inside one shared multi-file unit process, so a timer scheduled by another file in the same process is a candidate explanation. This has not been verified.
    
  5. schlessera commented on Nov 9, 2026

    @schlessera
    Owner

    Red-main evidence: ruled-out

    `9c7eb2582` (#3779) changes the tall voice field's CSS and stories in `ui-kit`, and adds visual baselines. `notification-zone.test.tsx` renders `DigestCard` and stubs `setTimeout`. Neither renders the voice field, and the diff touches no timer, notification or registration code. A first-bad SHA on a timing assertion in a shared process is not evidence that this squash caused the failure.
    
  6. schlessera commented on Nov 9, 2026

    @schlessera
    Owner

    Red-main evidence: decision

    • Incident: main red at 9c7eb25825fd (record run 42637989210)
    • From: worker wi-3762-c3762bksp, orchestrator orch-3762-bksp (claimant)
    • SHA: 9c7eb25825fdad5f4485db0df472188805edb450
    • Choice: fix PR
    • Summary: Wall-clock window in two slot-timer tests (the last 30s before local 09:00/17:00); fix by pinning Date.now in those tests
    **Cause:** a wall-clock window in the test, not a regression in `9c7eb2582` (#3779 changes only the ui-kit voice field and its stories).
    
    - Both failing tests in `packages/ui-react/tests/notification-zone.test.tsx` recognise `DigestCard`'s slot timer by its delay: the `setTimeout` spy captures only delays over 60 000 ms.
    - The card arms that timer at `msUntilNextSlot(Date.now()) + SLOT_SLACK_MS` (30 000 ms) (`armSlot`, `packages/ui-react/src/components/activity/digest-card.tsx:69-73`). In the last 30 s before a local 09:00 or 17:00, the delay is 60 s or less, so it goes to the real timer and the spies capture nothing.
    - The child process runs under `TZ=Europe/Athens`. The failing main run reached the file at 14:59:45 UTC, which is 16:59:45 in Athens, 15 s before the 17:00 slot. The assertions are `expected length 2, received 0` (line 225) and `expected length 1, received 0` (line 294).
    - **Reproduction:** with `Date.now` pinned to 2026-11-09T14:59:45Z, the same two tests fail with the same assertions. On unmodified main at 15:12 UTC the file passes. No other test uses the delay-threshold pattern.
    
    **Choice: fix.** A revert of #3779 would not touch the cause, and the window recurs twice a day on any commit. The fix pins `Date.now` to a midday instant in those two tests, restored in `finally`. Product code does not change.
    
  7. added this to the 0.45.0 milestone on Nov 9, 2026
  8. added
    area: ui-react
    priority: p1
    agent-ready
    on Nov 9, 2026
  9. github-actions commented on Nov 9, 2026

    @github-actions
    Author

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

  10. schlessera commented on Nov 9, 2026

    @schlessera
    Owner

    Recovered. Fix #3802 merged as 4b8db90dee643cd67ef6acc7c122294f262d92ec. Main CI run https://github.com/schlessera/brain-kit/actions/runs/42647872557 on that commit includes the failing set and passed, and the red-main record cleared on that run.

    The deeper cause belongs to the test, not to #3779: the slot-timer tests read the wall clock. #3802 pins the clock in those two tests. No product code changed.

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

Metadata

Metadata

Assignees

Labels

agent-readyarea: ciarea: ui-reactpriority: p1type: fix

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions