Skip to content

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

fix(ci): isolate nextest report dir in lane test and use const for args

Steven Enamakelf202fd70c6aa
diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjs
index 5e9c7e5d25..907c9496d6 100644
--- a/scripts/__tests__/self-hosted-lanes.test.mjs
+++ b/scripts/__tests__/self-hosted-lanes.test.mjs
@@ -443,6 +443,7 @@ test("private auxiliary coverage reports after failed tests and preserves the fa
...process.env,
PATH: `${dir}:${process.env.PATH}`,
CARGO_CALLS: calls,
+ NEXTEST_REPORT_DIR: path.join(dir, "reports"),
},
});
assert.equal(result.status, 17);
diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjs
index 9dac06f8bb..f5f9f8a8c9 100644
--- a/scripts/ci/self-hosted/lanes-plan.mjs
+++ b/scripts/ci/self-hosted/lanes-plan.mjs
@@ -598,7 +598,7 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {
const [cargoArgs, filters] = check.run
.slice("cargo test ".length)
.split(" -- ");
- let args = cargoArgs.replace("--no-fail-fast ", "");
+ const args = cargoArgs.replace("--no-fail-fast ", "");
let expression = "";
let serial = "";
if (filters) {