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
Provider downloads from a third party fails #11013
Comments
This might just have been rate limits? I wonder if we can pull the request body text off for that error to make it a bit more clear. |
Hey Lee! Do I understand this issue correctly?
|
I think you could quibble over this being a bug or enhancement, I don't think we want to auto-retry all 403's in plugin install but that error message could be a lot better. Rather than just saying 403, github would have given some details in the http response as well but we don't bother looking at that. |
Ah, I see what you're getting at re: bug vs feature. I interpreted this issue as specifically a bug in the behavior of the AA function that Lee added in the linked PR. Whoops, I get it now. |
@Frassle would you agree that this is a usability consideration we could fix? It feels like the domain of "First 48H"-style usability and error message issues (I know that epic is done with, just trying to draw an analogy). |
Yes, it's just a very unhelpful error message. |
12307: Retry 403 rate limit errors from github r=Frassle a=Frassle <!--- Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation. --> # Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> Adding a small retry loop to the github downloader to retry 403 errors _iff_ they're due to rate limits. We can't just retry all 403 errors because that code could be returned for other errors as well. Fixes #11013 ## Checklist <!--- Please provide details if the checkbox below is to be left unchecked. --> - [x] I have added tests that prove my fix is effective or that my feature works <!--- User-facing changes require a CHANGELOG entry. --> - [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change <!-- If the change(s) in this PR is a modification of an existing call to the Pulumi Service, then the service should honor older versions of the CLI where this change would not exist. You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add it to the service. --> - [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. --> Co-authored-by: Fraser Waters <fraser@pulumi.com>
12307: Retry 403 rate limit errors from github r=Frassle a=Frassle <!--- Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation. --> # Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> Adding a small retry loop to the github downloader to retry 403 errors _iff_ they're due to rate limits. We can't just retry all 403 errors because that code could be returned for other errors as well. Fixes #11013 ## Checklist <!--- Please provide details if the checkbox below is to be left unchecked. --> - [x] I have added tests that prove my fix is effective or that my feature works <!--- User-facing changes require a CHANGELOG entry. --> - [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change <!-- If the change(s) in this PR is a modification of an existing call to the Pulumi Service, then the service should honor older versions of the CLI where this change would not exist. You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add it to the service. --> - [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. --> Co-authored-by: Fraser Waters <fraser@pulumi.com>
What happened?
When trying to test the download of third-party plugins from GitHub, we get a 403 error.
These commands work fine locally.
Steps to reproduce
Enable the
Test
Expected Behavior
It downloads the plugin
Actual Behavior
We get a 403
Output of
pulumi about
No response
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: