Skip to content

Commit 0863e1a

Browse files
committed
test(cli): declare measured budgets on ten os-serve-path boot files
Each of these files spends its wall on real `os serve` / `os dev` / `os start` boots (and the `os build` / `os validate` spawns beside them), one per distinct fixture or flag, already sequential; no boot is shared or repeated. They take the ruled header `// test-budget: N — spawns the real producer once per single-cause fixture: REASON` at line 2, N = slowest CI reading of the two scheduled runs after the oclif test manifest x 1.25, rounded up to 10 s. Comment-only; no assertion, timeout or tier changes. Claude-Session: https://claude.ai/code/session_01FEkQ5nzM2GqFAcHGd5cWx4 Co-authored-by: Claude <noreply@anthropic.com>
1 parent c51aed4 commit 0863e1a

10 files changed

Lines changed: 10 additions & 0 deletions

‎packages/cli/test/artifact-flag-precedence.integration.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 260 — spawns the real producer once per single-cause fixture: ten boots in one beforeAll, each a distinct precedence leg: three `os dev`, seven `os start`, each a supervisor plus its `serve` child read through the metadata door; slowest CI reading 206.80 s (run 40424746941) of the two scheduled CI runs after the oclif test manifest (PR #26256: 40392443783, 40424746941), x 1.25, rounded up
23

34
/**
45
* #21501 — an explicitly named artifact is the stack that is SERVED, even from

‎packages/cli/test/dev-connector-env-parity.integration.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 30 — spawns the real producer once per single-cause fixture: three boots in one beforeAll, each a distinct port leg (`os dev -p N`, `os serve --port N`, `os dev -p N` with N held); slowest CI reading 16.35 s (run 40424746941, the first run of its current six-case shape) after the oclif test manifest (PR #26256), x 1.25, rounded up
23

34
/**
45
* #26130 — on an `os dev` boot, a connector value the config reads from the

‎packages/cli/test/dev-no-watch.pin.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 40 — spawns the real producer once per single-cause fixture: three `os dev` spawns in one beforeAll, each a distinct argv and directory on its workspace-orchestration branch; slowest CI reading 24.16 s (run 40392443783) of the two scheduled CI runs after the oclif test manifest (PR #26256: 40392443783, 40424746941), x 1.25, rounded up
23

34
/**
45
* PIN (#20681) — `os dev`'s watch opt-out is reachable, and the argv that used

‎packages/cli/test/serve-config-boot-flat-docs.integration.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 60 — spawns the real producer once per single-cause fixture: three `os serve --dev` boots, one per fixture (multi-package, single-package, no owner); slowest CI reading 47.95 s (run 40392443783) of the two scheduled CI runs after the oclif test manifest (PR #26256: 40392443783, 40424746941), x 1.25, rounded up
23

34
/**
45
* #22405 — a CONFIG boot of a multi-package stack serves the stack's flat

‎packages/cli/test/serve-config-boot-residual.integration.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 240 — spawns the real producer once per single-cause fixture: seventeen spawns of the source CLI in five row beforeAll hooks, each a distinct fixture or flag: eight `os serve` boots read through the metadata and data doors, two refused `os serve` boots, five `os build`, two `os validate`; slowest CI reading 191.07 s (run 40392443783) of the two scheduled CI runs after the oclif test manifest (PR #26256: 40392443783, 40424746941), x 1.25, rounded up
23

34
/**
45
* #22521 — a CONFIG boot of a multi-package stack answers for the stack's

‎packages/cli/test/serve-host-config-metadata-door.integration.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 50 — spawns the real producer once per single-cause fixture: two `os serve` boots of one host config in one beforeAll, the source leg and its compiled twin; slowest CI reading 34.85 s (run 40424746941) of the two scheduled CI runs after the oclif test manifest (PR #26256: 40392443783, 40424746941), x 1.25, rounded up
23

34
/**
45
* #22989 — `os serve` of a HOST config serves the stack's declared `apis`

‎packages/cli/test/serve-migrate-exit-schema-parity.integration.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 40 — spawns the real producer once per single-cause fixture: two `os serve` migrate-and-exit runs in one beforeAll, the server boot and the --no-server boot whose table sets are compared; slowest CI reading 30.02 s (run 40392443783) of the two scheduled CI runs after the oclif test manifest (PR #26256: 40392443783, 40424746941), x 1.25, rounded up
23

34
/**
45
* [#22202] A `--no-server` migrate-and-exit run provisions the SAME table set

‎packages/cli/test/serve-no-auth-secret-refusal.integration.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 40 — spawns the real producer once per single-cause fixture: ten `os serve` boots, one per case, each a distinct posture (five refused before the kernel starts, five reach ready); slowest CI reading 31.59 s (run 40424746941) of the two scheduled CI runs after the oclif test manifest (PR #26256: 40392443783, 40424746941), x 1.25, rounded up
23

34
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
45
import { spawn, type ChildProcessByStdio } from 'node:child_process';

‎packages/cli/test/serve-package-declared-capabilities.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 90 — spawns the real producer once per single-cause fixture: five `os serve` boots, one per case and per fixture (three reach the banner, two are refused); slowest CI reading 68.81 s (run 40392443783) of the two scheduled CI runs after the oclif test manifest (PR #26256: 40392443783, 40424746941), x 1.25, rounded up
23

34
/**
45
* #22288 — `os serve` reads a multi-package config's PACKAGE-OWNED keys

‎packages/cli/test/serve-view-container-read.integration.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 50 — spawns the real producer once per single-cause fixture: three spawns in one beforeAll: an `os serve` config boot, the `os build` of its artifact, and the artifact boot; slowest CI reading 36.70 s (run 40424746941) of the two scheduled CI runs after the oclif test manifest (PR #26256: 40392443783, 40424746941), x 1.25, rounded up
23

34
/**
45
* #22614 — the by-name read of a `defineView` container answers the same on an

0 commit comments

Comments
 (0)