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(json_rpc_e2e): seed legacy rows before core startup migration
Steven Enamakel8fec37db32d6
diff --git a/evidence/issue75/native-host-e2e-preseed.after b/evidence/issue75/native-host-e2e-preseed.afternew file mode 100644index 0000000000..3393a25247--- /dev/null+++ b/evidence/issue75/native-host-e2e-preseed.after@@ -0,0 +1 @@+6435b242a35b9c69fcaccad0f91c440393c303c1diff --git a/evidence/issue75/native-host-e2e-preseed.before b/evidence/issue75/native-host-e2e-preseed.beforenew file mode 100644index 0000000000..3393a25247--- /dev/null+++ b/evidence/issue75/native-host-e2e-preseed.before@@ -0,0 +1 @@+6435b242a35b9c69fcaccad0f91c440393c303c1diff --git a/evidence/issue75/native-host-e2e-preseed.exit b/evidence/issue75/native-host-e2e-preseed.exitnew file mode 100644index 0000000000..398050c62c--- /dev/null+++ b/evidence/issue75/native-host-e2e-preseed.exit@@ -0,0 +1 @@+101diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rsindex f46330ff7d..0e3e76c34f 100644--- a/tests/json_rpc_e2e.rs+++ b/tests/json_rpc_e2e.rs@@ -2710,9 +2710,7 @@ fn json_rpc_cron_manual_worker_survives_caller_cancel_on_published_tinyflows() {}async fn json_rpc_cron_manual_worker_survives_caller_cancel_on_published_tinyflows_inner() {- use openhuman_core::storage::{- CollectionSpec, DocumentStore, Precondition, Scope, StorageBackend,- };+ use openhuman_core::storage::{CollectionSpec, Precondition, Scope, StorageUrl};use openhuman_core::{config::Config,core::{@@ -2788,10 +2786,11 @@ async fn json_rpc_cron_manual_worker_survives_caller_cancel_on_published_tinyflo};config.storage.url = Some(storage_url.clone());- // Install the exact backend CoreContext will use before seeding. Opening- // the local fallback alone is insufficient: core boot may subsequently- // install/rebind the configured backend, leaving a fixture in the wrong DB.- let backend = openhuman_core::storage::open(&storage_url)+ // Open the exact configured backend without the host boot wrapper, which+ // runs composed schema migrations immediately. Seed the legacy v1 rows+ // first, then let normal CoreContext startup perform the real migration.+ let parsed_url = StorageUrl::parse(&storage_url).expect("parse the configured storage URL");+ let backend = tinystoragedrivers::open(&parsed_url).await.expect("open the host's workspace storage backend");openhuman_core::storage::install_for_url(&storage_url, Arc::clone(&backend));