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: files changed tests/storage_agent_scopes_e2e.rs,tests/storage_delegation_e2e.rs,tests/storage
Steven Enamakelad016de0a76b
diff --git a/tests/storage_agent_scopes_e2e.rs b/tests/storage_agent_scopes_e2e.rsindex 19fc06f2ca..274a9b1b4e 100644--- a/tests/storage_agent_scopes_e2e.rs+++ b/tests/storage_agent_scopes_e2e.rs@@ -3,8 +3,7 @@//! scope, and a call with no acting agent in single-user mode falls back to//! the `local` scope.//!-//! Each driver is its own test case (see `support/storage_drivers.rs`). Its-//! own test binary because it installs a backend into the process-wide+//! Its own test binary because it installs a backend into the process-wide//! storage slot and boots a core.use std::sync::Arc;diff --git a/tests/storage_delegation_e2e.rs b/tests/storage_delegation_e2e.rsindex c2ee2a5344..6c16e97ee9 100644--- a/tests/storage_delegation_e2e.rs+++ b/tests/storage_delegation_e2e.rs@@ -1,10 +1,9 @@//! The delegation graph's durable checkpointer (`DriverCheckpointer` behind-//! `open_delegation_checkpointer`) on every storage driver: a checkpoint is-//! written and resumed, resumed again from a reopened backend when the driver-//! is durable, and two agents' scopes keep their checkpoints apart.+//! `open_delegation_checkpointer`) on a configured backend: a checkpoint is+//! written and resumed, resumed again from a reopened backend, and two+//! agents' scopes keep their checkpoints apart.//!-//! Each driver is its own test case (see `support/storage_drivers.rs`). Its-//! own test binary because it installs a backend into the process-wide+//! Its own test binary because it installs a backend into the process-wide//! storage slot.use std::sync::Arc;@@ -140,9 +139,9 @@ async fn the_delegation_checkpointer_resumes_and_keeps_scopes_apart() {assert!(local.list_threads().await.unwrap().is_empty());assert_eq!(plan_of(&local, "run-1").await, None);- // A durable driver resumes after the backend is reopened, as a restarted+ // The checkpoint resumes after the backend is reopened, as a restarted// process would.- if case.driver.is_durable() {+ {let url = case.url.clone();let reopened =openhuman_core::storage::block_on(diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rsindex 1e05d9b2d1..8766307e87 100644--- a/tests/storage_desktop_upgrade_e2e.rs+++ b/tests/storage_desktop_upgrade_e2e.rs@@ -15,9 +15,7 @@//! * 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.use std::collections::BTreeMap;use std::path::{Path, PathBuf};@@ -438,26 +436,6 @@ async fn import_modules(workspace: &Path) {#[tokio::test(flavor = "multi_thread", worker_threads = 2)]async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched() {let case = Case::open();- // TinyAgents' run ledger imports `sessions.db` (and appends to it) with- // checked batches, which a driver without `ValidatedBatch` refuses.- let local = case.backend().for_scope(&Scope::local()).unwrap();- if !local- .documents()- .capabilities()- .contains(Capability::ValidatedBatch)- {- // Written to the stderr handle, not with `eprintln!`, which the test- // harness captures for a passing test: the skip must show in the log.- use std::io::Write;- let _ = writeln!(- std::io::stderr(),- "skipped {}: the driver lacks the validated_batch capability the \- tinyagents run ledger needs to import sessions.db",- case.driver.name()- );- return;- }-std::env::set_var("OPENHUMAN_KEYRING_BACKEND", "file");std::env::set_var("OPENHUMAN_KEYRING_MASTER_KEY", "33".repeat(32));diff --git a/tests/storage_domains_e2e.rs b/tests/storage_domains_e2e.rsindex fd4f4e6ed4..39cf20468b 100644--- a/tests/storage_domains_e2e.rs+++ b/tests/storage_domains_e2e.rs@@ -3,7 +3,7 @@//!//! Its own test binary because it installs a backend into the process-wide//! storage slot, which would reroute every other suite's stores in a shared-//! process. Each driver runs as its own test case (see `support/storage_drivers.rs`), and the cases take turns on the slot.+//! process. The tests take turns on the slot (see `support/storage_case.rs`).use chrono::Utc;use openhuman_core::config::Config;diff --git a/tests/storage_flows_e2e.rs b/tests/storage_flows_e2e.rsindex c1f0400013..a96d919e0a 100644--- a/tests/storage_flows_e2e.rs+++ b/tests/storage_flows_e2e.rs@@ -3,7 +3,7 @@//!//! Its own test binary because it installs a backend into the process-wide//! storage slot, which would reroute every other suite's stores in a shared-//! process. Each driver runs as its own test case (see `support/storage_drivers.rs`), and the cases take turns on the slot.+//! process. The tests take turns on the slot (see `support/storage_case.rs`).use openhuman_core::config::Config;use openhuman_core::cron::{self, Schedule};diff --git a/tests/storage_scope_e2e.rs b/tests/storage_scope_e2e.rsindex ac6c6643c4..60431976dc 100644--- a/tests/storage_scope_e2e.rs+++ b/tests/storage_scope_e2e.rs@@ -8,8 +8,8 @@//! recorded once it is gone (a restarted process).//!//! Its own test binary because it installs a backend into the process-wide-//! storage slot and boots a core. Each driver is its own test case-//! (`support/storage_drivers.rs`), and the cases take turns.+//! storage slot and boots a core. The tests take turns on the slot+//! (`support/storage_case.rs`).use std::sync::Arc;diff --git a/tests/storage_secrets_e2e.rs b/tests/storage_secrets_e2e.rsindex 4c7fbd1c86..562baf74a0 100644--- a/tests/storage_secrets_e2e.rs+++ b/tests/storage_secrets_e2e.rs@@ -3,8 +3,8 @@//!//! Its own test binary because it installs a backend into the process-wide//! storage slot and sets the keyring master-key environment, which would-//! reroute every other suite's secrets in a shared process. Each driver is its-//! own test case (`support/storage_drivers.rs`), and the cases take turns.+//! reroute every other suite's secrets in a shared process. The tests take+//! turns on the slot (`support/storage_case.rs`).use openhuman_core::security::credentials::http_creds::{HttpCredential, HttpCredentialsStore};use openhuman_core::security::credentials::profiles::{AuthProfile, AuthProfilesStore};