Skip to content

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

feat(cli): register live CortexDB integration test

Steven Enamakel7e863fc4baed
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.toml
index f8ec4f0152..3ad80236d9 100644
--- a/crates/openhuman-cli/Cargo.toml
+++ b/crates/openhuman-cli/Cargo.toml
@@ -144,6 +144,13 @@ path = "../../tests/memory_v2_e2e.rs"
# Memory v2 over JSON-RPC against the shared node mock backend
# (`scripts/mock-api-server.mjs`, which needs `node` on PATH).
+[[test]]
+name = "memory_cortexdb_live"
+path = "../../tests/memory_cortexdb_live.rs"
+# Memory v2 through the real `openhuman-core` binary against a live CortexDB.
+# Skips unless OPENHUMAN_LIVE_CORTEXDB_URL is set; run it with
+# scripts/test-memory-cortexdb-live.sh, which boots the server in Docker.
+
[[test]]
name = "json_rpc_e2e"
path = "../../tests/json_rpc_e2e.rs"
diff --git a/tests/memory_cortexdb_live.rs b/tests/memory_cortexdb_live.rs
index c35e612037..70848ce65b 100644
--- a/tests/memory_cortexdb_live.rs
+++ b/tests/memory_cortexdb_live.rs
@@ -16,9 +16,6 @@
//! - **context.md**: compiled from the engine, written to disk, and injected
//! into the first message of the next new thread.
-#[path = "support/env_guard.rs"]
-mod env_guard;
-
use std::net::TcpListener;
use std::path::{Path, PathBuf};
use std::process::{Child, Command, Stdio};
@@ -308,7 +305,6 @@ fn memory_v2_runs_end_to_end_on_a_live_cortexdb() {
}
async fn run(cortex_url: String, cortex_key: String) {
- let _lock = env_guard::env_lock_with_file_keyring();
let stack = Stack::boot(&cortex_url).await;
// Sign in (the agent's inference goes through the mock backend).