direct: make migration ignore direct-only resources - #6261
Queued
denik wants to merge 3 commits into
Queued
Conversation
Co-authored-by: Isaac
Collaborator
Integration test reportCommit: e0d19d0
10 interesting tests: 4 RECOVERED, 4 SKIP, 2 flaky
Top 6 slowest tests (at least 2 minutes):
|
andrewnester
approved these changes
Aug 13, 2026
| @@ -0,0 +1,57 @@ | |||
| package mutator_test | |||
Contributor
There was a problem hiding this comment.
Do we need this? This seems to be covered by acceptance tests anyway and we agreed not to unit tests mutators
Co-authored-by: Isaac
Co-authored-by: Isaac
denik
added this pull request to the merge queue
Aug 13, 2026
Any commits made after this event will not be merged.
denik
added this pull request to the merge queue
Aug 13, 2026
Any commits made after this event will not be merged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
With a terraform state, adding a direct-only resource (instance pool, catalog, ...) and opting in via
engine: directmadebundle deployfail in pre-deploy checks, so the state never migrated and there was no way forward.Such resources are new by definition, since terraform could never deploy them. When the direct engine is requested but the state is still terraform, they are now skipped by this run (
bundle planreports them asskip) and created by the next deploy, which runs on the migrated state.The flag lives on
bundle.Bundle, sobundle destroyskips them as well — terraform never created them, so there is nothing to destroy. Without the opt-in nothing changes: direct-only resources are still rejected.Tests
Three acceptance tests, one per migration path:
bundle deployment migrate(which already ignored them),engine: direct, andDATABRICKS_BUNDLE_ENGINE=direct.