-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add Dialogflow Environment Resource #15990
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
base: main
Are you sure you want to change the base?
Conversation
|
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. @NickElliot, 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_dialogflow_environment" "primary" {
fulfillment {
display_name = # value needed
features {
type = # value needed
}
generic_web_service {
password = # value needed
request_headers = # value needed
uri = # value needed
username = # value needed
}
name = # value needed
}
location = # value needed
text_to_speech_settings {
output_audio_encoding = # value needed
synthesize_speech_configs {
volume_gain_db = # value needed
}
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
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. |
Tests analyticsTotal tests: 18 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 passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
NickElliot
left a comment
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.
test is failing due to this unclosed string
mmv1/templates/terraform/examples/dialogflow_environment_basic.tf.tmpl
Outdated
Show resolved
Hide resolved
|
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_dialogflow_environment" "primary" {
fulfillment {
display_name = # value needed
features {
type = # value needed
}
generic_web_service {
password = # value needed
request_headers = # value needed
uri = # value needed
username = # value needed
}
name = # value needed
}
location = # value needed
text_to_speech_settings {
output_audio_encoding = # value needed
synthesize_speech_configs {
volume_gain_db = # value needed
}
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
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. |
Tests analyticsTotal tests: 18 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. |
|
What is the new error that this throwing clicking on the link gives me a 403 error and I have this working locally so I am not sure what I need to do. |
|
/gcbrun |
|
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_dialogflow_environment" "primary" {
fulfillment {
display_name = # value needed
features {
type = # value needed
}
generic_web_service {
password = # value needed
request_headers = # value needed
uri = # value needed
username = # value needed
}
name = # value needed
}
location = # value needed
text_to_speech_settings {
output_audio_encoding = # value needed
synthesize_speech_configs {
volume_gain_db = # value needed
}
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
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. |
Tests analyticsTotal tests: 18 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. |
|
@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @NickElliot This PR has been waiting for review for 1 week. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @NickElliot This PR has been waiting for review for 2 weeks. Please take a look! Use the label |
NickElliot
left a comment
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.
test is failing with the following!
Error: Error creating Environment: googleapi: Error 400: com.google.apps.framework.request.BadRequestException: Agent version should be specified in the environment.
Is there anyway to see what value is being passed on the CI build? running this locally with debug it is giving me the value I would expect to see. |
|
@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
NickElliot
left a comment
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.
---[ REQUEST ]---------------------------------------
POST /v2/projects/ci-test-project-[...]/locations/global/agent/environments/?alt=json&environmentId=basic-environment HTTP/1.1
Host: dialogflow.googleapis.com
User-Agent: Terraform/1.11.0 (+https://www.terraform.io) Terraform-Plugin-SDK/2.38.1 terraform-provider-google-beta/acc
Content-Length: 36
Content-Type: application/json
Accept-Encoding: gzip
{
"description": "basic environment"
}
-----------------------------------------------------
2025/12/23 22:24:30 [DEBUG] Google API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 400 Bad Request
Content-Type: application/json; charset=UTF-8
Date: Tue, 23 Dec 2025 22:24:30 GMT
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0
{
"error": {
"code": 400,
"message": "com.google.apps.framework.request.BadRequestException: Agent version should be specified in the environment.",
"status": "INVALID_ARGUMENT"
}
}
This is the request that is encountering an error, can you share your debug log with any personal info redacted?
|
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_dialogflow_environment" "primary" {
fulfillment {
display_name = # value needed
features {
type = # value needed
}
generic_web_service {
password = # value needed
request_headers = # value needed
uri = # value needed
username = # value needed
}
name = # value needed
}
location = # value needed
text_to_speech_settings {
output_audio_encoding = # value needed
synthesize_speech_configs {
volume_gain_db = # value needed
}
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
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. |
Tests analyticsTotal tests: 18 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. |
|
@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
NickElliot
left a comment
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 still have unclosed strings in these!
resource_dialogflow_environment_generated_test.go:62: Step 1/2 error: Error running pre-apply refresh: exit status 1
Error: Invalid multi-line string
on terraform_plugin_test.tf line 39, in resource "google_dialogflow_environment" "basic_environment":
39: description = "basic environment
40: depends_on = [google_dialogflow_agent.basic_agent]
Quoted strings may not be split over multiple lines. To produce a multi-line
string, either use the \n escape to represent a newline character or use the
"heredoc" multi-line template syntax.
| } | ||
| resource "google_dialogflow_environment" "basic_environment" { | ||
| environmentid = "basic-environment" | ||
| description = "basic environment |
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.
here
Add support for Dialogflow Environment.
Release Note Template for Downstream PRs (will be copied)