Skip to content

acc: terraform resource-type references after auto-migration - #6930

Merged
denik merged 3 commits into
mainfrom
denik/tf-ref-migration-tests
Oct 6, 2026
Merged

denik merged 3 commits into
mainfrom
denik/tf-ref-migration-tests

Conversation

@denik

@denik denik commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Why

To record current behaviour. There was at least one user that used ${databricks_x..} reference.

Changes

Adds migrate/auto/tf-resource-type-references: replay a terraform deployment whose job references its pipeline as ${databricks_pipeline.src_pipeline.id} (fixture captured from a terraform deploy just before #6888, where terraform resolved it), then auto-migrate. The direct engine does not support terraform resource-type references (only terraform field paths inside ${resources.*}, #5392): validate passes, then plan and deploy fail with invalid dependency. The test records this with musterr, so bundles using this syntax are stuck after the terraform removal until it is supported or rejected with an actionable error.

This pull request and its description were written by Isaac.

Replay a terraform deployment whose config references other resources by terraform field paths, then check that the direct engine resolves them to the deployed values after auto-migration: clean plan, no changes on deploy, resolved names in state.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions github-actions Bot added the DABs DABs related issues label Oct 5, 2026
…rect

Bundles referencing resources as ${databricks_<type>.<name>...} deployed on terraform, but the direct engine only supports terraform field paths inside ${resources.*}: plan and deploy fail, both directly and after auto-migration from a replayed terraform deployment.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik denik changed the title acceptance: terraform-path references survive auto-migration acceptance: terraform-style references on direct and after auto-migration Oct 5, 2026
tf-path-references duplicates resource_deps/tf_path_renames and tf_resource_type_ref fails the same way as the migration test; validate is now part of the migration test.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik denik changed the title acceptance: terraform-style references on direct and after auto-migration acceptance: terraform resource-type references after auto-migration Oct 5, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 999c1d5

Run: 37331212151

Env 🔄​flaky ✅​pass 🙈​skip Time
✅​ aws linux 276 17 5:45
✅​ aws windows 278 15 3:55
✅​ azure linux 275 17 5:33
✅​ azure windows 277 15 3:24
✅​ gcp linux 276 17 5:23
🔄​ gcp windows 2 276 15 3:50
Test Name gcp windows
🔄​ TestFsCpFileToDirWithOverwriteFlag 🔄​f
🔄​ TestFsCpFileToDirWithOverwriteFlag/local_to_uc-volumes 🔄​f
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:01 azure linux TestAccept
4:01 gcp linux TestAccept
3:58 aws linux TestAccept
3:52 aws windows TestAccept
3:36 gcp windows TestAccept
3:22 azure windows TestAccept

@denik denik changed the title acceptance: terraform resource-type references after auto-migration acc: terraform resource-type references after auto-migration Oct 5, 2026
@denik
denik marked this pull request as ready for review October 5, 2026 18:39
@denik
denik requested review from a team as code owners October 5, 2026 18:39
@denik
denik requested a review from janniklasrose October 5, 2026 18:39
@denik
denik enabled auto-merge October 5, 2026 18:50
@denik
denik added this pull request to the merge queue Oct 5, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 5, 2026
@denik
denik added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit 6114f7e Oct 6, 2026
25 checks passed
@denik
denik deleted the denik/tf-ref-migration-tests branch October 6, 2026 06:03
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