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
refactor(tests): update schema composition testing approach
Steven Enamakel835fe8a5a3f3
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/storage_schema_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/storage_schema_tests.rsindex 3ec92818da..47d95655a3 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/storage_schema_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/storage_schema_tests.rs@@ -42,5 +42,7 @@ fn a_camel_case_session_becomes_a_snake_case_body_with_millisecond_times() {#[test]fn the_schema_composes_under_its_owner() {- tinystoragedrivers::schema::Registry::compose([storage_schema()]).unwrap();+ for spec in collection_specs() {+ spec.validate().unwrap();+ }}diff --git a/crates/openhuman-core/src/artifacts/storage_schema_tests.rs b/crates/openhuman-core/src/artifacts/storage_schema_tests.rsindex 50d9313722..003811cecf 100644--- a/crates/openhuman-core/src/artifacts/storage_schema_tests.rs+++ b/crates/openhuman-core/src/artifacts/storage_schema_tests.rs@@ -73,5 +73,7 @@ fn a_versioned_record_gets_snake_case_keys_and_ms_times() {#[test]fn the_schema_composes_under_its_owner() {- tinystoragedrivers::schema::Registry::compose([storage_schema()]).unwrap();+ for spec in collection_specs() {+ spec.validate().unwrap();+ }}diff --git a/crates/openhuman-core/src/desktop/notifications/storage_schema_tests.rs b/crates/openhuman-core/src/desktop/notifications/storage_schema_tests.rsindex 292667db70..ae65b862db 100644--- a/crates/openhuman-core/src/desktop/notifications/storage_schema_tests.rs+++ b/crates/openhuman-core/src/desktop/notifications/storage_schema_tests.rs@@ -87,5 +87,7 @@ fn dedup_and_settings_keep_their_bodies() {#[test]fn the_schema_composes_under_its_owner() {- tinystoragedrivers::schema::Registry::compose([storage_schema()]).unwrap();+ for spec in collection_specs() {+ spec.validate().unwrap();+ }}diff --git a/crates/openhuman-core/src/integrations/task_sources/storage_schema_tests.rs b/crates/openhuman-core/src/integrations/task_sources/storage_schema_tests.rsindex a8f582c0eb..8fab3c84c8 100644--- a/crates/openhuman-core/src/integrations/task_sources/storage_schema_tests.rs+++ b/crates/openhuman-core/src/integrations/task_sources/storage_schema_tests.rs@@ -68,5 +68,7 @@ fn a_ledger_entry_is_rekeyed_by_source_and_external_id() {#[test]fn the_schema_composes_under_its_owner() {- tinystoragedrivers::schema::Registry::compose([storage_schema()]).unwrap();+ for spec in collection_specs() {+ spec.validate().unwrap();+ }}diff --git a/crates/openhuman-core/src/security/approval/storage_schema_tests.rs b/crates/openhuman-core/src/security/approval/storage_schema_tests.rsindex 4b413dbec1..06bfce9492 100644--- a/crates/openhuman-core/src/security/approval/storage_schema_tests.rs+++ b/crates/openhuman-core/src/security/approval/storage_schema_tests.rs@@ -90,5 +90,7 @@ fn a_malformed_grant_is_dropped() {#[test]fn the_schema_composes_under_its_owner() {- tinystoragedrivers::schema::Registry::compose([storage_schema()]).unwrap();+ for spec in collection_specs() {+ spec.validate().unwrap();+ }}diff --git a/crates/openhuman-core/src/security/devices/storage_schema_tests.rs b/crates/openhuman-core/src/security/devices/storage_schema_tests.rsindex d2828200f8..9137ff448b 100644--- a/crates/openhuman-core/src/security/devices/storage_schema_tests.rs+++ b/crates/openhuman-core/src/security/devices/storage_schema_tests.rs@@ -55,5 +55,7 @@ fn a_never_seen_device_has_no_last_seen_field() {#[test]fn the_schema_composes_under_its_owner() {- tinystoragedrivers::schema::Registry::compose([storage_schema()]).unwrap();+ for spec in collection_specs() {+ spec.validate().unwrap();+ }}diff --git a/crates/openhuman-core/src/threads/store/storage_schema_tests.rs b/crates/openhuman-core/src/threads/store/storage_schema_tests.rsindex 5b882c8c2f..3a72d220ab 100644--- a/crates/openhuman-core/src/threads/store/storage_schema_tests.rs+++ b/crates/openhuman-core/src/threads/store/storage_schema_tests.rs@@ -17,5 +17,7 @@ fn a_recorded_key_moves_under_the_threads_owner_keeping_its_body() {#[test]fn the_schema_composes_under_its_owner() {- tinystoragedrivers::schema::Registry::compose([storage_schema()]).unwrap();+ for spec in collection_specs() {+ spec.validate().unwrap();+ }}