Immutable folder support in DABs#5254
Merged
Merged
Conversation
Collaborator
Integration test reportCommit: a601876
21 interesting tests: 13 SKIP, 7 KNOWN, 1 RECOVERED
Top 4 slowest tests (at least 2 minutes):
|
shreyas-goenka
left a comment
Contributor
There was a problem hiding this comment.
Minor comments - other than the bit where we use metadata.json
| @@ -15,6 +15,9 @@ type Bundle struct { | |||
|
|
|||
| type Workspace struct { | |||
| FilePath string `json:"file_path"` | |||
| // SnapshotPath is the workspace path of the immutable snapshot uploaded | |||
| // during deployment. Only populated for bundles with bundle.immutable = true. | |||
| SnapshotPath string `json:"snapshot_path,omitempty"` | |||
Contributor
There was a problem hiding this comment.
Will the UI use the immutable snapshot path? In that case we'll need to add it to DMS as well.
pietern
approved these changes
Jun 25, 2026
pietern
left a comment
Contributor
There was a problem hiding this comment.
Please take a final pass on the remaining comments (this review and previous ones).
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.
Changes
Added support for deploying bundles to immutable folders in the workspace
When
experimental.immutable_folder: trueis set, the CLI packages all bundle source files and built artifacts into a single zip archive and uploads it as a content-addressed, immutable snapshot. The snapshot path is derived from the content hash of the zip, so identical code always lands at the same location and re-deploying an unchanged bundle is a no-op at the storage layer.This mode is currently supported with the direct deployment engine only (DATABRICKS_BUNDLE_ENGINE=direct).
Example databricks.yml:
After bundle deploy, the job's python_file resolves to a path like:
/Workspace/Users/[UUID]/.snapshots///src/files/src/main.py
Tests
Added an acceptance tests