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

Fix hashicorp/terraform-provider-google#17388 (only run tests in beta) #10120

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

rainshen49
Copy link
Contributor

Roll-forward #10111 with handwritten update tests also limited to beta.

Release Note Template for Downstream PRs (will be copied)

test only

@rainshen49
Copy link
Contributor Author

rainshen49 commented Mar 5, 2024

Please assign to @ScottSuarez per #10111. It looks like CI is still broken. I'm okay to wait till the diff generator is functional before merging.

@github-actions github-actions bot requested a review from trodge March 5, 2024 15:29
Copy link

github-actions bot commented Mar 5, 2024

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

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

@ScottSuarez ScottSuarez requested review from ScottSuarez and removed request for trodge March 5, 2024 18:12
@ScottSuarez
Copy link
Contributor

/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 ( 15 files changed, 30 insertions(+), 908 deletions(-))
Terraform Beta: Diff ( 15 files changed, 76 insertions(+), 16 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 16
Passed tests: 16
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • firebaseappcheck

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

@ScottSuarez
Copy link
Contributor

@rainshen49 is there more context for this change. Why are we moving these tests to beta only. I presumed they were in GA by mistake but am interested in more context.

@rainshen49
Copy link
Contributor Author

Right, I should've explained. The API for google_firebase_app_check_* has a GA version and a beta version https://firebase.google.com/docs/reference/appcheck/rest, but google_firebase_*_app only has a beta API https://firebase.google.com/docs/reference/firebase-management/rest.

  1. If the user wants to use the complete flow to create an app and use App Check, they have to use the google-beta provider at least for the google_firebase_*_app.
  2. If the user creates their app elsewhere (e.g. console, CLI), they can absolutely use App Check with the GA provider
  3. In the examples, we want to show the complete picture, so it can only be run in the beta provider.

@rainshen49
Copy link
Contributor Author

Friendly ping @ScottSuarez

@ScottSuarez
Copy link
Contributor

Friendly ping @ScottSuarez

Sorry for sleeping on this PR. I've been so busy. Let me do a pass.

@ScottSuarez
Copy link
Contributor

Could you message me on google chat. Lets have a short call on this topic. I think we need to talk this out a bit.

@ScottSuarez
Copy link
Contributor

/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 ( 15 files changed, 30 insertions(+), 908 deletions(-))
google-beta provider: Diff ( 15 files changed, 76 insertions(+), 16 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 18
Passed tests: 17
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • firebaseappcheck

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
TestAccFirebaseAppCheckServiceConfig_firebaseAppCheckServiceConfigUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

$\textcolor{red}{\textsf{Tests failed when rerunning REPLAYING mode:}}$
TestAccFirebaseAppCheckServiceConfig_firebaseAppCheckServiceConfigUpdate[Error message] [Debug log]

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.


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

@rainshen49
Copy link
Contributor Author

The failure TestAccFirebaseAppCheckServiceConfig_firebaseAppCheckServiceConfigUpdate is unrelated to this PR. It looks like #10206 is flakey. I'll investigate separately.

@ScottSuarez
Copy link
Contributor

Could we investigate or disable this testcase before checkin. Unfortunately if we check in a PR with a failing test that recording will be brought into our CI database.

@rainshen49
Copy link
Contributor Author

Ack. I will wait for #10281 then.

@rainshen49
Copy link
Contributor Author

Looks like it's fixed by #10258

@ScottSuarez
Copy link
Contributor

/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 ( 15 files changed, 30 insertions(+), 908 deletions(-))
google-beta provider: Diff ( 15 files changed, 76 insertions(+), 16 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 18
Passed tests: 17
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • firebaseappcheck

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
TestAccFirebaseAppCheckServiceConfig_firebaseAppCheckServiceConfigUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccFirebaseAppCheckServiceConfig_firebaseAppCheckServiceConfigUpdate[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
Contributor

@ScottSuarez ScottSuarez left a comment

Choose a reason for hiding this comment

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

Thanks for your patience here :)

@ScottSuarez ScottSuarez merged commit 44041dc into GoogleCloudPlatform:main Mar 27, 2024
12 checks passed
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Mar 27, 2024
pjotrekk pushed a commit to pjotrekk/magic-modules that referenced this pull request Apr 2, 2024
cmfeng pushed a commit to cmfeng/cmfeng-magic-modules that referenced this pull request Apr 5, 2024
hao-nan-li pushed a commit to hao-nan-li/magic-modules that referenced this pull request Apr 9, 2024
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
pawelJas pushed a commit to pawelJas/magic-modules that referenced this pull request May 16, 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants