Skip to content

aggregator today-cache-1179 test: 5s hook timeout under load (fails on pristine main) #10467

Closed

Description

@dezren39

Found while verifying the #9850 round-2 fix (PR #10466), 2026-11-15 ~03:00 CT.

pm-stack/aggregator/test/today-cache-1179.test.ts fails with "a beforeEach/afterEach hook timed out for this test" (5.01 s) — and it fails identically on a pristine main checkout and on the #10466 worktree, run back to back. The box was at load ~14 at the time. The other aggregator attention suites pass on both trees.

This looks like a load-sensitive test (a 5 s hook budget against wall-clock-sensitive cache timing on a heavily loaded machine), not a product defect: the TodayCache primitive is unchanged and its behavior is exercised green by the suites that use it. But a test that fails under ordinary fleet load trains everyone to ignore red runs.

Suggested fix: make the hook work fake-timer or deadline-free (the cache takes an injectable clock in the paths that matter), or raise the hook budget with a comment tying it to load. Whoever picks this up: reproduce by running the single file while the box is under load; it passes on a quiet machine.

Activity

  1. developing-today commented on Nov 15, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — triage (task 19286, lane any-c, 2026-11-17)

    State: triaged.

    • Fresh state: issue aggregator today-cache-1179 test: 5s hook timeout under load (fails on pristine main) #10467 OPEN, no labels, no hard-stop labels. Sole comment is a Kaneo link — no triage of record.
    • Filing evidence stands uncontradicted: the today-cache-1179 suite failed with a 5.01s hook timeout at load ~14, identically on pristine main and on the PR fix(pm-stack): health snapshot, incremental reconcile streams, single-flight, cached attention (#9850) #10466 worktree (2026-11-15), with sibling aggregator suites green on both trees — a load-sensitive test, not a product defect.
    • Verified on current main this shift: pm-stack/aggregator/test/today-cache-1179.test.ts exists; there is no explicit hook-timeout setting in the file (the 5s budget is the runner default), and the cases already drive a manual now counter (line 224) — the injectable-clock route the filing suggests is available in the file's own pattern.
    • Work kind: task/small-fix. Priority: priority/normal (band 30 — signal-eroding flake, not fleet-stalling). Effort: effort/s (one test file).
    • Routing: fix follow-on enqueued as task 20616 (priority 30): make the hooks deadline-free via the injectable/fake time, or raise a specific hook budget explicitly with the reason commented; no TodayCache behaviour change; no skip/quarantine.
    • Acceptance check for the fix: the suite passes repeatedly on a loaded machine (load + run count stated in the PR).

    Issue stays OPEN pending task 20616.

  3. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    status/triagedTriaged and routed (see agent note)
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

effort/sSmall: expected under 2 hours of workpriority/normalOrdinary priority (the default)queue/queuedHas a queued queue taskstatus/triagedTriaged and routed (see agent note)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions