The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(ci): validate mongodb e2e url host exactly
Steven Enamakel25c0f1033d6a
diff --git a/.github/workflows/storage-mongodb.yml b/.github/workflows/storage-mongodb.ymlindex 5f0db0b201..4d269629e5 100644--- a/.github/workflows/storage-mongodb.yml+++ b/.github/workflows/storage-mongodb.yml@@ -57,6 +57,7 @@ on:- "tests/storage_*.rs"- "tests/cli_storage_url_e2e.rs"- "tests/storage_desktop_upgrade_e2e.rs"+ - "tests/tinymcp_storage_smoke_e2e.rs"- "scripts/e2e-core.sh"- "scripts/test-rust-e2e.sh"- "tests/support/storage_drivers.rs"diff --git a/scripts/e2e-core.sh b/scripts/e2e-core.shindex 4d94c06b1a..ee5bc91fe3 100755--- a/scripts/e2e-core.sh+++ b/scripts/e2e-core.sh@@ -43,7 +43,22 @@ case "$driver" inexit 2ficase "$base" in- mongodb://localhost*|mongodb://127.0.0.1*|mongodb://\[::1\]*) ;;+ mongodb://*) ;;+ *) echo "[e2e-core] ERROR: TSD_MONGO_URL must be a mongodb:// URL." >&2; exit 2 ;;+ esac+ # Judge the complete host (userinfo and port stripped), not a prefix:+ # mongodb://localhost.example.com must not pass as loopback.+ hostpart="${base#mongodb://}"+ hostpart="${hostpart%%/*}"+ hostpart="${hostpart%%\?*}"+ hostpart="${hostpart##*@}"+ hostpart="${hostpart%%,*}"+ case "$hostpart" in+ \[::1\]|\[::1\]:*) ;;+ *) hostpart="${hostpart%%:*}" ;;+ esac+ case "$hostpart" in+ localhost|127.0.0.1|\[::1\]|\[::1\]:*) ;;*) echo "[e2e-core] ERROR: TSD_MONGO_URL must name a local throwaway server." >&2; exit 2 ;;esacdb="oh_e2e_core_$(date +%s)_$$"