Skip to content

Add bundle auto-deploy delete - #7942

Open
atreyadbrx wants to merge 1 commit into
dabs-ad-d4-pr4-get-listfrom
dabs-ad-d4-pr5-delete
Open

atreyadbrx wants to merge 1 commit into
dabs-ad-d4-pr4-get-listfrom
dabs-ad-d4-pr5-delete

Conversation

@atreyadbrx

@atreyadbrx atreyadbrx commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • delete deletes the target's trigger and its runner job, after a prompt or with --auto-approve. The service keeps the trigger's attempts but shows them only to workspace admins, so the help says attempts can no longer show them.
  • DeleteWebhookTrigger is a DELETE with a JSON body, but the SDK always sends a DELETE's fields as query parameters. The client sends the body with a request visitor, which the SDK runs on every attempt.

Why

Users need a way to stop auto-deploying a target. The service matches the trigger to delete by its target, and it also requires the trigger's push_event, so the CLI sends both from the trigger it looked up. The visitor also sets GetBody, so the transport can replay the request the way it does for SDK-built bodies.

Tests

acceptance/bundle/auto-deploy/delete covers:

  • no terminal and no --auto-approve (error)
  • --auto-approve, with the recorded request showing the body
  • a delete that is retried after a 503 and sends its body again, after which list no longer shows the trigger
  • a target with no trigger

Stacked on #7941.

This pull request and its description were written by Isaac.

@review-oss-bot review-oss-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated review at 3c86b40. Each finding was verified against the code.

No blocking issues found. 3 non-blocking comment(s) below.

This PR adds bundle auto-deploy delete. The command looks up the target's trigger, asks for confirmation unless --auto-approve is passed, and sends the DELETE with a JSON body through a request visitor so the body survives retries. The fake server and the acceptance test are extended to match. The command and the body-on-DELETE handling look correct. What's left is a gap in the retry test and two wording fixes.

Comments outside the changed lines

  • [nit] cmd/bundle/autodeploy/autodeploy.go: The auto-deploy command's Long text still starts with "Set up and inspect auto-deploy for a bundle target." Now that delete is registered, could it read "Set up, inspect and stop auto-deploy for a bundle target."?

title "A retried delete sends its body again"
fault.py --body-contains deployment_mode "DELETE /api/2.0/git-webhooks/trigger" 503 0 1 TEMPORARILY_UNAVAILABLE
trace $CLI bundle auto-deploy delete -t prod --auto-approve
print_requests.py //git-webhooks

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[nice to have] After the retried delete -t prod, the test only prints the requests. It never shows that prod's trigger is gone. If the retry returned a 2xx without the fake deleting anything, this golden would still be produced. The last section runs against dev, which an earlier section already deleted. Can we add trace $CLI bundle auto-deploy list here, or point the "target without a trigger" section at -t prod, so the output shows the state after the retry?

Comment thread libs/gitwebhooks/model.go Outdated
NextPageToken string `json:"next_page_token,omitempty"`
}

// DeleteWebhookTrigger matches the trigger to delete on its target. The service also requires

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[nit] "Matches the trigger to delete on its target" doesn't say that the match also uses repo_url and bundle_yml_repo_path, which GitWebhooksDelete in the fake checks too. "The trigger config's repo event" is vague: the required field is push_event. How about: "The service deletes the trigger with the same repo_url, bundle_yml_repo_path and deployment_mode. It ignores push_event but rejects a request without it."

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Commit: 421015447 | Workflow run

Regression test report

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

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

main (9d5a537):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/create/output.txt
        +++ /tmp/TestAcceptbundleauto-deploycreate188941737/002/output.txt
        @@ -2,181 +2,48 @@
         === The current branch, as the caller
         
         >>> [CLI] bundle 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"
        -      }
        -    }
        -  }
        -}
        +Declarative Automation Bundles let you express data/AI/analytics projects as code.
         
        -=== Updating the trigger keeps its ID
        +Common workflows:
        +  databricks bundle init default-python      # Initialize new project
        +  databricks bundle deploy --target dev      # Deploy to development
        +  databricks bundle run my_job               # Run jobs/pipelines
        +  databricks bundle deploy --target prod     # Deploy to production
         
        ->>> [CLI] bundle 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]"
        -        }
        -      }
        -    }
        -  }
        -}
        +Import existing resources:
        +  databricks bundle generate job --existing-job-id 123 --key my_job # Generate job configuration
        +  databricks bundle deployment bind my_job 123                      # Link to an existing job
         
        -=== As yourself, in JSON
        +Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
         
        ->>> [CLI] bundle 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]"
        -        }
        -      }
        -    }
        -  }
        -}
        +Usage:
        +  databricks bundle [command]
         
        -=== As another user
        +Available Commands:
        +  deploy             Deploy bundle
        +  deployment         Deployment related commands
        +  destroy            Destroy deployed bundle resources
        +  generate           Generate bundle configuration
        +  init               Initialize using a bundle template
        +  open               Open a resource in the browser
        +  plan               Show deployment plan
        +  run                Run a job, pipeline update or app
        +  schema             Generate JSON Schema for bundle configuration
        +  summary            Summarize resources deployed by this bundle
        +  sync               Synchronize bundle tree to the workspace
        +  validate           Validate configuration
         
        ->>> musterr [CLI] bundle 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 bundle
        +      --var strings         set values for variables defined in bundle config. Example: --var="foo=bar"
         
        -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)
         
        -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 [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 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 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 host whose provider is not inferred
        -
        ->>> musterr [CLI] bundle auto-deploy create
        -Error: cannot infer the Git provider of https://git.example.test/acme/repo. Pass it with --git-provider
        -
        ->>> [CLI] bundle auto-deploy create --git-provider GITLAB_ENTERPRISE_EDITION
        -Pushes to branch main now deploy target dev as you.
        -Trigger ID: [UUID][5]
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/git-webhooks",
        -  "body": {
        -    "repo_url": "https://git.example.test/acme/repo",
        -    "git_provider": "GITLAB_ENTERPRISE_EDITION",
        -    "trigger_config": {
        -      "push_event": {
        -        "branch": "main"
        -      },
        -      "dabs_deploy": {
        -        "bundle_yml_repo_path": "databricks.yml",
        -        "deployment_mode": "dev"
        -      }
        -    }
... (21 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.28.0): same output as main (9d5a537)

TestAccept/bundle/auto-deploy/delete: branch ✅ | main (9d5a537) ❌ | latest (v1.28.0) ❌

main (9d5a537):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/delete/output.txt
        +++ /tmp/TestAcceptbundleauto-deploydelete2773165327/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
        -
        ->>> musterr [CLI] bundle auto-deploy delete
        -Error: this deletes the auto-deploy trigger of target dev. To proceed, use --auto-approve
        -
        -=== Deleting the target's trigger leaves the other target's
        -
        ->>> [CLI] bundle 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 auto-deploy list
        -Target  Branch  Deploy as    Trigger ID
        -prod    main    its creator  [UUID]
        -
        -=== A retried delete sends its body again
        -
        ->>> [CLI] bundle 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 auto-deploy list
        -Target  Branch  Deploy as  Trigger ID
        -
        -=== A target without a trigger
        -
        ->>> musterr [CLI] bundle auto-deploy delete --auto-approve
        -Error: target dev has no auto-deploy trigger that you can view. To create one, run: databricks bundle auto-deploy create -t dev
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.setup: Declarative Automation Bundles let you express data/AI/analytics projects as code.
        LOG.setup: 
        LOG.setup: Common workflows:
        LOG.setup:   databricks bundle init default-python      # Initialize new project
        LOG.setup:   databricks bundle deploy --target dev      # Deploy to development
        LOG.setup:   databricks bundle run my_job               # Run jobs/pipelines
        LOG.setup:   databricks bundle deploy --target prod     # Deploy to production
        LOG.setup: 
        LOG.setup: Import existing resources:
        LOG.setup:   databricks bundle generate job --existing-job-id 123 --key my_job # Generate job configuration
        LOG.setup:   databricks bundle deployment bind my_job 123                      # Link to an existing job
        LOG.setup: 
        LOG.setup: Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
        LOG.setup: 
        LOG.setup: Usage:
        LOG.setup:   databricks bundle [command]
        LOG.setup: 
        LOG.setup: Available Commands:
        LOG.setup:   deploy             Deploy bundle
        LOG.setup:   deployment         Deployment related commands
        LOG.setup:   destroy            Destroy deployed bundle resources
        LOG.setup:   generate           Generate bundle configuration
        LOG.setup:   init               Initialize using a bundle template
        LOG.setup:   open               Open a resource in the browser
        LOG.setup:   plan               Show deployment plan
        LOG.setup:   run                Run a job, pipeline update or app
        LOG.setup:   schema             Generate JSON Schema for bundle configuration
        LOG.setup:   summary            Summarize resources deployed by this bundle
        LOG.setup:   sync               Synchronize bundle tree to the workspace
        LOG.setup:   validate           Validate configuration
        LOG.setup: 
        LOG.setup: Flags:
        LOG.setup:   -h, --help[=true|false]   help for bundle
        LOG.setup:       --var strings         set values for variables defined in bundle config. Example: --var="foo=bar"
        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: 
        LOG.setup: Use "databricks bundle [command] --help" for more information about a command.
        LOG.setup: Declarative Automation Bundles let you express data/AI/analytics projects as code.
        LOG.setup: 
        LOG.setup: Common workflows:
        LOG.setup:   databricks bundle init default-python      # Initialize new project
        LOG.setup:   databricks bundle deploy --target dev      # Deploy to development
        LOG.setup:   databricks bundle run my_job               # Run jobs/pipelines
        LOG.setup:   databricks bundle deploy --target prod     # Deploy to production
        LOG.setup: 
        LOG.setup: Import existing resources:
        LOG.setup:   databricks bundle generate job --existing-job-id 123 --key my_job # Generate job configuration
        LOG.setup:   databricks bundle deployment bind my_job 123                      # Link to an existing job
        LOG.setup: 
        LOG.setup: Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
        LOG.setup: 
        LOG.setup: Usage:
        LOG.setup:   databricks bundle [command]
        LOG.setup: 
        LOG.setup: Available Commands:
        LOG.setup:   deploy             Deploy bundle
        LOG.setup:   deployment         Deployment related commands
        LOG.setup:   destroy            Destroy deployed bundle resources
        LOG.setup:   generate           Generate bundle configuration
        LOG.setup:   init               Initialize using a bundle template
        LOG.setup:   open               Open a resource in the browser
        LOG.setup:   plan               Show deployment plan
        LOG.setup:   run                Run a job, pipeline update or app
        LOG.setup:   schema             Generate JSON Schema for bundle configuration
        LOG.setup:   summary            Summarize resources deployed by this bundle
        LOG.setup:   sync               Synchronize bundle tree to the workspace
        LOG.setup:   validate           Validate configuration
        LOG.setup: 
        LOG.setup: Flags:
        LOG.setup:   -h, --help[=true|false]   help for bundle
        LOG.setup:       --var strings         set values for variables defined in bundle config. Example: --var="foo=bar"
        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: 
        LOG.setup: Use "databricks bundle [command] --help" for more information about a command.

latest (v1.28.0): same output as main (9d5a537)

TestAccept/bundle/auto-deploy/get: branch ✅ | main (9d5a537) ❌ | latest (v1.28.0) ❌

main (9d5a537):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/get/output.txt
        +++ /tmp/TestAcceptbundleauto-deployget4148438419/002/output.txt
        @@ -2,48 +2,49 @@
         === A target without a trigger
         
         >>> musterr [CLI] bundle auto-deploy get
        -Error: target dev has no auto-deploy trigger that you can view. To create one, run: databricks bundle auto-deploy create -t dev
        +Declarative Automation Bundles let you express data/AI/analytics projects as code.
         
        -=== The target's trigger
        +Common workflows:
        +  databricks bundle init default-python      # Initialize new project
        +  databricks bundle deploy --target dev      # Deploy to development
        +  databricks bundle run my_job               # Run jobs/pipelines
        +  databricks bundle deploy --target prod     # Deploy to production
         
        ->>> [CLI] bundle auto-deploy get
        -Trigger ID: [UUID][0]
        -Repository: https://github.com/acme/repo
        -Bundle:     databricks.yml
        -Target:     dev
        -Branch:     main
        -Deploy as:  its creator
        +Import existing resources:
        +  databricks bundle generate job --existing-job-id 123 --key my_job # Generate job configuration
        +  databricks bundle deployment bind my_job 123                      # Link to an existing job
         
        ->>> [CLI] bundle 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\""
        -  }
        -}
        +Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
        +
        +Usage:
        +  databricks bundle [command]
        +
        +Available Commands:
        +  deploy             Deploy bundle
        +  deployment         Deployment related commands
        +  destroy            Destroy deployed bundle resources
        +  generate           Generate bundle configuration
        +  init               Initialize using a bundle template
        +  open               Open a resource in the browser
        +  plan               Show deployment plan
        +  run                Run a job, pipeline update or app
        +  schema             Generate JSON Schema for bundle configuration
        +  summary            Summarize resources deployed by this bundle
        +  sync               Synchronize bundle tree to the workspace
        +  validate           Validate configuration
        +
        +Flags:
        +  -h, --help[=true|false]   help for bundle
        +      --var strings         set values for variables defined in bundle config. Example: --var="foo=bar"
        +
        +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)
        +
        +Use "databricks bundle [command] --help" for more information about a command.
        +
        +Unexpected success
        +
        +Exit code: 1

latest (v1.28.0): same output as main (9d5a537)

TestAccept/bundle/auto-deploy/list: branch ✅ | main (9d5a537) ❌ | latest (v1.28.0) ❌

main (9d5a537):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/list/output.txt
        +++ /tmp/TestAcceptbundleauto-deploylist2992817695/002/output.txt
        @@ -2,75 +2,48 @@
         === A bundle without triggers
         
         >>> [CLI] bundle auto-deploy list
        -Target  Branch  Deploy as  Trigger ID
        +Declarative Automation Bundles let you express data/AI/analytics projects as code.
         
        -=== The triggers of this bundle's targets
        +Common workflows:
        +  databricks bundle init default-python      # Initialize new project
        +  databricks bundle deploy --target dev      # Deploy to development
        +  databricks bundle run my_job               # Run jobs/pipelines
        +  databricks bundle deploy --target prod     # Deploy to production
         
        ->>> [CLI] bundle auto-deploy list
        -Target  Branch  Deploy as    Trigger ID
        -dev     main    its creator  [UUID][0]
        -prod    main    its creator  [UUID][1]
        +Import existing resources:
        +  databricks bundle generate job --existing-job-id 123 --key my_job # Generate job configuration
        +  databricks bundle deployment bind my_job 123                      # Link to an existing job
         
        ->>> [CLI] bundle auto-deploy list -o json
        -[
        -  {
        -    "name": "webhook-triggers/[UUID][0]",
        -    "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][0]"
        -    }
        -  },
        -  {
        -    "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"
        -      },
        -      "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\""
        -  }
        -}
        -{
        -  "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\""
        -  }
        -}
        -{
        -  "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"
        -  }
        -}
        +Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
        +
        +Usage:
        +  databricks bundle [command]
        +
        +Available Commands:
        +  deploy             Deploy bundle
        +  deployment         Deployment related commands
        +  destroy            Destroy deployed bundle resources
        +  generate           Generate bundle configuration
        +  init               Initialize using a bundle template
        +  open               Open a resource in the browser
        +  plan               Show deployment plan
        +  run                Run a job, pipeline update or app
        +  schema             Generate JSON Schema for bundle configuration
        +  summary            Summarize resources deployed by this bundle
        +  sync               Synchronize bundle tree to the workspace
        +  validate           Validate configuration
        +
        +Flags:
        +  -h, --help[=true|false]   help for bundle
        +      --var strings         set values for variables defined in bundle config. Example: --var="foo=bar"
        +
        +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)
        +
        +Use "databricks bundle [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: Declarative Automation Bundles let you express data/AI/analytics projects as code.
        LOG.setup: 
        LOG.setup: Common workflows:
        LOG.setup:   databricks bundle init default-python      # Initialize new project
        LOG.setup:   databricks bundle deploy --target dev      # Deploy to development
        LOG.setup:   databricks bundle run my_job               # Run jobs/pipelines
        LOG.setup:   databricks bundle deploy --target prod     # Deploy to production
        LOG.setup: 
        LOG.setup: Import existing resources:
        LOG.setup:   databricks bundle generate job --existing-job-id 123 --key my_job # Generate job configuration
        LOG.setup:   databricks bundle deployment bind my_job 123                      # Link to an existing job
        LOG.setup: 
        LOG.setup: Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
        LOG.setup: 
        LOG.setup: Usage:
        LOG.setup:   databricks bundle [command]
        LOG.setup: 
        LOG.setup: Available Commands:
        LOG.setup:   deploy             Deploy bundle
        LOG.setup:   deployment         Deployment related commands
        LOG.setup:   destroy            Destroy deployed bundle resources
        LOG.setup:   generate           Generate bundle configuration
        LOG.setup:   init               Initialize using a bundle template
        LOG.setup:   open               Open a resource in the browser
        LOG.setup:   plan               Show deployment plan
        LOG.setup:   run                Run a job, pipeline update or app
        LOG.setup:   schema             Generate JSON Schema for bundle configuration
        LOG.setup:   summary            Summarize resources deployed by this bundle
        LOG.setup:   sync               Synchronize bundle tree to the workspace
        LOG.setup:   validate           Validate configuration
        LOG.setup: 
        LOG.setup: Flags:
        LOG.setup:   -h, --help[=true|false]   help for bundle
        LOG.setup:       --var strings         set values for variables defined in bundle config. Example: --var="foo=bar"
        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: 
        LOG.setup: Use "databricks bundle [command] --help" for more information about a command.
        LOG.setup: Declarative Automation Bundles let you express data/AI/analytics projects as code.
        LOG.setup: 
        LOG.setup: Common workflows:
        LOG.setup:   databricks bundle init default-python      # Initialize new project
        LOG.setup:   databricks bundle deploy --target dev      # Deploy to development
        LOG.setup:   databricks bundle run my_job               # Run jobs/pipelines
        LOG.setup:   databricks bundle deploy --target prod     # Deploy to production
        LOG.setup: 
        LOG.setup: Import existing resources:
        LOG.setup:   databricks bundle generate job --existing-job-id 123 --key my_job # Generate job configuration
        LOG.setup:   databricks bundle deployment bind my_job 123                      # Link to an existing job
        LOG.setup: 
        LOG.setup: Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
        LOG.setup: 
        LOG.setup: Usage:
        LOG.setup:   databricks bundle [command]
        LOG.setup: 
        LOG.setup: Available Commands:
        LOG.setup:   deploy             Deploy bundle
        LOG.setup:   deployment         Deployment related commands
        LOG.setup:   destroy            Destroy deployed bundle resources
        LOG.setup:   generate           Generate bundle configuration
        LOG.setup:   init               Initialize using a bundle template
        LOG.setup:   open               Open a resource in the browser
        LOG.setup:   plan               Show deployment plan
        LOG.setup:   run                Run a job, pipeline update or app
        LOG.setup:   schema             Generate JSON Schema for bundle configuration
        LOG.setup:   summary            Summarize resources deployed by this bundle
        LOG.setup:   sync               Synchronize bundle tree to the workspace
        LOG.setup:   validate           Validate configuration
        LOG.setup: 
        LOG.setup: Flags:
        LOG.setup:   -h, --help[=true|false]   help for bundle
        LOG.setup:       --var strings         set values for variables defined in bundle config. Example: --var="foo=bar"
        LOG.setup: 
... (25 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.28.0): same output as main (9d5a537)

@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 4210154

Run: 45465890214

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 272 23 6:03
💚​ aws-windows-latest-4core-16gb 1 274 21 3:59
💚​ azure linux-2core-8gb 1 271 23 6:06
💚​ azure-windows-latest-4core-16gb 1 273 21 3:26
💚​ gcp linux-2core-8gb 1 272 23 5:41
💚​ gcp-windows-latest-4core-16gb 1 274 21 4:12
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 6 slowest tests (at least 2 minutes):
duration env testname
4:50 azure linux-2core-8gb TestAccept
4:10 gcp-windows-latest-4core-16gb TestAccept
4:06 aws linux-2core-8gb TestAccept
4:06 gcp linux-2core-8gb TestAccept
3:56 aws-windows-latest-4core-16gb TestAccept
3:25 azure-windows-latest-4core-16gb TestAccept

`delete` deletes the trigger of the bundle target and its runner job, after
a confirmation prompt or with --auto-approve. The target's attempts stay.

DeleteWebhookTrigger takes its fields in the body of a DELETE, but the SDK
sends a DELETE's fields in the query string. The client sets the body with a
request visitor, which the SDK runs on every attempt, so a retry sends the
body again.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: atreyadbrx <atreya.misra@databricks.com>
@atreyadbrx
atreyadbrx force-pushed the dabs-ad-d4-pr4-get-list branch from bbaf04d to eb8b631 Compare November 24, 2026 18:59
@atreyadbrx
atreyadbrx force-pushed the dabs-ad-d4-pr5-delete branch from 3c86b40 to 4210154 Compare November 24, 2026 18:59

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.

2 participants