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
Commit 432a758
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/cli/test/dependency-range-doors.test.ts
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2
+
// test-budget: 40 — spawns the real producer once per single-cause fixture: five spawns of the source CLI, each a distinct (command, fixture) pair (`os validate --json` and `os build --json` over the unreadable-range artifact, `os validate --json` and `os lint --json` over the unmet-range artifact, `os validate --json` over the met-range control); slowest CI reading 27.6 s (run 41199450735, over the five scheduled ci.yml runs 41199450735 to 41271604267) x 1.25, rounded up
2
3
3
4
/**
4
5
* ADR-0141 D2, author side — `os validate`, `os build` and `os lint` report
Copy file name to clipboardExpand all lines: packages/cli/test/generate-stack-reach.test.ts
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
// 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 sequential spawns of the source CLI in one beforeAll, each a distinct (`os g` generator, flags, fixture state) triple over five fixtures (the wired app before and after its object and flow exist, a stack with no `requires`, one requiring `triggers` alone, the pre-fix objects-only config, a bare directory), each refusal read against its own byte snapshot; slowest CI reading 31.0 s (run 41217827347, over the five scheduled ci.yml runs 41199450735 to 41271604267) x 1.25, rounded up
2
3
3
4
/**
4
5
* PIN (#20215) — after writing, `os generate` says whether the scaffold
Copy file name to clipboardExpand all lines: packages/cli/test/i18n-extract-check-dry-run.test.ts
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2
+
// test-budget: 30 — spawns the real producer once per single-cause fixture: seven spawns of the source CLI's `os i18n extract`, the one real extract that writes the in-sync tree each seeded case copies, then six distinct (flags, `--out` state) runs (`--check` and `--check --dry-run` over an empty `--out`, `--check --dry-run` over a stale bundle and over the in-sync tree, `--dry-run` with an empty `--out` and with none); slowest CI reading 19.3 s (run 41217827347, over the five scheduled ci.yml runs 41199450735 to 41271604267) x 1.25, rounded up
2
3
3
4
/**
4
5
* `os i18n extract --check --dry-run` COMPARES, and says what it found (#16480).
Copy file name to clipboardExpand all lines: packages/cli/test/i18n-extract-check-json.test.ts
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2
+
// test-budget: 30 — spawns the real producer once per single-cause fixture: eight spawns of the source CLI's `os i18n extract`, the one real extract that writes the in-sync tree each seeded case copies, then seven distinct (flags, `--out` state) runs (`--check` and `--check --json` over an empty `--out`, `--check --json` over a stale bundle, `--check` and `--check --json` over the in-sync tree, `--check --json` with no `--out`, `--json` without `--check`); slowest CI reading 22.2 s (run 41271604267, over the five scheduled ci.yml runs 41199450735 to 41271604267) x 1.25, rounded up
2
3
3
4
/**
4
5
* `os i18n extract --check --json` COMPARES, and reaches the same verdict as
Copy file name to clipboardExpand all lines: packages/cli/test/lint-eval-generator-refusal-separator.test.ts
+47-22Lines changed: 47 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2
+
// test-budget: 50 — spawns the real producer once per single-cause fixture: four spawns of the source CLI in one beforeAll, each a distinct (face, generator) pair (`os lint --eval --json --generator ""`, the same on the human face, and both faces over an unresolvable path); the same-door case reads the two machine-face runs the cases above read instead of spawning them again (six spawns before); slowest CI reading 35.7 s (run 41217827347, over the five scheduled ci.yml runs 41199450735 to 41271604267) x 1.25, rounded up
2
3
3
4
/**
4
5
* [#16359] `os lint --eval --generator ""` printed TWO spaces after our own
@@ -94,6 +95,23 @@ interface Run {
94
95
}
95
96
96
97
letdir: string;
98
+
/** The unresolvable path every negative-control run names; under `dir`, so it never exists. */
99
+
letmissing: string;
100
+
101
+
/**
102
+
* The four distinct runs this file reads, each spawned ONCE in `beforeAll`.
103
+
*
104
+
* The same-door case used to spawn the two machine-face runs a second time,
105
+
* with the same command, flags and fixture as the cases above; it now reads
106
+
* the very runs they read. The pair it compares is unchanged, and so is every
Copy file name to clipboardExpand all lines: packages/cli/test/scaffold-emission-typechecks.test.ts
+88-19Lines changed: 88 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2
+
// test-budget: 50 — compiles the package type graph once: the lib and @objectstack/spec declaration files are parsed and bound once in this worker and shared by one TypeScript Program per emitted scaffold (each `os init` template, each `os g` generator, and the canary), each with its own tsconfig and diagnostics, instead of one `tsc` child per case; the file also imports the init and generate command modules to derive both rosters; slowest CI reading 33.0 s (run 41199450735, over the five scheduled ci.yml runs 41199450735 to 41271604267, one tsc child per case) x 1.25, rounded up
2
3
3
4
/**
4
5
* PIN (#15976) — every scaffold this package emits must survive the
@@ -54,9 +55,23 @@
54
55
* scaffolds genuinely did parse, validate and load — they simply did not
55
56
* COMPILE, and nothing here had ever asked a compiler.
56
57
*
57
-
* That is the gap this file fills, and it is why it spawns `tsc` over a
58
-
* materialized project instead of importing the module. The type layer is a
59
-
* separate axis from the schema layer, and it needs its own instrument.
58
+
* That is the gap this file fills, and it is why it runs the TypeScript
59
+
* compiler over a materialized project instead of importing the module. The
60
+
* type layer is a separate axis from the schema layer, and it needs its own
61
+
* instrument.
62
+
*
63
+
* ## One compiler, one Program per sandbox
64
+
*
65
+
* Each sandbox is compiled as its OWN Program, from its own `tsconfig.json`,
66
+
* with the diagnostics `tsc --noEmit -p <root>` reports — so a case still asks
67
+
* exactly "does this emitted project pass its own `typecheck` script", and no
68
+
* scaffold can lean on another's declarations. What the sandboxes share is the
69
+
* read-only part every one of them used to redo in its own `tsc` child: the
70
+
* parsed and bound `lib.*.d.ts` and `@objectstack/spec` declaration files,
71
+
* held in one source-file cache (the compiler's own reuse model: the language
72
+
* service shares source files across programs the same way). The compiler is
73
+
* the `typescript` package `typescript/bin/tsc` resolves to, loaded once in
0 commit comments