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

Terraform config for Firebase App Hosting Backend resource #13040

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

rainshen49
Copy link
Contributor

@rainshen49 rainshen49 commented Feb 11, 2025

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

`google_firebase_app_hosting_backend`

@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, 359 insertions(+))
google-beta provider: Diff ( 12 files changed, 1885 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 193 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
  managed_resources {
    run_service {
      service = # value needed
    }
  }
}

@rainshen49 rainshen49 marked this pull request as ready for review February 11, 2025 15:46
@rainshen49
Copy link
Contributor Author

rainshen49 commented Feb 11, 2025

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (1 total tests) Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
}

Note that codebase is hard to test in an automated fashion because it requires a real Github repo link, which can't be programmatically created. A human OAuth consent flow is required. However, an associated doc only example is provided.

@github-actions github-actions bot requested a review from roaks3 February 11, 2025 15:47
Copy link

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

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

@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, 364 insertions(+))
google-beta provider: Diff ( 12 files changed, 1884 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 193 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
  managed_resources {
    run_service {
      service = # value needed
    }
  }
}

@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, 364 insertions(+))
google-beta provider: Diff ( 12 files changed, 1884 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 193 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4588
Passed tests: 4156
Skipped tests: 425
Affected tests: 7

Click here to see the affected service packages

All service packages are affected

#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendGithubExample

Action taken

Found 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccAccessContextManager
  • TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample
  • TestAccCloudbuildWorkerPool_basic
  • TestAccDataSourceGoogleGkeHubFeature_basic
  • TestAccEphemeralServiceAccountKey_basic
  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendBasicExample
  • TestAccSpannerInstance_spannerInstanceWithAutoscaling

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccAccessContextManager [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Debug log]
TestAccSpannerInstance_spannerInstanceWithAutoscaling [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccAccessContextManager [Error message] [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Error message] [Debug log]
TestAccSpannerInstance_spannerInstanceWithAutoscaling [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.


🔴 Tests failed during RECORDING mode:
TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample [Error message] [Debug log]
TestAccCloudbuildWorkerPool_basic [Error message] [Debug log]
TestAccEphemeralServiceAccountKey_basic [Error message] [Debug log]
TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendBasicExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4588
Passed tests: 4155
Skipped tests: 425
Affected tests: 8

Click here to see the affected service packages

All service packages are affected

#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendGithubExample

Action taken

Found 8 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccAccessContextManager
  • TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample
  • TestAccCloudbuildWorkerPool_basic
  • TestAccDataSourceGoogleGkeHubFeature_basic
  • TestAccEphemeralServiceAccountKey_basic
  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendBasicExample
  • TestAccSpannerInstance_spannerInstanceWithAutoscaling
  • TestAccStorageTransferReplicationJob_basic

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccAccessContextManager [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Debug log]
TestAccSpannerInstance_spannerInstanceWithAutoscaling [Debug log]
TestAccStorageTransferReplicationJob_basic [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccDataSourceGoogleGkeHubFeature_basic [Error message] [Debug log]
TestAccSpannerInstance_spannerInstanceWithAutoscaling [Error message] [Debug log]
TestAccStorageTransferReplicationJob_basic [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.


🔴 Tests failed during RECORDING mode:
TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample [Error message] [Debug log]
TestAccCloudbuildWorkerPool_basic [Error message] [Debug log]
TestAccEphemeralServiceAccountKey_basic [Error message] [Debug log]
TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendBasicExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4588
Passed tests: 4156
Skipped tests: 425
Affected tests: 7

Click here to see the affected service packages

All service packages are affected

#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendGithubExample

Action taken

Found 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccAccessContextManager
  • TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample
  • TestAccCloudbuildWorkerPool_basic
  • TestAccDataSourceGoogleGkeHubFeature_basic
  • TestAccEphemeralServiceAccountKey_basic
  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendBasicExample
  • TestAccSpannerInstance_spannerInstanceWithAutoscaling

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccAccessContextManager [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Debug log]
TestAccSpannerInstance_spannerInstanceWithAutoscaling [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccAccessContextManager [Error message] [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Error message] [Debug log]
TestAccSpannerInstance_spannerInstanceWithAutoscaling [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.


🔴 Tests failed during RECORDING mode:
TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample [Error message] [Debug log]
TestAccCloudbuildWorkerPool_basic [Error message] [Debug log]
TestAccEphemeralServiceAccountKey_basic [Error message] [Debug log]
TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendBasicExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

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.

google provider: Diff ( 2 files changed, 376 insertions(+))
google-beta provider: Diff ( 12 files changed, 1924 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 193 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4592
Passed tests: 4159
Skipped tests: 425
Affected tests: 8

Click here to see the affected service packages

All service packages are affected

#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendGithubExample

Action taken

Found 8 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccAccessContextManager
  • TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample
  • TestAccCloudbuildWorkerPool_basic
  • TestAccDataSourceGoogleGkeHubFeature_basic
  • TestAccEphemeralServiceAccountKey_basic
  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendBasicExample
  • TestAccSpannerInstance_spannerInstanceWithAutoscaling
  • TestAccStorageTransferReplicationJob_basic

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccAccessContextManager [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Debug log]
TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendBasicExample [Debug log]
TestAccSpannerInstance_spannerInstanceWithAutoscaling [Debug log]
TestAccStorageTransferReplicationJob_basic [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccAccessContextManager [Error message] [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Error message] [Debug log]
TestAccSpannerInstance_spannerInstanceWithAutoscaling [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.


🔴 Tests failed during RECORDING mode:
TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample [Error message] [Debug log]
TestAccCloudbuildWorkerPool_basic [Error message] [Debug log]
TestAccEphemeralServiceAccountKey_basic [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@rainshen49
Copy link
Contributor Author

@roaks3 this PR is ready for review. The other test failures seem to be irrelevant.

Copy link

@roaks3 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 @roaks3 This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

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

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.

Code LGTM, but had a few test-related comments

@@ -0,0 +1,76 @@
# Service account setup only required once per project.
Copy link
Contributor

Choose a reason for hiding this comment

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

For this example, are you intending for users to use this as a reference and potentially copy-and-paste this config as a canonical example to work from? I just couldn't tell, but if it is not suitable for documentation, you may want to rework things so that it does serve that audience (and you may want test-only or docs-only examples).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there are some setup that's required only once per project, as opposed to once per backend. It's common for users to just copy-pasta code, so I want them to at least copy everything they need.

project = "{{index $.TestEnvVars "project_id"}}"

# Must be firebase-app-hosting-compute
account_id = "firebase-app-hosting-compute"
Copy link
Contributor

Choose a reason for hiding this comment

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

This should use vars so that it gets sweepable prefix/suffix added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This actually must be firebase-app-hosting-compute (see comment in the previous line). Otherwise, the experience in other surfaces (such as the Firebase Console UI) will be broken. This is publicly documented at https://firebase.google.com/support/guides/service-accounts

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah sorry, thanks for clarifying!

display_name = "Firebase App Hosting compute service account"

# Do not throw if already exists
create_ignore_already_exists = true
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of including this? Tests should be deleting this account when they complete

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See comment above (we have to use this name so sweepers can't reach it).

@github-actions github-actions bot requested a review from roaks3 February 28, 2025 02:49
@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 ( 3 files changed, 563 insertions(+))
google-beta provider: Diff ( 13 files changed, 2089 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 195 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
}

Missing service labels

The following new resources do not have corresponding service labels:

  • google_firebase_app_hosting_backend

If you believe this detection to be incorrect please raise the concern with your reviewer.
An override-missing-service-label label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4647
Passed tests: 4200
Skipped tests: 436
Affected tests: 11

Click here to see the affected service packages

All service packages are affected

Action taken

Found 11 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccAccessContextManager
  • TestAccCloudbuildWorkerPool_basic
  • TestAccDataSourceGoogleGkeHubFeature_basic
  • TestAccEphemeralServiceAccountKey_basic
  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendFullExample
  • TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendMinimalExample
  • TestAccFirebaseAppHostingBackend_update
  • TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample
  • TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample
  • TestAccSpannerInstance_spannerInstanceWithAutoscaling
  • TestAccSqlUser_password_wo

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccAccessContextManager [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Debug log]
TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendFullExample [Debug log]
TestAccFirebaseAppHostingBackend_firebaseAppHostingBackendMinimalExample [Debug log]
TestAccFirebaseAppHostingBackend_update [Debug log]
TestAccSpannerInstance_spannerInstanceWithAutoscaling [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccDataSourceGoogleGkeHubFeature_basic [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.


🔴 Tests failed during RECORDING mode:
TestAccCloudbuildWorkerPool_basic [Error message] [Debug log]
TestAccEphemeralServiceAccountKey_basic [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample [Error message] [Debug log]
TestAccSqlUser_password_wo [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

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.

google provider: Diff ( 15 files changed, 2041 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 13 files changed, 2031 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 195 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
}

Missing service labels

The following new resources do not have corresponding service labels:

  • google_firebase_app_hosting_backend

If you believe this detection to be incorrect please raise the concern with your reviewer.
An override-missing-service-label label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4647
Passed tests: 4204
Skipped tests: 436
Affected tests: 7

Click here to see the affected service packages

All service packages are affected

Action taken

Found 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccAccessContextManager
  • TestAccCloudbuildWorkerPool_basic
  • TestAccDataSourceGoogleGkeHubFeature_basic
  • TestAccEphemeralServiceAccountKey_basic
  • TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample
  • TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample
  • TestAccSqlUser_password_wo

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccAccessContextManager [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccDataSourceGoogleGkeHubFeature_basic [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.


🔴 Tests failed during RECORDING mode:
TestAccCloudbuildWorkerPool_basic [Error message] [Debug log]
TestAccEphemeralServiceAccountKey_basic [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample [Error message] [Debug log]
TestAccSqlUser_password_wo [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

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.

google provider: Diff ( 15 files changed, 2041 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 13 files changed, 2031 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 195 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
}

Missing service labels

The following new resources do not have corresponding service labels:

  • google_firebase_app_hosting_backend

If you believe this detection to be incorrect please raise the concern with your reviewer.
An override-missing-service-label label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4647
Passed tests: 4204
Skipped tests: 436
Affected tests: 7

Click here to see the affected service packages

All service packages are affected

Action taken

Found 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccAccessContextManager
  • TestAccCloudbuildWorkerPool_basic
  • TestAccDataSourceGoogleGkeHubFeature_basic
  • TestAccEphemeralServiceAccountKey_basic
  • TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample
  • TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample
  • TestAccSqlUser_password_wo

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccAccessContextManager [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccDataSourceGoogleGkeHubFeature_basic [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.


🔴 Tests failed during RECORDING mode:
TestAccCloudbuildWorkerPool_basic [Error message] [Debug log]
TestAccEphemeralServiceAccountKey_basic [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample [Error message] [Debug log]
TestAccSqlUser_password_wo [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

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.

google provider: Diff ( 15 files changed, 2044 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 13 files changed, 2034 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 195 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
}

Missing service labels

The following new resources do not have corresponding service labels:

  • google_firebase_app_hosting_backend

If you believe this detection to be incorrect please raise the concern with your reviewer.
An override-missing-service-label label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4651
Passed tests: 4208
Skipped tests: 436
Affected tests: 7

Click here to see the affected service packages

All service packages are affected

Action taken

Found 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccAccessContextManager
  • TestAccCloudbuildWorkerPool_basic
  • TestAccDataSourceGoogleGkeHubFeature_basic
  • TestAccEphemeralServiceAccountKey_basic
  • TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample
  • TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample
  • TestAccSqlUser_password_wo

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccAccessContextManager [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccDataSourceGoogleGkeHubFeature_basic [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.


🔴 Tests failed during RECORDING mode:
TestAccCloudbuildWorkerPool_basic [Error message] [Debug log]
TestAccEphemeralServiceAccountKey_basic [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample [Error message] [Debug log]
TestAccSqlUser_password_wo [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

Copy link

github-actions bot commented Mar 4, 2025

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

LGTM, just one last nit.

I think the test/check failures are not related, although it might be worth a rebase to see if they resolve. The terraform-provider-missing-service-labels check is related to resource ownership for your team, so you'll need to use go/terraform-resource-owners-enrollment to get that set up if you haven't already.

@roaks3
Copy link
Contributor

roaks3 commented Mar 6, 2025

Could you try another rebase before merge to see if the checks will resolve. Also, if you haven't already, please follow up by enrolling for resource ownership per terraform-provider-missing-service-labels

@rainshen49
Copy link
Contributor Author

cl/734321905

@github-actions github-actions bot requested a review from roaks3 March 7, 2025 15:04
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.

This is just blocked on a rebase of the branch to bring in the latest changes from main, which should at a minimum resolve the failed TeamCity check

@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, 2044 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 13 files changed, 2034 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 195 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_firebase_app_hosting_backend (4 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_firebase_app_hosting_backend" "primary" {
  codebase {
    repository     = # value needed
    root_directory = # value needed
  }
}

Missing service labels

The following new resources do not have corresponding service labels:

  • google_firebase_app_hosting_backend

If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels.
An override-missing-service-label label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4681
Passed tests: 4233
Skipped tests: 436
Affected tests: 12

Click here to see the affected service packages

All service packages are affected

Action taken

Found 12 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccCloudbuildWorkerPool_basic
  • TestAccComputeInstanceFromMachineImage_terminationTime
  • TestAccComputeInstanceFromTemplate_TerminationTime
  • TestAccComputeInstanceTemplate_instanceTerminationAction_terminationTime
  • TestAccComputeInstance_schedulingTerminationTime
  • TestAccComputeRegionInstanceTemplate_instanceTerminationAction_terminationTime
  • TestAccDNSRecordSet_routingPolicy
  • TestAccDataSourceGoogleGkeHubFeature_basic
  • TestAccEphemeralServiceAccountKey_basic
  • TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample
  • TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample
  • TestAccSqlUser_password_wo

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeInstanceFromMachineImage_terminationTime [Debug log]
TestAccComputeInstanceFromTemplate_TerminationTime [Debug log]
TestAccComputeInstanceTemplate_instanceTerminationAction_terminationTime [Debug log]
TestAccComputeInstance_schedulingTerminationTime [Debug log]
TestAccComputeRegionInstanceTemplate_instanceTerminationAction_terminationTime [Debug log]
TestAccDataSourceGoogleGkeHubFeature_basic [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccDataSourceGoogleGkeHubFeature_basic [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.


🔴 Tests failed during RECORDING mode:
TestAccCloudbuildWorkerPool_basic [Error message] [Debug log]
TestAccDNSRecordSet_routingPolicy [Error message] [Debug log]
TestAccEphemeralServiceAccountKey_basic [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionBasicWriteOnlyExample [Error message] [Debug log]
TestAccSecretManagerSecretVersion_secretVersionWithBase64StringSecretDataWriteOnlyExample [Error message] [Debug log]
TestAccSqlUser_password_wo [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants