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

Don't clear cache if an error was authentication-related #63

Merged
merged 7 commits into from
Nov 15, 2023

Conversation

timsutton
Copy link
Member

@timsutton timsutton commented Nov 15, 2023

Sometimes there is issues with authentication (machine config or github.com issue), and I think we don't want this to be the reason that the cache is ever cleared.

This adds a new method to specifically handle an auth-related error, and also allows such errors to be retry-able (as they are sometimes transient).

Also CI was red but it seemed like Ruby env issues, so updating things on that front too.

@timsutton timsutton force-pushed the tsutton/dont-clear-cache-if-auth-error branch from 9d36711 to fc77498 Compare November 15, 2023 18:48
@timsutton timsutton marked this pull request as ready for review November 15, 2023 18:56
@timsutton timsutton requested review from justinseanmartin, gyfelton and polac24 and removed request for justinseanmartin November 15, 2023 19:04
@@ -366,7 +373,8 @@ def retriable_error?(error)
/^fatal: pack has \d+ unresolved delta/,
/^error: unable to read sha1 file of /,
/^fatal: did not receive expected object/,
/^fatal: unable to read tree [a-z0-9]+\n^warning: Clone succeeded, but checkout failed/
/^fatal: unable to read tree [a-z0-9]+\n^warning: Clone succeeded, but checkout failed/,
/^fatal: Authentication failed/
Copy link
Member

Choose a reason for hiding this comment

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

🙇 🙇 🙇

@timsutton timsutton merged commit 04014b9 into master Nov 15, 2023
5 checks passed
@timsutton timsutton deleted the tsutton/dont-clear-cache-if-auth-error branch November 15, 2023 19:41
This pull request was closed.
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.

3 participants