Repository navigation
test(verify): the two untimed requires-knowledge cases take the file's 120_000 budget - #37708
Conversation
…file's 120_000 The install-without-libSQL case clears the module cache and re-imports the provider graph: 1.1-1.4 s locally, past 5000 ms on the loaded last Test Core shard of the scheduled full run. It and the host-mounts case were the only cases in the file left on vitest's default; both now carry the file's per-case budget, with the measurement in a comment. Claude-Session: https://claude.ai/code/session_01Utp6Cb4BAjgQ43tqy1DvVJ 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#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head fdf439c · 2026-11-26T22:15Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Inputs read: card #37700 (body, claim, os-dev-report), PR #37708 (body, file list, the net diff against ① Derived judgments
Findings:
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6Cb4BAjgQ43tqy1DvVJ Landing · 2026-11-26T22:20Z · zone ai-37000
State change: ready for review + auto-merge (merge queue). p1 main-red fix for #37636's second cause; #37700 closes on merge. N1 accepted; the stale |
… from the post-#37708 CI reading (53.7 s x 1.25, 10 s grid) Reading: scheduled CI run 45914939800, job Test Core (10/10) 140232535871, head 80519b5 (after PR #37708). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
… on the 10 s grid (objectstack-ai#37738) <!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DG44bgtJm8kWx4oK68re6GX)_ Fixes objectstack-ai#37710 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:只改一个测试文件头上记的耗时预算数字,不影响任何功能。 - 属于测试耗时预算治理,替预算检查把一个过期数字改成实测值。 - 数字不准只会让慢测试预警失真;可直接撤回这一行。 - 无。 ## What changes Line 2 of `packages/verify/src/harness.required-providers.test.ts`: `test-budget: 28` becomes `test-budget: 70`, and the stale measurement narrative is replaced by the post-objectstack-ai#37708 CI reading. - Reading: scheduled CI run 45914939800, job Test Core (10/10) 140232535871, head 80519b5 (a descendant of the objectstack-ai#37708 merge 6b60f88); this file took 53747 ms. - Rule used (the gate's own text in `readTestBudget`): measured CI reading x 1.25 (`CEILING_HEADROOM`), rounded up to the next 10 s: 53.7 x 1.25 = 67.1, so 70. - The old line also lacked the `: ` after the CLASS; the gate's grammar is `SECONDS — CLASS: REASON`, which the new line satisfies (it already had the colon after the class text). - It is the only post-objectstack-ai#37708 reading of this file on main (the push run 45915335818 did not run it). ## Tests - `readTestBudget` on the edited file: `{ seconds: 70, cls: 'spawns the real producer once per single-cause fixture', line: 2 }`, no refusal (before: refused "28 s is not on the 10 s grid"). - `check-nul-bytes` exit 0; `check-issue-citations` exit 0; `overlap-check` VERDICT clean (objectstack-ai#37676 shares the file, merges cleanly). ## Acceptance notes - Test-only comment-line change, nothing published: `skip-changeset`. - The file's own vitest was not rerun locally: no code changed, and the reading comes from CI. ## Verification Run `node -e "import('./scripts/measure-test-shard-timings.mjs').then(m=>console.log(m.readTestBudget(require('fs').readFileSync('packages/verify/src/harness.required-providers.test.ts','utf8'),'f').seconds))"`; expect `70`. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP <!-- signed: repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP --> Co-authored-by: Claude <noreply@anthropic.com>
Requested by Bill · project thread
Fixes #37700
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
packages/verify/src/harness.required-providers.test.tsonly. The two cases in therequires: ['knowledge']describe that still ran on vitest's 5000 ms default now take the file's per-case120_000, which every other boot/import case in the file already carries. Each carries a comment with its measurement:vi.resetModules()) andconstructServedProvidersthen re-imports the provider graph. Local: 1138 / 1358 / 1365 ms over three runs. The scheduled run 45888214247 (job 140145134703, Test Core 10/10) read this file's tests at 57.8 s, which is 52.8 s outside this case against 16.2 s locally, so 3.3x. 1365 ms x 3.3 = 4.5 s, which leaves no margin under 5000 ms. The case was killed at 5000 ms.constructServedProvidersshape, and it had no timeout either. 111-114 ms in file order, 431 ms alone on a cold cache (-t). x 3.3 = 1.4 s cold. It is not failing today; it gets the same budget so the risk is covered the same way.The other three knowledge cases already carry
120_000. I chose a per-case timeout over a shared boot (the #28631 shape) because the slow case is not a repeated boot. Its cost is a module re-import that it causes on purpose, and nothing could share it. The file's own convention is a per-case120_000. Nothing is skipped.Tests
File run on the final head, plus three earlier measurement runs
Acceptance notes
overlap-check:#37676 (shares packages/verify/src/harness.required-providers.test.ts): merges cleanly,VERDICT clean exit 0. The overlap is textual only.test-budget: 28header is out of date. The CI run above read the file at 57.8 s (including the 5 s timeout), and its own text says "the first CI reading after the knowledge boots re-measures it". This PR does not re-set the budget, because that is outside the card's acceptance. Noted here for the lane.*.test.tsundersrc/.@objectstack/verifyshipsdist,README.mdandCHANGELOG.md. Afterpnpm --filter @objectstack/verify build, greppingdistfinds 0 hits for the case title, and the positive controlbootStackis found (dist/index.js,dist/index.cjs). The PR carriesskip-changeset.Verification
Read first: the one hunk at the end of the knowledge describe (the libSQL case's closing
}, 120_000);and its comment).Two-minute check:
pnpm --filter @objectstack/verify exec vitest run --reporter=verbose src/harness.required-providers.test.tsshould print 15 passed, with the libSQL case at about 1-1.5 s locally. The real proof is the next scheduled full run going green on Test Core 10/10.Generated by Claude Code