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

BugFix: aws_cloudfrontkeyvaluestore_key mutex #36734

Conversation

brittandeyoung
Copy link
Collaborator

Description

This change implements a mutex to make actions against cloudfront key value stores serialized.

Relations

Relates #36534

References

Output from Acceptance Testing

✗ make testacc TESTARGS='-run=TestAccCloudFrontKeyValueStore' PKG=cloudfront            
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/cloudfront/... -v -count 1 -parallel 20  -run=TestAccCloudFrontKeyValueStore -timeout 360m
=== RUN   TestAccCloudFrontKeyValueStore_basic
=== PAUSE TestAccCloudFrontKeyValueStore_basic
=== RUN   TestAccCloudFrontKeyValueStore_disappears
=== PAUSE TestAccCloudFrontKeyValueStore_disappears
=== RUN   TestAccCloudFrontKeyValueStore_comment
=== PAUSE TestAccCloudFrontKeyValueStore_comment
=== CONT  TestAccCloudFrontKeyValueStore_basic
=== CONT  TestAccCloudFrontKeyValueStore_comment
=== CONT  TestAccCloudFrontKeyValueStore_disappears
--- PASS: TestAccCloudFrontKeyValueStore_disappears (26.39s)
--- PASS: TestAccCloudFrontKeyValueStore_basic (28.42s)
--- PASS: TestAccCloudFrontKeyValueStore_comment (36.13s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/cloudfront 42.219sterraform-provider-aws (b-aws_cloudfrontkeyvaluestore_key-mutex) ✗ make testacc TESTARGS='-run=TestAccCloudFrontKeyValueStoreKey' PKG=cloudfrontkeyvaluestore
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/cloudfrontkeyvaluestore/... -v -count 1 -parallel 20  -run=TestAccCloudFrontKeyValueStoreKey -timeout 360m
=== RUN   TestAccCloudFrontKeyValueStoreKey_basic
=== PAUSE TestAccCloudFrontKeyValueStoreKey_basic
=== RUN   TestAccCloudFrontKeyValueStoreKey_mutex
=== PAUSE TestAccCloudFrontKeyValueStoreKey_mutex
=== RUN   TestAccCloudFrontKeyValueStoreKey_value
=== PAUSE TestAccCloudFrontKeyValueStoreKey_value
=== RUN   TestAccCloudFrontKeyValueStoreKey_disappears
=== PAUSE TestAccCloudFrontKeyValueStoreKey_disappears
=== CONT  TestAccCloudFrontKeyValueStoreKey_basic
=== CONT  TestAccCloudFrontKeyValueStoreKey_value
=== CONT  TestAccCloudFrontKeyValueStoreKey_disappears
=== CONT  TestAccCloudFrontKeyValueStoreKey_mutex
--- PASS: TestAccCloudFrontKeyValueStoreKey_disappears (28.06s)
--- PASS: TestAccCloudFrontKeyValueStoreKey_mutex (28.39s)
--- PASS: TestAccCloudFrontKeyValueStoreKey_basic (29.11s)
--- PASS: TestAccCloudFrontKeyValueStoreKey_value (36.55s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/cloudfrontkeyvaluestore    42.382s

...

Copy link

github-actions bot commented Apr 4, 2024

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/cloudfront Issues and PRs that pertain to the cloudfront service. service/cloudfrontkeyvaluestore Issues and PRs that pertain to the cloudfrontkeyvaluestore service. and removed size/M Managed by automation to categorize the size of a PR. labels Apr 4, 2024
@terraform-aws-provider terraform-aws-provider bot added needs-triage Waiting for first response or review from a maintainer. external-maintainer Contribution from a trusted external contributor. labels Apr 4, 2024
@brittandeyoung brittandeyoung added the bug Addresses a defect in current functionality. label Apr 4, 2024
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Apr 4, 2024
@ewbankkit ewbankkit changed the title BugFix: `aws_cloudfrontkeyvaluestore_key mutex BugFix: aws_cloudfrontkeyvaluestore_key mutex Apr 4, 2024
@ewbankkit ewbankkit self-assigned this Apr 4, 2024
@github-actions github-actions bot added the size/M Managed by automation to categorize the size of a PR. label Apr 4, 2024
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Apr 4, 2024
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccCloudFrontKeyValueStore_' PKG=cloudfront ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/cloudfront/... -v -count 1 -parallel 2  -run=TestAccCloudFrontKeyValueStore_ -timeout 360m
exit
=== RUN   TestAccCloudFrontKeyValueStore_basic
=== PAUSE TestAccCloudFrontKeyValueStore_basic
=== RUN   TestAccCloudFrontKeyValueStore_disappears
=== PAUSE TestAccCloudFrontKeyValueStore_disappears
=== RUN   TestAccCloudFrontKeyValueStore_comment
=== PAUSE TestAccCloudFrontKeyValueStore_comment
=== CONT  TestAccCloudFrontKeyValueStore_basic
=== CONT  TestAccCloudFrontKeyValueStore_comment
--- PASS: TestAccCloudFrontKeyValueStore_basic (57.35s)
=== CONT  TestAccCloudFrontKeyValueStore_disappears
--- PASS: TestAccCloudFrontKeyValueStore_comment (77.56s)
--- PASS: TestAccCloudFrontKeyValueStore_disappears (44.11s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/cloudfront	119.090s
% make testacc TESTARGS='-run=TestAccCloudFrontKeyValueStoreKey_' PKG=cloudfrontkeyvaluestore ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/cloudfrontkeyvaluestore/... -v -count 1 -parallel 2  -run=TestAccCloudFrontKeyValueStoreKey_ -timeout 360m
=== RUN   TestAccCloudFrontKeyValueStoreKey_basic
=== PAUSE TestAccCloudFrontKeyValueStoreKey_basic
=== RUN   TestAccCloudFrontKeyValueStoreKey_mutex
=== PAUSE TestAccCloudFrontKeyValueStoreKey_mutex
=== RUN   TestAccCloudFrontKeyValueStoreKey_value
=== PAUSE TestAccCloudFrontKeyValueStoreKey_value
=== RUN   TestAccCloudFrontKeyValueStoreKey_disappears
=== PAUSE TestAccCloudFrontKeyValueStoreKey_disappears
=== CONT  TestAccCloudFrontKeyValueStoreKey_basic
=== CONT  TestAccCloudFrontKeyValueStoreKey_value
--- PASS: TestAccCloudFrontKeyValueStoreKey_basic (57.04s)
=== CONT  TestAccCloudFrontKeyValueStoreKey_disappears
--- PASS: TestAccCloudFrontKeyValueStoreKey_value (87.70s)
=== CONT  TestAccCloudFrontKeyValueStoreKey_mutex
--- PASS: TestAccCloudFrontKeyValueStoreKey_disappears (54.76s)
--- PASS: TestAccCloudFrontKeyValueStoreKey_mutex (50.71s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/cloudfrontkeyvaluestore	154.564s

@ewbankkit
Copy link
Contributor

@brittandeyoung Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 604d3c6 into hashicorp:main Apr 4, 2024
36 checks passed
@github-actions github-actions bot added this to the v5.44.0 milestone Apr 4, 2024
@lawliet89
Copy link
Contributor

@brittandeyoung thank you for the fix!

Copy link

github-actions bot commented Apr 5, 2024

This functionality has been released in v5.44.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Apr 5, 2024
Copy link

github-actions bot commented May 7, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. external-maintainer Contribution from a trusted external contributor. service/cloudfront Issues and PRs that pertain to the cloudfront service. service/cloudfrontkeyvaluestore Issues and PRs that pertain to the cloudfrontkeyvaluestore service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants