Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(test): keep fixture child helper self-contained [C7]
Corey Olsond2257b0c8468
diff --git a/test/fixture-child.js b/test/fixture-child.jsindex 87c19059..203d0f11 100644--- a/test/fixture-child.js+++ b/test/fixture-child.js@@ -1,7 +1,6 @@/** Shared private fixture child runner and redacted failure diagnostics [C7]. */import { spawn, spawnSync } from 'node:child_process';import { performance } from 'node:perf_hooks';-export { awaitNestedRun } from '../src/test-file-pool.js';const SENSITIVE_NAME = /(?:token|secret|password|private.?key|access.?key|relay[_ -]?key|pairing.?code|verification.?code)/iu;const activeFixtureChildren = new Set();diff --git a/test/gate-admission.test.js b/test/gate-admission.test.jsindex 1f2bc700..c7fb4d01 100644--- a/test/gate-admission.test.js+++ b/test/gate-admission.test.js@@ -1,5 +1,5 @@/** Test files on one machine never outnumber its cores, and the longest files start first [C7]. */-import { awaitNestedRun } from './fixture-child.js';+import { awaitNestedRun } from '../src/test-file-pool.js';import assert from 'node:assert/strict';import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';import { tmpdir } from 'node:os';diff --git a/test/gate-profile.test.js b/test/gate-profile.test.jsindex 2d8f0abf..1d0be854 100644--- a/test/gate-profile.test.js+++ b/test/gate-profile.test.js@@ -1,5 +1,5 @@/** Real gate, item-check and verifier profiles parse emitted timings [C7,V10]. */-import { awaitNestedRun } from './fixture-child.js';+import { awaitNestedRun } from '../src/test-file-pool.js';import assert from 'node:assert/strict';import { execFileSync, spawn, spawnSync } from 'node:child_process';import { once } from 'node:events';diff --git a/test/landing-shards.test.js b/test/landing-shards.test.jsindex 99141195..b796e754 100644--- a/test/landing-shards.test.js+++ b/test/landing-shards.test.js@@ -1,5 +1,5 @@/** The landing gate splits its test files into shards across local slots and runners [C7,V4]. */-import { awaitNestedRun } from './fixture-child.js';+import { awaitNestedRun } from '../src/test-file-pool.js';import assert from 'node:assert/strict';import { spawn } from 'node:child_process';import { chmodSync, copyFileSync, cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, writeFileSync } from 'node:fs';diff --git a/test/resources.test.js b/test/resources.test.jsindex bc9f3753..38883fb1 100644--- a/test/resources.test.js+++ b/test/resources.test.js@@ -1,7 +1,7 @@/** @pullboard-test-input source-tree *//** @pullboard-test-loads src/cli.js *//** Real-process resource queue and lease coverage [Q1,Q2,Q3]. */-import { awaitNestedRun } from './fixture-child.js';+import { awaitNestedRun } from '../src/test-file-pool.js';import assert from 'node:assert/strict';import { startFixtureChild as spawn, runFixtureChild as spawnSync, reportFixtureChildFailure, runFixtureChild, runFixtureChildAsync, runFixtureGit } from './fixture-child.js';import { performance } from 'node:perf_hooks';diff --git a/test/runner-browser-free-fixture.js b/test/runner-browser-free-fixture.jsindex a03ad639..d603dec5 100644--- a/test/runner-browser-free-fixture.js+++ b/test/runner-browser-free-fixture.js@@ -1,6 +1,6 @@/** @pullboard-test-input source-tree *//** A runner registered with no browser slots runs browser-free test files and never browser-bound ones [C7]. */-import { awaitNestedRun } from './fixture-child.js';+import { awaitNestedRun } from '../src/test-file-pool.js';import assert from 'node:assert/strict';import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, rmSync, writeFileSync } from 'node:fs';import { join, resolve } from 'node:path';diff --git a/test/runner-tooling-fixture.js b/test/runner-tooling-fixture.jsindex 210f6d0a..ccbe8957 100644--- a/test/runner-tooling-fixture.js+++ b/test/runner-tooling-fixture.js@@ -1,5 +1,5 @@/** Shared registered-runner test tooling and bounded round-trip helpers. */-import { awaitNestedRun } from './fixture-child.js';+import { awaitNestedRun } from '../src/test-file-pool.js';import assert from 'node:assert/strict';import { copyFileSync, cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, rmSync } from 'node:fs';import { join, resolve } from 'node:path';diff --git a/test/test-isolation.test.js b/test/test-isolation.test.jsindex 5df29bd4..7d1ff1f7 100644--- a/test/test-isolation.test.js+++ b/test/test-isolation.test.js@@ -1,6 +1,6 @@/** @pullboard-test-loads bin/run-tests.js src/test-isolation.js src/child-journal-preload.js src/machine-home.js src/settings.js src/resources.js src/view-port.js *//** A test's verdict never depends on the machine it runs on: settings, resources, runners, host markers, ports [C7]. */-import { awaitNestedRun } from './fixture-child.js';+import { awaitNestedRun } from '../src/test-file-pool.js';import assert from 'node:assert/strict';import { mkdirSync, mkdtempSync, realpathSync, rmSync, writeFileSync } from 'node:fs';import { createServer } from 'node:net';diff --git a/test/view-port.test.js b/test/view-port.test.jsindex 87a67abc..47572f40 100644--- a/test/view-port.test.js+++ b/test/view-port.test.js@@ -1,5 +1,5 @@/** Keep the view's exact named-port refusal covered in a core-owned file [N26]. */-import { awaitNestedRun } from './fixture-child.js';+import { awaitNestedRun } from '../src/test-file-pool.js';import assert from 'node:assert/strict';import { createHash, randomUUID } from 'node:crypto';import { execFileSync } from 'node:child_process';