Skip to content
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

fix: retry failed repodata streaming on io error #1017

Merged

Conversation

baszalmstra
Copy link
Collaborator

This PR adds retry behavior to failed repodata.json.* downloading if an io error is encountered.

I tried adding a test for this but I failed to create a situation where during streaming the server exits.

@baszalmstra baszalmstra requested a review from wolfv January 7, 2025 13:17
@wolfv
Copy link
Contributor

wolfv commented Jan 7, 2025

In the package cache tests, we have some tests where the server stops responding halfway through a file (with some custom flaky middlewares). That does not work?

@baszalmstra
Copy link
Collaborator Author

I managed to create a test that verifies the behavior!

@wolfv
Copy link
Contributor

wolfv commented Jan 8, 2025

@baszalmstra is this one ready to be merged? I wanted to make a new release of rattler to get my sandbox changes in :)

@wolfv wolfv merged commit 2133141 into conda:main Jan 8, 2025
15 checks passed
@baszalmstra baszalmstra mentioned this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants