Skip to content

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

test(ci): cover nextest validation helpers in path filters

Steven Enamakel56e42e79552b
diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjs
index 22a0571d3a..d3e28b3819 100644
--- a/scripts/__tests__/self-hosted-lanes.test.mjs
+++ b/scripts/__tests__/self-hosted-lanes.test.mjs
@@ -912,3 +912,15 @@ test("private CI executes the coverage-disabled Composio stack regression once w
assert.match(source, /#!\[cfg\(not\(coverage\)\)\]/);
assert.doesNotMatch(source, /^\s*#\[ignore/m);
});
+
+test("nextest validation helpers arm Rust validation and script regressions on their own", () => {
+ const filters = fs.readFileSync(path.join(repoRoot, ".github/ci-paths-filter.yml"), "utf8");
+ for (const area of ["rust-core", "scripts"]) {
+ const block = filters.split(new RegExp(`^${area}:\\s*$`, "m"))[1].split(/^\S[^\n]*:/m)[0];
+ for (const file of ["scripts/ci/nextest-coverage.sh", "scripts/ci/nextest-report.mjs"]) {
+ assert.ok(block.includes(`'${file}'`), `${file} must arm ${area}`);
+ }
+ }
+ const scripts = filters.split(/^scripts:\s*$/m)[1].split(/^\S[^\n]*:/m)[0];
+ assert.ok(scripts.includes("'scripts/lib/**'"), "module-pin-inventory.mjs is covered by the shared script library glob");
+});