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

Cloudrun v2 service #6850

Merged
merged 7 commits into from Dec 2, 2022
Merged

Conversation

shuyama1
Copy link
Member

@shuyama1 shuyama1 commented Nov 18, 2022

Internal ticket: b/254103525
API: https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services

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)

`google_cloud_run_v2_service`

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 8 files changed, 4611 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 8 files changed, 4611 insertions(+), 2 deletions(-))
TF Validator: Diff ( 5 files changed, 1252 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2279
Passed tests 2023
Skipped tests: 244
Failed tests: 12

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccLoggingBucketConfigProject_cmekSettings|TestAccComputeGlobalForwardingRule_globalForwardingRuleInternalExample|TestAccComputeGlobalForwardingRule_externalHttpLbMigBackendCustomHeaderExample|TestAccComputeGlobalForwardingRule_externalTcpProxyLbMigBackendExample|TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExample|TestAccComputeForwardingRule_forwardingRuleRegionalHttpXlbExample|TestAccComputeForwardingRule_forwardingRuleHttpLbExample|TestAccComputeForwardingRule_update|TestAccComputeForwardingRule_internalHttpLbWithMigBackendExample|TestAccComputeGlobalForwardingRule_internalLoadBalancing|TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample|TestAccCloudRunV2Service_cloudrunv2ServiceBasicExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccLoggingBucketConfigProject_cmekSettings[Debug log]
TestAccComputeGlobalForwardingRule_globalForwardingRuleInternalExample[Debug log]
TestAccComputeGlobalForwardingRule_externalHttpLbMigBackendCustomHeaderExample[Debug log]
TestAccComputeGlobalForwardingRule_externalTcpProxyLbMigBackendExample[Debug log]
TestAccComputeForwardingRule_internalTcpUdpLbWithMigBackendExample[Debug log]
TestAccComputeForwardingRule_forwardingRuleRegionalHttpXlbExample[Debug log]
TestAccComputeForwardingRule_forwardingRuleHttpLbExample[Debug log]
TestAccComputeForwardingRule_update[Debug log]
TestAccComputeForwardingRule_internalHttpLbWithMigBackendExample[Debug log]
TestAccComputeGlobalForwardingRule_internalLoadBalancing[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceBasicExample[Debug log]

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

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 9 files changed, 5155 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 9 files changed, 5155 insertions(+), 2 deletions(-))
TF Validator: Diff ( 5 files changed, 1247 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 16 files changed, 556 insertions(+))

description: |-
Map of string keys and values that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved.
# Block on b/244872932 for implementation
# - !ruby/object:Api::Type::KeyValuePairs
Copy link
Member Author

Choose a reason for hiding this comment

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

annotation is currently blocked on b/244872932. Discussed with the service team and decide to omit the field from implementation until the API validation is launched.

name: "value"
description: |-
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
# exactly_one_of:
Copy link
Member Author

@shuyama1 shuyama1 Nov 21, 2022

Choose a reason for hiding this comment

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

ConflictsWith, ExactlyOneOf and AtLeastOneOf within lists are currently not supported at the SDK level.

@shuyama1 shuyama1 marked this pull request as ready for review November 21, 2022 20:24
@shuyama1 shuyama1 requested a review from roaks3 November 21, 2022 20:24
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2283
Passed tests 2033
Skipped tests: 244
Failed tests: 6

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccLoggingBucketConfigProject_cmekSettings|TestAccCloudRunV2Service_cloudrunv2ServiceProbesUpdate|TestAccCloudRunV2Service_cloudrunv2ServiceFullUpdate|TestAccCloudRunV2Service_cloudrunv2ServiceProbesExample|TestAccCloudRunV2Service_cloudrunv2ServiceVpcaccessExample|TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccLoggingBucketConfigProject_cmekSettings[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceProbesUpdate[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceFullUpdate[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceProbesExample[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceVpcaccessExample[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample[Debug log]

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

Copy link
Contributor

@roaks3 roaks3 left a comment

Choose a reason for hiding this comment

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

Overall this looks great to me. I noticed some small things that might need changes, but the only thing that seems like a potential blocker is a field called status which I think needs to be state.

mmv1/products/cloudrunv2/api.yaml Outdated Show resolved Hide resolved
mmv1/products/cloudrunv2/api.yaml Show resolved Hide resolved
mmv1/products/cloudrunv2/api.yaml Show resolved Hide resolved
mmv1/products/cloudrunv2/api.yaml Show resolved Hide resolved
mmv1/products/cloudrunv2/api.yaml Outdated Show resolved Hide resolved
mmv1/products/cloudrunv2/api.yaml Outdated Show resolved Hide resolved
mmv1/products/cloudrunv2/terraform.yaml Outdated Show resolved Hide resolved
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 9 files changed, 5155 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 9 files changed, 5155 insertions(+), 2 deletions(-))
TF Validator: Diff ( 5 files changed, 1247 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 16 files changed, 556 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2286
Passed tests 2040
Skipped tests: 244
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccContainerNodePool_withNodeConfig|TestAccLoggingBucketConfigProject_cmekSettings

@shuyama1 shuyama1 requested a review from roaks3 November 22, 2022 21:13
Copy link
Contributor

@roaks3 roaks3 left a comment

Choose a reason for hiding this comment

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

Adding Stephen for follow-up review

@roaks3 roaks3 requested a review from melinath November 22, 2022 21:28
@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccContainerNodePool_withNodeConfig[Debug log]
TestAccLoggingBucketConfigProject_cmekSettings[Debug log]

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

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

a couple small changes, lgtm otherwise.

mmv1/products/cloudrunv2/api.yaml Outdated Show resolved Hide resolved
mmv1/products/cloudrunv2/api.yaml Show resolved Hide resolved
mmv1/products/cloudrunv2/api.yaml Show resolved Hide resolved
mmv1/products/cloudrunv2/api.yaml Outdated Show resolved Hide resolved
mmv1/products/cloudrunv2/api.yaml Show resolved Hide resolved
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 9 files changed, 5142 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 9 files changed, 5142 insertions(+), 2 deletions(-))
TF Validator: Diff ( 5 files changed, 1247 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 16 files changed, 556 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2300
Passed tests 2054
Skipped tests: 244
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccCloudRunV2Service_cloudrunv2ServiceFullUpdate|TestAccLoggingBucketConfigProject_cmekSettings

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccCloudRunV2Service_cloudrunv2ServiceFullUpdate[Debug log]
TestAccLoggingBucketConfigProject_cmekSettings[Debug log]

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

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

LGTM - it could be nice to have tests for container.command and liveness_probe.tcp_socket for this resource as well.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 6 files changed, 5256 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 6 files changed, 5256 insertions(+), 2 deletions(-))
TF Validator: Diff ( 3 files changed, 1242 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 20 files changed, 706 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2318
Passed tests 2069
Skipped tests: 244
Failed tests: 5

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccLoggingBucketConfigProject_cmekSettings|TestAccCloudRunV2Service_cloudrunv2ServiceFullUpdate|TestAccCloudRunV2Service_cloudrunv2ServiceSecretExample|TestAccCloudRunV2Service_cloudrunv2ServiceProbesUpdate|TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccLoggingBucketConfigProject_cmekSettings[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceFullUpdate[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceProbesUpdate[Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample[Debug log]

Tests failed during RECORDING mode:
TestAccCloudRunV2Service_cloudrunv2ServiceSecretExample[Error message] [Debug log]

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

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2318
Passed tests 2072
Skipped tests: 244
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccFirebaserulesRelease_BasicRelease|TestAccLoggingBucketConfigProject_cmekSettings

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[Debug log]
TestAccLoggingBucketConfigProject_cmekSettings[Debug log]

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

@shuyama1
Copy link
Member Author

shuyama1 commented Dec 2, 2022

/gcbrun

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 6 files changed, 5260 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 6 files changed, 5260 insertions(+), 2 deletions(-))
TF Validator: Diff ( 3 files changed, 1242 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 20 files changed, 708 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2318
Passed tests 2072
Skipped tests: 244
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccFirebaserulesRelease_BasicRelease|TestAccLoggingBucketConfigProject_cmekSettings

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[Debug log]
TestAccLoggingBucketConfigProject_cmekSettings[Debug log]

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

@shuyama1
Copy link
Member Author

shuyama1 commented Dec 2, 2022

@melinath I suspect the TFV tests failed here maybe due to the TFV build failure for the last two commits.

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

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

+1 TFV failure is unrelated - opened #6904 to remove that test case for now.

@shuyama1
Copy link
Member Author

shuyama1 commented Dec 2, 2022

Only rebase to get TFV fix in. No new code changes and will merge it after tests pass.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 6 files changed, 5260 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 6 files changed, 5260 insertions(+), 2 deletions(-))
TF Validator: Diff ( 3 files changed, 1242 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 20 files changed, 708 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2318
Passed tests 2072
Skipped tests: 244
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccLoggingBucketConfigProject_cmekSettings|TestAccFirebaserulesRelease_BasicRelease

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccLoggingBucketConfigProject_cmekSettings[Debug log]
TestAccFirebaserulesRelease_BasicRelease[Debug log]

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
4 participants