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(test): drain setup stderr before fixture exit [C6,C7]

Corey Olson9e05b32b8bc9
diff --git a/test/runner-source-setup-fixture.js b/test/runner-source-setup-fixture.js
index eee102d6..b3da5b77 100644
--- a/test/runner-source-setup-fixture.js
+++ b/test/runner-source-setup-fixture.js
@@ -50,7 +50,8 @@ childProcess.spawn = (command, args, options) => {
writeFileSync(${JSON.stringify(injected)}, 'checkout lock injected\\n');
if (${JSON.stringify(mode)} === 'index') return spawn(command, [...args, '--fixture-invalid-option'], options);
if (${JSON.stringify(mode)} === 'missing') return spawn(${JSON.stringify(join(dir, 'missing-git'))}, args, options);
- if (${JSON.stringify(mode)} === 'large') return spawn(process.execPath, ['-e', ${JSON.stringify(`process.stderr.write('x'.repeat(20_000) + ${JSON.stringify(`\nfatal: fixture tail token=${SECRET} https://user:[email protected]/repo?token=${SECRET} ${remoteHome}/private.txt 192.168.1.99\nAuthorization: Bearer fixture-bearer-secret\nCookie: session=fixture-cookie-secret\n`)}); process.exit(23);`)}], options);
+ // Let queued pipe bytes drain before exit; an immediate exit can discard the fixture's diagnostic tail.
+ if (${JSON.stringify(mode)} === 'large') return spawn(process.execPath, ['-e', ${JSON.stringify(`process.stderr.write('x'.repeat(20_000) + ${JSON.stringify(`\nfatal: fixture tail token=${SECRET} https://user:[email protected]/repo?token=${SECRET} ${remoteHome}/private.txt 192.168.1.99\nAuthorization: Bearer fixture-bearer-secret\nCookie: session=fixture-cookie-secret\n`)}); process.exitCode = 23;`)}], options);
writeFileSync(join(options.cwd, '.git', 'index.lock'), 'held by this fixture\\n');
}
return spawn(command, args, options);