Skip to content

Make cache-write failures non-fatal#12302

Merged
charliermarsh merged 1 commit intomainfrom
charlie/caches
Jul 12, 2024
Merged

Make cache-write failures non-fatal#12302
charliermarsh merged 1 commit intomainfrom
charlie/caches

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

Closes #12284.

@charliermarsh charliermarsh added bug Something isn't working windows Specific to the Windows platform labels Jul 12, 2024
@charliermarsh charliermarsh marked this pull request as draft July 12, 2024 13:03
@charliermarsh
Copy link
Copy Markdown
Member Author

One sec, making some changes.

@charliermarsh charliermarsh marked this pull request as ready for review July 12, 2024 13:07
self.path.display()
)
})?;
if let Err(err) = temp_file.persist(&self.path) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The open method on this struct already uses a similar pattern of warning (but ignoring) some errors.

@github-actions
Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@zanieb
Copy link
Copy Markdown
Member

zanieb commented Jul 12, 2024

Should we be retrying like we do in uv?

@charliermarsh
Copy link
Copy Markdown
Member Author

I don't think we should in this case because it's not a guard against anti-virus stuff like with binaries; it's a guard against the file being in-use, and it's not clear how long we'd expect that to be true or whether we should expect it to resolve.

@charliermarsh charliermarsh merged commit e58713e into main Jul 12, 2024
@charliermarsh charliermarsh deleted the charlie/caches branch July 12, 2024 14:33
@jaraco
Copy link
Copy Markdown
Contributor

jaraco commented Jul 13, 2024

Thanks for the fast fix (and the fast release cadence so I don't have to inquire about when we might get the fix)!

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.

Access Denied error due to race saving cache file on Windows

3 participants