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
test(e2e): run tinymcp storage smoke suite serially
Steven Enamakel5907762079a2
diff --git a/scripts/e2e-core.sh b/scripts/e2e-core.shnew file mode 100755index 0000000000..7ed7d61a7a--- /dev/null+++ b/scripts/e2e-core.sh@@ -0,0 +1,77 @@+#!/usr/bin/env bash+#+# Headless core e2e on a configured storage backend (#7522 acceptance).+#+# Runs the headless Rust e2e suites against the mock backend with+# OPENHUMAN_STORAGE_URL set, so the core under test keeps everything in the+# chosen backend instead of the per-workspace default:+#+# scripts/e2e-core.sh sqlite # sqlite:<scratch dir>+# scripts/e2e-core.sh mongodb # needs TSD_MONGO_URL (a local replica set)+#+# MongoDB: start one with+# vendor/tinyagents/vendor/tinystoragedrivers/.github/scripts/start-mongo-replset.sh 27017+# and export TSD_MONGO_URL=mongodb://127.0.0.1:27017/tsd_test?directConnection=true+# (the storage-mongodb workflow does exactly this). The URL must be loopback:+# the run creates a database of its own and writes to it.+#+# Extra arguments after the driver name are suites for scripts/test-rust-e2e.sh+# (`--suite <name>`); the default is the headless set below.+set -euo pipefail++SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"++driver="${1:-sqlite}"+[ $# -gt 0 ] && shift++# Suites that boot the core headless (JSON-RPC and the CLI) and so honour+# OPENHUMAN_STORAGE_URL. Suites that pin their own storage setup (the+# storage_*_e2e matrix, which opens each driver itself) are run by their own CI+# lanes.+DEFAULT_SUITES=(json_rpc_e2e cli_storage_url_e2e)++scratch="$(mktemp -d "$REPO_ROOT/target/e2e-core.XXXXXX" 2>/dev/null || { mkdir -p "$REPO_ROOT/target" && mktemp -d "$REPO_ROOT/target/e2e-core.XXXXXX"; })"+trap 'rm -rf "$scratch"' EXIT++case "$driver" in+ sqlite)+ export OPENHUMAN_STORAGE_URL="sqlite:$scratch/storage"+ ;;+ mongodb)+ base="${TSD_MONGO_URL:-}"+ if [ -z "$base" ]; then+ echo "[e2e-core] ERROR: TSD_MONGO_URL is not set (a loopback replica set is required)." >&2+ exit 2+ fi+ case "$base" in+ mongodb://localhost*|mongodb://127.0.0.1*|mongodb://\[::1\]*) ;;+ *) echo "[e2e-core] ERROR: TSD_MONGO_URL must name a local throwaway server." >&2; exit 2 ;;+ esac+ db="oh_e2e_core_$(date +%s)_$$"+ head="${base%%\?*}"+ query=""+ [ "$head" != "$base" ] && query="?${base#*\?}"+ authority="${head#mongodb://}"+ authority="${authority%%/*}"+ export OPENHUMAN_STORAGE_URL="mongodb://${authority}/${db}${query}"+ # The product build carries the sqlite driver only; add mongodb.+ export OPENHUMAN_E2E_EXTRA_FEATURES="storage-mongodb"+ ;;+ *)+ echo "usage: $0 [sqlite|mongodb] [--suite <name> ...]" >&2+ exit 2+ ;;+esac++# Shared backends keep secrets under the keyring master key and fail closed+# without one; CI has no OS keychain.+export OPENHUMAN_KEYRING_MASTER_KEY="${OPENHUMAN_KEYRING_MASTER_KEY:-$(printf '55%.0s' $(seq 1 32))}"++echo "[e2e-core] driver=$driver (OPENHUMAN_STORAGE_URL set)"+if [ $# -eq 0 ]; then+ args=()+ for suite in "${DEFAULT_SUITES[@]}"; do args+=(--suite "$suite"); done+ set -- "${args[@]}"+fi+exec bash "$SCRIPT_DIR/test-rust-e2e.sh" "$@"diff --git a/scripts/test-rust-e2e.sh b/scripts/test-rust-e2e.shindex 74eee9d791..7ab8f199f3 100755--- a/scripts/test-rust-e2e.sh+++ b/scripts/test-rust-e2e.sh@@ -281,6 +281,17 @@ for suite in "${SUITES[@]}"; do--test "$suite" -- --ignored --test-threads=1 ${EXTRA_ARGS[@]+"${EXTRA_ARGS[@]}"}continuefi+ if [ "$suite" = "tinymcp_storage_smoke_e2e" ]; then+ # Released TinyMCP cdylib under the real host and its storage backend+ # (#7737). Ignored in a bare `cargo test` because it needs the staged+ # module; the staging above put it on OPENHUMAN_MODULE_PATH. It spawns+ # openhuman-core twice, so run it serially.+ echo "[rust-e2e] $CARGO_BIN test --manifest-path Cargo.toml --test $suite (--ignored, serial)"+ bash "$SCRIPT_DIR/ci-cancel-aware.sh" "$CARGO_BIN" test \+ --manifest-path Cargo.toml --features "$PRODUCT_FEATURES" \+ --test "$suite" -- --ignored --test-threads=1 ${EXTRA_ARGS[@]+"${EXTRA_ARGS[@]}"}+ continue+ fiif [ "$suite" = "tinydocs_linked_e2e" ]; then# This local-only E2E target is outside the product feature set. Enable# its required linked implementation explicitly instead of failing Cargo's