Skip to content

Launch bundle deployment auto-deploy - #8189

Draft
atreyadbrx wants to merge 2 commits into
dabs-ad-d4-dep-pr6-attemptsfrom
dabs-ad-d4-dep-pr7-launch
Draft

atreyadbrx wants to merge 2 commits into
dabs-ad-d4-dep-pr6-attemptsfrom
dabs-ad-d4-dep-pr7-launch

Conversation

@atreyadbrx

@atreyadbrx atreyadbrx commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

This is #7944 under bundle deployment.

Changes

Unhides the bundle deployment auto-deploy group and adds a .nextchanges/bundles/ entry.

Why

Merges once the git-webhooks API is public and auto-deploy is on by default. Until then, the commands stay hidden.

Tests

acceptance/bundle/help/bundle-deployment updated, and acceptance/bundle/help/bundle-deployment-auto-deploy added.

Stacked on #8188.

This pull request and its description were written by Isaac.

@atreyadbrx
atreyadbrx requested review from a team as code owners November 30, 2026 08:38
@atreyadbrx
atreyadbrx requested review from denik and pietern November 30, 2026 08:38
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: 63f7ce664 | Workflow run

Selected 7 changed tests (limit=20, 0 not selected)

9 tests: regression=9 unreleased=0 coverage=0 failing=0
test branch main (4c4f104) latest (v1.28.0)
TestAccept/bundle/deployment/auto-deploy/attempts ✅ ❌ ❌
TestAccept/bundle/deployment/auto-deploy/create ✅ ❌ ❌
TestAccept/bundle/deployment/auto-deploy/delete ✅ ❌ ❌
TestAccept/bundle/deployment/auto-deploy/get ✅ ❌ ❌
TestAccept/bundle/deployment/auto-deploy/list ✅ ❌ ❌
TestAccept/bundle/help/bundle-deployment-auto-deploy/DMS= ✅ ❌ ❌
TestAccept/bundle/help/bundle-deployment-auto-deploy/DMS=true ✅ ❌ ❌
TestAccept/bundle/help/bundle-deployment/DMS= ✅ ❌ ❌
TestAccept/bundle/help/bundle-deployment/DMS=true ✅ ❌ ❌
TestAccept/bundle/deployment/auto-deploy/attempts: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/deployment/auto-deploy/attempts/output.txt
        +++ /tmp/TestAcceptbundledeploymentauto-deployattempts3805969153/002/output.txt
        @@ -2,46 +2,42 @@
         === A target without a trigger
         
         >>> musterr [CLI] bundle deployment auto-deploy attempts
        -Error: target dev has no auto-deploy trigger that you can view. To create one, run: databricks bundle deployment auto-deploy create -t dev
        +Deployment related commands for managing bundle resource bindings.
         
        -=== Creating the trigger queues its first attempt
        +Use these commands to bind / unbind bundle definitions to existing workspace resources.
         
        ->>> [CLI] bundle deployment auto-deploy attempts
        -Attempt ID                            Status  Commit  Created
        -[UUID][0]  QUEUED          [TIMESTAMP]
        +Common workflow:
        +1. Generate configuration from existing resource:
        +   databricks bundle generate job --existing-job-id 12345 --key my_job
         
        ->>> [CLI] bundle deployment auto-deploy attempts [UUID][0]
        -Attempt ID: [UUID][0]
        -Status:     QUEUED
        -Created:    [TIMESTAMP]
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers/[UUID][1]/attempts"
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers/[UUID][1]/attempts/[UUID][0]"
        -}
        +2. Bind the bundle resource to the existing workspace resource:
        +   databricks bundle deployment bind my_job 12345
         
        -=== A failed attempt
        +3. Deploy updates - the bound resource will be updated in the workspace:
        +   databricks bundle deploy
         
        ->>> [CLI] bundle deployment auto-deploy attempts [UUID][2]
        -Attempt ID: [UUID][2]
        -Status:     FAILED
        -Commit:     0123456789abcdef0123456789abcdef01234567
        -Created:    [TIMESTAMP]
        -Completed:  [TIMESTAMP]
        -Stage:      RUN_BUNDLE_DEPLOY
        -Run ID:     7012345678901234
        -Error:      cannot create job: invalid cluster spec
        +After binding, the existing workspace resource will be managed by your bundle.
         
        -=== An attempt that does not exist
        +Usage:
        +  databricks bundle deployment [command]
         
        ->>> musterr [CLI] bundle deployment auto-deploy attempts [UUID][3]
        -Error: Auto-deploy attempt 'webhook-triggers/[UUID][1]/attempts/[UUID][3]' does not exist
        +Available Commands:
        +  bind        Bind bundle-defined resources to existing resources
        +  migrate     Migrate from Terraform to Direct deployment engine
        +  unbind      Unbind bundle-defined resources from its managed remote resource
         
        ->>> musterr [CLI] bundle deployment auto-deploy attempts webhook-triggers/x/attempts/y
        -Error: "webhook-triggers/x/attempts/y" is not an attempt ID. Pass the attempt_id of an attempt, not its name
        +Flags:
        +  -h, --help[=true|false]   help for deployment
         
        ->>> musterr [CLI] bundle deployment auto-deploy attempts ..
        -Error: ".." is not an attempt ID. Pass the attempt_id of an attempt, not its name
        +Global Flags:
        +      --debug[=true|false]   enable debug logging
        +  -o, --output type          output type: text or json (default text)
        +  -p, --profile string       ~/.databrickscfg profile
        +  -t, --target string        bundle target to use (if applicable)
        +      --var strings          set values for variables defined in bundle config. Example: --var="foo=bar"
        +
        +Use "databricks bundle deployment [command] --help" for more information about a command.
        +
        +Unexpected success
        +
        +Exit code: 1

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/deployment/auto-deploy/create: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/deployment/auto-deploy/create/output.txt
        +++ /tmp/TestAcceptbundledeploymentauto-deploycreate4238478208/002/output.txt
        @@ -2,289 +2,41 @@
         === The current branch, as the caller
         
         >>> [CLI] bundle deployment auto-deploy create
        -Pushes to branch main now deploy target dev as you.
        -Trigger ID: [UUID][0]
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/git-webhooks",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "dev"
        -      }
        -    }
        -  }
        -}
        +Deployment related commands for managing bundle resource bindings.
         
        -=== Updating the trigger keeps its ID
        +Use these commands to bind / unbind bundle definitions to existing workspace resources.
         
        ->>> [CLI] bundle deployment auto-deploy create --branch release --deploy-as [UUID][1]
        -Pushes to branch release now deploy target dev as [UUID][1].
        -Trigger ID: [UUID][0]
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/git-webhooks",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "release"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "dev",
        -        "deploy_as": {
        -          "service_principal_client_id": "[UUID][1]"
        -        }
        -      }
        -    }
        -  }
        -}
        +Common workflow:
        +1. Generate configuration from existing resource:
        +   databricks bundle generate job --existing-job-id 12345 --key my_job
         
        -=== As yourself, in JSON
        +2. Bind the bundle resource to the existing workspace resource:
        +   databricks bundle deployment bind my_job 12345
         
        ->>> [CLI] bundle deployment auto-deploy create -t prod --deploy-as [USERNAME] -o json
        -{
        -  "webhook_id": "[UUID][2]",
        -  "trigger_id": "[UUID][3]"
        -}
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/git-webhooks",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "prod",
        -        "deploy_as": {
        -          "user_email": "[USERNAME]"
        -        }
        -      }
        -    }
        -  }
        -}
        +3. Deploy updates - the bound resource will be updated in the workspace:
        +   databricks bundle deploy
         
        -=== As a service principal, on a production target that a user could not deploy
        +After binding, the existing workspace resource will be managed by your bundle.
         
        ->>> [CLI] bundle deployment auto-deploy create -t prod --deploy-as [UUID][1]
        -Pushes to branch main now deploy target prod as [UUID][1].
        -Trigger ID: [UUID][3]
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/git-webhooks",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "prod",
        -        "deploy_as": {
        -          "service_principal_client_id": "[UUID][1]"
        -        }
        -      }
        -    }
        -  }
        -}
        +Usage:
        +  databricks bundle deployment [command]
         
        -=== As another user
        +Available Commands:
        +  bind        Bind bundle-defined resources to existing resources
        +  migrate     Migrate from Terraform to Direct deployment engine
        +  unbind      Unbind bundle-defined resources from its managed remote resource
         
        ->>> musterr [CLI] bundle deployment auto-deploy create -t prod --deploy-as someone@example.com
        -Error: deploy_as.user_email must be your own email. To deploy as another identity, use a service principal you have the Service Principal User role on.
        +Flags:
        +  -h, --help[=true|false]   help for deployment
         
        -Host:      [DATABRICKS_URL]
        -Auth type: Personal Access Token (pat)
        +Global Flags:
        +      --debug[=true|false]   enable debug logging
        +  -o, --output type          output type: text or json (default text)
        +  -p, --profile string       ~/.databrickscfg profile
        +  -t, --target string        bundle target to use (if applicable)
        +      --var strings          set values for variables defined in bundle config. Example: --var="foo=bar"
         
        -Next steps:
        -  - Verify you have the required permissions for this operation
        -  - Check your identity: databricks auth describe
        -  - Consider setting up a profile: databricks auth login --profile <name>
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/git-webhooks",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "prod",
        -        "deploy_as": {
        -          "user_email": "someone@example.com"
        -        }
        -      }
        -    }
        -  }
        -}
        +Use "databricks bundle deployment [command] --help" for more information about a command.
        +File [OUTPUT_DIR]/out.requests.txt not found
         
        -=== A branch other than the target's git.branch
        -
        ->>> musterr [CLI] bundle deployment auto-deploy create -t prod --branch release
        -Error: git.branch is main for target prod, so a deploy from release would fail. Omit --branch, or change git.branch
        -
        -=== A git.branch from a variable
        -
        ->>> [CLI] bundle deployment auto-deploy create -t staging
        -Pushes to branch release now deploy target staging as you.
        -Trigger ID: [UUID][4]
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/git-webhooks",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "release"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "staging"
        -      }
        -    }
        -  }
        -}
        -
        -=== A git.branch that resolves to empty leaves the current branch
        -
        ->>> [CLI] bundle deployment auto-deploy create -t unpinned
        -Pushes to branch main now deploy target unpinned as you.
        -Trigger ID: [UUID][5]
        -
... (120 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/deployment/auto-deploy/delete: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/deployment/auto-deploy/delete/output.txt
        +++ /tmp/TestAcceptbundledeploymentauto-deploydelete1181205222/002/output.txt
        @@ -1,78 +1,3 @@
        +rm: cannot remove '[OUTPUT_DIR]/out.requests.txt': No such file or directory
         
        -=== Without a terminal, delete needs --auto-approve, and sends nothing first
        -
        ->>> musterr [CLI] bundle deployment auto-deploy delete
        -Error: this deletes the auto-deploy trigger of the bundle target and the job that runs its deploys. To proceed, use --auto-approve.
        -
        -=== Deleting the target's trigger leaves the other target's
        -
        ->>> [CLI] bundle deployment auto-deploy delete --auto-approve
        -Deleted the auto-deploy trigger of target dev.
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.0/git-webhooks/trigger",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "dev"
        -      }
        -    }
        -  }
        -}
        -
        ->>> [CLI] bundle deployment auto-deploy list
        -Target  Branch  Deploy as      Trigger ID
        -prod    main    you or a user  [UUID]
        -
        -=== A retried delete sends its body again
        -
        ->>> [CLI] bundle deployment auto-deploy delete -t prod --auto-approve
        -Deleted the auto-deploy trigger of target prod.
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.0/git-webhooks/trigger",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "prod"
        -      }
        -    }
        -  }
        -}
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.0/git-webhooks/trigger",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "prod"
        -      }
        -    }
        -  }
        -}
        -
        ->>> [CLI] bundle deployment auto-deploy list
        -Target  Branch  Deploy as  Trigger ID
        -
        -=== A target without a trigger
        -
        ->>> musterr [CLI] bundle deployment auto-deploy delete --auto-approve
        -Error: target dev has no auto-deploy trigger that you can view, so there is nothing to delete
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.setup: Deployment related commands for managing bundle resource bindings.
        LOG.setup: 
        LOG.setup: Use these commands to bind / unbind bundle definitions to existing workspace resources.
        LOG.setup: 
        LOG.setup: Common workflow:
        LOG.setup: 1. Generate configuration from existing resource:
        LOG.setup:    databricks bundle generate job --existing-job-id 12345 --key my_job
        LOG.setup: 
        LOG.setup: 2. Bind the bundle resource to the existing workspace resource:
        LOG.setup:    databricks bundle deployment bind my_job 12345
        LOG.setup: 
        LOG.setup: 3. Deploy updates - the bound resource will be updated in the workspace:
        LOG.setup:    databricks bundle deploy
        LOG.setup: 
        LOG.setup: After binding, the existing workspace resource will be managed by your bundle.
        LOG.setup: 
        LOG.setup: Usage:
        LOG.setup:   databricks bundle deployment [command]
        LOG.setup: 
        LOG.setup: Available Commands:
        LOG.setup:   bind        Bind bundle-defined resources to existing resources
        LOG.setup:   migrate     Migrate from Terraform to Direct deployment engine
        LOG.setup:   unbind      Unbind bundle-defined resources from its managed remote resource
        LOG.setup: 
        LOG.setup: Flags:
        LOG.setup:   -h, --help[=true|false]   help for deployment
        LOG.setup: 
        LOG.setup: Global Flags:
        LOG.setup:       --debug[=true|false]   enable debug logging
        LOG.setup:   -o, --output type          output type: text or json (default text)
        LOG.setup:   -p, --profile string       ~/.databrickscfg profile
        LOG.setup:   -t, --target string        bundle target to use (if applicable)
        LOG.setup:       --var strings          set values for variables defined in bundle config. Example: --var="foo=bar"
        LOG.setup: 
        LOG.setup: Use "databricks bundle deployment [command] --help" for more information about a command.
        LOG.setup: Deployment related commands for managing bundle resource bindings.
        LOG.setup: 
        LOG.setup: Use these commands to bind / unbind bundle definitions to existing workspace resources.
        LOG.setup: 
        LOG.setup: Common workflow:
        LOG.setup: 1. Generate configuration from existing resource:
        LOG.setup:    databricks bundle generate job --existing-job-id 12345 --key my_job
        LOG.setup: 
        LOG.setup: 2. Bind the bundle resource to the existing workspace resource:
        LOG.setup:    databricks bundle deployment bind my_job 12345
        LOG.setup: 
        LOG.setup: 3. Deploy updates - the bound resource will be updated in the workspace:
        LOG.setup:    databricks bundle deploy
        LOG.setup: 
        LOG.setup: After binding, the existing workspace resource will be managed by your bundle.
        LOG.setup: 
        LOG.setup: Usage:
        LOG.setup:   databricks bundle deployment [command]
        LOG.setup: 
        LOG.setup: Available Commands:
        LOG.setup:   bind        Bind bundle-defined resources to existing resources
        LOG.setup:   migrate     Migrate from Terraform to Direct deployment engine
        LOG.setup:   unbind      Unbind bundle-defined resources from its managed remote resource
        LOG.setup: 
        LOG.setup: Flags:
        LOG.setup:   -h, --help[=true|false]   help for deployment
        LOG.setup: 
        LOG.setup: Global Flags:
        LOG.setup:       --debug[=true|false]   enable debug logging
        LOG.setup:   -o, --output type          output type: text or json (default text)
        LOG.setup:   -p, --profile string       ~/.databrickscfg profile
        LOG.setup:   -t, --target string        bundle target to use (if applicable)
        LOG.setup:       --var strings          set values for variables defined in bundle config. Example: --var="foo=bar"
        LOG.setup: 
        LOG.setup: Use "databricks bundle deployment [command] --help" for more information about a command.

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/deployment/auto-deploy/get: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/deployment/auto-deploy/get/output.txt
        +++ /tmp/TestAcceptbundledeploymentauto-deployget3211527130/002/output.txt
        @@ -2,84 +2,42 @@
         === A target without a trigger
         
         >>> musterr [CLI] bundle deployment auto-deploy get
        -Error: target dev has no auto-deploy trigger that you can view. To create one, run: databricks bundle deployment auto-deploy create -t dev
        +Deployment related commands for managing bundle resource bindings.
         
        -=== The target's trigger
        +Use these commands to bind / unbind bundle definitions to existing workspace resources.
         
        ->>> [CLI] bundle deployment auto-deploy get
        -Trigger ID: [UUID][0]
        -Repository: https://github.com/acme/repo
        -Bundle:     databricks.yml
        -Target:     dev
        -Branch:     main
        -Deploy as:  you or a user
        +Common workflow:
        +1. Generate configuration from existing resource:
        +   databricks bundle generate job --existing-job-id 12345 --key my_job
         
        ->>> [CLI] bundle deployment auto-deploy get -t prod
        -Trigger ID: [UUID][1]
        -Repository: https://github.com/acme/repo
        -Bundle:     databricks.yml
        -Target:     prod
        -Branch:     main
        -Deploy as:  [UUID][2]
        +2. Bind the bundle resource to the existing workspace resource:
        +   databricks bundle deployment bind my_job 12345
         
        ->>> [CLI] bundle deployment auto-deploy get -t prod -o json
        -{
        -  "name": "webhook-triggers/[UUID][1]",
        -  "repo_url": "https://github.com/acme/repo",
        -  "git_provider": "GITHUB",
        -  "trigger_config": {
        -    "push_event": {
        -      "branch": "main"
        -    },
        -    "dabs_deploy": {
        -      "bundle_yml_repo_path": "databricks.yml",
        -      "deployment_mode": "prod",
        -      "deploy_as": {
        -        "service_principal_client_id": "[UUID][2]"
        -      }
        -    },
        -    "trigger_id": "[UUID][1]"
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\" AND trigger_config.dabs_deploy.deployment_mode = \"dev\""
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\" AND trigger_config.dabs_deploy.deployment_mode = \"prod\""
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\" AND trigger_config.dabs_deploy.deployment_mode = \"prod\"",
        -    "page_token": "1"
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\" AND trigger_config.dabs_deploy.deployment_mode = \"prod\""
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\" AND trigger_config.dabs_deploy.deployment_mode = \"prod\"",
        -    "page_token": "1"
        -  }
        -}
        +3. Deploy updates - the bound resource will be updated in the workspace:
        +   databricks bundle deploy
         
        -=== Another caller does not see the trigger
        +After binding, the existing workspace resource will be managed by your bundle.
         
        ->>> musterr as-test-sp [CLI] bundle deployment auto-deploy get
        -Error: target dev has no auto-deploy trigger that you can view. To create one, run: databricks bundle deployment auto-deploy create -t dev
        +Usage:
        +  databricks bundle deployment [command]
        +
        +Available Commands:
        +  bind        Bind bundle-defined resources to existing resources
        +  migrate     Migrate from Terraform to Direct deployment engine
        +  unbind      Unbind bundle-defined resources from its managed remote resource
        +
        +Flags:
        +  -h, --help[=true|false]   help for deployment
        +
        +Global Flags:
        +      --debug[=true|false]   enable debug logging
        +  -o, --output type          output type: text or json (default text)
        +  -p, --profile string       ~/.databrickscfg profile
        +  -t, --target string        bundle target to use (if applicable)
        +      --var strings          set values for variables defined in bundle config. Example: --var="foo=bar"
        +
        +Use "databricks bundle deployment [command] --help" for more information about a command.
        +
        +Unexpected success
        +
        +Exit code: 1

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/deployment/auto-deploy/list: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/deployment/auto-deploy/list/output.txt
        +++ /tmp/TestAcceptbundledeploymentauto-deploylist1652701109/002/output.txt
        @@ -2,114 +2,41 @@
         === A bundle without triggers
         
         >>> [CLI] bundle deployment auto-deploy list
        -Target  Branch  Deploy as  Trigger ID
        +Deployment related commands for managing bundle resource bindings.
         
        -=== Another bundle in the same repository, whose trigger is not this bundle's
        +Use these commands to bind / unbind bundle definitions to existing workspace resources.
         
        ->>> withdir other [CLI] bundle deployment auto-deploy create
        -Pushes to branch main now deploy target dev as you.
        -Trigger ID: [UUID][0]
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/git-webhooks",
        -  "body": {
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "other/databricks.yml",
        -        "deployment_mode": "dev"
        -      }
        -    }
        -  }
        -}
        +Common workflow:
        +1. Generate configuration from existing resource:
        +   databricks bundle generate job --existing-job-id 12345 --key my_job
         
        -=== The triggers of this bundle's targets
        +2. Bind the bundle resource to the existing workspace resource:
        +   databricks bundle deployment bind my_job 12345
         
        ->>> [CLI] bundle deployment auto-deploy list
        -Target  Branch  Deploy as      Trigger ID
        -dev     main    you or a user  [UUID][1]
        -prod    main    you or a user  [UUID][2]
        +3. Deploy updates - the bound resource will be updated in the workspace:
        +   databricks bundle deploy
         
        ->>> [CLI] bundle deployment auto-deploy list -o json
        -[
        -  {
        -    "name": "webhook-triggers/[UUID][1]",
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "dev"
        -      },
        -      "trigger_id": "[UUID][1]"
        -    }
        -  },
        -  {
        -    "name": "webhook-triggers/[UUID][2]",
        -    "repo_url": "https://github.com/acme/repo",
        -    "git_provider": "GITHUB",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "prod"
        -      },
        -      "trigger_id": "[UUID][2]"
        -    }
        -  }
        -]
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\""
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\"",
        -    "page_token": "1"
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\"",
        -    "page_token": "2"
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\""
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\"",
        -    "page_token": "1"
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/git-webhooks/webhook-triggers",
        -  "q": {
        -    "filter": "repo_url = \"https://github.com/acme/repo\" AND trigger_config.dabs_deploy.bundle_yml_repo_path = \"databricks.yml\"",
        -    "page_token": "2"
        -  }
        -}
        +After binding, the existing workspace resource will be managed by your bundle.
        +
        +Usage:
        +  databricks bundle deployment [command]
        +
        +Available Commands:
        +  bind        Bind bundle-defined resources to existing resources
        +  migrate     Migrate from Terraform to Direct deployment engine
        +  unbind      Unbind bundle-defined resources from its managed remote resource
        +
        +Flags:
        +  -h, --help[=true|false]   help for deployment
        +
        +Global Flags:
        +      --debug[=true|false]   enable debug logging
        +  -o, --output type          output type: text or json (default text)
        +  -p, --profile string       ~/.databrickscfg profile
        +  -t, --target string        bundle target to use (if applicable)
        +      --var strings          set values for variables defined in bundle config. Example: --var="foo=bar"
        +
        +Use "databricks bundle deployment [command] --help" for more information about a command.
        +rm: cannot remove '[OUTPUT_DIR]/out.requests.txt': No such file or directory
        +
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.setup: Deployment related commands for managing bundle resource bindings.
        LOG.setup: 
        LOG.setup: Use these commands to bind / unbind bundle definitions to existing workspace resources.
        LOG.setup: 
        LOG.setup: Common workflow:
        LOG.setup: 1. Generate configuration from existing resource:
        LOG.setup:    databricks bundle generate job --existing-job-id 12345 --key my_job
        LOG.setup: 
        LOG.setup: 2. Bind the bundle resource to the existing workspace resource:
        LOG.setup:    databricks bundle deployment bind my_job 12345
        LOG.setup: 
        LOG.setup: 3. Deploy updates - the bound resource will be updated in the workspace:
        LOG.setup:    databricks bundle deploy
        LOG.setup: 
        LOG.setup: After binding, the existing workspace resource will be managed by your bundle.
        LOG.setup: 
        LOG.setup: Usage:
        LOG.setup:   databricks bundle deployment [command]
        LOG.setup: 
        LOG.setup: Available Commands:
        LOG.setup:   bind        Bind bundle-defined resources to existing resources
        LOG.setup:   migrate     Migrate from Terraform to Direct deployment engine
        LOG.setup:   unbind      Unbind bundle-defined resources from its managed remote resource
        LOG.setup: 
        LOG.setup: Flags:
        LOG.setup:   -h, --help[=true|false]   help for deployment
        LOG.setup: 
        LOG.setup: Global Flags:
        LOG.setup:       --debug[=true|false]   enable debug logging
        LOG.setup:   -o, --output type          output type: text or json (default text)
        LOG.setup:   -p, --profile string       ~/.databrickscfg profile
        LOG.setup:   -t, --target string        bundle target to use (if applicable)
        LOG.setup:       --var strings          set values for variables defined in bundle config. Example: --var="foo=bar"
        LOG.setup: 
        LOG.setup: Use "databricks bundle deployment [command] --help" for more information about a command.
        LOG.setup: Deployment related commands for managing bundle resource bindings.
        LOG.setup: 
        LOG.setup: Use these commands to bind / unbind bundle definitions to existing workspace resources.
        LOG.setup: 
        LOG.setup: Common workflow:
        LOG.setup: 1. Generate configuration from existing resource:
        LOG.setup:    databricks bundle generate job --existing-job-id 12345 --key my_job
        LOG.setup: 
        LOG.setup: 2. Bind the bundle resource to the existing workspace resource:
        LOG.setup:    databricks bundle deployment bind my_job 12345
        LOG.setup: 
        LOG.setup: 3. Deploy updates - the bound resource will be updated in the workspace:
... (23 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/help/bundle-deployment-auto-deploy/DMS=: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/help/bundle-deployment-auto-deploy/output.txt
        +++ /tmp/TestAcceptbundlehelpbundle-deployment-auto-deployDMS=3927740589/002/output.txt
        @@ -1,27 +1,31 @@
         
         >>> [CLI] bundle deployment auto-deploy --help
        -Set up and inspect auto-deploy for a bundle target.
        +Deployment related commands for managing bundle resource bindings.
         
        -Auto-deploy deploys a bundle target whenever commits are pushed to a branch of
        -the bundle's Git repository. Run these commands from the bundle directory. The
        -trigger is identified by the bundle's origin URL, its path in the repository
        -and the target (-t).
        +Use these commands to bind / unbind bundle definitions to existing workspace resources.
         
        -Example:
        -  databricks bundle deployment auto-deploy create -t prod --branch main
        +Common workflow:
        +1. Generate configuration from existing resource:
        +   databricks bundle generate job --existing-job-id 12345 --key my_job
         
        +2. Bind the bundle resource to the existing workspace resource:
        +   databricks bundle deployment bind my_job 12345
        +
        +3. Deploy updates - the bound resource will be updated in the workspace:
        +   databricks bundle deploy
        +
        +After binding, the existing workspace resource will be managed by your bundle.
        +
         Usage:
        -  databricks bundle deployment auto-deploy [command]
        +  databricks bundle deployment [command]
         
         Available Commands:
        -  attempts    List the auto-deploy attempts of this bundle target, or show one
        -  create      Deploy this bundle target on every push to a branch
        -  delete      Stop auto-deploying this bundle target
        -  get         Show the auto-deploy trigger of this bundle target
        -  list        List the auto-deploy triggers of this bundle's targets
        +  bind        Bind bundle-defined resources to existing resources
        +  migrate     Migrate from Terraform to Direct deployment engine
        +  unbind      Unbind bundle-defined resources from its managed remote resource
         
         Flags:
        -  -h, --help[=true|false]   help for auto-deploy
        +  -h, --help[=true|false]   help for deployment
         
         Global Flags:
               --debug[=true|false]   enable debug logging
        @@ -30,4 +26,4 @@
           -t, --target string        bundle target to use (if applicable)
               --var strings          set values for variables defined in bundle config. Example: --var="foo=bar"
         
        -Use "databricks bundle deployment auto-deploy [command] --help" for more information about a command.
        +Use "databricks bundle deployment [command] --help" for more information about a command.

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/help/bundle-deployment-auto-deploy/DMS=true: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/help/bundle-deployment-auto-deploy/output.txt
        +++ /tmp/TestAcceptbundlehelpbundle-deployment-auto-deployDMS=true3521448400/002/output.txt
        @@ -1,27 +1,31 @@
         
         >>> [CLI] bundle deployment auto-deploy --help
        -Set up and inspect auto-deploy for a bundle target.
        +Deployment related commands for managing bundle resource bindings.
         
        -Auto-deploy deploys a bundle target whenever commits are pushed to a branch of
        -the bundle's Git repository. Run these commands from the bundle directory. The
        -trigger is identified by the bundle's origin URL, its path in the repository
        -and the target (-t).
        +Use these commands to bind / unbind bundle definitions to existing workspace resources.
         
        -Example:
        -  databricks bundle deployment auto-deploy create -t prod --branch main
        +Common workflow:
        +1. Generate configuration from existing resource:
        +   databricks bundle generate job --existing-job-id 12345 --key my_job
         
        +2. Bind the bundle resource to the existing workspace resource:
        +   databricks bundle deployment bind my_job 12345
        +
        +3. Deploy updates - the bound resource will be updated in the workspace:
        +   databricks bundle deploy
        +
        +After binding, the existing workspace resource will be managed by your bundle.
        +
         Usage:
        -  databricks bundle deployment auto-deploy [command]
        +  databricks bundle deployment [command]
         
         Available Commands:
        -  attempts    List the auto-deploy attempts of this bundle target, or show one
        -  create      Deploy this bundle target on every push to a branch
        -  delete      Stop auto-deploying this bundle target
        -  get         Show the auto-deploy trigger of this bundle target
        -  list        List the auto-deploy triggers of this bundle's targets
        +  bind        Bind bundle-defined resources to existing resources
        +  migrate     Migrate from Terraform to Direct deployment engine
        +  unbind      Unbind bundle-defined resources from its managed remote resource
         
         Flags:
        -  -h, --help[=true|false]   help for auto-deploy
        +  -h, --help[=true|false]   help for deployment
         
         Global Flags:
               --debug[=true|false]   enable debug logging
        @@ -30,4 +26,4 @@
           -t, --target string        bundle target to use (if applicable)
               --var strings          set values for variables defined in bundle config. Example: --var="foo=bar"
         
        -Use "databricks bundle deployment auto-deploy [command] --help" for more information about a command.
        +Use "databricks bundle deployment [command] --help" for more information about a command.

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/help/bundle-deployment/DMS=: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/help/bundle-deployment/output.txt
        +++ /tmp/TestAcceptbundlehelpbundle-deploymentDMS=884098331/002/output.txt
        @@ -20,7 +20,6 @@
           databricks bundle deployment [command]
         
         Available Commands:
        -  auto-deploy Deploy a bundle target on every push to a Git branch
           bind        Bind bundle-defined resources to existing resources
           migrate     Migrate from Terraform to Direct deployment engine
           unbind      Unbind bundle-defined resources from its managed remote resource

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/help/bundle-deployment/DMS=true: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/help/bundle-deployment/output.txt
        +++ /tmp/TestAcceptbundlehelpbundle-deploymentDMS=true3068486015/002/output.txt
        @@ -20,7 +20,6 @@
           databricks bundle deployment [command]
         
         Available Commands:
        -  auto-deploy Deploy a bundle target on every push to a Git branch
           bind        Bind bundle-defined resources to existing resources
           migrate     Migrate from Terraform to Direct deployment engine
           unbind      Unbind bundle-defined resources from its managed remote resource
        
FAIL

latest (v1.28.0): same output as main (4c4f104)

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 63f7ce6

Run: 46397264768

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 173 24 3:58
💚​ aws-windows-latest-4core-16gb 1 173 24 2:39
💚​ azure linux-2core-8gb 1 172 24 4:32
💚​ azure-windows-latest-4core-16gb 1 172 24 1:24
💚​ gcp linux-2core-8gb 1 173 24 4:08
💚​ gcp-windows-latest-4core-16gb 1 173 24 2:09
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 5 slowest tests (at least 2 minutes):
duration env testname
4:32 azure linux-2core-8gb TestAccept
4:08 gcp linux-2core-8gb TestAccept
3:58 aws linux-2core-8gb TestAccept
2:37 aws-windows-latest-4core-16gb TestAccept
2:07 gcp-windows-latest-4core-16gb TestAccept

@denik denik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated review of f431da750 by Opus and Astra (Fable was unavailable this round; a second, independent Astra pass stood in for it); each finding verified against the code.

Verdict: the diff itself looks right, and there is nothing to fix in it. It unhides the group, adds the help goldens and adds the changelog fragment. On top of current main it merges cleanly and builds, and the help and auto-deploy acceptance tests pass.

Before this merges:

  • Launch gate: the description says this waits until the git-webhooks API is public and auto-deploy is on by default. Nothing on the PR stops it from merging right after #8188: it has no hold label and isn't a draft. Marking it as a draft until then would make the wait explicit.
  • Cloud run: every auto-deploy command test runs only against the testserver. acceptance/bundle/deployment/auto-deploy/test.toml sets Cloud = false, with the comment "The git-webhooks API is not public yet, so no test workspace serves it". When the test workspaces serve the API, this launch PR is the natural place to turn those tests on for cloud and update that comment. Then make the last commit an empty one (git commit --allow-empty) whose message has a line cloud: TestAccept/bundle/deployment/auto-deploy, so PR CI runs create, get, list, attempts and delete against real workspaces. See acceptance/README.md.

@denik
denik requested review from a team and denik November 30, 2026 09:19
@atreyadbrx
atreyadbrx marked this pull request as draft November 30, 2026 09:22
@atreyadbrx

Copy link
Copy Markdown
Contributor Author

Thanks @denik.

  • Launch gate: this PR and its counterpart in the other stack, Launch bundle auto-deploy #7944, are now drafts. They go back to ready once the git-webhooks API is public and auto-deploy is on by default.

  • Cloud run: agreed, this PR is where it belongs. Today only one staging workspace serves the API, and none of the test workspaces do, so it can't run yet. When they do, this PR will:

    • set Cloud = true in acceptance/bundle/deployment/auto-deploy/test.toml and update its comment
    • end with an empty commit carrying cloud: TestAccept/bundle/deployment/auto-deploy

    The scripts' origin also has to change, to a repository where the GitHub App is installed. The current https://github.com/acme/repo is a placeholder, so the real service would reject create. The read commands already return the same output as the testserver when run against that staging workspace.

atreyadbrx and others added 2 commits November 30, 2026 09:59
Unhides the `bundle deployment auto-deploy` command group and adds its changelog entry.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: atreyadbrx <atreya.misra@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: atreyadbrx <atreya.misra@databricks.com>
@atreyadbrx
atreyadbrx force-pushed the dabs-ad-d4-dep-pr7-launch branch from f431da7 to 63f7ce6 Compare November 30, 2026 10:07
@atreyadbrx
atreyadbrx force-pushed the dabs-ad-d4-dep-pr6-attempts branch from 5bfec4a to 0a1d5c6 Compare November 30, 2026 10:07

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants