Skip to content

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

chore: files changed scripts/test-rust-e2e.sh

Steven Enamakel01c252f69361
diff --git a/scripts/test-rust-e2e.sh b/scripts/test-rust-e2e.sh
index 01db152412..d6a43e1834 100755
--- a/scripts/test-rust-e2e.sh
+++ b/scripts/test-rust-e2e.sh
@@ -295,12 +295,28 @@ run_in_process_modules() {
while IFS= read -r module; do
[ -n "$module" ] || continue
echo "[rust-e2e] in_process module: ${module}"
- local -a suite_args=()
if [ "$module" = "domain_modules_e2e" ]; then
- # These tests open TinyMCP through a process-global module runtime. Run
- # them serially so another test's teardown cannot close it mid-request.
- suite_args+=(--test-threads=1)
+ # Each test boots and tears down the in-process RPC host. MCP tests also
+ # use TinyMCP's process-global module runtime, so they cannot share a
+ # process with another test that shuts that runtime down.
+ local test_names test_name
+ test_names="$(bash "$SCRIPT_DIR/ci-cancel-aware.sh" "$CARGO_BIN" test \
+ --manifest-path Cargo.toml --features "$PRODUCT_FEATURES" \
+ --test in_process_all -- "${module}::" --list | sed -n 's/: test$//p')"
+ if [ -z "$test_names" ]; then
+ echo "::error::in_process module ${module} selected no tests" >&2
+ return 1
+ fi
+ while IFS= read -r test_name; do
+ [ -n "$test_name" ] || continue
+ echo "[rust-e2e] isolated test: ${test_name}"
+ bash "$SCRIPT_DIR/ci-cancel-aware.sh" "$CARGO_BIN" test \
+ --manifest-path Cargo.toml --features "$PRODUCT_FEATURES" \
+ --test in_process_all -- "$test_name" --exact ${EXTRA_ARGS[@]+"${EXTRA_ARGS[@]}"}
+ done <<< "$test_names"
+ continue
fi
+ local -a suite_args=()
bash "$SCRIPT_DIR/ci-cancel-aware.sh" "$CARGO_BIN" test \
--manifest-path Cargo.toml --features "$PRODUCT_FEATURES" \
--test in_process_all -- "${module}::" ${EXTRA_ARGS[@]+"${EXTRA_ARGS[@]}"} "${suite_args[@]}"