Skip to content

cli test: the #30120 start-refusal cases spawn os start synchronously with a 120 s spawn timeout but run under vitest's 5 s case default, so a loaded Test Core shard reds unrelated PRs #37601

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ① · Source: fleet (two unrelated PRs went red on the same shard within the hour; seat re-run records on PR #37569 and PR #37582)

What happens

packages/cli/test/start-deployment-durability.integration.test.ts (origin/main 0f6a1e5), in the describe #30120 — with the image switch on, a start missing its settings refuses:

  • The refuse() helper (:269–279) runs spawnSync(process.execPath, [CLI, 'start', …], { timeout: 120_000 }). That is a synchronous child os start with a two-minute allowance.
  • The it(...) cases that call it (:281, :291, :298, …) pass no timeout, so they run under vitest's 5 s default.

On a loaded CI runner, one child start takes more than 5 s, and the case fails with Error: Test timed out in 5000ms on a PR that touches nothing in packages/cli. The whole file took 67 s on the runner.

reach: measured twice on Test Core (5/10):

Neither PR changes a file under packages/cli.

Expected

  • The #30120 cases carry a case timeout that matches the spawn allowance (or the describe sets one), as the file's other spawning describe does with SPAWN_TIMEOUT_MS (:325). Otherwise the case keeps a vitest timeout shorter than the work it waits on.
  • No assertion changes, and no case is skipped or retried.
  • Each PR that hits this today spends a re-run, and the second hit is read as a real red. This card is the place to cite.

Category ①: a named test defect that turns unrelated PRs red on a required check.
Priority: p2 — it costs every PR on that shard a re-run and makes a real red harder to see; no product behaviour is wrong.
Business reason: required CI that reds at random slows every seat's landing and trains reviewers to dismiss Test Core reds.
Reader: the lane that owns packages/cli tests (area:build); seat 2 closed its build intake on 11-26, so triage routes it.
Dedupe: searched start-deployment-durability (open issues), 0 matching cards.
Related: #30120, PR #37569, PR #37582.

Activity

  1. added
    bug
    priority:p2
    domain:devx
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:fleet · domain:devx · Bug · priority:p2 · pm:queue · size S; rationale: the #30120 start-refusal cases in the cli suite spawn os start synchronously with a 120 s spawn timeout but run under a shorter test timeout, so they time out on a slow runner. CI-only. It has not ejected a merge-queue build; if it ejects one, it becomes p1. #37603 (the same seam) is closed as a duplicate of this card.

  3. added
    pm:queue
    and removed on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Reading · 2026-11-26T15:46Z: the same signature now drops PRs from the merge queue. Merge-group run 45846812886 (PR #37567, no packages/cli change) failed only Test Core (5/10) on #30120 … none set: exit 1, naming all three, before anything is written, Test timed out in 5000ms. Re-queued once (7196727891). Count today: #37569, #37582 on the PR side, #37567 in the queue.

  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:fleet · domain:devx · Bug · priority:p1 · pm:queue · size S; rationale: regraded p2 → p1. The same seam has now ejected two independent PRs from the merge queue within 24 hours (#37513 and #37567; anchor #37617, closed as a duplicate of this card). A queue-ejecting flake is p1. Fix the timeout shape of the #30120 start-refusal cases; do not skip them.

  6. added
    priority:p1
    and removed
    priority:p2
    on Nov 26, 2026
  7. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK

    Picked by card-pick.mjs --order area:cloud --seat repo:objectstack#6 at 20:09Z: rank 2, p1 jump (triage 7197343069 regraded p2 → p1: the seam ejected #37513, this seat's own PR, and #37567 from the merge queue). The maintainer in this seat's project, verbatim: 「继续处理 area:cloud p1 p2」.

    Claim: PM loop round 3
    Session: session_01Q4EjjQkY5yXZrN9BEA3rEK
    Account: hotlong
    Branch: claude/issue-37601-cli-start-refusal-timeout
    Worktree: objectstack-issue-37601
    Domain: domain:devx
    Seat: repo:objectstack#6
    File surface: packages/cli/test/start-deployment-durability.integration.test.ts only (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — test timing defect
    Thread-read: 7197343069
    Premise: holds — the #30120 cases run a synchronous os start child with a 120 s spawn allowance under vitest's 5 s case default; the fix gives them a case timeout that matches the spawn allowance, as the file's other spawning describe does with SPAWN_TIMEOUT_MS; no assertion changes, nothing skipped or retried
    Serial constraints cleared: no open PR touches start-deployment-durability.integration.test.ts (search 20:10Z)
    Scope this dispatch: the whole card. Fixes #37601.

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  9. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
    os-dev-report

    {
      "issue": 37601,
      "status": "done",
      "branch": "claude/issue-37601-cli-start-refusal-timeout",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37692",
      "session": "session_01Q4EjjQkY5yXZrN9BEA3rEK",
      "premise_still_valid": true,
      "summary": "Premise verified on origin/main 6d106a1a: refuse() ran spawnSync os start with a literal timeout 120_000 and the three cases of the #30120 image-switch refusal describe passed no case timeout (vitest 5 s default), while the #31600 describe already carried SPAWN_TIMEOUT_MS / LEG_TIMEOUT_MS. Hoisted that pair to file scope as SPAWN_TIMEOUT_MS = 120_000 and SPAWN_CASE_TIMEOUT_MS = SPAWN_TIMEOUT_MS + 10_000; refuse() now reads SPAWN_TIMEOUT_MS and each of the three #30120 cases and the three #31600 cases carries SPAWN_CASE_TIMEOUT_MS, so spawn allowance and case timeout cannot drift. No assertion changes, nothing skipped/retried, global vitest timeout untouched; one file, 17+/10-. Shape search: every spawnSync (2, both helpers) and every it( in the file listed; the two boot describes spawn only in beforeAll, which already carries BOOT_TIMEOUT_MS + 30_000 / + 60_000, so no other describe has the shape. Contract review: none owed, the diff touches no governed surface (AGENTS.md Post-Task Checklist item 2 / Prime Directive #14 list; a test file is not on it) and changes no contract shape (os-dev stop-and-ask section).",
      "tests": "head ca1c021a. Build closure: os-verify-lock turbo build --filter @objectstack/cli... --concurrency=2, Tasks 70 successful 70 total, VERDICT command-exit 0. Then os-verify-lock pnpm --filter @objectstack/cli exec vitest run --project integration --maxWorkers=2 test/start-deployment-durability.integration.test.ts: Test Files 1 passed (1), Tests 11 passed (11), Duration 41.43s, VERDICT command-exit 0; measured case durations: #30120 none set 1567ms, only database missing 1606ms, switch value not a switch 1588ms; #31600 legs 1704/3003/3667ms. pnpm --filter @objectstack/cli typecheck: tsc --noEmit plus check:test-typecheck OK (test layer under tsconfig.test.json compiles, debt held), VERDICT command-exit 0. No ablation: no tested behaviour changed (timeout config only).",
      "gates": "Local: 50 derived commands (dispatch-gates --commands --repo objectstack-ai/objectstack, change set 1 path vs merge base 6d106a1a4), each exit captured before any pipe: 48 exit 0; 2 exit 3 = NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone cannot read pinned fixture commit 621a4876), pnpm check:dual-build-cjs-loads (PREREQUISITE NOT MET, whole-workspace dist absent; only the cli closure was built). --ran reconciliation: 50 derived, 50 run, 0 UNRUN (its 0 NOT-MEASURED is the runner claim on a bare list; the true count is the 2 above). PR check-runs on ca1c021a, all completed: Test Core success, Test Core (1..10/10) success, Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Lint ESLint success, Type Check workspace/source/consumer gates/debt ledger success, Lint PM dispatch-gates success, PR-body guards success, Check Changeset success, Check PR Size success, Governed Surface Queue Guard success, Dogfood Regression Gate success; UI/opt-in/queue jobs skipped by selector.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — git push (branch); fleet-write pr_create (POST pulls draft + issues/37692/assignees hotlong + issues/37692/labels skip-changeset, run 45890628895, read-back identical 3274 bytes); plus this os-dev-report comment via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · deviation noted: the branch was pushed with its first commit rather than empty before any edit (os-dev rule 1 probe); the push succeeded, no 403",
        "carrier: none · noted, not filed: dispatch-gates --ran cannot see exit codes on a bare command list, so it certified 0 NOT-MEASURED while 2 families exited 3; the tool itself prints this caveat"
      ]
    }
  10. removed
    pm:dispatched
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:fleetbugdomain:devxpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions