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
test(self-hosted-lanes): cover rust debug profile env overrides
Steven Enamakelffaf1670aa4b
diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjsindex b5f7723ff8..5131ece3ac 100644--- a/scripts/__tests__/self-hosted-lanes.test.mjs+++ b/scripts/__tests__/self-hosted-lanes.test.mjs@@ -1030,3 +1030,22 @@ test("failed offline examples block release cleanup while independent Rust validfs.rmSync(out, { recursive: true, force: true });}});++test("private ordinary Rust builds keep line tables while coverage and hosted profiles remain unchanged", () => {+ for (const plan of plans()) {+ for (const lane of plan.lanes.filter((lane) => lane.heavy != null)) {+ const expected = lane.name === "rust-cov" ? "0" : plan.profile === "ex63" ? "line-tables-only" : undefined;+ assert.equal(lane.env.CARGO_PROFILE_DEV_DEBUG, expected, `${plan.profile}:${lane.name}`);+ assert.equal(lane.env.CARGO_PROFILE_TEST_DEBUG, undefined, "test inherits the dev profile without a separate override");+ assert.equal(lane.env.CARGO_PROFILE_RELEASE_DEBUG, undefined, "release keeps the manifest profile");+ for (const check of lane.checks) {+ const env = { ...lane.env, ...check.env };+ const coverage = check.name === "rust-core-coverage" || check.run.includes("cargo llvm-cov nextest") || check.name === "tauri-coverage";+ if (coverage) assert.equal(env.CARGO_PROFILE_DEV_DEBUG, "0", `${plan.profile}:${check.name} remains uninstrumented-debug-free`);+ if (plan.profile === "ex63" && lane.name === "rust-lint") assert.equal(env.CARGO_PROFILE_DEV_DEBUG, "line-tables-only", check.name);+ assert.equal(env.CARGO_PROFILE_TEST_DEBUG, undefined);+ assert.equal(env.CARGO_PROFILE_RELEASE_DEBUG, undefined);+ }+ }+ }+});