Skip to content

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.

perf(test): omit unused CPU fixture worktrees [C7]

Corey Olsonc8c0f0c9366c
diff --git a/test/cpu-load-test-fixture.js b/test/cpu-load-test-fixture.js
index ecbebb12..b8f65c58 100644
--- a/test/cpu-load-test-fixture.js
+++ b/test/cpu-load-test-fixture.js
@@ -18,7 +18,7 @@ export function cpuLoadFixture(e2e, { declaration = '{ cpuLoad: true }', binding
const stage = phase => console.error('CPU_LOAD_STAGE ' + JSON.stringify({ fixture, phase, elapsedMs: Math.round(performance.now() - started) }));
stage('project-start');
const probeFile = `cpu-probe.test.${commonjs ? 'cjs' : 'js'}`;
- const box = e2e.project(`node bin/run-tests.js test/${probeFile}`);
+ const box = e2e.project(`node bin/run-tests.js test/${probeFile}`, undefined, { withWorktree: false });
stage('project-ready');
const bin = join(box.dir, 'ssh-bin');
const remoteHome = join(box.dir, 'runner-home');
diff --git a/test/e2e-helpers.js b/test/e2e-helpers.js
index 5ca67e26..60c80c53 100644
--- a/test/e2e-helpers.js
+++ b/test/e2e-helpers.js
@@ -78,8 +78,9 @@ const SPEC = `# Demo spec
* A repo set up with pullboard, two lanes and a spec, committed through its own hooks, plus a
* worktree joined to the web lane. The coordinator stays deliberately undeclared; later agents
* retain the runner's model, while initialization model coverage invokes init directly.
+ * Coordinator-only fixtures may omit the unused worktree and its join.
*/
-function project(gate = CONFIG.gate, box = sandbox(), { separateGitDir = false } = {}) {
+function project(gate = CONFIG.gate, box = sandbox(), { separateGitDir = false, withWorktree = true } = {}) {
const repo = join(box.dir, 'repo');
mkdirSync(repo);
box.git(repo, 'init', '-q', '-b', 'main', ...(separateGitDir ? ['--separate-git-dir', join(box.dir, 'separate-git')] : []));
@@ -91,6 +92,7 @@ function project(gate = CONFIG.gate, box = sandbox(), { separateGitDir = false }
writeFileSync(join(repo, 'SPEC.md'), SPEC);
box.git(repo, 'add', '-A');
box.git(repo, 'commit', '-q', '-m', 'chore: set up pullboard');
+ if (!withWorktree) return { ...box, repo };
const web = join(box.dir, 'web-1');
box.git(repo, 'worktree', 'add', '-q', web, '-b', 'web/one');
assert.match(box.run(web, 'join', 'web').out, /joined as web-1/);