-
Notifications
You must be signed in to change notification settings - Fork 44
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
[Muxer] De-duplicate identical error messages in CheckConfigure #1418
Comments
Edit: There seem to be two related issues here. De-duplicating the error messages does fix the issue of duplicate errors when no aws region is set but some of the errors are almost but not quite identical, like the one above. Original: Is there some other failure case which triggers identical errors? (Edit: there is, a missing aws region does cause identical errors.) With pulumi/pulumi-aws#2285 (comment) the errors raised are not actually identical. The RequestIDs are different:
After deleting my credentials cache I am still getting two slightly different errors:
|
The muxer previously de-duplicated `CheckFailure`s but not go errors. This PR should add that and address #1418 but not the original issue in pulumi/pulumi-aws#2285 (comment). See #1418 (comment) This fixes duplicated error messages in the aws-provider when no aws region is specified. Before: ``` error: rpc error: code = Unknown desc = 2 errors occurred: * unable to validate AWS credentials. Details: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, failed to resolve service endpoint, endpoint rule error, Invalid Configuration: Missing Region Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`. * unable to validate AWS credentials. Details: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, failed to resolve service endpoint, endpoint rule error, Invalid Configuration: Missing Region Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`. ``` After: ``` error: rpc error: code = Unknown desc = unable to validate AWS credentials. Details: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, failed to resolve service endpoint, endpoint rule error, Invalid Configuration: Missing Region Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`. ```
pulumi/pulumi-gcp#129 related still open. |
Hello!
Issue details
The muxer de-duplicates identical CheckConfig's
plugin.CheckFailure
, but doesn't do anything with pure goerror
s. It should compare the error messagesreflect.Equal
orerr1.Error() == err2.Error()
and discard one error if they are the same. This avoids duplicate errors showing up in muxed providers.See pulumi/pulumi-aws#2285 (comment) for details.
Affected area/feature
The text was updated successfully, but these errors were encountered: