-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add out of context compaction test via error proxy #5805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5d95472
4ec2d98
df2ba9e
708f6d6
79ba3f8
9419ada
9c79b39
e805b3c
cb0bc1c
c27ac89
1fa40e0
23518fd
634b9b1
aef68ee
0dab0fa
b34517c
10788e3
6e5e24d
0746f17
7b0c7b0
c126a72
6d8bb98
a88f3c6
4f09ea8
c74ad54
9b2d8a0
0278e2b
fa2fe06
6f47acc
53fa6f4
4a110cb
4bbd3cf
b0c9fc2
830246e
dbc0a18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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); | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This thing is a big pain when testing with the proxy; need to be very precise and knowledgable about how many times it will backoff.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. makes sense. If you want, you could turn it into a real config variable, but that's probably overkill |
||
| sleep(delay).await; | ||
| } | ||
| continue; | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you still need setup-python if you are using the uv action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah tried the uv first and it didn't seem to come with python.