-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update forward_ssh_connectivity.private_key to be mutable #13307
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
Update forward_ssh_connectivity.private_key to be mutable #13307
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: see go/terraform-auto-test-runs to set up automatic test runs. @SirGitsalot, 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. |
/gcbrun |
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_datastream_connection_profile" "primary" {
forward_ssh_connectivity {
private_key = # value needed
}
}
|
Tests analyticsTotal tests: 13 Click here to see the affected service packages
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 tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Hey @SirGitsalot, can you share the error from the VCR test? |
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
/gcbrun |
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_datastream_connection_profile" "primary" {
forward_ssh_connectivity {
private_key = # value needed
}
}
|
Tests analyticsTotal tests: 13 Click here to see the affected service packages
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 tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your 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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_datastream_connection_profile" "primary" {
forward_ssh_connectivity {
private_key = # value needed
}
}
|
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.
My syntax may be a little off, but this should add a 60 second pause after the database and compute instances are done being created.
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Show resolved
Hide resolved
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Show resolved
Hide resolved
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
/gcbrun |
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_datastream_connection_profile" "primary" {
forward_ssh_connectivity {
private_key = # value needed
}
}
|
Tests analyticsTotal tests: 14 Click here to see the affected service packages
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 tests
|
🟢 Tests passed during RECORDING mode: 🔴 Tests failed when rerunning REPLAYING mode: Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer. 🟢 All tests passed! |
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.
The test is passing on the CI infrastructure too (well, the integration test is passing; the VCR test is failing but I've added a couple of comments inline for fixing it).
All of our integration tests run nightly and largely in parallel in the same project, and I don't think this test will pass there (or it might pass, but break other tests). The reason is that it's creating firewall rules in the default network, which will end up competing with other tests that are simultaneously using that network.
You can work around that by creating a new network just for the test, which is a common pattern for other tests that need to make similar changes, a la:
resource "google_compute_network" "default" {
name = "tf-test-datastream-ssh%{random_suffix}"
}
And then change all of the various references to point to that network, or add them where necessary (like the database instance?)
Anyway, I'm glad it's passing and hopefully it's all downhill from here!
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/datastream/resource_datastream_connection_profile_test.go
Outdated
Show resolved
Hide resolved
/gcbrun |
Thanks for all the feedback! I've made those changes. I believe we can keep the db instance as is since the only authorized network is the compute instance, lets see 🤞🏾 |
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_datastream_connection_profile" "primary" {
forward_ssh_connectivity {
private_key = # value needed
}
}
|
Tests analyticsTotal tests: 14 Click here to see the affected service packages
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 tests
|
7aeae02
This prevents the connection profile from failing permanently (needing to be re-created) when the forward ssh connectivity private key is updated.
Fixes hashicorp/terraform-provider-google#18999
Related PR #11930
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.