Add support for experiments in direct deployment#3669
Merged
shreyas-goenka merged 26 commits intomainfrom Oct 1, 2025
Merged
Conversation
- Add ResourceExperiment adapter implementing CRUD operations for MLflow experiments - Add experiments to SupportedResources in direct deployment bundle - Add acceptance test for experiment deployment in both terraform and direct modes - Enable creating, updating, and deleting experiments via direct API calls This allows experiments to be deployed using DATABRICKS_BUNDLE_ENGINE=direct-exp, providing an alternative to the terraform-based deployment approach.
Collaborator
|
Contributor
|
Can we enable acceptance/bundle/deploy/mlops-stacks/ ? |
denik
reviewed
Sep 29, 2025
denik
reviewed
Sep 29, 2025
denik
approved these changes
Oct 1, 2025
Contributor
denik
left a comment
There was a problem hiding this comment.
Looks good. Same suggestion on test organization as in https://github.com/databricks/cli/pull/3670/files#r2393785138 (can be a follow up).
|
|
||
| func (*ResourceExperiment) FieldTriggers() map[string]deployplan.ActionType { | ||
| return map[string]deployplan.ActionType{ | ||
| "name": deployplan.ActionTypeUpdate, |
Contributor
There was a problem hiding this comment.
a link to corresponding TF code would be helpful there.
This was referenced Oct 1, 2025
denik
reviewed
Jan 29, 2026
| @@ -0,0 +1,3 @@ | |||
| update experiments.my_experiment | |||
|
|
|||
| Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged | |||
Contributor
There was a problem hiding this comment.
Why do we have 'update' for terraform but 'skip' for direct here? @shreyas-goenka
Contributor
There was a problem hiding this comment.
I think I remember now, terraform shows changes but does not perform the update. Direct also does not do the update for tags but also does not show it in the plan.
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
This PR adds support for ML experiments to direct deployment, keeping the behaviour the same as the current Terraform implementation.
Why
To make migration to direct possible and seamless.
Tests
New integration test.