Skip to content

Conversation

@sravani-bobbala
Copy link
Contributor

@sravani-bobbala sravani-bobbala commented Dec 29, 2025

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

dataproc: added `instance_flexibility_policy` to `master_config` and `worker_config` in `google_dataproc_cluster` resource.

sravani-bobbala and others added 5 commits December 3, 2025 12:51
uncommenting the subnet config
This change introduces the instance_flexibility_policy block to the master_config
and worker_config sections of the google_dataproc_cluster resource, allowing
users to specify a ranked list of machine types.
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Dec 29, 2025
@sravani-bobbala sravani-bobbala marked this pull request as ready for review December 30, 2025 03:34
@github-actions github-actions bot requested a review from slevenick December 30, 2025 03:35
@github-actions
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.

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

@sravani-bobbala
Copy link
Contributor Author

Attaching local test results.
LocalTest.log

boot_disk_size_gb = 35
}
instance_flexibility_policy {
instance_selection_list {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you modify a test to specify a rank = 2 instance selection before a rank 1 one? Often we see issues when a server reorders lists based on some criteria that Terraform doesn't know about, so it's good to test that case specifically!

@modular-magician modular-magician added service/dataproc and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Dec 30, 2025
@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 ( 4 files changed, 454 insertions(+), 4 deletions(-))
google-beta provider: Diff ( 4 files changed, 454 insertions(+), 4 deletions(-))

Missing doc report (experimental)

The following resources have fields missing in documents.

  • google_dataproc_cluster
    • Expected Document Path: /website/docs/r/dataproc_cluster.html.markdown
    • Fields: [cluster_config.master_config.instance_flexibility_policy.instance_selection_list cluster_config.master_config.instance_flexibility_policy.instance_selection_list.machine_types cluster_config.master_config.instance_flexibility_policy.instance_selection_list.rank cluster_config.master_config.instance_flexibility_policy.instance_selection_results cluster_config.master_config.instance_flexibility_policy.instance_selection_results.machine_type cluster_config.master_config.instance_flexibility_policy.instance_selection_results.vm_count cluster_config.worker_config.instance_flexibility_policy.instance_selection_list cluster_config.worker_config.instance_flexibility_policy.instance_selection_list.machine_types cluster_config.worker_config.instance_flexibility_policy.instance_selection_list.rank cluster_config.worker_config.instance_flexibility_policy.instance_selection_results cluster_config.worker_config.instance_flexibility_policy.instance_selection_results.machine_type cluster_config.worker_config.instance_flexibility_policy.instance_selection_results.vm_count]

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 81
Passed tests: 68
Skipped tests: 6
Affected tests: 7

Click here to see the affected service packages
  • dataproc

Action taken

Found 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDataprocCluster_allInstanceFlexibilityPolicy
  • TestAccDataprocCluster_masterInstanceFlexibilityPolicy
  • TestAccDataprocCluster_withAccelerators
  • TestAccDataprocCluster_withConfidentialCompute
  • TestAccDataprocCluster_withNodeGroupAffinity
  • TestAccDataprocCluster_withReservationAffinity
  • TestAccDataprocCluster_workerInstanceFlexibilityPolicy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDataprocCluster_allInstanceFlexibilityPolicy [Debug log]
TestAccDataprocCluster_workerInstanceFlexibilityPolicy [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccDataprocCluster_masterInstanceFlexibilityPolicy [Error message] [Debug log]
TestAccDataprocCluster_withAccelerators [Error message] [Debug log]
TestAccDataprocCluster_withConfidentialCompute [Error message] [Debug log]
TestAccDataprocCluster_withNodeGroupAffinity [Error message] [Debug log]
TestAccDataprocCluster_withReservationAffinity [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 Dec 31, 2025
@github-actions github-actions bot requested a review from slevenick December 31, 2025 16:05
@slevenick
Copy link
Contributor

/gcbrun

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jan 2, 2026
@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 ( 4 files changed, 459 insertions(+), 4 deletions(-))
google-beta provider: Diff ( 4 files changed, 459 insertions(+), 4 deletions(-))

Missing doc report (experimental)

The following resources have fields missing in documents.

  • google_dataproc_cluster
    • Expected Document Path: /website/docs/r/dataproc_cluster.html.markdown
    • Fields: [cluster_config.master_config.instance_flexibility_policy.instance_selection_list cluster_config.master_config.instance_flexibility_policy.instance_selection_list.machine_types cluster_config.master_config.instance_flexibility_policy.instance_selection_list.rank cluster_config.master_config.instance_flexibility_policy.instance_selection_results cluster_config.master_config.instance_flexibility_policy.instance_selection_results.machine_type cluster_config.master_config.instance_flexibility_policy.instance_selection_results.vm_count cluster_config.worker_config.instance_flexibility_policy.instance_selection_list cluster_config.worker_config.instance_flexibility_policy.instance_selection_list.machine_types cluster_config.worker_config.instance_flexibility_policy.instance_selection_list.rank cluster_config.worker_config.instance_flexibility_policy.instance_selection_results cluster_config.worker_config.instance_flexibility_policy.instance_selection_results.machine_type cluster_config.worker_config.instance_flexibility_policy.instance_selection_results.vm_count]

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 81
Passed tests: 72
Skipped tests: 6
Affected tests: 3

Click here to see the affected service packages
  • dataproc

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
  • TestAccDataprocCluster_allInstanceFlexibilityPolicy
  • TestAccDataprocCluster_masterInstanceFlexibilityPolicy
  • TestAccDataprocCluster_workerInstanceFlexibilityPolicy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDataprocCluster_allInstanceFlexibilityPolicy [Debug log]
TestAccDataprocCluster_workerInstanceFlexibilityPolicy [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccDataprocCluster_masterInstanceFlexibilityPolicy [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
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

resource_dataproc_cluster_test.go:694: Step 1/1 error: Check failed: Check 1/2 error: Check 4/4 error: google_dataproc_cluster.master_instance_flexibility_policy: Attribute 'cluster_config.0.master_config.0.instance_flexibility_policy.0.instance_selection_results.0.machine_type' expected to be set

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.

3 participants