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

api: warn rather than fail if we've got a cached version. #14491

Merged
merged 1 commit into from Feb 3, 2023

Conversation

MikeMcQuaid
Copy link
Member

Rather than failing every time we fail to update (breaking most usage while offline) instead only fail if we cannot obtain the JSON and we don't have a valid local file we can use.

Also tweak the timeout and retry logic and values to make a bit more sense in this context and not be so noisy when offline.

Fixes #14451
Fixes #14455
Fixes #14462
Fixes #14489

@MikeMcQuaid MikeMcQuaid added the critical Critical change which should be shipped as soon as possible. label Feb 3, 2023
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

Copy link
Member

@Rylan12 Rylan12 left a comment

Choose a reason for hiding this comment

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

Thanks for this, looks great! Hopefully this will help

Rather than failing every time we fail to update (breaking most usage
while offline) instead only fail if we cannot obtain the JSON and we
don't have a valid local file we can use.

Also tweak the timeout and retry logic and values to make a bit more
sense in this context and not be so noisy when offline.
@Rylan12 Rylan12 merged commit 0518958 into Homebrew:master Feb 3, 2023
@MikeMcQuaid MikeMcQuaid deleted the api_non_fatal_errors branch February 3, 2023 10:52
@zhangyoufu zhangyoufu mentioned this pull request Feb 9, 2023
6 tasks
@github-actions github-actions bot added the outdated PR was locked due to age label Mar 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
3 participants