The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(ci): reformat self-hosted lane code and tests
Steven Enamakelc00d8aed3586
diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjsindex 862a12b993..79361fcc19 100644--- a/scripts/__tests__/self-hosted-lanes.test.mjs+++ b/scripts/__tests__/self-hosted-lanes.test.mjs@@ -1125,7 +1125,9 @@ test("the ex63 profile logs where the scratch disk's space goes at each lane endconst seen = [];const run = (cmd) => {seen.push(cmd);- return cmd.startsWith("df") ? "Filesystem Size Used Avail\n/dev/vdb 160G 150G 10G" : "12G\ttarget/ci-private-coverage";+ return cmd.startsWith("df")+ ? "Filesystem Size Used Avail\n/dev/vdb 160G 150G 10G"+ : "12G\ttarget/ci-private-coverage";};const report = diskUsageReport({ profile: "ex63", scratch: "/scratch", run });assert.match(report, /df -h \/scratch/);@@ -1133,6 +1135,9 @@ test("the ex63 profile logs where the scratch disk's space goes at each lane endassert.match(report, /du -sh target\/\*/);assert.match(report, /12G\ttarget\/ci-private-coverage/);assert.ok(seen.some((c) => c.includes("target/*")));- assert.equal(diskUsageReport({ profile: "hosted", scratch: "/scratch", run }), null);+ assert.equal(+ diskUsageReport({ profile: "hosted", scratch: "/scratch", run }),+ null,+ );assert.equal(diskUsageReport({ profile: "ex63", scratch: "", run }), null);});diff --git a/scripts/ci/self-hosted/lanes.mjs b/scripts/ci/self-hosted/lanes.mjsindex db2076d51e..85aae608b0 100644--- a/scripts/ci/self-hosted/lanes.mjs+++ b/scripts/ci/self-hosted/lanes.mjs@@ -522,7 +522,9 @@ export class Runner {this.finish(id, record.status);}const disk = diskUsageReport({ profile: this.plan.profile });- if (disk) logStream.write(`\n[ci][lanes] lane ${lane.name} end\n${disk}\n`);+ if (disk) {+ logStream.write(`\n[ci][lanes] lane ${lane.name} end\n${disk}\n`);+ }await new Promise((res) => logStream.end(res));// Dump the whole lane log once, folded, so parallel lanes never interleave.const failed = results.some((r) => r.status === "failure" && !r.reportOnly);