Skip to content

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

test(sync-pipeline): add panic on failed jobs during tree build

Steven Enamakele67443a00e32
diff --git a/src/openhuman/memory/sync_pipeline_e2e_tests.rs b/src/openhuman/memory/sync_pipeline_e2e_tests.rs
index 685582ed67..4a424fff74 100644
--- a/src/openhuman/memory/sync_pipeline_e2e_tests.rs
+++ b/src/openhuman/memory/sync_pipeline_e2e_tests.rs
@@ -314,6 +314,9 @@ async fn multi_batch_volume_builds_full_tree() {
let deadline = tokio::time::Instant::now() + std::time::Duration::from_secs(60);
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");
+ }
if let Some(tree) = tree_store::list_trees_by_kind(&cfg, TreeKind::Source)
.unwrap()
.into_iter()