Add out of context compaction test via error proxy (#5805)

This commit is contained in:
David Katz
2025-11-21 14:51:01 -05:00
committed by GitHub
parent 0354d9ede4
commit c1c772b267
5 changed files with 289 additions and 77 deletions
+11 -2
View File
@@ -109,8 +109,17 @@ pub trait ProviderRetry {
_ => config.delay_for_attempt(attempts),
};
tracing::info!("Backing off for {:?} before retry", delay);
sleep(delay).await;
let skip_backoff = std::env::var("GOOSE_PROVIDER_SKIP_BACKOFF")
.unwrap_or_default()
.parse::<bool>()
.unwrap_or(false);
if skip_backoff {
tracing::info!("Skipping backoff due to GOOSE_PROVIDER_SKIP_BACKOFF");
} else {
tracing::info!("Backing off for {:?} before retry", delay);
sleep(delay).await;
}
continue;
}