Skip to content

Fixed type mismatch in google_ces_app variable default value#17221

Merged
hao-nan-li merged 12 commits intoGoogleCloudPlatform:mainfrom
apsureda:ces-app-var-default
Apr 23, 2026
Merged

Fixed type mismatch in google_ces_app variable default value#17221
hao-nan-li merged 12 commits intoGoogleCloudPlatform:mainfrom
apsureda:ces-app-var-default

Conversation

@apsureda
Copy link
Copy Markdown
Contributor

Release Note Template for Downstream PRs (will be copied)

Fixes hashicorp/terraform-provider-google#26627

ces: fixed type mismatch in `google_ces_app` variable default value

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Apr 21, 2026
@github-actions github-actions Bot requested a review from hao-nan-li April 21, 2026 18:19
@github-actions
Copy link
Copy Markdown

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

@hao-nan-li, 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 modular-magician added service/ces and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Apr 21, 2026
@modular-magician
Copy link
Copy Markdown
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, 28 insertions(+), 9 deletions(-))
google-beta provider: Diff ( 3 files changed, 28 insertions(+), 9 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 51
Passed tests: 46
Skipped tests: 0
Affected tests: 5

Click here to see the affected service packages
  • ces

Action taken

Found 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccCESApp_cesAppAmbientSoundGcsUriExample
  • TestAccCESApp_cesAppBasicExample
  • TestAccCESApp_update
  • TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample
  • TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccCESApp_cesAppAmbientSoundGcsUriExample [Debug log]
TestAccCESApp_cesAppBasicExample [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccCESApp_update [Error message] [Debug log]
TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample [Error message] [Debug log]
TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample_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 modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Apr 21, 2026
@modular-magician
Copy link
Copy Markdown
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 ( 4 files changed, 29 insertions(+), 10 deletions(-))
google-beta provider: Diff ( 4 files changed, 29 insertions(+), 10 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 51
Passed tests: 48
Skipped tests: 0
Affected tests: 3

Click here to see the affected service packages
  • ces

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccCESApp_update
  • TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample
  • TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

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

…ymore?)

API: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/rest/v1/projects.locations.apps.tools#Tool.DataStoreTool

Failing test case:
    resource_ces_tool_generated_test.go:216: Step 1/3 error: After applying this test step, the non-refresh plan was not empty.
...
              ~ data_store_tool {
                  ~ max_results = 0 -> 5
                    name        = "example-tool"
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Apr 22, 2026
@modular-magician
Copy link
Copy Markdown
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 ( 6 files changed, 30 insertions(+), 13 deletions(-))
google-beta provider: Diff ( 6 files changed, 30 insertions(+), 13 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+), 2 deletions(-))
Open in Cloud Shell: Diff ( 1 file changed, 1 deletion(-))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 51
Passed tests: 48
Skipped tests: 0
Affected tests: 3

Click here to see the affected service packages
  • ces

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccCESApp_update
  • TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample
  • TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

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

🟢 No issues found for passed tests after REPLAYING rerun.


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

…the API now requires a secret version path:

Error 400: Passphrase must be a Secret Manager resource name.
…e API and now it results on a drift after each terraform apply:

ces_tool_test.go:295: Step 1/4 error: After applying this test step, the non-refresh plan was not empty.
...
              ~ data_store_tool {
                  ~ max_results = 0 -> 5
                    name        = "example-tool"
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Apr 22, 2026
@modular-magician
Copy link
Copy Markdown
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 ( 8 files changed, 29 insertions(+), 18 deletions(-))
google-beta provider: Diff ( 8 files changed, 29 insertions(+), 18 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+), 2 deletions(-))
Open in Cloud Shell: Diff ( 2 files changed, 2 deletions(-))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 51
Passed tests: 48
Skipped tests: 0
Affected tests: 3

Click here to see the affected service packages
  • ces

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccCESApp_cesAppBasicExample
  • TestAccCESApp_update
  • TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccCESApp_cesAppBasicExample [Debug log]
TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample_update [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccCESApp_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 modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Apr 22, 2026
@modular-magician
Copy link
Copy Markdown
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 ( 9 files changed, 32 insertions(+), 21 deletions(-))
google-beta provider: Diff ( 9 files changed, 32 insertions(+), 21 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+), 2 deletions(-))
Open in Cloud Shell: Diff ( 2 files changed, 2 deletions(-))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 51
Passed tests: 48
Skipped tests: 0
Affected tests: 3

Click here to see the affected service packages
  • ces

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccCESApp_update
  • TestAccCESGuardrail_cesGuardrailGenerativeAnswerLlmPromptSecurityExample_update
  • TestAccCESGuardrail_cesGuardrailLlmPolicyExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccCESGuardrail_cesGuardrailGenerativeAnswerLlmPromptSecurityExample_update [Debug log]
TestAccCESGuardrail_cesGuardrailLlmPolicyExample_update [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccCESApp_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 modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Apr 23, 2026
@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Apr 23, 2026
@modular-magician
Copy link
Copy Markdown
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 ( 17 files changed, 68 insertions(+), 57 deletions(-))
google-beta provider: Diff ( 17 files changed, 68 insertions(+), 57 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+), 2 deletions(-))
Open in Cloud Shell: Diff ( 9 files changed, 12 insertions(+), 14 deletions(-))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 51
Passed tests: 36
Skipped tests: 0
Affected tests: 15

Click here to see the affected service packages
  • ces

Action taken

Found 15 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccCESAgent_cesAgentBasicExample
  • TestAccCESAgent_cesAgentBasicExample_update
  • TestAccCESAgent_cesAgentRemoteDialogflowAgentExample
  • TestAccCESAgent_cesAgentRemoteDialogflowAgentInterruptionExample
  • TestAccCESApp_cesAppAmbientSoundGcsUriExample
  • TestAccCESApp_cesAppBasicExample
  • TestAccCESApp_update
  • TestAccCESExample_cesExampleBasicExample
  • TestAccCESExample_update
  • TestAccCESGuardrail_cesGuardrailGenerativeAnswerLlmPromptSecurityExample
  • TestAccCESGuardrail_cesGuardrailGenerativeAnswerLlmPromptSecurityExample_update
  • TestAccCESGuardrail_cesGuardrailLlmPolicyExample
  • TestAccCESGuardrail_cesGuardrailLlmPolicyExample_update
  • TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample
  • TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccCESAgent_cesAgentBasicExample [Debug log]
TestAccCESAgent_cesAgentBasicExample_update [Debug log]
TestAccCESAgent_cesAgentRemoteDialogflowAgentExample [Debug log]
TestAccCESAgent_cesAgentRemoteDialogflowAgentInterruptionExample [Debug log]
TestAccCESApp_cesAppAmbientSoundGcsUriExample [Debug log]
TestAccCESApp_cesAppBasicExample [Debug log]
TestAccCESApp_update [Debug log]
TestAccCESExample_cesExampleBasicExample [Debug log]
TestAccCESExample_update [Debug log]
TestAccCESGuardrail_cesGuardrailGenerativeAnswerLlmPromptSecurityExample [Debug log]
TestAccCESGuardrail_cesGuardrailGenerativeAnswerLlmPromptSecurityExample_update [Debug log]
TestAccCESGuardrail_cesGuardrailLlmPolicyExample [Debug log]
TestAccCESGuardrail_cesGuardrailLlmPolicyExample_update [Debug log]
TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample [Debug log]
TestAccCESTool_cesToolDataStoreToolEngineSourceBasicExample_update [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

Copy link
Copy Markdown
Contributor

@hao-nan-li hao-nan-li left a comment

Choose a reason for hiding this comment

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

Do you plan to add the deprecation message in PR? If not opening another PR is ok

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Apr 23, 2026
@github-actions github-actions Bot requested a review from hao-nan-li April 23, 2026 20:10
@apsureda
Copy link
Copy Markdown
Contributor Author

Do you plan to add the deprecation message in PR? If not opening another PR is ok

Since I finally only added the deprecation message, with no changes in behavior, I think it's OK to simply add it to this PR.
I initially thought to make it ignore that field, but that would be confusing for those who were already using that field and expect it to have some effect. It's better to let it trigger a diff in the tf plan. The deprecation message will tell the users to remove that field.

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Apr 23, 2026
@modular-magician
Copy link
Copy Markdown
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 ( 18 files changed, 74 insertions(+), 60 deletions(-))
google-beta provider: Diff ( 18 files changed, 74 insertions(+), 60 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+), 2 deletions(-))
Open in Cloud Shell: Diff ( 9 files changed, 12 insertions(+), 14 deletions(-))

Missing test report

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

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

resource "google_ces_tool" "primary" {
  data_store_tool {
    max_results = # value needed
  }
}

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 51
Passed tests: 51
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • ces

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

CX Agent Studio: google_ces_app: Boolean and Number type mismatch/incorrect default value assignment in variable_declarations

3 participants