Skip to content

Queue-flake anchor: src/__tests__/sync-state.test.ts #38376

Done

Description

@objectstack-fleet

repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP

packages/services/service-knowledge/src/__tests__/sync-state.test.ts ejected a pull request from the merge queue. The anchor was filed by hand, because the triage workflow counts one PR and does not file one yet.

PR queue build job
#38341 46164293751 Test Core (6/12), 141039144745

The same case also failed once on PR CI for #38341: job 141025552341. It was green on its one re-run.

Reason line: Error: Test timed out in 5000ms. It is a load and timing cliff, not an assertion. The case is "one record per source, the same on every node › a rebuild through node A reads identically on node B …", at line 320. It landed with #38307 (Part of #37736). It boots four kernels over one file, seeds three records, runs two rebuilds, each with an inner waitFor of 5000 ms, and restarts both nodes. All of that runs inside vitest's default 5000 ms test budget. Under the queue's full-suite load (import ~300 s on the shard), that budget is not enough. #38341 does not touch this file.

Fix: that case, and any sibling multi-node case of the same shape, gets an explicit timeout chosen from a measured local duration. Nothing is skipped and no assertion or waitFor changes. The fix PR is Part of #37736 and is linked here when it opens. This issue closes with that fix.

Activity

  1. added
    finding
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/services/service-knowledge/src/__tests__/sync-state.test.ts (the "one record per source, the same on every node › a rebuild through node A reads identically on node B" case, ~L320) · area:fleet · domain:server · p2 · pm:queue · size XS. This anchor carries the fix; anchors take no issue type. Rationale: a timing cliff, not an assertion (Test timed out in 5000ms). The case boots four kernels, runs two rebuilds with inner 5000 ms waits and restarts both nodes inside vitest's default 5000 ms budget. It landed with #38307. Measured: one queue ejection (PR #38341, build 46164293751) plus one PR-CI failure (job 141025552341, green on re-run). That is 1 independent hit, so not p0 (p0 needs ≥2 independent head groups in 2 h). The tooling queue gate passes on measured fleet cost (a false red on a correct source and a re-run). Fix: give the case a budget that covers its own inner waits, or cut the waits. ⛔ Never skip or delete the case. A second independent ejection within 2 h makes it p0.
    Path: none

    Recorded 2026-11-28T16:42Z.

  3. added
    domain:server
    pm:queue
    priority:p2
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP

    Claim: area o1-C (epic #37000) · in-flight fallout of #38307 (Part of #37736), dispatched on seat 1's ruling 2026-11-28T16:36Z under the maintainer's wind-down 2026-11-28T14:44Z · 2026-11-28T17:15Z
    Session: session_016WV4cwPhGV4g9p1BGQaZbP
    Account: os-elon-musk
    Branch: claude/area-o1C-37736-timeout
    Worktree: objectstack-sync-state-timeout
    Domain: domain:server
    Area: o1-C
    Seat: repo:objectstack#1
    File surface: packages/services/service-knowledge/src/__tests__/sync-state.test.ts (explicit per-case timeouts on the four multi-node cases).
    Container & model: S, mode:subagent, model: default tier (no path-derived mandate), effort: high (reason: a queue-ejecting timeout whose budget is measured)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack's own code, packages/services/service-knowledge/src/__tests__/sync-state.test.ts | a multi-node case runs past vitest's 5000 ms default under queue load and ejects queue entries | every PR whose queue build runs the service-knowledge suite
    Thread-read: none
    Premise: two failures measured, PR CI job 141025552341 and queue job 141039144745, both Test timed out in 5000ms. at line 320.
    Serial constraints cleared: PR #38378 is the only open PR on this file.
    Pre-claim lane: packages/services/** ⇒ domain:server.
    Pre-claim deps: none.
    Prior rulings read: seat 1's go 2026-11-28T16:36Z.
    Fold-or-serial: not folded.
    PR: #38378

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP

    Close-out · area o1-C · 2026-11-28T18:05Z

    Fixed by PR #38378 (merged at 2026-11-28T18:04Z, Tier S, Part of #37736). The four multi-node cases in sync-state.test.ts now each carry an explicit timeout, 20x their worst duration measured under doubled suite load: 26 s for the line-320 case, then 16 s, 17 s and 10 s. Nothing is skipped and no assertion or waitFor changed. The anchor closed on merge. pm:dispatched removed with this comment.

  7. removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:fleetdomain:serverfindingpriority:p2queue-flake-anchor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions