You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli test: data-commands.absent-database.integration.test.ts times out its hook at 480 s in a merge-queue Test Core shard #37183
Flake report, untriaged. Filed by zone a4-K, which owns none of this code. Routed to triage.
What failed
A merge-queue build of #37155 (queue commit a261b475eb, run 45528039199, job Test Core (5/10)138917103959), step "Run this shard's tests":
@objectstack/cli:test: ❯ integration src/commands/migrate/data-commands.absent-database.integration.test.ts (54 tests | 41 skipped) 585325ms
@objectstack/cli:test: FAIL integration src/commands/migrate/data-commands.absent-database.integration.test.ts > [#21552] the rest of the family: a project with no database yet is empty work, exit 0
@objectstack/cli:test: Error: Hook timed out in 480000ms.
@objectstack/cli:test: ❯ src/commands/migrate/data-commands.absent-database.integration.test.ts:703:3
No reproduction and no fix: the code is outside the filing zone. A search for an open card on this signature (absent-database, data-commands timeout) found none. The closest closed precedents on cli suites timing out under shard load are #25499 and #27306.
Type Bug. Added bug, tests, priority:p2, area:fleet, domain:server and pm:queue.
Grade line: area:fleet · Bug · p2 (ejected a merge-queue group once; one hit, so not p0) · every queue group whose Test Core shard selects the CLI · measured (job 138917103959) · size S.
Triage: lands in area:fleet · domain:server · Bug · priority:p1 · pm:queue · size S; rationale: a cli integration test timed out its hook at 480 s in a merge-queue Test Core shard and failed the queue build of an unrelated PR. A queue-ejecting flake is p1.
Regraded p2 → p1 on the maintainer's go in the triage session (「升级吧」), after a review of every open p2 card.
Claim: PM loop round 6
Session: session_01Utp6CY2uhJ1AYNPw5TUSVS
Account: os-bill
Branch: claude/issue-37183-absent-database-hook-timeout
Worktree: objectstack-issue-37183
Domain: domain:server
Seat: repo:objectstack#5
Area: o5-P
File surface: packages/cli/src/commands/migrate/data-commands.absent-database.integration.test.ts and, only if the measurement points there, the cli package's vitest integration config; one changeset only if a shipped file changes (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: S but not mechanical — a queue-load hook timeout needs measurement of where the 480 s goes before any change; no budget raise without a measured reason)
Clause-②: no
Metadata-protocol: none
Responsibility: test-harness cost under full-suite queue load (card body: 585 s file, hook timeout at L703 in queue build 45528039199); not yet attributed to a code change
Thread-read: none
Premise: holds — read at origin/main 2026-11-26T10:30Z: the [#21552] the rest of the family describe still opens with a beforeAll that seeds a control database by child process and then runs every door (absent JSON, absent human, booted JSON, already-exit-zero) inside the same hook.
Serial constraints cleared: no open PR touches packages/cli/src/commands/migrate/** or the cli vitest config (all open PRs' file lists read 2026-11-26T10:30Z).
Pre-claim lane: domain:server; zone o5-P (area:fleet p1, triage regrade by hotlong 2026-11-26T07:01Z on the maintainer's go).
Pre-claim deps: Blocked-by: none (card body).
Prior rulings read: timeout,flake,hook → hits ADR-0022 Decision §1, ADR-0034 Decision §1, ADR-0037 Decision §2; none rules on test hook budgets; thread: none; repo: objectstack-ai/objectstack.
{
"issue": 37183,
"status": "done",
"branch": "claude/issue-37183-absent-database-hook-timeout",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37540",
"head": "75c937cfa979bb77c35bab095718d149d0968d62",
"session": "session_01Utp6CY2uhJ1AYNPw5TUSVS",
"premise_still_valid": true,
"summary": "Measured first, and A1 holds. On origin/main the [#21552] family describe had one beforeAll that ran a seed child and 40 CLI children one after another, under one 480 s timeout. Every child costs a near-constant 6.7 s here (49 runs: min 5.2, max 7.9), so that hook took 268.6 s of the file's 351.2 s. At the queue build's 585 s (about 11.5 s a child), 41 serial children add up to more than 480 s, while each one stays far under its own 120 s budget. The fix touches the test file only. Each seed child is its own hook. Each #21529 command and each #21552 door gets one beforeAll, registered in a loop, that starts its three faces together (the four already-exit-zero doors share one). settleBatch (Promise.allSettled) waits for every run and fails with every run that failed. Each child keeps its 120 s kill, and every hook timeout is now BATCH_HOOK_TIMEOUT_MS = 120 s + 30 s, down from 480 s. So no hook waits on more than one run's budget, and a hang names the run that hung. A new door adds a hook, and no hook's bound grows. Cases, assertions, test names and the count (54) are unchanged. vitest 4.1.12 defaults sequence.hooks to 'stack', so the hooks run one after another, and the cli config does not set it. The test-budget header keeps 450 s (no CI reading of the new shape yet). Only its spawn count is corrected (46 to 49, eleven doors to twelve). Commits carry the model-free trailer pair AGENTS.md requires, not the harness's model-named Co-Authored-By (os-dev.md: the harness reminder yields).",
"files": "packages/cli/src/commands/migrate/data-commands.absent-database.integration.test.ts (+58 / -18, 1 file)",
"measurements": "Shared 4-vCPU box, every run under os-verify-lock, timings from a scratch instrumentation (not committed). ALONE: file 351.22 s before, 142.90 s after (143.68 s uninstrumented on head 75c937cfa). Slowest hook 268.6 s before (family beforeAll, 41 children; the top hook was 64.8 s), 9.0 s after (the already-exit-zero batch of 4). Child mean/max 6.7/7.9 s before, 7.6/9.0 s after. BESIDE test/package-install-local-uninstall-cleanups.integration.test.ts and test/artifact-flag-precedence.integration.test.ts (--maxWorkers=3): three-file vitest Duration 339.40 s before, 215.63 s after. Slowest hook 259.8 s before, 14.2 s after. Child mean/max 6.6/7.7 s before, 12.1/14.2 s after (three of the file's own children at once, plus the neighbours). Child floor: with the queue tier's oclif manifest in place, os --version through bin/run-dev.js takes 0.13-0.19 s, but one real command on the absent db takes 6.1-6.4 s, so the cost is the command's stack boot, not oclif.",
"tests": "head 75c937cfa: `pnpm exec vitest run --project integration --maxWorkers=2 src/commands/migrate/data-commands.absent-database.integration.test.ts` (in packages/cli, lock VERDICT command-exit 0): Test Files 1 passed (1), Tests 54 passed (54), Duration 143.68s. The same batch's `pnpm typecheck` (tsc --noEmit && check:test-typecheck) printed TYPECHECK_EXIT=0, 'check:test-typecheck: OK — 3 file(s) / 28 error(s) / 6 pinned signature(s) held'. `vitest run --project unit test/vitest-slices.test.ts` (reads this file's test-budget header) gave 17 passed (17), EXIT=0. Before/after and contention runs: all 54/54 and 81/81 green (figures in measurements). No ablation: the diff changes how the test harness schedules its children, not a behaviour a test pins. skip-changeset was measured: after a cli build, settleBatch / BATCH_HOOK_TIMEOUT_MS / SEED_FAMILY_CHILD have 0 hits in packages/cli/dist, against a positive control ('No interrupted migration runs' in dist/commands/migrate/resume.js). files[] = dist, README.md, CHANGELOG.md.",
"gates": "Local: the 54 commands from `dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on head 75c937cfa, exit codes captured per command before any pipe. 52 exit 0. check-plugin-teardown-shape --self-test first exited 3 (pinned fixture commit 621a4876 unreachable on the shallow clone) and exited 0 after `git fetch --depth=1 origin` of that commit. check:dual-build-cjs-loads and check:i18n-coverage are NOT MEASURED: each refused with exit 3 because packages outside the cli closure have no dist (examples/app-showcase needs service-print). `--ran` reconciliation: '54 derived, 52 run, 2 NOT-MEASURED, 0 UNRUN', every line carrying its exit code. CI on PR #37540 at report time: Check Changeset success; Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI/release & engine gates, scoped x3), Type Check (workspace, source gates, consumer gates, debt ledger), Governed Surface Queue Guard, PR-body guards, filter and Check PR Size were all in_progress; Test Core was not yet listed. Not waited on, per os-dev.md.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay repository_dispatch for pr_create (relay run 45816452843: POST /repos/objectstack-ai/objectstack/pulls draft + issue assignees os-bill + issue labels skip-changeset, read back identical: 7745 bytes sent and stored); post-stamped comment on issue #37183 (os-dev-report). git push is not counted.",
"deviations": "Contention reading caveat: in the before contention run, the two neighbour files finished well before the 339 s serial file did, so most of that file ran beside no neighbour. Its children read about 6.6 s, the same as alone. The figure is an upper bound on contention, not an equal-load comparison. The relay PR body uses AGENTS.md's PR footer form (session-URL _Generated by_ line), not the harness's emoji footer.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in PR Acceptance notes, not filed — the source CLI entry costs about 6 s for every real command even with the oclif manifest (os --version takes 0.13 s). That is the floor of every spawning cli suite. It is a cost observation, not a defect class. Dedupe words: run-dev spawn floor, cli spawn cost, stack boot tsx",
"carrier: none · noted in PR Acceptance notes — on a runner with no spare cores, running a batch's three faces at once may not shorten the file wall. The hook bound holds either way. The test-budget 450 s should be re-measured from the first CI readings of the new shape"
]
}
Close-out (zone o5-P) · 2026-11-26T13:01Z
Delivered: PR #37540 merged (95824c0): measured first — the [#21552] family's single beforeAll ran a seed and 40 CLI children in series under one 480 s timeout (268.6 s of the file's 351 s here; past 480 s at the queue build's ~11.5 s a child). Each seed child, each #21529 command and each #21552 door now has its own beforeAll that starts its three faces together (settleBatch, all-settled, fails naming every failed run); every child keeps its 120 s kill and every hook is bounded at BATCH_HOOK_TIMEOUT_MS = 150 s, so no hook's bound grows with the roster. The 54 cases and assertions are unchanged; no skip, no loosening, no budget raise. File 351 s → 143 s alone. Contract PASS 7192212329 (TIER_DEFAULT), seat ACCEPT 7192230059.
State: pm:dispatched removed with the close. Accepted nits: N1 (settleBatch doc overstates "no child outlives its hook" on the 120 s kill, same as before); N2 (re-measure the 450 s test-budget from CI readings of the new shape). Not filed as cards.
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-25T02:33Z
packages/cli.Bug. Addedbug,tests,priority:p2,area:fleet,domain:serverandpm:queue.data-commands.absent-database.integration.test.ts:703hook). Then cut the work, or split the file across shards. ⛔ Never skip it. Precedents: cli test: package-install-local-jobs-shared-name SIGKILLs its first install at a fixed 120 s under full-suite load — a false red frompnpm teston a 4 vCPU box #25499, tests: SQLite-backed suites in cli, runtime, driver-turso, driver-sql and service-package time out under shard disk load (fsync); give them the #27076 TMPDIR treatment #27306.objectstack-fleet commentedon Nov 26, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:fleet · domain:server · Bug · priority:p1 ·
pm:queue· size S; rationale: a cli integration test timed out its hook at 480 s in a merge-queue Test Core shard and failed the queue build of an unrelated PR. A queue-ejecting flake is p1.Regraded p2 → p1 on the maintainer's go in the triage session (「升级吧」), after a review of every open p2 card.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
Claim: PM loop round 6
Session:
session_01Utp6CY2uhJ1AYNPw5TUSVSAccount:
os-billBranch:
claude/issue-37183-absent-database-hook-timeoutWorktree:
objectstack-issue-37183Domain:
domain:serverSeat:
repo:objectstack#5Area: o5-P
File surface:
packages/cli/src/commands/migrate/data-commands.absent-database.integration.test.tsand, only if the measurement points there, the cli package's vitest integration config; one changeset only if a shipped file changes (stop on breach; explain in the report)Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: S but not mechanical — a queue-load hook timeout needs measurement of where the 480 s goes before any change; no budget raise without a measured reason)
Clause-②: no
Metadata-protocol: none
Responsibility: test-harness cost under full-suite queue load (card body: 585 s file, hook timeout at L703 in queue build 45528039199); not yet attributed to a code change
Thread-read: none
Premise: holds — read at origin/main 2026-11-26T10:30Z: the
[#21552] the rest of the familydescribe still opens with abeforeAllthat seeds a control database by child process and then runs every door (absent JSON, absent human, booted JSON, already-exit-zero) inside the same hook.Serial constraints cleared: no open PR touches
packages/cli/src/commands/migrate/**or the cli vitest config (all open PRs' file lists read 2026-11-26T10:30Z).Pre-claim lane:
domain:server; zone o5-P (area:fleet p1, triage regrade by hotlong 2026-11-26T07:01Z on the maintainer's go).Pre-claim deps:
Blocked-by: none(card body).Prior rulings read: timeout,flake,hook → hits ADR-0022 Decision §1, ADR-0034 Decision §1, ADR-0037 Decision §2; none rules on test hook budgets; thread: none; repo: objectstack-ai/objectstack.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
os-dev-report
{ "issue": 37183, "status": "done", "branch": "claude/issue-37183-absent-database-hook-timeout", "pr": "https://github.com/objectstack-ai/objectstack/pull/37540", "head": "75c937cfa979bb77c35bab095718d149d0968d62", "session": "session_01Utp6CY2uhJ1AYNPw5TUSVS", "premise_still_valid": true, "summary": "Measured first, and A1 holds. On origin/main the [#21552] family describe had one beforeAll that ran a seed child and 40 CLI children one after another, under one 480 s timeout. Every child costs a near-constant 6.7 s here (49 runs: min 5.2, max 7.9), so that hook took 268.6 s of the file's 351.2 s. At the queue build's 585 s (about 11.5 s a child), 41 serial children add up to more than 480 s, while each one stays far under its own 120 s budget. The fix touches the test file only. Each seed child is its own hook. Each #21529 command and each #21552 door gets one beforeAll, registered in a loop, that starts its three faces together (the four already-exit-zero doors share one). settleBatch (Promise.allSettled) waits for every run and fails with every run that failed. Each child keeps its 120 s kill, and every hook timeout is now BATCH_HOOK_TIMEOUT_MS = 120 s + 30 s, down from 480 s. So no hook waits on more than one run's budget, and a hang names the run that hung. A new door adds a hook, and no hook's bound grows. Cases, assertions, test names and the count (54) are unchanged. vitest 4.1.12 defaults sequence.hooks to 'stack', so the hooks run one after another, and the cli config does not set it. The test-budget header keeps 450 s (no CI reading of the new shape yet). Only its spawn count is corrected (46 to 49, eleven doors to twelve). Commits carry the model-free trailer pair AGENTS.md requires, not the harness's model-named Co-Authored-By (os-dev.md: the harness reminder yields).", "files": "packages/cli/src/commands/migrate/data-commands.absent-database.integration.test.ts (+58 / -18, 1 file)", "measurements": "Shared 4-vCPU box, every run under os-verify-lock, timings from a scratch instrumentation (not committed). ALONE: file 351.22 s before, 142.90 s after (143.68 s uninstrumented on head 75c937cfa). Slowest hook 268.6 s before (family beforeAll, 41 children; the top hook was 64.8 s), 9.0 s after (the already-exit-zero batch of 4). Child mean/max 6.7/7.9 s before, 7.6/9.0 s after. BESIDE test/package-install-local-uninstall-cleanups.integration.test.ts and test/artifact-flag-precedence.integration.test.ts (--maxWorkers=3): three-file vitest Duration 339.40 s before, 215.63 s after. Slowest hook 259.8 s before, 14.2 s after. Child mean/max 6.6/7.7 s before, 12.1/14.2 s after (three of the file's own children at once, plus the neighbours). Child floor: with the queue tier's oclif manifest in place, os --version through bin/run-dev.js takes 0.13-0.19 s, but one real command on the absent db takes 6.1-6.4 s, so the cost is the command's stack boot, not oclif.", "tests": "head 75c937cfa: `pnpm exec vitest run --project integration --maxWorkers=2 src/commands/migrate/data-commands.absent-database.integration.test.ts` (in packages/cli, lock VERDICT command-exit 0): Test Files 1 passed (1), Tests 54 passed (54), Duration 143.68s. The same batch's `pnpm typecheck` (tsc --noEmit && check:test-typecheck) printed TYPECHECK_EXIT=0, 'check:test-typecheck: OK — 3 file(s) / 28 error(s) / 6 pinned signature(s) held'. `vitest run --project unit test/vitest-slices.test.ts` (reads this file's test-budget header) gave 17 passed (17), EXIT=0. Before/after and contention runs: all 54/54 and 81/81 green (figures in measurements). No ablation: the diff changes how the test harness schedules its children, not a behaviour a test pins. skip-changeset was measured: after a cli build, settleBatch / BATCH_HOOK_TIMEOUT_MS / SEED_FAMILY_CHILD have 0 hits in packages/cli/dist, against a positive control ('No interrupted migration runs' in dist/commands/migrate/resume.js). files[] = dist, README.md, CHANGELOG.md.", "gates": "Local: the 54 commands from `dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on head 75c937cfa, exit codes captured per command before any pipe. 52 exit 0. check-plugin-teardown-shape --self-test first exited 3 (pinned fixture commit 621a4876 unreachable on the shallow clone) and exited 0 after `git fetch --depth=1 origin` of that commit. check:dual-build-cjs-loads and check:i18n-coverage are NOT MEASURED: each refused with exit 3 because packages outside the cli closure have no dist (examples/app-showcase needs service-print). `--ran` reconciliation: '54 derived, 52 run, 2 NOT-MEASURED, 0 UNRUN', every line carrying its exit code. CI on PR #37540 at report time: Check Changeset success; Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI/release & engine gates, scoped x3), Type Check (workspace, source gates, consumer gates, debt ledger), Governed Surface Queue Guard, PR-body guards, filter and Check PR Size were all in_progress; Test Core was not yet listed. Not waited on, per os-dev.md.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — fleet-write relay repository_dispatch for pr_create (relay run 45816452843: POST /repos/objectstack-ai/objectstack/pulls draft + issue assignees os-bill + issue labels skip-changeset, read back identical: 7745 bytes sent and stored); post-stamped comment on issue #37183 (os-dev-report). git push is not counted.", "deviations": "Contention reading caveat: in the before contention run, the two neighbour files finished well before the 339 s serial file did, so most of that file ran beside no neighbour. Its children read about 6.6 s, the same as alone. The figure is an upper bound on contention, not an equal-load comparison. The relay PR body uses AGENTS.md's PR footer form (session-URL _Generated by_ line), not the harness's emoji footer.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted in PR Acceptance notes, not filed — the source CLI entry costs about 6 s for every real command even with the oclif manifest (os --version takes 0.13 s). That is the floor of every spawning cli suite. It is a cost observation, not a defect class. Dedupe words: run-dev spawn floor, cli spawn cost, stack boot tsx", "carrier: none · noted in PR Acceptance notes — on a runner with no spare cores, running a batch's three faces at once may not shorten the file wall. The hook bound holds either way. The test-budget 450 s should be re-measured from the first CI readings of the new shape" ] }objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
ACCEPT → PR #37540 comment 7192230059 (seat repo:objectstack#5 L1, head
75c937cf); contract record 7192212329 PASS (TIER_DEFAULT, nits N1/N2 accepted). Landing by zone o5-P · 2026-11-26T12:37Z.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS
Close-out (zone o5-P) · 2026-11-26T13:01Z
Delivered: PR #37540 merged (95824c0): measured first — the
[#21552]family's singlebeforeAllran a seed and 40 CLI children in series under one 480 s timeout (268.6 s of the file's 351 s here; past 480 s at the queue build's ~11.5 s a child). Each seed child, each #21529 command and each #21552 door now has its ownbeforeAllthat starts its three faces together (settleBatch, all-settled, fails naming every failed run); every child keeps its 120 s kill and every hook is bounded atBATCH_HOOK_TIMEOUT_MS= 150 s, so no hook's bound grows with the roster. The 54 cases and assertions are unchanged; no skip, no loosening, no budget raise. File 351 s → 143 s alone. Contract PASS 7192212329 (TIER_DEFAULT), seat ACCEPT 7192230059.State:
pm:dispatchedremoved with the close. Accepted nits: N1 (settleBatchdoc overstates "no child outlives its hook" on the 120 s kill, same as before); N2 (re-measure the 450 s test-budget from CI readings of the new shape). Not filed as cards.