Skip to content

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

ci: broaden e2e test target matching in CI scripts

Steven Enamakeld8054564f152
diff --git a/.github/workflows/test-reusable.yml b/.github/workflows/test-reusable.yml
index 773d53935d..b57f6e8743 100644
--- a/.github/workflows/test-reusable.yml
+++ b/.github/workflows/test-reusable.yml
@@ -327,12 +327,16 @@ jobs:
--features "${CLI_FEATURES}" --test "${target}" \
"${test_name}" -- --exact --test-threads=1
done
+ elif [[ "${module}" =~ ^(config|auth|app_state|connectivity)_e2e$ ]]; then
+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman-cli \
+ --features "${CLI_FEATURES}" --test "${target}" -- \
+ "${module}::" --test-threads=1
else
bash scripts/ci-cancel-aware.sh cargo test -p openhuman-cli \
--features "${CLI_FEATURES}" --test "${target}" -- "${module}::"
fi
done < <(in_process_modules)
- elif [ "${target}" = "json_rpc_e2e" ]; then
+ elif [[ "${target}" =~ ^json_rpc_.*_e2e$ ]]; then
# JSON-RPC E2E cases change process-global provider routes and
# environment. A single parallel libtest process lets one case
# leak its route into another; run each case in a fresh process,
diff --git a/scripts/ci/rust-coverage.sh b/scripts/ci/rust-coverage.sh
index f91d8f6d42..baa1242a6e 100755
--- a/scripts/ci/rust-coverage.sh
+++ b/scripts/ci/rust-coverage.sh
@@ -193,7 +193,7 @@ run_integration_target() {
# as scripts/test-rust-with-mock.sh does.
suite "${target}" llvm_cov --no-report --no-fail-fast -p openhuman-cli \
--test "${target}" -- --test-threads=1
- elif [ "${target}" = "json_rpc_e2e" ]; then
+ elif [[ "${target}" =~ ^json_rpc_.*_e2e$ ]]; then
# JSON-RPC tests share runtime/config globals and must remain serial.
suite "${target}" llvm_cov --no-report --no-fail-fast -p openhuman-cli \
--test "${target}" -- --test-threads=1