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(cli): match the green digest phases [V10]

Corey Olsonb18ce444919d
diff --git a/test/e2e-cli.test.js b/test/e2e-cli.test.js
index 4da2338b..7a774eb8 100644
--- a/test/e2e-cli.test.js
+++ b/test/e2e-cli.test.js
@@ -206,7 +206,7 @@ test('the gate reaches the agent as a digest: one line when green, the failure w
const log = join(box.repo, box.git(box.repo, 'rev-parse', '--git-path', 'pullboard-gate.log'));
const green = box.run(box.repo, 'gate');
assert.equal(green.code, 0, green.err);
- assert.match(green.out, /^gate green in \d+s; timing \(node\): wall [0-9.]+s, slot wait [0-9.]+s; per-test timing unavailable: output was not TAP or JUnit; timing profile: [^\n]+\n$/);
+ assert.match(green.out, /^gate green in \d+s; timing \(node\): wall [0-9.]+s, slot wait [0-9.]+s; phases: wait [0-9.]+s, admission [0-9.]+s, setup [0-9.]+s, run [0-9.]+s, evidence [0-9.]+s; slot: .+?; per-test timing unavailable: output was not TAP or JUnit; timing profile: [^\n]+\n$/);
assert.equal(green.out.trimEnd().split('\n').length, 1, 'a green gate without file measurements remains one line');
assert.ok(readFileSync(log, 'utf8').length > 1_200_000, 'more than the default 1 MB pipe buffer, read whole');
writeFileSync(join(box.repo, 'RED'), 'red');