Skip to content

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

test(self-hosted-lanes): cover offline embed module install in rust-lint

Steven Enamakelb9b65a089f4f
diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjs
index 643d3a1268..cee83d1040 100644
--- a/scripts/__tests__/self-hosted-lanes.test.mjs
+++ b/scripts/__tests__/self-hosted-lanes.test.mjs
@@ -1106,6 +1106,17 @@ test("offline examples build in the dev profile so no release artifacts need cle
}
});
+test("offline embed examples install staged modules in their own rust-lint job", () => {
+ for (const plan of plans()) {
+ const lint = plan.lanes.find((lane) => lane.name === "rust-lint");
+ const install = lint.checks.find((check) => check.name === "install-test-modules");
+ const examples = lint.checks.find((check) => check.name === "embed-offline-examples");
+ assert.ok(install, `${plan.profile} rust-lint must provision its module artifacts`);
+ assert.match(install.run, /install-test-modules\.sh/);
+ assert.deepEqual(examples.needs, ["install-test-modules"]);
+ }
+});
+
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)) {