Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(compare-runs): suppress stderr from gh calls

Steven Enamakel9b793b9e02e8
diff --git a/scripts/ci/self-hosted/compare-runs.mjs b/scripts/ci/self-hosted/compare-runs.mjs
index a3bbcf0ce2..5d4e5927ba 100644
--- a/scripts/ci/self-hosted/compare-runs.mjs
+++ b/scripts/ci/self-hosted/compare-runs.mjs
@@ -28,9 +28,12 @@ export const WORKFLOWS = {
};
function gh(args) {
+ // stderr is dropped: a workflow not yet on the default branch answers 404,
+ // which simply means "no runs yet".
return execFileSync("gh", args, {
encoding: "utf8",
maxBuffer: 64 * 1024 * 1024,
+ stdio: ["ignore", "pipe", "ignore"],
});
}