Skip to content

Cloud Requirements: increase timeout and retries#10631

Merged
alexsong-oai merged 2 commits intomainfrom
gt/more-robust-cloud-req-load
Feb 5, 2026
Merged

Cloud Requirements: increase timeout and retries#10631
alexsong-oai merged 2 commits intomainfrom
gt/more-robust-cloud-req-load

Conversation

@gt-oai
Copy link
Contributor

@gt-oai gt-oai commented Feb 4, 2026

Add retries and an increased-length timeout for loading Cloud Requirements.

self.fetch_with_retries(&auth).await
}

async fn fetch_with_retries(&self, auth: &CodexAuth) -> Option<ConfigRequirementsToml> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have shared code for this kind of things that support exp backoff etc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

am depending on backoff here. I can introduce a retry crate but would argue unnecessary for a for-loop

}
}

struct SequenceFetcher {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like a very non idiomatic way to a retry policy

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just in the test, to force retries?

@gt-oai gt-oai force-pushed the gt/more-robust-cloud-req-load branch 4 times, most recently from a5b1353 to 5ddc8a4 Compare February 4, 2026 23:32
@gt-oai gt-oai force-pushed the gt/more-robust-cloud-req-load branch from 5ddc8a4 to 8014b74 Compare February 5, 2026 00:14
@gt-oai gt-oai marked this pull request as ready for review February 5, 2026 00:43
@alexsong-oai alexsong-oai enabled auto-merge (squash) February 5, 2026 01:39
@alexsong-oai alexsong-oai merged commit 1f47e08 into main Feb 5, 2026
55 of 59 checks passed
@alexsong-oai alexsong-oai deleted the gt/more-robust-cloud-req-load branch February 5, 2026 01:52
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants