Skip to content

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

fix(scripts): run domain_modules_e2e tests serially

Steven Enamakela6f692c28a98
diff --git a/scripts/test-rust-e2e.sh b/scripts/test-rust-e2e.sh
index abe9667705..01db152412 100755
--- a/scripts/test-rust-e2e.sh
+++ b/scripts/test-rust-e2e.sh
@@ -295,9 +295,15 @@ 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)
+ fi
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[@]}"}
+ --test in_process_all -- "${module}::" ${EXTRA_ARGS[@]+"${EXTRA_ARGS[@]}"} "${suite_args[@]}"
done < <(
find "$REPO_ROOT/tests/in_process" -maxdepth 1 -type f -name '*.rs' -print |
sed -e 's#.*/##' -e 's#\.rs$##' |