From cd84687965f1699164086b4639528e6fe0213591 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN Date: Wed, 7 Oct 2026 01:48:46 -0400 Subject: [PATCH] TASK-pilot-cli-suite-timeout: serialize test file execution --- docs/TEST_INTEGRITY.md | 25 +++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/TEST_INTEGRITY.md b/docs/TEST_INTEGRITY.md index c6e1ba8..1ba5c33 100644 --- a/docs/TEST_INTEGRITY.md +++ b/docs/TEST_INTEGRITY.md @@ -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: "" +``` diff --git a/package.json b/package.json index 42324e6..2f351db 100644 --- a/package.json +++ b/package.json @@ -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",