-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Bridge gap between Terraform and API for AlloyDB #8781
Bridge gap between Terraform and API for AlloyDB #8781
Conversation
Hello! I am a robot. It looks like you are a: @slevenick, 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. |
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. Terraform GA: Diff ( 2 files changed, 36 insertions(+)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_alloydb_backup" "primary" {
display_name = # value needed
}
|
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataprocClusterIamPolicy |
Rerun these tests in REPLAYING mode to catch issues
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test that sets this field? You can just add the field to an existing test
sure. |
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. Terraform GA: Diff ( 2 files changed, 36 insertions(+)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_alloydb_backup" "primary" {
display_name = # value needed
}
|
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccSpannerDatabaseIamPolicy |
Rerun these tests in REPLAYING mode to catch issues
|
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. Terraform GA: Diff ( 2 files changed, 36 insertions(+)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_alloydb_backup" "primary" {
display_name = # value needed
}
|
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataSourceGoogleServiceAccountIdToken_impersonation |
Rerun these tests in REPLAYING mode to catch issues
|
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. Terraform GA: Diff ( 2 files changed, 36 insertions(+)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_alloydb_backup" "primary" {
display_name = # value needed
}
|
Tests analyticsTotal tests:
|
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. Terraform GA: Diff ( 2 files changed, 322 insertions(+), 35 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_alloydb_backup" "primary" {
annotations = # value needed
display_name = # value needed
type = # value needed
}
|
Tests analyticsTotal tests: Action takenFound 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccAlloydbBackup_alloydbBackupFullExample|TestAccAlloydbBackup_createBackupWithMandatoryFields|TestAccAlloydbBackup_alloydbBackupBasicExample|TestAccAlloydbBackup_update|TestAccAlloydbCluster_restore|TestAccAlloydbBackup_usingCMEK |
|
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. Terraform GA: Diff ( 2 files changed, 322 insertions(+), 35 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_alloydb_backup" "primary" {
annotations = # value needed
display_name = # value needed
type = # value needed
}
|
I'm seeing some recent service networking changes that might be causing this. I'll ask around |
I think this is being tracked here and is unrelated to your changes: #8904 |
Thank you so much for the update, Sam! :D |
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. Terraform GA: Diff ( 8 files changed, 637 insertions(+), 35 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_alloydb_backup" "primary" {
annotations = # value needed
display_name = # value needed
}
Resource: resource "google_alloydb_cluster" "primary" {
annotations = # value needed
etag = # value needed
}
|
Tests analyticsTotal tests: Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccAlloydbInstance_createInstanceWithMaximumFields|TestAccAlloydbInstance_updateDatabaseFlagInPrimaryInstance |
|
Hey Sam, As these two are passing on my local machine and the debug log suggest that it is an issue with the service networking, I have commented out these two tests for now. I will re-enable them once this issue from service networking team is fixed. I have created b/301367801 to track it. Can you please approve and merge the PR? |
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. Terraform GA: Diff ( 8 files changed, 641 insertions(+), 39 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_alloydb_backup" "primary" {
annotations = # value needed
display_name = # value needed
}
Resource: resource "google_alloydb_cluster" "primary" {
annotations = # value needed
etag = # value needed
}
Resource: resource "google_alloydb_instance" "primary" {
query_insights_config {
query_plans_per_minute = # value needed
query_string_length = # value needed
record_application_tags = # value needed
record_client_address = # value needed
}
}
|
Tests analyticsTotal tests: Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccBigQueryDataTable_bigtable|TestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample|TestAccBigtableAppProfile_bigtableAppProfileSingleclusterExample|TestAccBigtableAppProfile_bigtableAppProfileAnyclusterExample |
Rerun these tests in REPLAYING mode to catch issues
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small request, can you change the changelog to be formatted in our release notes format: https://googlecloudplatform.github.io/magic-modules/contribute/release-notes/
Then I'll approve and merge
done. |
And existing release notes: https://github.com/hashicorp/terraform-provider-google/blob/main/CHANGELOG.md It should look like:
|
updated as per suggested. please check and let me know if it looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add these fields to tests as suggested by #8781 (comment)
These fields are part of the tests which I have commented out. I will enable them once service networking issue is resolved and they will cover these fields. |
Hey Sam, |
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
in the generated providers to ensure it passes unit and linter tests.This PR contains multiple changes for AlloyDB cluster, instance, and backup. It adds all the attributes which were missing in Terraform but were present in REST API for these resources and the corresponding tests.
Release Note Template for Downstream PRs (will be copied)