Add validation state machine for Databricks Apps#4431
Open
arsenyinfo wants to merge 4 commits intomainfrom
Open
Add validation state machine for Databricks Apps#4431arsenyinfo wants to merge 4 commits intomainfrom
arsenyinfo wants to merge 4 commits intomainfrom
Conversation
- Auto-validate on deploy when state missing or code changed - Track validation state with checksum in .databricks_app_state - Remove --skip-tests flag (tests always run during validation) - Add --skip-validation flag to bypass validation entirely
keugenek
approved these changes
Feb 3, 2026
pietern
reviewed
Feb 4, 2026
libs/apps/validation/state.go
Outdated
| "time" | ||
| ) | ||
|
|
||
| const StateFileName = ".databricks_app_state" |
Contributor
There was a problem hiding this comment.
If you have a bundle context, you can use b.CacheDir() for this.
It goes into .databricks/ which is typically already present in the .gitignore file.
You can use the git.NewRepository() and fileset packages to get a list of non-ignored files in a tree. We use this for synchronizing files into the workspace tree for bundles and for the sync command.
cc @fjakobs
Contributor
Author
- State file now stored in .databricks/bundle/<target>/app_validation_state.json - Validation without bundle context runs but skips state save - Deploy always has bundle context so state is always managed
c4f7a29 to
37c88f6
Compare
Collaborator
|
Commit: 37c88f6
24 interesting tests: 8 flaky, 7 KNOWN, 5 SKIP, 4 RECOVERED
Top 50 slowest tests (at least 2 minutes):
|
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
Add validation state machine for Databricks Apps that auto-validates on deploy when needed:
.databricks/bundle/<target>/app_validation_state.json--skip-testsflag (tests always run during validation)--skip-validationflag to bypass validation entirelyWhy
This change enforces the validation: users can only skip it when they explicitly use YOLO flag
--skip-validation.Tests
Added unit tests for state management (
state_test.go):