Repository navigation
test(scenarios): measured 30 s budget for the two skill-evals --regrade command tests - #35121
Conversation
…easured 30 s budget The first --regrade command test to run pays a load-bound cost the rest of the file does not: 2356 ms on a light Test Core shard and 6218 / 9728 ms on the shard beside plugin-security, against vitest's 5 s default (36-168 ms locally). Both tests on the full executeRound + regradeRound path take a named 30 s timeout; every assertion is kept, no retry, skip or package-wide testTimeout. Claude-Session: https://claude.ai/code/session_01JQwxbaX2qDxUq9sF93EqqL Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL 席位核对ACCEPT (seat self-review, area o1-D) at head
|
|
repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL Landing · 2026-11-18T06:03Z. The 18.6.0 freeze is lifted (seat comment 6970550718), and seat 1 put this PR first in the landing order. Head |
Requested by Warren · project thread
Fixes #35110
Clause-②: no
Metadata-protocol: none
维护者速读
executeRound+regradeRound的--regrade命令测试,改用具名的 30 秒超时(REGRADE_COMMAND_TEST_TIMEOUT_MS),不再吃 vitest 默认 5 秒;断言一条未动。packages/qa/scenarios/test/skill-evals/skill-evals.test.ts顶部新增常量及其注释(测量来源与取值理由),以及两处}, REGRADE_COMMAND_TEST_TIMEOUT_MS);。pnpm --filter @objectstack/scenarios exec vitest run test/skill-evals/skill-evals.test.ts,预期 36/36 通过。What changes
packages/qa/scenarios/test/skill-evals/skill-evals.test.tsonly:REGRADE_COMMAND_TEST_TIMEOUT_MS = 30_000near the top of the file, with a comment citing the queue measurements it is sized from. This follows the package's existing convention (STAND_IN_TEST_TIMEOUT_MS = 30_000intest/runner/units.test.ts, the measured30_000budgets intest/runner/external-driver.test.ts).executeRoundand thenregradeRound:testTimeout.Tests
Timings, per test (ms):
--regradesiblingHow the timeout is sized: the slowest observed reading is 9728 ms; the unloaded CI reading is 2356 ms. 30 s is about 3x the slowest observed and about 13x the unloaded CI reading, and it is the budget this package's other measured suites already use.
Where the cost sits: in the same CI job the reworded-case test took 9728 ms while the sibling on the identical
executeRound+regradeRoundpath took 141 ms, and theexecuteRound-only tests took tens of ms. So the cost lands on the firstregradeRoundcall in the file, not on the round the test builds; the one thing that call does that the later one does not is a cold first run ofrunnerSha(twogitspawns over the checkout). CPU oversubscription locally (up to 6x) did not reproduce it, and a fresh worktree's firstgit statusover the same pathspec took 141 ms here, so the mechanism is not established. Because the cost follows whichever of the two runs first (a-tfilter or a reorder moves it to the sibling), both tests get the budget, although the sibling does not measure within 2x of 5 s locally. The product code is unchanged: the measurement does not show a product-side cost that a behaviour-preserving change insrc/skill-evals/**would remove.Package suite and typecheck at 91523c8
tsc --noEmit --listFilesincludestest/skill-evals/skill-evals.test.ts(count 1).Acceptance notes
regradeRoundcall is located (first call against second, same job) but its mechanism is not reproduced locally. If a later reading shows the cost growing past this budget,runnerSha(thegit rev-parse+git statuspair insrc/skill-evals/cli.ts) is the place to measure first.files[](dist,README.md,CHANGELOG.md), so nothing publishes;skip-changesetrides this create.Verification
Derived gates at 91523c8 (dispatch-gates --commands, 49 families)
node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran FILEwith exit codes recorded:49 derived famil(ies) accounted for — 48 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).pnpm check:dual-build-cjs-loads, reason: PREREQUISITE NOT MET (it reads every package's dist, and this worktree built only the scenarios closure). CI runs it inLint & Repo Gates.Generated by Claude Code