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

Allow movement of DMS tasks to new instances #30721

Merged
merged 5 commits into from
Dec 19, 2023

Conversation

misterjacko
Copy link
Contributor

@misterjacko misterjacko commented Apr 14, 2023

Description

This change enables movement of DMS Tasks between DMS Instances in place rather than destroy and recreate by leveraging the MoveReplicatonTask operation.

Tests were also fixed so that they pass.

In addition, as mentioned in #29765 the 5 minute timeout for certain other actions is often not sufficient for how long DMS takes. While this PR does not address making those timeouts user configurable, it does increase that timeout and should reduce failures.

Relations

Closes #30709
Closes #29765

References

Output from Acceptance Testing

$ make testacc TESTS=TestAccDMSReplicationTask PKG=dms
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/dms/... -v -count 1 -parallel 20 -run='TestAccDMSReplicationTask'  -timeout 180m
=== RUN   TestAccDMSReplicationTask_basic
=== PAUSE TestAccDMSReplicationTask_basic
=== RUN   TestAccDMSReplicationTask_update
=== PAUSE TestAccDMSReplicationTask_update
=== RUN   TestAccDMSReplicationTask_cdcStartPosition
=== PAUSE TestAccDMSReplicationTask_cdcStartPosition
=== RUN   TestAccDMSReplicationTask_startReplicationTask
=== PAUSE TestAccDMSReplicationTask_startReplicationTask
=== RUN   TestAccDMSReplicationTask_s3ToRDS
=== PAUSE TestAccDMSReplicationTask_s3ToRDS
=== RUN   TestAccDMSReplicationTask_disappears
=== PAUSE TestAccDMSReplicationTask_disappears
=== CONT  TestAccDMSReplicationTask_basic
=== CONT  TestAccDMSReplicationTask_startReplicationTask
=== CONT  TestAccDMSReplicationTask_disappears
=== CONT  TestAccDMSReplicationTask_s3ToRDS
=== CONT  TestAccDMSReplicationTask_cdcStartPosition
=== CONT  TestAccDMSReplicationTask_update
--- PASS: TestAccDMSReplicationTask_disappears (1015.79s)
--- PASS: TestAccDMSReplicationTask_basic (1102.49s)
--- PASS: TestAccDMSReplicationTask_cdcStartPosition (1195.71s)
--- PASS: TestAccDMSReplicationTask_s3ToRDS (1281.19s)
--- PASS: TestAccDMSReplicationTask_update (1426.00s)
--- PASS: TestAccDMSReplicationTask_startReplicationTask (1791.46s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/dms        1804.543s

...

New tests: #30721 (comment)

@github-actions
Copy link

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 service/dms Issues and PRs that pertain to the dms service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. and removed tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/dms Issues and PRs that pertain to the dms service. labels Apr 14, 2023
@github-actions github-actions bot added service/dms Issues and PRs that pertain to the dms service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 14, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @misterjacko 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@github-actions github-actions bot added size/L Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Apr 14, 2023
@misterjacko
Copy link
Contributor Author

new test added and passed:

$ make testacc TESTS=TestAccDMSReplicationTask_move PKG=dms
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/dms/... -v -count 1 -parallel 20 -run='TestAccDMSReplicationTask_move'  -timeout 180m
=== RUN   TestAccDMSReplicationTask_move
=== PAUSE TestAccDMSReplicationTask_move
=== CONT  TestAccDMSReplicationTask_move
--- PASS: TestAccDMSReplicationTask_move (1513.96s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/dms        1529.655s

@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. timeouts Pertains to timeout increases. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 25, 2023
@misterjacko
Copy link
Contributor Author

Hi @justinretzolk ! Anything holding this up that I could address? Thanks for reviewing!

@justinretzolk
Copy link
Member

Hey @misterjacko 👋 Thank you for taking the time to raise this, and for checking in on it! On a quick glance, everything looks to be in good shape for review. Unfortunately I can't provide an ETA on when this will be reviewed/merged due to the potential of shifting priorities. We prioritize by count of 👍 reactions and a few other things (more information on our prioritization guide if you're interested).

@ewbankkit
Copy link
Contributor

@misterjacko Thanks for the contribution 🎉 👏.
These changes have been rolled into #34356.

@ewbankkit ewbankkit merged commit c6f7689 into hashicorp:main Dec 19, 2023
2 checks passed
Copy link

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 Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/dms Issues and PRs that pertain to the dms service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. timeouts Pertains to timeout increases.
Projects
None yet
4 participants