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.

fix(gate): a runner a test starts never reuses results [C7]

Corey Olson3a239e554ef8
diff --git a/bin/run-tests.js b/bin/run-tests.js
index e07b843e..e18ce39b 100644
--- a/bin/run-tests.js
+++ b/bin/run-tests.js
@@ -223,6 +223,7 @@ function testEnvironment(sandbox, gateMarkers = {}) {
env.PULLBOARD_MACHINE_HOME = join(sandbox, 'machine');
// init and resume start a background view by default; a test opts back in by deleting this.
env.PULLBOARD_VIEW_BACKGROUND = '0';
+ env.PULLBOARD_TEST_REUSE = '0'; // A runner a test starts runs every file it names; a test opts in to reuse by deleting this.
env.TMPDIR = sandbox;
env.TMP = sandbox;
env.TEMP = sandbox;
diff --git a/test/test-action-cache.test.js b/test/test-action-cache.test.js
index 26b8db20..a4a5d014 100644
--- a/test/test-action-cache.test.js
+++ b/test/test-action-cache.test.js
@@ -40,7 +40,7 @@ function makeFixture(t) {
const capture = join(root, 'machine', 'ran.txt');
const env = { ...process.env, PULLBOARD_MACHINE_HOME: join(root, 'machine'), PULLBOARD_ACTION_CAPTURE: capture, PULLBOARD_LANDING_RUN: '0',
GIT_AUTHOR_NAME: 'Action Fixture', GIT_AUTHOR_EMAIL: '[email protected]', GIT_COMMITTER_NAME: 'Action Fixture', GIT_COMMITTER_EMAIL: '[email protected]' };
- for (const key of ['PULLBOARD_GATE_SLOT_HELD', 'PULLBOARD_GATE_SLOT_POOL', 'PULLBOARD_GATE_SLOT_TOKEN', 'PULLBOARD_BROWSER_SLOT_HELD', 'PULLBOARD_TEST_STAGE', 'PULLBOARD_TEST_ACTIONS']) delete env[key];
+ for (const key of ['PULLBOARD_GATE_SLOT_HELD', 'PULLBOARD_GATE_SLOT_POOL', 'PULLBOARD_GATE_SLOT_TOKEN', 'PULLBOARD_BROWSER_SLOT_HELD', 'PULLBOARD_TEST_STAGE', 'PULLBOARD_TEST_ACTIONS', 'PULLBOARD_TEST_REUSE']) delete env[key];
mkdirSync(join(root, 'machine'));
/** Run one fixture git command under the private environment. */
const git = (...args) => runFixtureGit(args, { cwd: root, env });