这是indexloc提供的服务,不要输入任何密码
Skip to content

Add terraform support for Developer Connect Insights #14412

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

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

Conversation

ishamiGIT
Copy link

This PR adds the necessary configuration files and examples to enable Terraform users to manage their Developer Connect Insights resource.

Specifically, this PR:

  • Adds the InsightsConfig.yaml file to define the resource.
  • Includes a basic Terraform example.
  • Adds a create and update test case for the resource.

Addresses hashicorp/terraform-provider-google#23455

`google_developer_connect_insights_config`

Copy link

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

Googlers: For automatic test runs see go/terraform-auto-test-runs.

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

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

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  annotations = # value needed
  artifact_configs {
    google_artifact_analysis {
      project_id = # value needed
    }
    google_artifact_registry {
      artifact_registry_package = # value needed
      project_id                = # value needed
    }
  }
  labels = # value needed
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Error message] [Debug log]
TestAccDeveloperConnectInsightsConfig_update [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 Jul 3, 2025

@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

github-actions bot commented Jul 7, 2025

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

@ishamiGIT
Copy link
Author

@rileykarson, please take a look to review my changes when you get the chance.

@melinath
Copy link
Member

melinath commented Jul 9, 2025

Notes from offline discussion:

@ishamiGIT
Copy link
Author

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 ( 7 files changed, 1910 insertions(+), 2 deletions(-)) google-beta provider: Diff ( 7 files changed, 1910 insertions(+), 2 deletions(-)) terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  annotations = # value needed
  artifact_configs {
    google_artifact_analysis {
      project_id = # value needed
    }
    google_artifact_registry {
      artifact_registry_package = # value needed
      project_id                = # value needed
    }
  }
  labels = # value needed
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

Didn't add "runtime_config" field because of this error when running the test:
Can't configure a value for "runtime_configs": its value will be decided
| automatically based on the result of applying this 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 ( 7 files changed, 1899 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 1899 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Error message] [Debug log]
TestAccDeveloperConnectInsightsConfig_update [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

@github-actions github-actions bot requested a review from rileykarson July 11, 2025 17:39
@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 ( 7 files changed, 1899 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 1899 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Error message] [Debug log]
TestAccDeveloperConnectInsightsConfig_update [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 ( 7 files changed, 1899 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 1899 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Error message] [Debug log]
TestAccDeveloperConnectInsightsConfig_update [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

insights_config_name: 'tf_test_ic'
test_env_vars:
project: 'PROJECT_NAME'
appHubApplication: 'APPHUB_APP_NAME'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
appHubApplication: 'APPHUB_APP_NAME'

You can use a vars entry for this one!

Copy link
Author

Choose a reason for hiding this comment

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

Done.

- projects/{{project}}/locations/{{location}}/insightsConfigs/{{insights_config_id}}
examples:
- !ruby/object:Provider::Terraform::Examples
name: 'developer_connect_insights_config_basic'
Copy link
Member

Choose a reason for hiding this comment

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

This test won't currently pass, as the config is a stub. I'd recommend we create a complete example including dependencies like the app hub application, similar to the handwritten tests. This is standard for Terraform docs.

func testAccDeveloperConnectInsightsConfig_basic(context map[string]interface{}) string {
return acctest.Nprintf(`
data "google_project" "project" {
project_id = "devconnect-insights-terraform"
Copy link
Member

Choose a reason for hiding this comment

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

We'll want the test to be as self-contained as possible.

  • Are there bootstrapping steps performed in this project we can do as part of the test?
  • If not, can we make them against the test environments (We support applying Terraform or running Go code for bootstrapping envs)?
  • If we do need an externally managed project we'll need to discuss managing some things like service account (test runner) permissions offline.

artifact_configs {
uri = "us-docker.pkg.dev/my-project/my-repo/other-image"
google_artifact_analysis {
project_id = "devconnect-insights-terraform"
Copy link
Member

Choose a reason for hiding this comment

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

nit: use tabs on the left side here

Copy link
Author

Choose a reason for hiding this comment

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

Don't know why it's showing up like this here, from my editor it has the correct indentations? Retrying now, hopefully it works.

@github-actions github-actions bot requested a review from rileykarson July 15, 2025 18:18
@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Error message] [Debug log]
TestAccDeveloperConnectInsightsConfig_update [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 ( 7 files changed, 2312 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 2312 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  artifact_configs {
    google_artifact_analysis {
      project_id = # value needed
    }
    google_artifact_registry {
      artifact_registry_package = # value needed
      project_id                = # value needed
    }
    uri = # value needed
  }
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Error message] [Debug log]
TestAccDeveloperConnectInsightsConfig_update [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 ( 7 files changed, 2344 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 2344 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  artifact_configs {
    google_artifact_analysis {
      project_id = # value needed
    }
    google_artifact_registry {
      artifact_registry_package = # value needed
      project_id                = # value needed
    }
    uri = # value needed
  }
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Error message] [Debug log]
TestAccDeveloperConnectInsightsConfig_update [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 ( 7 files changed, 2344 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 2344 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  artifact_configs {
    google_artifact_analysis {
      project_id = # value needed
    }
    google_artifact_registry {
      artifact_registry_package = # value needed
      project_id                = # value needed
    }
    uri = # value needed
  }
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [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:
TestAccDeveloperConnectInsightsConfig_update [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 ( 7 files changed, 2344 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 2344 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  artifact_configs {
    google_artifact_analysis {
      project_id = # value needed
    }
    google_artifact_registry {
      artifact_registry_package = # value needed
      project_id                = # value needed
    }
    uri = # value needed
  }
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [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:
TestAccDeveloperConnectInsightsConfig_update [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 ( 7 files changed, 2373 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 2373 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [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:
TestAccDeveloperConnectInsightsConfig_update [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 ( 7 files changed, 2373 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 2373 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • developerconnect
#### 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
  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample [Debug log]
TestAccDeveloperConnectInsightsConfig_update [Debug log]

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


🟢 All tests passed!

View the build log or the debug log for each test

}
# Grant Permissions
resource "google_project_iam_member" "apphub_permissions" {
Copy link
Member

Choose a reason for hiding this comment

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

Our presubmit "VCR" tests will be inconsistent due to having multiple resources of the same kind at the same level in the test's resource graph. This isn't an issue with the test or a "real" failure, just a deficiency in the presubmits. Can you skip both the handwritten and generated tests per https://googlecloudplatform.github.io/magic-modules/test/test/#skip-vcr?

They'll get executed in nightlies or can be kicked one-off, just not as automatic presubmits.

Copy link
Author

Choose a reason for hiding this comment

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

Ok, I added the skips for the generated and handwritten tests.

@github-actions github-actions bot requested a review from rileykarson July 25, 2025 18:11
@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 ( 7 files changed, 2375 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 7 files changed, 2375 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 208 insertions(+))

Missing test report

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

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

resource "google_developer_connect_insights_config" "primary" {
  runtime_configs {
    gke_workload {
      cluster = # value needed
    }
    uri = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccDeveloperConnectInsightsConfig_developerConnectInsightsConfigBasicExample
  • TestAccDeveloperConnectInsightsConfig_update

Tests analytics

Total tests: 33
Passed tests: 31
Skipped tests: 2
Affected tests: 0

Click here to see the affected service packages
  • developerconnect
🟢 All tests passed!

View the build log

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.

4 participants