Skip to content

Commit 8b9b9d2

Browse files
test(verify): re-set harness.required-providers's test-budget to 70 s on the 10 s grid (#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 #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-#37708 CI reading. - Reading: scheduled CI run 45914939800, job Test Core (10/10) 140232535871, head 80519b5 (a descendant of the #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-#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 (#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>
1 parent cbc353e commit 8b9b9d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/verify/src/harness.required-providers.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2-
// test-budget: 28 — spawns the real producer once per single-cause fixture: twelve in-process bootStack boots, no two the same configuration (a top-level requires, a package body's, the top level over the bodies, the control, an explicit instance, triggers with its hard dependencies, record-context with mcp, its no-token control, a host-mounted record-context, knowledge with realtime, its no-token control, knowledge on a file database under OS_HOME), each its case's subject; 5.9 s in a local run for the first six, 10.0 s with the three record-context boots, 14.8 s with the two knowledge boots, 19.0 s with the file-database knowledge boot (local, verbose reporter); slowest CI reading 11.4 s (scheduled full-battery run 41199450735, Test Core shard log) read before the record-context boots, scaled by the local ratio to 21.7 s, x 1.25, rounded up — the first CI reading after the knowledge boots re-measures it
2+
// test-budget: 70 — spawns the real producer once per single-cause fixture: twelve in-process bootStack boots, no two the same configuration (a top-level requires, a package body's, the top level over the bodies, the control, an explicit instance, triggers with its hard dependencies, record-context with mcp, its no-token control, a host-mounted record-context, knowledge with realtime, its no-token control, knowledge on a file database under OS_HOME), each its case's subject; 5.9 s in a local run for the first six, 10.0 s with the three record-context boots, 14.8 s with the two knowledge boots, 19.0 s with the file-database knowledge boot (local, verbose reporter); slowest CI reading 53.7 s (scheduled CI run 45914939800, job Test Core (10/10) 140232535871, head 80519b5991, after PR #37708), x 1.25 = 67.1 s, rounded up to the next 10 s
33

44
/**
55
* #22301 item 1 — `bootStack` mounts the providers an app's `requires` names,

0 commit comments

Comments
 (0)