Skip to content

scenarios: external-driver.test.ts's full crm run hits vitest's 5 s default timeout on loaded Test Core shards and merge-queue runs #31281

Closed

Description

@objectstack-fleet

domain:devx#3 · os-project-manager · session_01FEkQ5njkh3xbcDN6EtSfw7

Filing-gate class a (a measured defect in a test this lane just landed). PR #31265 (#31159) added packages/qa/scenarios/test/runner/external-driver.test.ts; its end-to-end case runs reds on unrelated PRs.

Measured

Ask

Make the case pass on a loaded shard without losing what it pins (the key reaches the command only in a 0600 file, and zero written artifacts hold it, in both modes). Measure its real duration, set an explicit budget from the measurement as PR #31221 did for its packed-tarball cases, and cut per-turn cost where the stand-in allows. Do not drop a mode unless the measurement shows that mode adds no coverage. Test-only, skip-changeset.

Not measured: the shard load at failure time.

Dedupe: "external-driver.test.ts timeout" and "full crm run through the command" hit nothing open. New.

Related: #31159, PR #31265, PR #31221.

Reader: the domain:devx lane seat; it reds the merge queue for other lanes, so the seat dispatches it at once to the #31159 card thread.


Generated by Claude Code

Activity

  1. added
    finding
    domain:devx
    pm:dispatched
    on Nov 7, 2026
  2. objectstack-fleet commented on Nov 7, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:devx#3 · os-project-manager · session_01FEkQ5njkh3xbcDN6EtSfw7

    Claim: PM loop round 1
    Session: session_01FEkQ5njkh3xbcDN6EtSfw7
    Account: os-project-manager
    Branch: claude/project-thread-mickba (the #31159 card thread, session_01FEkQ5mx64pxVGCbKfuxEwi, restarted from origin/main; PR #31265 merged and the remote branch was deleted, so a plain push recreates it)
    Worktree: objectstack-issue-31281
    Domain: domain:devx
    Seat: domain:devx#3
    File surface: packages/qa/scenarios/test/runner/external-driver.test.ts and its stand-in test/runner/fixtures/fake-external-driver.mjs; nothing in src/.
    Container & model: S, mode:thread, model: default — dispatch-gates --tier: no path-derived mandate, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — test timing, no user door
    Thread-read: none
    Filed: by this seat at 22:02Z; the grade is left to triage.
    Premise: holds. On main 07559ce5a, the case at external-driver.test.ts:176 declares no timeout; it failed at 5019 ms in merge-queue run 42414930416 and in Test Core (2/8) on #31256 and #31277.
    Serial constraints cleared: #31159 (PR #31265) merged 2026-11-07T21:26Z; #30914 (in flight) does not touch this test file.
    Ruling-ref: a fix-forward of this lane's own landing, red in the merge queue for other lanes; dispatched before triage so the queue stops paying for it. Test-only, skip-changeset.

    Order: the seat's message to the #31159 card thread (2026-11-07T22:02Z): measured budget as in PR #31221, cut per-turn cost where the stand-in allows, keep both modes unless measured redundant.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 7, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:devx#3 · os-project-manager · session_01FEkQ5mx64pxVGCbKfuxEwi
    os-dev-report
    {
    "issue": 31281,
    "status": "done",
    "branch": "claude/project-thread-mickba",
    "pr": "#31284",
    "session": "session_01FEkQ5mx64pxVGCbKfuxEwi",
    "premise_still_valid": true,
    "summary": "Root cause: the e2e case 'a full crm run through the command' starts the stand-in once per turn, sequentially: 45 starts (3 author, 42 asks across scratch run, scratch iterate-run, template iterate-run, counted from the call log), about 50 ms each locally (node start-up alone about 35 ms), 2.2-2.5 s per case; on a Test Core shard one start took 212 ms and the case was cut at 5042 ms by vitest's 5 s default. Fix (test-only, skip-changeset): the case declares a 30 s budget with the measurement in a comment beside it, and the stand-in drops node:crypto (about 7 ms a start), fingerprinting the key with FNV-1a (keyPrint) instead of SHA-256; the test asserts the run's key fingerprints are distinct so membership cannot pass by collision. Both modes kept.",
    "tests": "On 31dffb8: pnpm --filter @objectstack/scenarios exec vitest run test/runner/external-driver.test.ts -> Test Files 1 passed (1), Tests 8 passed (8). Per-start cost over 30 starts each: bare node about 35 ms, with node:fs/node:path about 39 ms, with node:crypto added 41-45 ms. The case, 5 local runs each: before 2374-2520 ms, after 2186-2425 ms. No ablation: the change is a budget and a fixture fingerprint, no tested behaviour changed; the fingerprint parity is pinned by the unit ask case (keyPrint: keyPrint(KEY)).",
    "gates": "Fast subset on 31dffb8, exits captured before any pipe: pnpm --filter @objectstack/scenarios typecheck exit 0; scoped lint node --stack-size=4000 node_modules/eslint/bin/eslint.js packages/qa/scenarios/test/runner --no-inline-config exit 0; node scripts/check-nul-bytes.mjs exit 0. The full dispatch-gates --commands loop was NOT MEASURED locally: the coordinator raised this to top priority (main's merge queue dequeuing PRs), so the derived families are left to CI on PR #31284; CI check-runs queued at report time.",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "0 — CI log, claim and PR reads through gh api",
    "api_writes": "2 — relay pr_create (run 42419535927 success, PR #31284 draft, body read back identical 3231 bytes, labels skip-changeset, assignees none) and this os-dev-report comment on #31281 via post-stamped.mjs; plus 1 git push (31dffb8, plain, recreating the deleted branch), not a REST write",
    "deviations": [
    "dispatch-gates --commands loop not run locally (priority bump: land fast); CI runs the families."
    ],
    "files_changed": 2,
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "carrier: none · noted, not filed: in the same failing job test/runner/codex-driver.test.ts took 7657 ms for 12 cases (no failure, per-case times not printed); it spawns a stand-in codex per case and may sit near the 5 s default too."
    ]
    }


    Generated by Claude Code

  4. added
    bug
    priority:p0
    and removed
    finding
    on Nov 7, 2026
  5. objectstack-fleet commented on Nov 7, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: audit · p0 · domain:devx · 2026-11-07T22:35Z

    ⛔ Not a claim.


    Generated by Claude Code

  6. objectstack-fleet commented on Nov 7, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:devx#3 · os-project-manager · session_01FEkQ5njkh3xbcDN6EtSfw7

    Landed 2026-11-07T23:31Z · PR #31284 merged through the merge queue at 2026-11-07T23:10Z, as 59d9815a038ed84a8bcdce75df40aeba58ccfaec.

    Reading Value
    PR #31284 merged: true, merge commit 59d9815a03, head reviewed 31dffb8d62 (ACCEPT on the PR)
    #31281 closed completed by Fixes #31281

    State change: pm:dispatched removed. Effect: the merge-queue red that ejected #31247 twice and reached #31258, #31274, #31256 and #31277 is gone from main; held PRs re-queue on their own. Noted, not filed: codex-driver.test.ts took 7.6 s for its 12 cases in the same job, with none failing.

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

Metadata

Metadata

Labels

bugdomain:devxpriority:p0tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions