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

Add backoff for transient Windows failures #2419

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Mar 13, 2024

Summary

This may be required elsewhere, but all the traces in that issue are related to persisting the temporary directory to our persistent cache, so lets start there.

See: #1491.

@charliermarsh charliermarsh added bug Something isn't working windows Specific to the Windows platform labels Mar 13, 2024
@charliermarsh charliermarsh marked this pull request as ready for review March 13, 2024 17:10
@@ -206,7 +206,7 @@ impl Cache {
}

/// Persist a temporary directory to the artifact store.
pub fn persist(
pub async fn persist(
Copy link
Member Author

Choose a reason for hiding this comment

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

Important that this is async now because we don't want to block the thread during the backoff phase.

@charliermarsh charliermarsh merged commit d9b160b into main Mar 13, 2024
28 checks passed
@charliermarsh charliermarsh deleted the charlie/backoff branch March 13, 2024 17:16
zanieb added a commit that referenced this pull request Jun 28, 2024
#2419 appears to have only applied
this retry to wheels that were already downloaded (though I would have
to look more carefully to be certain). In
#1491, we've gotten continued
reports of spurious failures on Windows and tracing reveals that we are
not applying our retry logic during the rename. I believe we're in this
code path — switching to our backoff retry should resolve the failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Specific to the Windows platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants