Skip to content

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

Merge remote-tracking branch 'upstream/main' into tinywallet-release-0192

Steven Enamakel725f83f89a4b
diff --cc crates/openhuman-core/src/cron/store_tests.rs
index 6075a0772e,8da83e1d10..009a847379
--- a/crates/openhuman-core/src/cron/store_tests.rs
+++ b/crates/openhuman-core/src/cron/store_tests.rs
@@@ -17,9 -17,8 +17,9 @@@ fn test_config(tmp: &TempDir) -> Confi
config
}
+#[cfg(feature = "storage-sqlite")]
#[test]
- fn database_lives_at_workspace_cron_schedule_db() {
+ fn jobs_live_in_the_workspace_default_database() {
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
add_job(&config, "*/5 * * * *", "echo ok").unwrap();
@@@ -66,9 -65,8 +66,9 @@@ fn agent_context
)
}
+#[cfg(feature = "storage-sqlite")]
#[tokio::test]
- async fn an_agents_jobs_live_in_its_own_database() {
+ async fn an_agents_jobs_live_in_its_own_scope() {
use crate::core::runtime::CoreContext;
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
@@@ -133,9 -127,8 +129,9 @@@ fn legacy_fixture() -> std::path::PathB
.join("src/storage/import/fixtures/tinyflows/workspace/cron/jobs.db")
}
+#[cfg(feature = "storage-sqlite")]
#[test]
- fn a_legacy_jobs_db_is_imported_on_first_use_and_left_untouched() {
+ fn a_legacy_jobs_db_is_imported_by_the_storage_importer_and_left_untouched() {
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
let legacy = legacy_db_path(&config);
diff --cc crates/openhuman-core/src/storage/import/mod.rs
index 8f01e3163f,f046d87b15..2f76c75086
--- a/crates/openhuman-core/src/storage/import/mod.rs
+++ b/crates/openhuman-core/src/storage/import/mod.rs
@@@ -159,12 -187,7 +187,7 @@@ pub async fn run(config: &Config) -> Ve
return Vec::new();
}
let config = config.clone();
- let joined = crate::core::runtime::spawn_blocking_scoped(move || {
- let mut reports = run_with(&backend, &config, &sources());
- reports.extend(tinyflows::run_with(&backend, &config));
- reports
- })
- .await;
- let joined = tokio::task::spawn_blocking(move || run_all(&backend, &config)).await;
++ let joined = crate::core::runtime::spawn_blocking_scoped(move || run_all(&backend, &config)).await;
match joined {
Ok(reports) => reports,
Err(error) => {