From 10fceb160745b876c600398cd4866f56ff7f015d Mon Sep 17 00:00:00 2001 From: TAMARA LIPOWSKI Date: Wed, 3 Sep 2025 00:48:31 -0400 Subject: [PATCH] fix: Don't error if stream ends tycho-indexer may exit with non-zero status when stream ends normally Not entirely confident in this commit - please double-check --- protocol-testing/src/tycho_runner.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/protocol-testing/src/tycho_runner.rs b/protocol-testing/src/tycho_runner.rs index 1baeb3a..b3d59d8 100644 --- a/protocol-testing/src/tycho_runner.rs +++ b/protocol-testing/src/tycho_runner.rs @@ -54,6 +54,8 @@ impl TychoRunner { &start_block.to_string(), "--stop-block", &(end_block + 2).to_string(), // +2 is to make up for the cache in the index side + "--dci-plugin", + "rpc", ]); if !all_accounts.is_empty() { @@ -81,8 +83,11 @@ impl TychoRunner { .wait() .into_diagnostic() .wrap_err("Failed to wait on Tycho indexer process")?; + + // Note: tycho-indexer may exit with non-zero status when stream ends normally + // This is expected behavior and should not be treated as an error if !status.success() { - return Err(miette!("Process exited with non-zero status: {status}")); + debug!("Tycho indexer process exited with status: {status}"); } Ok(())