Skip to content

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

fix(scripts): isolate module-backed e2e tests in fresh processes

Steven Enamakel04a0f567fb96
diff --git a/scripts/test-rust-e2e.sh b/scripts/test-rust-e2e.sh
index b0401b05ff..611a8da048 100755
--- a/scripts/test-rust-e2e.sh
+++ b/scripts/test-rust-e2e.sh
@@ -296,24 +296,26 @@ run_in_process_modules() {
[ -n "$module" ] || continue
echo "[rust-e2e] in_process module: ${module}"
if [ "$module" = "domain_modules_e2e" ]; then
- # MCP tests use TinyMCP's process-global runtime. A different test's RPC
- # host teardown can close it, so keep those three cases in fresh
- # processes while the other domain tests share their usual harness.
- local -a isolated_mcp_tests=(
+ # TinyFlows and TinyMCP use process-global module runtimes. A different
+ # test's RPC host teardown can leave a later module call unavailable, so
+ # run module-backed cases in fresh processes and keep the remaining
+ # domain tests together in their normal harness.
+ local -a isolated_module_tests=(
+ domain_modules_e2e::cron_update_applies_a_partial_patch_without_clobbering_unset_fields
domain_modules_e2e::mcp_audit_list_dispatches_internally_and_stays_out_of_the_schema_dump
domain_modules_e2e::mcp_clients_read_paths_validate_before_reaching_outward
domain_modules_e2e::mcp_tool_description_scan_flags_injection_and_spares_ordinary_prose
)
- local -a skip_mcp_tests=()
+ local -a skip_module_tests=()
local test_name
- for test_name in "${isolated_mcp_tests[@]}"; do
- skip_mcp_tests+=(--skip "$test_name")
+ for test_name in "${isolated_module_tests[@]}"; do
+ skip_module_tests+=(--skip "$test_name")
done
bash "$SCRIPT_DIR/ci-cancel-aware.sh" "$CARGO_BIN" test \
--manifest-path Cargo.toml --features "$PRODUCT_FEATURES" \
--test in_process_all -- "${module}::" --test-threads=1 \
- "${skip_mcp_tests[@]}" ${EXTRA_ARGS[@]+"${EXTRA_ARGS[@]}"}
- for test_name in "${isolated_mcp_tests[@]}"; do
+ "${skip_module_tests[@]}" ${EXTRA_ARGS[@]+"${EXTRA_ARGS[@]}"}
+ for test_name in "${isolated_module_tests[@]}"; do
echo "[rust-e2e] isolated test: ${test_name}"
bash "$SCRIPT_DIR/ci-cancel-aware.sh" "$CARGO_BIN" test \
--manifest-path Cargo.toml --features "$PRODUCT_FEATURES" \