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(ci): cover uninstrumented composio stack regression lane
Steven Enamakeld3d913115423
diff --git a/scripts/__tests__/rust-coverage-status.test.mjs b/scripts/__tests__/rust-coverage-status.test.mjsindex 981fb71629..34cd460cbc 100644--- a/scripts/__tests__/rust-coverage-status.test.mjs+++ b/scripts/__tests__/rust-coverage-status.test.mjs@@ -388,12 +388,35 @@ for (const platform of ["Linux", "Darwin", "MINGW64_NT-10.0", "Windows_NT"]) {test("coverage inventory exceptions match the source gates and remain required at selection", () => {assert.match(- fs.readFileSync(path.join(repoRoot, "tests/composio_list_tools_stack_overflow_regression.rs"), "utf8"),+ fs.readFileSync(+ path.join(+ repoRoot,+ "tests/composio_list_tools_stack_overflow_regression.rs",+ ),+ "utf8",+ ),/#!\[cfg\(not\(coverage\)\)\]/,);- const windows = fs.readFileSync(path.join(repoRoot, "tests/windows_sandbox_env_e2e.rs"), "utf8");- const functions = [...windows.matchAll(/#\[cfg\(windows\)\]\s*#\[(?:tokio::)?test(?:\([^\n]*\))?\]/g)];- assert.ok(functions.length > 0, "Windows-only fixture must retain gated tests");- assert.equal(functions.length, [...windows.matchAll(/#\[(?:tokio::)?test(?:\([^\n]*\))?\]/g)].length, "every Windows fixture test must remain gated");- assert.match(fs.readFileSync(runner, "utf8"), /target_features_satisfied "\$\{target\}" && target_expected_in_coverage "\$\{target\}"/);+ const windows = fs.readFileSync(+ path.join(repoRoot, "tests/windows_sandbox_env_e2e.rs"),+ "utf8",+ );+ const functions = [+ ...windows.matchAll(+ /#\[cfg\(windows\)\]\s*#\[(?:tokio::)?test(?:\([^\n]*\))?\]/g,+ ),+ ];+ assert.ok(+ functions.length > 0,+ "Windows-only fixture must retain gated tests",+ );+ assert.equal(+ functions.length,+ [...windows.matchAll(/#\[(?:tokio::)?test(?:\([^\n]*\))?\]/g)].length,+ "every Windows fixture test must remain gated",+ );+ assert.match(+ fs.readFileSync(runner, "utf8"),+ /target_features_satisfied "\$\{target\}" && target_expected_in_coverage "\$\{target\}"/,+ );});diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjsindex f03ee94f26..731a389728 100644--- a/scripts/__tests__/self-hosted-lanes.test.mjs+++ b/scripts/__tests__/self-hosted-lanes.test.mjs@@ -869,3 +869,25 @@ test("private frontend tools have an explicit 4 GiB Node heap while hosted keeps}}});++test("private CI executes the coverage-disabled Composio stack regression once without instrumentation", () => {+ for (const plan of plans()) {+ const lint = plan.lanes.find((lane) => lane.name === "rust-lint");+ const checks = lint.checks.filter((check) => check.name === "composio-stack-regression-uninstrumented");+ if (plan.profile === "ex63") {+ assert.equal(checks.length, 1);+ assert.equal(checks[0].when, true);+ assert.match(checks[0].run, /bash scripts\/ci\/nextest-coverage\.sh composio-stack-uninstrumented cargo nextest run --profile ci --no-tests=fail --no-fail-fast/);+ assert.match(checks[0].run, /-p openhuman-cli --features "\$\(bash scripts\/ci\/product-features\.sh --core\)" --test composio_list_tools_stack_overflow_regression$/);+ assert.doesNotMatch(checks[0].run, /llvm-cov|--no-default-features/);+ assert.equal(lint.targetDir, "target/ci-private-build");+ } else {+ assert.equal(checks.length, 0);+ }+ }+ const unrelated = buildPlan({ profile: "ex63", areas: NONE, env: EX63_ENV });+ assert.ok(unrelated.lanes.flatMap((lane) => lane.checks).filter((check) => check.name === "composio-stack-regression-uninstrumented").every((check) => !check.when));+ const source = fs.readFileSync(path.join(repoRoot, "tests/composio_list_tools_stack_overflow_regression.rs"), "utf8");+ assert.match(source, /#!\[cfg\(not\(coverage\)\)\]/);+ assert.doesNotMatch(source, /^\s*#\[ignore/m);+});