Skip to content

bundle: delete terraform code paths that are unreachable after the engine removal - #6935

Merged
denik merged 2 commits into
mainfrom
denik/tf-cleanup-dead-paths
Oct 6, 2026
Merged

denik merged 2 commits into
mainfrom
denik/tf-cleanup-dead-paths

Conversation

@denik

@denik denik commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Delete terraform-only code that can no longer run: every command reaching it has already migrated to the direct engine, and engine: terraform is rejected during initialization.

  • Validators that only fired on terraform: validate_direct_only_resources, validate_lifecycle_started, validate_cluster_libraries, validate_cascade_on_destroy.
  • bundle/permissions/terraform_errors.go, dry-run migration telemetry, never-set TerraformStateSizeBytes.
  • process.go terraform ID loading and the --plan/--select engine errors; terraform branch of PushResourcesState; engine-mismatch warning in PullResourcesState; deployment migrate engine check; closed-StateDB guard in ResolveConfigAgainstState.

Kept config.Bundle.Terraform (users can still set it in YAML; removing it would add an unknown-field warning).

Tests

No golden changes.

This pull request and its description were written by Isaac.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 06287b5

Run: 37448818305

Env ✅​pass 🙈​skip Time
✅​ aws linux 276 16 6:46
✅​ aws windows 278 14 7:39
✅​ azure linux 275 16 6:29
✅​ azure windows 277 14 7:34
✅​ gcp linux 276 16 6:54
✅​ gcp windows 278 14 8:08
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:06 azure linux TestAccept
4:05 aws linux TestAccept
4:01 gcp linux TestAccept
3:36 azure windows TestAccept
3:35 gcp windows TestAccept
3:10 aws windows TestAccept

@denik
denik marked this pull request as ready for review October 6, 2026 07:33
@denik
denik requested review from a team as code owners October 6, 2026 07:33
@denik
denik force-pushed the denik/bundle-internal-tf-removal branch from a30335c to bcedda7 Compare October 6, 2026 10:05
denik and others added 2 commits October 6, 2026 12:06
…gine removal

Remove the terraform-engine-only validators, the terraform permission error
extender, dry-run migration telemetry, process.go's terraform ID-loading,
--plan/--select engine checks, the terraform branch of PushResourcesState,
the engine-mismatch warning in PullResourcesState, migrate's
engine: terraform PostInitFunc, the closed-StateDB guard in
ResolveConfigAgainstState and the never-set TerraformStateSizeBytes field.
Every command that reaches these paths has already migrated to the direct
engine, and engine: terraform is rejected during initialization.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik force-pushed the denik/tf-cleanup-dead-paths branch from 74b2a82 to 06287b5 Compare October 6, 2026 10:15
@denik
denik changed the base branch from denik/bundle-internal-tf-removal to main October 6, 2026 10:15
@github-actions github-actions Bot added the DABs DABs related issues label Oct 6, 2026
@denik
denik added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit ce270c7 Oct 6, 2026
47 checks passed
@denik
denik deleted the denik/tf-cleanup-dead-paths branch October 6, 2026 11:10
yiweidai-db pushed a commit to yiweidai-db/cli that referenced this pull request Oct 6, 2026
## Changes
After migration, phases always run on the direct engine. Drop the engine
argument and its branches from deploy/destroy/plan phases,
`PreDeployChecks`, `SecretScopeFixups`, `CheckRunningResource`,
`CheckDashboardsModifiedRemotely` (moved to `bundle/deploy`) and
`configsync.ExtractChanges`.

bind/unbind and `apps import` pass the bundle resource group straight to
`phases.Bind`/`Unbind` instead of round-tripping through Terraform
resource names; `BindOptions` moves next to `phases.Bind`. The guards
refusing bind/unbind on terraform state are kept.

## Tests
Pure refactor, no golden changes.

Stacked on databricks#6935.

This pull request and its description were written by Isaac.

Co-authored-by: Isaac <no-reply@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants