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
chore(storage): drop MongoDB from PR lanes and e2e scripts
Steven Enamakel91f47907fed4
diff --git a/.github/ci-paths-filter.yml b/.github/ci-paths-filter.ymlindex d443407bcf..bf6020edbe 100644--- a/.github/ci-paths-filter.yml+++ b/.github/ci-paths-filter.yml@@ -209,7 +209,6 @@ scripts:- 'tests/storage_*.rs'- 'tests/cli_storage_url_e2e.rs'- 'crates/openhuman-cli/Cargo.toml'- - '.github/workflows/storage-mongodb.yml'# Test-wiring surface: a change here can orphan a test or add an# untested controller domain → run the inventory guard.inventory:@@ -234,15 +233,13 @@ install_ps1:- 'scripts/ci/self-hosted/**'- 'scripts/install.ps1'- 'scripts/tests/OpenHumanWindowsInstall.Tests.ps1'-# The storage ports and the domains that sit on them (storage-sqlite /-# storage-file lane in the lane plan; MongoDB runs nightly in its own workflow,-# storage-mongodb.yml, not on pull requests). The vendor tree is covered whole,+# The storage ports and the domains that sit on them (storage-sqlite lane in+# the lane plan). The vendor tree is covered whole,# like `rust-core`: the ports and drivers are vendored, and a pointer bump# anywhere can change what the driver features compile.storage:- '.config/nextest.toml'- '.github/workflows/ci-*.yml'- - '.github/workflows/storage-mongodb.yml'- '.github/ci-paths-filter.yml'- 'scripts/ci/self-hosted/**'- 'scripts/ci/nextest-coverage.sh'diff --git a/crates/openhuman-rpc/src/session_store/README.md b/crates/openhuman-rpc/src/session_store/README.mdindex aebb08a0a8..cc7ac5554e 100644--- a/crates/openhuman-rpc/src/session_store/README.md+++ b/crates/openhuman-rpc/src/session_store/README.md@@ -48,4 +48,4 @@ database.| File | Contents || --- | --- || [`mod.rs`](mod.rs) | `install_for_host`, `provider_for_host`, `install_for_url`, `provider_for_url`, `install_for_saas`, and the URL resolution. |-| [`mod_tests.rs`](mod_tests.rs) | The driver-backed store per driver (memory, SQLite, file, and MongoDB when `TSD_MONGO_URL` names a local server), the environment URL, an unusable URL, and the no-URL SaaS case. |+| [`mod_tests.rs`](mod_tests.rs) | Storage URL installation, environment URL resolution, an unusable URL, and the no-URL SaaS case. TinyAgents owns driver conformance tests. |diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjsindex d30dae928a..68255da9f2 100644--- a/scripts/ci/self-hosted/lanes-plan.mjs+++ b/scripts/ci/self-hosted/lanes-plan.mjs@@ -55,8 +55,8 @@ export const HOSTED_GROUPS = [},{ group: "rust-cov", lanes: ["rust-cov"], maxParallel: 1, container: true },{ group: "tauri", lanes: ["tauri"], maxParallel: 1, container: true },- // The storage drivers build the core with features no other lane enables,- // so they get a runner (and a `target/`) of their own.+ // Storage keeps the eleven SQLite e2e targets and feature-combination+ // compile check on an isolated runner with its own `target/`.{group: "storage",lanes: ["storage-drivers"],@@ -72,7 +72,7 @@ const CORE_PRODUCT = '"$(bash scripts/ci/product-features.sh --core)"';// The storage-drivers lane: the drivers it turns on, the root e2e targets that// run once per driver (tests/support/storage_drivers.rs), and the lib-test// filters of the domains that sit on the storage ports.-const STORAGE_DRIVERS = "storage-sqlite,storage-file";+const STORAGE_DRIVERS = "storage-sqlite";const STORAGE_E2E_TARGETS = ["storage_approvals_e2e","storage_domains_e2e",@@ -556,12 +556,11 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {],},{- // The sqlite and file storage drivers, which no other lane compiles in:- // every `storage_*_e2e` target runs once per driver (memory, sqlite,- // file) and the stores that sit on the storage ports run their lib- // tests with the drivers on. The MongoDB driver needs a replica set and- // has its own workflow (storage-mongodb.yml). Armed by the `storage`- // area (.github/ci-paths-filter.yml).+ // Every storage target runs on memory and SQLite; the dedicated runner+ // also compiles the optional MongoDB and file feature combination.+ // Keeping the lane separate retains isolated capacity for eleven+ // integration targets plus the storage-port tests. Armed by the+ // `storage` area (.github/ci-paths-filter.yml).name: "storage-drivers",// Compiles the core crate with its own feature set: holds one of the// VM's heavy-compile slots (lanes.mjs). Lower number = served first.@@ -576,6 +575,11 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {`cargo test --no-fail-fast -p openhuman-cli --features ${STORAGE_DRIVERS}` +STORAGE_E2E_TARGETS.map((t) => ` --test ${t}`).join(""),},+ {+ name: "storage-feature-compile",+ when: areas.storage,+ run: "cargo check -p openhuman-cli --features storage-mongodb,storage-file",+ },{name: "storage-lib-tests",when: areas.storage,diff --git a/scripts/e2e-core.sh b/scripts/e2e-core.shindex 9c1f1af074..d8f9fbbd68 100755--- a/scripts/e2e-core.sh+++ b/scripts/e2e-core.sh@@ -7,16 +7,6 @@# 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 tinystoragedrivers' .github/scripts/start-mongo-replset.sh-# (https://github.com/tinyhumansai/tinystoragedrivers, tag v0.11.0) as-# curl -fsSL -o start-mongo-replset.sh \-# https://raw.githubusercontent.com/tinyhumansai/tinystoragedrivers/9eeef54aea403ac07461a612189bdf4982782823/.github/scripts/start-mongo-replset.sh-# bash 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.## What runs: `tests/tinymcp_storage_smoke_e2e.rs` spawns the real `openhuman-core# serve` twice on one workspace with OPENHUMAN_STORAGE_URL set, loads the@@ -28,7 +18,6 @@ set -euo pipefailSCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"-extra_features=""driver="${1:-sqlite}"[ $# -gt 0 ] && shift@@ -39,50 +28,8 @@ case "$driver" insqlite)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://*) ;;- *) echo "[e2e-core] ERROR: TSD_MONGO_URL must be a mongodb:// URL." >&2; exit 2 ;;- esac- # Judge every seed host in full (userinfo, port, query stripped), not a- # prefix: mongodb://localhost.example.com or a second remote seed in a- # comma-separated list must not pass as loopback.- hostlist="${base#mongodb://}"- hostlist="${hostlist%%/*}"- hostlist="${hostlist%%\?*}"- hostlist="${hostlist##*@}"- old_ifs="$IFS"- IFS=','- for hostpart in $hostlist; do- IFS="$old_ifs"- 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 only local throwaway servers." >&2; exit 2 ;;- esac- IFS=','- done- IFS="$old_ifs"- 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.- extra_features=",storage-mongodb"- ;;*)- echo "usage: $0 [sqlite|mongodb] [test-binary args]" >&2+ echo "usage: $0 [sqlite] [test-binary args]" >&2exit 2;;esac@@ -103,7 +50,7 @@ export OPENHUMAN_MODULE_PATH="$tinymcp_dir${OPENHUMAN_MODULE_PATH:+:$OPENHUMAN_Mexport RUST_MIN_STACK="${RUST_MIN_STACK:-16777216}"cd "$REPO_ROOT"-features="$(bash "$SCRIPT_DIR/ci/product-features.sh")$extra_features"+features="$(bash "$SCRIPT_DIR/ci/product-features.sh")"bash "$SCRIPT_DIR/ci-cancel-aware.sh" cargo test -p openhuman-cli \--features "$features,e2e-test-support" --test tinymcp_storage_smoke_e2e -- \--test-threads=1 "$@"diff --git a/scripts/test-rust-e2e.sh b/scripts/test-rust-e2e.shindex ad7b67dd40..723cba2ee0 100755--- a/scripts/test-rust-e2e.sh+++ b/scripts/test-rust-e2e.sh@@ -208,7 +208,7 @@ fi# them with Cargo's default feature set makes the runner fail before a test can# execute. Keep this list in the same canonical source as `pnpm test:rust`.PRODUCT_FEATURES="$(bash "$REPO_ROOT/scripts/ci/product-features.sh")"-# scripts/e2e-core.sh adds a storage driver (storage-mongodb) the product set lacks.+# scripts/e2e-core.sh uses the product storage driver set.if [ -n "${OPENHUMAN_E2E_EXTRA_FEATURES:-}" ]; thenPRODUCT_FEATURES="$PRODUCT_FEATURES,$OPENHUMAN_E2E_EXTRA_FEATURES"fidiff --git a/tests/cli_storage_url_e2e.rs b/tests/cli_storage_url_e2e.rsindex b3a8b3dafb..fe59ce4a2a 100644--- a/tests/cli_storage_url_e2e.rs+++ b/tests/cli_storage_url_e2e.rs@@ -68,9 +68,7 @@ fn one_shot(url: &str, args: &[&str]) -> (std::process::Output, tempfile::TempDi(output, workspace)}-/// Every driver is asked the same thing: write a job in one process, list in-/// another. A durable driver shows it to the second process; `memory` keeps-/// nothing between processes, so it must not.+/// SQLite is asked to persist a job written by one process for another.fn a_second_process_reads_what_a_one_shot_wrote_to_the_backend(case: UrlCase) {let args = ["cron",@@ -98,17 +96,10 @@ fn a_second_process_reads_what_a_one_shot_wrote_to_the_backend(case: UrlCase) {String::from_utf8_lossy(&listed.stderr));let stdout = String::from_utf8_lossy(&listed.stdout);- if case.driver.is_durable() {- assert!(- stdout.contains("storage-probe"),- "second process sees the job: {stdout}"- );- } else {- assert!(- !stdout.contains("storage-probe"),- "memory keeps nothing between processes: {stdout}"- );- }+ assert!(+ stdout.contains("storage-probe"),+ "second process sees the job: {stdout}"+ );// And without the URL the same fresh workspace has nothing.let workspace = tempfile::tempdir().unwrap();@@ -124,4 +115,15 @@ fn a_second_process_reads_what_a_one_shot_wrote_to_the_backend(case: UrlCase) {);}-driver_cases!(url a_second_process_reads_what_a_one_shot_wrote_to_the_backend);+#[cfg(feature = "storage-sqlite")]+mod sqlite {+ use super::*;++ #[test]+ fn a_second_process_reads_what_a_one_shot_wrote_to_the_backend() {+ storage_drivers::run_url(+ storage_drivers::Driver::Sqlite,+ super::a_second_process_reads_what_a_one_shot_wrote_to_the_backend,+ );+ }+}diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rsindex e142383cd5..e47a0161b2 100644--- a/tests/storage_desktop_upgrade_e2e.rs+++ b/tests/storage_desktop_upgrade_e2e.rs@@ -15,9 +15,8 @@//! * no file of the workspace was modified, created or removed.//!//! Its own binary: it installs a storage backend into the process-wide slot and-//! sets the keyring master key. Each driver is its own case-//! (`support/storage_drivers.rs`), so the MongoDB case runs in the-//! `storage-mongodb` workflow against the replica set.+//! sets the keyring master key. Memory and SQLite are separate cases+//! (`support/storage_drivers.rs`).use std::collections::BTreeMap;use std::path::{Path, PathBuf};