Skip to content

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

fix(ci): set line-tables-only debug info for ex63 rust lanes

Steven Enamakel45eb17c4d247
diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjs
index 5131ece3ac..7c5885a509 100644
--- a/scripts/__tests__/self-hosted-lanes.test.mjs
+++ b/scripts/__tests__/self-hosted-lanes.test.mjs
@@ -1034,15 +1034,45 @@ test("failed offline examples block release cleanup while independent Rust valid
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");
+ 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);
+ 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} keeps coverage debug=0`,
+ );
+ 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);
}
diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjs
index 74f3170ec3..13d3d8a958 100644
--- a/scripts/ci/self-hosted/lanes-plan.mjs
+++ b/scripts/ci/self-hosted/lanes-plan.mjs
@@ -141,6 +141,9 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {
const rustEnv = ex63
? {
CARGO_INCREMENTAL: "0",
+ // Keep file/line backtraces without full variable/type DWARF in
+ // ordinary dev and inherited test builds. Coverage overrides this.
+ CARGO_PROFILE_DEV_DEBUG: "line-tables-only",
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER:
"/usr/local/bin/rust-mold-linker",
}