Skip to content

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

fix(ci): serialize config auth app state connectivity e2e tests

Steven Enamakel2cf8ebc98040
diff --git a/scripts/test-rust-e2e.sh b/scripts/test-rust-e2e.sh
index 611a8da048..ad7b67dd40 100755
--- a/scripts/test-rust-e2e.sh
+++ b/scripts/test-rust-e2e.sh
@@ -295,6 +295,15 @@ run_in_process_modules() {
while IFS= read -r module; do
[ -n "$module" ] || continue
echo "[rust-e2e] in_process module: ${module}"
+ if [ "$module" = "config_auth_app_state_connectivity_e2e" ]; then
+ # These RPC fixtures share process-global credential and listener state;
+ # serialize them so one test cannot drop another test's ephemeral server.
+ 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 \
+ ${EXTRA_ARGS[@]+"${EXTRA_ARGS[@]}"}
+ continue
+ fi
if [ "$module" = "domain_modules_e2e" ]; then
# TinyFlows and TinyMCP use process-global module runtimes. A different
# test's RPC host teardown can leave a later module call unavailable, so
diff --git a/scripts/test-rust-with-mock.sh b/scripts/test-rust-with-mock.sh
index cd18f346b5..d2c142a423 100755
--- a/scripts/test-rust-with-mock.sh
+++ b/scripts/test-rust-with-mock.sh
@@ -270,8 +270,16 @@ run_in_process_modules() {
while IFS= read -r module; do
[ -n "$module" ] || continue
echo "[test-rust-with-mock] in-process module: ${module}"
- OPENHUMAN_MODULE_PATH="$connectors_module_path" \
- cargo_test --test in_process_all -- "${module}::" "$@"
+ if [ "$module" = "config_auth_app_state_connectivity_e2e" ]; then
+ # RPC fixtures in this module bind ephemeral listeners and mutate
+ # process-wide credential state; parallel tests can tear down a peer's
+ # listener before its final auth call.
+ OPENHUMAN_MODULE_PATH="$connectors_module_path" \
+ cargo_test --test in_process_all -- "${module}::" --test-threads=1 "$@"
+ else
+ OPENHUMAN_MODULE_PATH="$connectors_module_path" \
+ cargo_test --test in_process_all -- "${module}::" "$@"
+ fi
done < <(in_process_modules)
}