Skip to content

The agent that grows with you

fix(ci): a failing workspace check keeps its output in the log (#115214)

Siddharth Balyan3752f89ff898
diff --git a/.github/scripts/run-workspace-checks.mjs b/.github/scripts/run-workspace-checks.mjs
index eabc4798774..0daa01d246c 100644
--- a/.github/scripts/run-workspace-checks.mjs
+++ b/.github/scripts/run-workspace-checks.mjs
@@ -133,7 +133,9 @@ async function main() {
if (failed.length > 0) {
for (const r of failed) console.error(`::error::${r.unit.pkg} :: ${r.unit.script} failed`)
console.error(`::error::${failed.length} of ${results.length} checks failed`)
- process.exit(1)
+ // Not process.exit(): it drops what stdout still buffers, which is the failing check's output.
+ process.exitCode = 1
+ return
}
console.log(`\nall ${results.length} checks passed`)
}