-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix permadiff on dataflow_flex_template_job
#14038
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
Fix permadiff on dataflow_flex_template_job
#14038
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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. @slevenick, 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.
|
Tests analyticsTotal tests: 25 Click here to see the affected service packages
🟢 All tests passed! View the build log |
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 add a test step that specifies these fields? I'd like to make sure this works correctly going forward, having a test for this will ensure that
Yeah sure. Do you want a case that uses the google-made templates or a custom one. If a custom one, is there a way to upload the Docker image of the template to the projects that's running the tests? And a way to upload the Resource used to reproduce the issue resource "google_dataflow_flex_template_job" "flex_job" {
provider = google-beta
project = var.project_id
service_account_email = var.terraform_service_account
region = var.region
name = "test-job-123"
container_spec_gcs_path = "gs://test-bucketsss-123456789/samples/dataflow/templates/wordcount-go.json"
on_delete = "cancel"
network = google_compute_network.test-network.name
subnetwork = google_compute_subnetwork.test-subnetwork.self_link
parameters = {
output="gs://test-bucketsss-123456789/samples/dataflow/templates/counts.txt"
}
labels = {
"my_labels" = "value"
}
max_workers = 2
machine_type = "n1-standard-1"
} Template {
"defaultEnvironment": {},
"image": "europe-central2-docker.pkg.dev/prj-cm-fk-sandbox/flex-templates/dataflow/wordcount-go:latest",
"metadata": {
"description": "An Apache Beam batch pipeline that reads text from GCS and counts occurrences of words.",
"name": "Beam Go Wordcount",
"parameters": [
{
"helpText": "GCS text files to read from.",
"isOptional": true,
"label": "File(s) to read.",
"name": "input"
},
{
"helpText": "GCS location to write output to.",
"isOptional": false,
"label": "Output file.",
"name": "output"
}
]
},
"sdkInfo": {
"language": "GO"
}
} Thanks! |
Ideally a google made template, just so that setting up the test will be easier. You can check out our existing tests and copy or modify one of them: https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/third_party/terraform/services/dataflow/resource_dataflow_flex_template_job_test.go.tmpl |
done |
@slevenick This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
mmv1/third_party/terraform/services/dataflow/resource_dataflow_flex_template_job.go.tmpl
Show resolved
Hide resolved
mmv1/third_party/terraform/services/dataflow/resource_dataflow_flex_template_job.go.tmpl
Outdated
Show resolved
Hide resolved
@GoogleCloudPlatform/terraform-team @slevenick This PR has been waiting for review for 1 week. Please take a look! Use the label |
b4f0b23
to
cef3c56
Compare
@GoogleCloudPlatform/terraform-team @slevenick This PR has been waiting for review for 2 weeks. Please take a look! Use the label |
@slevenick is anything needed here? |
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.
|
Non-exercised tests🔴 Tests were added that are skipped in VCR:
Tests analyticsTotal tests: 27 Click here to see the affected service packages
View the build log |
@GoogleCloudPlatform/terraform-team @slevenick This PR has been waiting for review for 3 weeks. Please take a look! Use the label |
Sorry, was out for a couple weeks there! I'm kicking off the test in CI as it's difficult to run locally. If that passes I'll approve |
ab863f2
fixes hashicorp/terraform-provider-google#21322
The
sdkPipelineOptions
object isn't the same depending on the template causing these values to default to 0 or nilRelease Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.