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(sync-pipeline-e2e): include failed job details in panic message
Steven Enamakel924dcdf279ee
diff --git a/src/openhuman/memory/sync_pipeline_e2e_tests.rs b/src/openhuman/memory/sync_pipeline_e2e_tests.rsindex 4a424fff74..42ed9b52b4 100644--- a/src/openhuman/memory/sync_pipeline_e2e_tests.rs+++ b/src/openhuman/memory/sync_pipeline_e2e_tests.rs@@ -315,7 +315,22 @@ async fn multi_batch_volume_builds_full_tree() {let source_tree = loop {drain_until_idle(&cfg).await.unwrap();if memory_queue::count_by_status(&cfg, JobStatus::Failed).unwrap() > 0 {- panic!("memory jobs failed before the source tree sealed");+ let failed_jobs = tinymemory_core::store::chunks::with_connection(&cfg, |conn| {+ let mut stmt = conn.prepare(+ "SELECT kind, attempts, last_error FROM mem_tree_jobs \+ WHERE status = 'failed' ORDER BY created_at_ms",+ )?;+ let rows = stmt.query_map([], |row| {+ Ok((+ row.get::<_, String>(0)?,+ row.get::<_, i64>(1)?,+ row.get::<_, Option<String>>(2)?,+ ))+ })?;+ rows.collect::<Result<Vec<_>, _>>().map_err(Into::into)+ })+ .unwrap();+ panic!("memory jobs failed before the source tree sealed: {failed_jobs:?}");}if let Some(tree) = tree_store::list_trees_by_kind(&cfg, TreeKind::Source).unwrap()