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

Add beta support for custom error response policies for URL maps #10787

Merged
merged 10 commits into from
Jun 21, 2024

Conversation

daanheikens
Copy link
Contributor

@daanheikens daanheikens commented May 24, 2024

Fixes: hashicorp/terraform-provider-google#18200

Release Note Template for Downstream PRs (will be copied)

compute: added fields `customErrorResponsePolicy` and `defaultErrorResponsePolicy` to the `google_compute_url_map` resource

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label May 24, 2024
@daanheikens daanheikens changed the title Add support for custom error response policies for URL maps Add beta support for custom error response policies for URL maps May 27, 2024
@daanheikens daanheikens marked this pull request as ready for review May 27, 2024 19:36
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@rileykarson, 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.

@github-actions github-actions bot requested a review from rileykarson May 27, 2024 19:37
Copy link

This PR has been waiting for review for 2 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@daanheikens
Copy link
Contributor Author

Hey @rileykarson, bumping up this one.

One of my colleagues requested this one and it would really help us to enhance a solution we are designing.

@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label May 31, 2024
@rileykarson
Copy link
Member

Started generation, probably won't be done before I sign off for the day. Will try to get a full pass done Monday, sorry for the delay!

@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.

google provider: Diff ( 2 files changed, 477 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 1284 insertions(+), 13 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 254 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 942
Passed tests: 866
Skipped tests: 72
Affected tests: 4

Click here to see the affected service packages
  • compute

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy|TestAccComputeInstance_guestAccelerator|TestAccComputeUrlMap_urlMapCustomErrorResponsePolicyExample|TestAccComputeUrlMap_urlMapCustomErrorResponsePolicyUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccComputeUrlMap_urlMapCustomErrorResponsePolicyExample[Debug log]
TestAccComputeUrlMap_urlMapCustomErrorResponsePolicyUpdate[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy[Error message] [Debug log]
TestAccComputeInstance_guestAccelerator[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@daanheikens
Copy link
Contributor Author

Started generation, probably won't be done before I sign off for the day. Will try to get a full pass done Monday, sorry for the delay!

No worries! Thanks. I will process your feedback.

@github-actions github-actions bot requested a review from rileykarson June 3, 2024 07:42
@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Jun 3, 2024
Copy link

github-actions bot commented Jun 5, 2024

This PR has been waiting for review for 2 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

@nika-pr
Copy link

nika-pr commented Jun 10, 2024

Does someone else have time to review this? We are waiting for this to get merged...

@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Jun 10, 2024
@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.

google provider: Diff ( 2 files changed, 257 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 1284 insertions(+), 13 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 254 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 958
Passed tests: 883
Skipped tests: 74
Affected tests: 1

Click here to see the affected service packages
  • compute

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@@ -304,6 +314,66 @@ properties:
description: |
An optional description of this resource. Provide this property when you create
the resource.
- !ruby/object:Api::Type::NestedObject
name: 'defaultCustomErrorResponsePolicy'
Copy link
Member

Choose a reason for hiding this comment

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

Should the subvalues here be required, or can they be omitted? If they can be omitted, can we do that in some of the tests?

Copy link
Contributor Author

@daanheikens daanheikens Jun 14, 2024

Choose a reason for hiding this comment

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

I will have a look which are required and which are not.

mmv1/products/compute/UrlMap.yaml Outdated Show resolved Hide resolved
mmv1/products/compute/UrlMap.yaml Outdated Show resolved Hide resolved
mmv1/products/compute/UrlMap.yaml Outdated Show resolved Hide resolved
daanheikens and others added 2 commits June 14, 2024 16:21
Co-authored-by: Riley Karson <rileykarson@google.com>
Co-authored-by: Riley Karson <rileykarson@google.com>
@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Jun 14, 2024
Co-authored-by: Riley Karson <rileykarson@google.com>
@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Jun 18, 2024
@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.

google provider: Diff ( 2 files changed, 257 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 1284 insertions(+), 13 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 254 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 962
Passed tests: 887
Skipped tests: 74
Affected tests: 1

Click here to see the affected service packages
  • compute

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@rileykarson
Copy link
Member

(TestAccComputeInstanceNetworkIntefaceWithSecurityPolicy is probably unrelated and you can ignore it unless I flag it specifically)

Copy link

@rileykarson This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

@rileykarson rileykarson merged commit 03a2343 into GoogleCloudPlatform:main Jun 21, 2024
13 of 14 checks passed
@rileykarson
Copy link
Member

LGTM, thanks!

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