databasemigrationservice: Add objects config field to DMS migration job resource for selective migration#17302
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Googlers: For automatic test runs see go/terraform-auto-test-runs. @roaks3, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
roaks3
left a comment
There was a problem hiding this comment.
One note, but otherwise LGTM. Kicking off tests now
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 15 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
|
Looks like an issue with the defaults used by the server |
…, source_objects_config and objects_selection_type
I see, the API sets the objects_selection_type to ALL by default: objectsConfig:
sourceObjectsConfig:
objectsSelectionType: ALL_OBJECTSSo I added default_from_api flag for these 3 fields. I am running the acceptance test locally on my personal account, but it fails with a different, perhaps unrelated, error: |
|
I tested the provider manually - all cases seem to be passing, adding objects_config after apply also works by re-creating the migration job. |
|
Ok, I'll try running in CI. The test is matching the other tests we have for the resource, so I'd expect it should be safe. Otherwise, there could be an issue with service connections and how they exhaust quota. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 15 Click here to see the affected service packages
🟢 All tests passed! View the build log |
43948c1
…ob resource for selective migration (GoogleCloudPlatform#17302)
…ob resource for selective migration (GoogleCloudPlatform#17302)
Description
Add support for configuring which databases, schemas, or tables to migrate on
google_database_migration_service_migration_jobvia the newobjects_configblock. Theobjects_configblock maps directly to the API's MigrationJobObjectsConfig and is the same field that gcloud's--database-filterflag populates for homogeneous migrations.Mark the whole subtree immutable since it is not in the API's update mask
Tests Added
Verification Results
Release Note Template for Downstream PRs (will be copied)