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

appengine: Suppress null automatic_scaling blocks during Read #10476

Conversation

rileykarson
Copy link
Member

@rileykarson rileykarson commented Apr 17, 2024

Fixes hashicorp/terraform-provider-google#17531

I went with this over O+C or a DSF because the field exists in a oneof (scaling in proto) and those options both preserve the set-but-deeply-nil automatic_scaling block in state, meaning we'd eventually send it to the server even if the user was sending a different scaling entry. This approach is worse if they start returning values for existing fields because it will break users again, but it's at least mitigatable with lifecycle.ignore_changes if that happens.

Release Note Template for Downstream PRs (will be copied)

appengine: added suppression for a diff in google_app_engine_standard_app_version.automatic_scaling when the block is unset in configuration

@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 ( 1 file changed, 27 insertions(+))
google-beta provider: Diff ( 1 file changed, 27 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 14
Passed tests: 12
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • appengine

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccAppEngineFlexibleAppVersion_update[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 rileykarson changed the title Suppress null automatic_scaling blocks during Read appengine: Suppress null automatic_scaling blocks during Read Apr 17, 2024
@rileykarson
Copy link
Member Author

I think TestAccAppEngineFlexibleAppVersion_update failed because it and TestAccAppEngineStandardAppVersion_update fight over the same singleton resources and were run literally in parallel here. I'll update them.

This should pass after /gcbrun

@rileykarson rileykarson requested a review from c2thorn April 17, 2024 22:43
@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 ( 1 file changed, 27 insertions(+))
google-beta provider: Diff ( 1 file changed, 27 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 14
Passed tests: 13
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • appengine

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
TestAccAppEngineFlexibleAppVersion_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccAppEngineFlexibleAppVersion_update[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 Author

Hmm- new error. /gcbrun

@rileykarson
Copy link
Member Author

Ah, I misread the initial failure. I misread an intended update call as the failing reason. The reason seems to be:

ERROR: No matching distribution found for gunicorn==22.0.0 (from -r requirements.txt (line 2))

So unrelated to this change. Not sure why it's not failing in the nightlies then.

@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 ( 1 file changed, 27 insertions(+))
google-beta provider: Diff ( 1 file changed, 27 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 14
Passed tests: 13
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • appengine

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
TestAccAppEngineFlexibleAppVersion_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccAppEngineFlexibleAppVersion_update[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 Author

Ah- it was #10469, that didn't run in VCR because it didn't modify a code file. #10477 to revert.

@rileykarson
Copy link
Member Author

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

google provider: Diff ( 1 file changed, 27 insertions(+))
google-beta provider: Diff ( 1 file changed, 27 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 14
Passed tests: 13
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • appengine

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
TestAccAppEngineStandardAppVersion_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

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


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

Copy link
Member

@c2thorn c2thorn left a comment

Choose a reason for hiding this comment

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

Not in love with the downsides of this maintenance-wise, but it seems better for the user experience.

@rileykarson
Copy link
Member Author

Not in love with the downsides of this maintenance-wise, but it seems better for the user experience.

Yeah- being in a oneof is the justification for taking this approach.

@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 ( 1 file changed, 29 insertions(+))
google-beta provider: Diff ( 1 file changed, 29 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 14
Passed tests: 14
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • appengine

$\textcolor{green}{\textsf{All tests passed!}}$
View the build log

@rileykarson rileykarson merged commit b27fe0a into GoogleCloudPlatform:main Apr 18, 2024
14 checks passed
@rileykarson rileykarson deleted the appengine-standardversion-automaticscaling branch April 18, 2024 19:15
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request Apr 19, 2024
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
pengq-google pushed a commit to pengq-google/magic-modules that referenced this pull request May 21, 2024
Cheriit pushed a commit to Cheriit/magic-modules that referenced this pull request Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing test(s): TestAccAppEngine* tests with automatic_scaling
3 participants