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.

test(gate): execute the no-runner fallback on a fresh fixture tree [C7]

Corey Olson5b8272d04784
diff --git a/test/cpu-load-test-fixture.js b/test/cpu-load-test-fixture.js
index 7ee1e3d0..de156ca3 100644
--- a/test/cpu-load-test-fixture.js
+++ b/test/cpu-load-test-fixture.js
@@ -50,6 +50,13 @@ test('declared load stand-in', ${declaration}, () => {
...box, env, requests, remoteHome, remoteMachineHome, command,
/** Count real completed SSH requests without treating a configured host as execution proof. */
requestsMade() { return existsSync(requests) ? readFileSync(requests, 'utf8').trim().split('\n').filter(Boolean).map(JSON.parse) : []; },
+ /** Commit a harmless source change so the next public gate executes instead of reusing a green tree. */
+ commitProbeChange() {
+ const probe = join(box.repo, 'test', 'cpu-probe.test.js');
+ writeFileSync(probe, readFileSync(probe, 'utf8') + '\n// A new fixture revision exercises ordinary gate execution again.\n');
+ box.git(box.repo, 'add', 'test/cpu-probe.test.js');
+ box.git(box.repo, 'commit', '-q', '-m', 'test: advance the CPU placement fixture source');
+ },
/** Run the public landing gate under its ordinary lease and wait on its original child promise. */
async runGate() {
const result = await awaitNestedRun(runFixtureChildAsync(process.execPath, [cli, 'gate', '--landing', '--json'],
diff --git a/test/cpu-load-tests.test.js b/test/cpu-load-tests.test.js
index b7afcb39..6df15895 100644
--- a/test/cpu-load-tests.test.js
+++ b/test/cpu-load-tests.test.js
@@ -21,6 +21,7 @@ test('a declared CPU-load test runs only on a runner when one is registered [C7]
assert.ok(withinRunner && withinRunner !== '..' && !withinRunner.startsWith(`..${sep}`));
assert.equal(remote.executor.gatePool, join(box.remoteMachineHome, 'resources.sqlite'));
box.command('runner', 'remove', 'fixture-host');
+ box.commitProbeChange();
const local = await box.runGate();
assert.equal(local.result.status, 0, local.result.context);
assert.equal(box.requestsMade().length, 1, 'no unregistered executor is used for the fallback');