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
fix(ci): handle empty and failing skipped-test inventory
Steven Enamakel07ec8d57be50
diff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.ymlindex 5a69155ff3..f06b1c2197 100644--- a/.github/workflows/ci-lite.yml+++ b/.github/workflows/ci-lite.yml@@ -725,11 +725,12 @@ jobs:CARGO_BUILD_JOBS: "1"- name: Run ignored TinyJuice tool-output regression- run: >-+ run: |+ test_path="agent::tinyagents::middleware::tests::tool_output_tests::compaction_tests::tool_output_tabulates_a_large_graph_for_a_non_exempt_tool"+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman --lib --features modules -- --ignored --list \+ | grep -Fx "${test_path}: test"bash scripts/ci-cancel-aware.sh cargo test -p openhuman --lib- --features modules- agent::tinyagents::middleware_tool_output_compaction_tests::tool_output_tabulates_a_large_graph_for_a_non_exempt_tool- -- --ignored --exact --test-threads=1+ --features modules "${test_path}" -- --ignored --exact --test-threads=1env:CARGO_BUILD_JOBS: "1"diff --git a/scripts/__tests__/module-test-runner.test.mjs b/scripts/__tests__/module-test-runner.test.mjsindex 6f9b757e61..2cef1fd113 100644--- a/scripts/__tests__/module-test-runner.test.mjs+++ b/scripts/__tests__/module-test-runner.test.mjs@@ -59,3 +59,23 @@ test("rejects a vacuous ignored-test inventory", () => {assert.equal(result.status, 1);assert.match(result.stderr, /inventory is empty/);});++test("fails when the skipped-test inventory command fails", () => {+ const root = fs.mkdtempSync(path.join(os.tmpdir(), "openhuman-module-tests-skipped-failure-"));+ const bin = path.join(root, "bin");+ fs.mkdirSync(bin);+ fs.writeFileSync(+ path.join(bin, "node"),+ `#!/usr/bin/env bash+if [[ "$*" == *"--skipped"* ]]; then exit 23; fi+printf '%s\\n' one+`,+ { mode: 0o755 },+ );+ fs.writeFileSync(path.join(bin, "cargo"), "#!/usr/bin/env bash\nexit 0\n", { mode: 0o755 });++ const result = spawnSync(runner, { cwd: repoRoot, env: { ...process.env, PATH: `${bin}:${process.env.PATH}` }, encoding: "utf8" });+ fs.rmSync(root, { recursive: true, force: true });++ assert.equal(result.status, 23, `${result.stdout}\n${result.stderr}`);+});diff --git a/scripts/ci/run-module-gated-tests.sh b/scripts/ci/run-module-gated-tests.shindex 46c756a135..a66b968bdd 100755--- a/scripts/ci/run-module-gated-tests.sh+++ b/scripts/ci/run-module-gated-tests.sh@@ -9,8 +9,12 @@ FEATURES="${MODULE_TEST_FEATURES:-modules}"LIST_OUTPUT="$(mktemp)"trap 'rm -f "$LIST_OUTPUT"' EXIT-mapfile -t TEST_NAMES < <(node scripts/ci/list-module-gated-tests.mjs)-mapfile -t SKIPPED_NAMES < <(node scripts/ci/list-module-gated-tests.mjs --skipped)+TEST_NAMES_OUTPUT="$(node scripts/ci/list-module-gated-tests.mjs)"+SKIPPED_NAMES_OUTPUT="$(node scripts/ci/list-module-gated-tests.mjs --skipped)"+TEST_NAMES=()+SKIPPED_NAMES=()+if [ -n "$TEST_NAMES_OUTPUT" ]; then mapfile -t TEST_NAMES <<< "$TEST_NAMES_OUTPUT"; fi+if [ -n "$SKIPPED_NAMES_OUTPUT" ]; then mapfile -t SKIPPED_NAMES <<< "$SKIPPED_NAMES_OUTPUT"; fiif [ "${#TEST_NAMES[@]}" -eq 0 ]; thenecho "::error::module-gated test inventory is empty; refusing a vacuous pass" >&2exit 1