-
Notifications
You must be signed in to change notification settings - Fork 155
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
Fix redrive_allow_policy JSON diff in upstream provider #4749
base: master
Are you sure you want to change the base?
Conversation
PR is now waiting for a maintainer to run the acceptance tests. |
Hey @csssuf, thanks for the contribution! Could you please cut an issue describing what's currently not working and whether there's any workarounds? Given that this introduces a patch for the upstream terraform provider we should also cut an issue on their end describing the problem. I'm happy to do that, just need an issue on our end first so I have enough context. |
No problem - I'll put together a minimal repro to include. |
Opened #4760 - let me know if it needs anything else! |
Thanks @csssuf! I'll take a look if this repros in upstream Terraform and cut the necessary issues if it does. We're generally trying to be careful about introducing patches because they're an increased maintenance burden. I'll bring this up for discussion internally once I figured out if that's an upstream issue or needs fixing on the Pulumi side. Ideally we also need a regression test for this. A good example is this one here that also tests for spurious diffs: pulumi-aws/provider/provider_nodejs_test.go Lines 262 to 277 in 0e03d6a
If you don't have the necessary setup, I can also add the regression test to the PR based on the repro you added to the issue. Let me know if you'd like some support here. |
Thanks for filing upstream! I should be able to get a regression test added here in a bit, looks relatively straightforward. Is there any rhyme or reason to which language to implement the test in for language-agnostic bugs like this? |
Awesome! You can choose the language for the regression test. I guess python would be the easiest given that the repro is using that. Generally we try to name the regression tests after the issue number (i.e. This is an example of a python regression test you can copy the boilerplate from: https://github.com/pulumi/pulumi-aws/tree/0e03d6a4bcc04b46819b29205b07c6f72a534e5a/provider/test-programs/regress-4457 |
PR is now waiting for a maintainer to run the acceptance tests. |
@flostadler added what seems like the correct test to me - let me know if it looks incorrect! |
/run-acceptance-tests |
Please view the PR build: https://github.com/pulumi/pulumi-aws/actions/runs/11860700285 |
acc6763
to
d4ae5a7
Compare
d4ae5a7
to
2bee07e
Compare
PR is now waiting for a maintainer to run the acceptance tests. |
Oops, had to fix up the test program structure a bit - pushed a fix. |
PR is now waiting for a maintainer to run the acceptance tests. |
/run-acceptance-tests |
Please view the PR build: https://github.com/pulumi/pulumi-aws/actions/runs/11890247581 |
@csssuf, the regression test seems to still find a diff: https://github.com/pulumi/pulumi-aws/actions/runs/11890247581/job/33131632381#step:17:606 |
PR is now waiting for a maintainer to run the acceptance tests. |
@csssuf I also merged the latest master branch into your PR to fix some unrelated tests |
The
sqs.RedriveAllowPolicy
resource has the same problem as #2307, where spurious JSON diffs are generated when the actual policies to apply are identical. This PR applies the same fix found in #2529.