-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Consider retries in SymbolsValidationRule
due to intermittent HTTP errors
#539
Comments
There is already a retry policy (SharedHttpClient), but it may not be sufficient as GitHub can limit the concurrency. I think it could be improved by handling correctly the status code 429 (I would accept a PR). For GitHub, I think the best fix is to allow specifying an authentication token. GitHub is less restrictive when a request is authenticated. In the case of GitHub Actions, you can use the job token:
The new package will be published by https://github.com/meziantou/Meziantou.Framework/actions/runs/5392720755 Note: You can also exclude the rule 119 if it's too flaky using |
Ah, cool. I dug into the rule code, but not the
Might be (almost always) better as a default to use something more exponential?
Since the status code is never revealed in the error, I'm not sure it's a 429 although I'm guessing it's probably the case.
Thanks for the tip and cheers for the quick turnaround with PR #540!
Right, though I'd rather not as it could be, while unlikely, a true negative. |
I'm using your excellent package validation tool (thanks!) in the CI builds for MoreLINQ. Recently, I've noticed the CI builds failing during package validation with the error code 119:
Meziantou.Framework/src/Meziantou.Framework.NuGetPackageValidation/Rules/ErrorCodes.cs
Line 53 in f35b1c3
An example of the output from the tool is:
The error seems to be intermittent and fails on different URLs and images of the build each time. When I try to access the identified URL, it works. When I re-run the CI build, it usually passes. Would you consider adding a retry? If so, I'd be glad to send a PR with an implementation.
The text was updated successfully, but these errors were encountered: