TASK-pilot-cli-suite-timeout: serialize test file execution

This commit is contained in:
thePR0M3TH3AN committed 2026-10-07 01:48:46 -04:00
1 parent 68d7f9497d
commit cd84687965
2 files changed
+26 -1

No files matched your search

+25
View File
@@ -2931,3 +2931,28 @@ test_integrity_note:
did_relax_any_assertion: false
if_true_explain_spec_basis: ""
```
# CLI test-file resource isolation
```yaml
test_integrity_note:
change_type: ["flake_fix"]
scenarios:
- id: SCN-test-file-resource-isolation
given: "Exact clean candidate with locked local dependencies; original full portfolio and60s per-file deadline on shared8CPU machine"
when: "The configured npm test executes the same complete file glob with explicit file concurrency1"
then: "Every original test is executed unchanged; within-scenario concurrency stays intact; configured native result and exact candidate/recipe receipts determine acceptance"
observable_outcomes:
- "Unchanged scenario inventory/assertions/skips/timeout and original failure provenance"
- "Actual configured npm test result, trace lifecycle, and source/recipe binding"
determinism_controls:
- "Explicit test-file concurrency1, exact locked dependencies, existing resource lease, unchanged per-file deadline"
anti_cheat_rationale:
prevents:
- "Extending deadlines or using retries to hide contention"
- "Skipping scenarios or removing within-scenario race tests"
- "Presenting diagnostic serial PASS as configured/native qualification"
relaxation:
did_relax_any_assertion: false
if_true_explain_spec_basis: ""
```
+1 -1
View File
@@ -96,7 +96,7 @@
"schemas/"
],
"scripts": {
"test": "node --test --test-timeout=60000 test/fleet/*.test.mjs",
"test": "node --test --test-timeout=60000 --test-concurrency=1 test/fleet/*.test.mjs",
"torch": "node bin/torch.mjs",
"check": "node --check bin/torch.mjs && node --check src/cli.mjs && node --check src/mcp/server.mjs && node --check src/console/server.mjs && node --check src/artifacts/service.mjs && node --check src/adapters/plugins.mjs && node --check src/adapters/pi.mjs && node --check src/adapters/pi/extension.mjs && node --check site/app.js && node --check site/demo.js && node --check site/console.js && node --check site/work-views.js && node --check site/work-progress.js",
"site:serve": "node bin/torch.mjs console serve",