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

dcl upgrade #5994

Merged
merged 15 commits into from
May 3, 2022
Merged

dcl upgrade #5994

merged 15 commits into from
May 3, 2022

Conversation

shuyama1
Copy link
Member

@shuyama1 shuyama1 commented Apr 29, 2022

This PR includes the changes in:
#5936
#5902

Fixes hashicorp/terraform-provider-google#10873
Fixes hashicorp/terraform-provider-google#10297
Fixes hashicorp/terraform-provider-google#11487

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

compute: added `service_directory_registrations` to `google_compute_forwarding_rule` resource
containeraws: added `proxy_config` to `google_container_aws_node_pool` resource
containerazure: added `proxy_config` to `google_container_azure_node_pool` resource
containeraws: added `instance_placement` and `logging_config` to `google_container_aws_cluster` resource (beta)
containeraws: added `image_type` and `instance_placement` to `google_container_aws_node_pool` resource (beta)
containerazure: added `logging_config` to `google_container_azure_cluster` resource (beta)
containerazure: added `image_type` to `google_container_azure_node_pool` resource (beta)

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 14 files changed, 545 insertions(+), 135 deletions(-))
Terraform Beta: Diff ( 16 files changed, 853 insertions(+), 135 deletions(-))
TF Validator: Diff ( 2 files changed, 5 insertions(+), 5 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1995
Passed tests 1752
Skipped tests: 241
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccContainerAzureNodePool_BasicHandWritten|TestAccContainerAwsNodePool_BasicHandWritten

@modular-magician
Copy link
Collaborator

Tests failed during RECORDING mode:
TestAccContainerAwsNodePool_BasicHandWritten[view]
TestAccContainerAzureNodePool_BasicHandWritten[view]

Please fix these to complete your PR
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 14 files changed, 950 insertions(+), 137 deletions(-))
Terraform Beta: Diff ( 18 files changed, 2302 insertions(+), 137 deletions(-))
TF Validator: Diff ( 2 files changed, 5 insertions(+), 5 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1999
Passed tests 1751
Skipped tests: 241
Failed tests: 7

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccContainerAzureCluster_BetaBasicHandWritten|TestAccContainerAzureNodePool_BasicHandWritten|TestAccContainerAzureCluster_BasicHandWritten|TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccContainerAwsCluster_BetaBasicHandWritten|TestAccContainerAzureNodePool_BetaBasicHandWritten|TestAccBigQueryDataTable_bigtable

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccBigQueryDataTable_bigtable[view]
TestAccContainerAzureNodePool_BetaBasicHandWritten[view]
TestAccContainerAzureNodePool_BasicHandWritten[view]
TestAccContainerAwsNodePool_BetaBasicHandWritten[view]
TestAccContainerAwsCluster_BetaBasicHandWritten[view]

Tests failed during RECORDING mode:
TestAccContainerAzureCluster_BetaBasicHandWritten[view]
TestAccContainerAzureCluster_BasicHandWritten[view]

Please fix these to complete your PR
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 14 files changed, 829 insertions(+), 89 deletions(-))
Terraform Beta: Diff ( 20 files changed, 2392 insertions(+), 137 deletions(-))
TF Validator: Diff ( 3 files changed, 48 insertions(+), 5 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 0
Passed tests 0
Skipped tests: 0
Failed tests: 0

Errors occurred during REPLAYING mode. Please fix them to complete your PR
View the build log

@shuyama1 shuyama1 requested a review from slevenick April 29, 2022 23:38
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 14 files changed, 829 insertions(+), 89 deletions(-))
Terraform Beta: Diff ( 20 files changed, 2392 insertions(+), 137 deletions(-))
TF Validator: Diff ( 3 files changed, 48 insertions(+), 5 deletions(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 14 files changed, 829 insertions(+), 89 deletions(-))
Terraform Beta: Diff ( 19 files changed, 2250 insertions(+), 89 deletions(-))
TF Validator: Diff ( 3 files changed, 48 insertions(+), 5 deletions(-))

@@ -123,3 +123,6 @@
- type: EXCLUDE
field: location
location: global
- type: EXCLUDE
Copy link
Contributor

Choose a reason for hiding this comment

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

This is why we prefer having split out resources for different locations, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, absolutely.


poolName := fmt.Sprintf("tf-%s", randString(t, 10))
ruleName := fmt.Sprintf("tf-%s", randString(t, 10))
svcDirNamespace := fmt.Sprintf("tf-svcdirns-%s", randString(t, 10))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these be tf-test- to work with sweepers?

@@ -80,7 +85,7 @@ resource "google_container_azure_node_pool" "primary" {

name = "{{node-pool-name}}"
subnet_id = "/subscriptions/{{azure_subscription}}/resourceGroups/{{byo_multicloud_prefix}}-dev-byo/providers/Microsoft.Network/virtualNetworks/{{byo_multicloud_prefix}}-dev-vnet/subnets/default"
version = "1.21.6-gke.1500"
version = "${data.google_container_azure_versions.versions.valid_versions[0]}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these handwritten? This will make it significantly more difficult to change this to be based off the samples in the DCL repo.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2000
Passed tests 1755
Skipped tests: 241
Failed tests: 4

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccFirebaserulesRelease_BasicRelease|TestAccContainerAzureCluster_BetaBasicHandWritten|TestAccContainerAzureCluster_BasicHandWritten|TestAccComputeForwardingRule_serviceDirectoryRegistrations

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccComputeForwardingRule_serviceDirectoryRegistrations[view]
TestAccFirebaserulesRelease_BasicRelease[view]
TestAccContainerAzureCluster_BetaBasicHandWritten[view]
TestAccContainerAzureCluster_BasicHandWritten[view]

All tests passed
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 13 files changed, 355 insertions(+), 89 deletions(-))
Terraform Beta: Diff ( 19 files changed, 1832 insertions(+), 89 deletions(-))
TF Validator: Diff ( 3 files changed, 48 insertions(+), 5 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2000
Passed tests 1756
Skipped tests: 241
Failed tests: 3

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccFirebaserulesRelease_BasicRelease|TestAccComputeForwardingRule_serviceDirectoryRegistrations|TestAccServiceNetworkingPeeredDNSDomain_basic

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccComputeForwardingRule_serviceDirectoryRegistrations[view]
TestAccServiceNetworkingPeeredDNSDomain_basic[view]
TestAccFirebaserulesRelease_BasicRelease[view]

All tests passed
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 17 files changed, 448 insertions(+), 93 deletions(-))
Terraform Beta: Diff ( 19 files changed, 1935 insertions(+), 93 deletions(-))
TF Validator: Diff ( 3 files changed, 48 insertions(+), 5 deletions(-))

@shuyama1 shuyama1 requested a review from slevenick May 2, 2022 23:57
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2002
Passed tests 1759
Skipped tests: 241
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccContainerAwsNodePool_BasicHandWritten

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccContainerAwsNodePool_BasicHandWritten[view]

Tests failed during RECORDING mode:
TestAccContainerAwsNodePool_BetaBasicHandWritten[view]

Please fix these to complete your PR
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 17 files changed, 448 insertions(+), 93 deletions(-))
Terraform Beta: Diff ( 19 files changed, 1935 insertions(+), 93 deletions(-))
TF Validator: Diff ( 3 files changed, 48 insertions(+), 5 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2002
Passed tests 1759
Skipped tests: 241
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccFirebaserulesRelease_BasicRelease|TestAccContainerAwsNodePool_BetaBasicHandWritten

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccContainerAwsNodePool_BetaBasicHandWritten[view]
TestAccFirebaserulesRelease_BasicRelease[view]

All tests passed
View the build log or the debug log for each test

name: 'namespace'
description: |
Service Directory namespace to register the forwarding rule under.
required: true
Copy link
Contributor

Choose a reason for hiding this comment

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

These two are listed as "Required" but aren't actually required according to the produced schema.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed it! Thanks!

@slevenick slevenick self-requested a review May 3, 2022 16:14
Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

One note on required in the docs for forwarding rule, other than that LGTM!

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 17 files changed, 448 insertions(+), 93 deletions(-))
Terraform Beta: Diff ( 19 files changed, 1935 insertions(+), 93 deletions(-))
TF Validator: Diff ( 3 files changed, 48 insertions(+), 5 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2002
Passed tests 1760
Skipped tests: 241
Failed tests: 1

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccFirebaserulesRelease_BasicRelease

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[view]

All tests passed
View the build log or the debug log for each test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants