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(runner): finish failure publication before landing abort [C7,V4]

Corey Olsonff2ed00f6cc4
diff --git a/bin/run-tests.js b/bin/run-tests.js
index bf4784a1..fac2f1dc 100644
--- a/bin/run-tests.js
+++ b/bin/run-tests.js
@@ -1082,7 +1082,9 @@ async function runLandingTests(args, env, concurrency) {
if (waivers.length && details.error?.failureType === 'subtestsFailed' && waivedFiles.get(file) === true) return;
waivedFiles.set(file, false);
firstFailure = { file, name, error: details.error };
- abortLandingRun();
+ // Node emits completion before finalizing its result. Aborting inside that callback
+ // replaces the real failure with cancellation; let the current publication finish.
+ queueMicrotask(abortLandingRun);
}
});
tests.on('test:summary', data => {
@@ -1092,7 +1094,7 @@ async function runLandingTests(args, env, concurrency) {
completedFiles.add(data.file);
if (data.success === false && !firstFailure && waivedFiles.get(data.file) !== true) {
firstFailure = { file: data.file, name: 'test file failed before a test completed' };
- abortLandingRun();
+ queueMicrotask(abortLandingRun);
}
}
});