-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 Gemini Gemini Gcp Enablement Setting Binding resource #12897
base: main
Are you sure you want to change the base?
Add Gemini Gemini Gcp Enablement Setting Binding resource #12897
Conversation
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. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gemini_gemini_gcp_enablement_setting_binding" "primary" {
labels = # value needed
product = # value needed
}
|
Tests analyticsTotal tests: 9 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Currently failing because it depends on Gemini Gemini Gcp Enablement Setting. Will fix after PR is submitted #12896. |
@roaks3 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, but sounds like we need to wait for final approval until the other PR is merged
vars: | ||
gemini_gcp_enablement_setting_id: ls-tf1 | ||
setting_binding_id: ls-tf1b1 | ||
target: projects/980109375338 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you describe what's going on with these hard-coded projects? If possible, the ideal would generally be to create temporary projects as part of the test config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gemini_gcp_enablement_setting_id is used to identify a GeminiGcpEnablementSetting (see PR #12896). setting_binding_id is used to identify the setting binding (main resource of this PR).
A setting binding binds a setting to a target (org/project/...). In this case, we bind the created setting with id "ls-tf1b1" to a fixed project that has all permissions required to achieve this.
Can you suggest an example of a temporary project creation process? I could not find anything in the docs/examples.
type: String | ||
description: Required. Target of the binding. | ||
required: true | ||
- name: product |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like product
isn't used in any tests (unless I missed it). Would be good to at least include it in the update test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. I added it now.
setting_binding_id = "{{index $.Vars "setting_binding_id"}}" | ||
location = "global" | ||
target = "{{index $.Vars "target"}}" | ||
depends_on = [google_gemini_gemini_gcp_enablement_setting.basic] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can, it would be better to set gemini_gcp_enablement_setting_id
to an output variable of google_gemini_gemini_gcp_enablement_setting.basic
instead, which creates an implicit dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, thanks!
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gemini_gemini_gcp_enablement_setting_binding" "primary" {
labels = # value needed
product = # value needed
}
|
Tests analyticsTotal tests: 11 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gemini_gemini_gcp_enablement_setting_binding" "primary" {
labels = # value needed
}
|
Tests analyticsTotal tests: 11 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gemini_gemini_gcp_enablement_setting_binding" "primary" {
labels = # value needed
}
|
Tests analyticsTotal tests: 11 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed feedback. Thank you for pointing these aspects out. They improve the quality of the code.
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_gemini_gemini_gcp_enablement_setting_binding" "primary" {
labels = # value needed
}
|
Tests analyticsTotal tests: 12 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.
Add new resources for Gemini Admin Control