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. Without a terminal it fails on a missing --auto-approve before it loads the bundle or calls the API, as bundle destroy does. 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
  • Only the fake server checks the delete contract so far: no test workspace serves the API yet. That covers the JSON body on DELETE, the required but ignored push_event, and a 200 when nothing matches. The fake follows the service's implemented behavior. One known risk: the API deletes by target, not by trigger ID. So if a delete is retried after its response was lost, it can also delete a trigger that someone re-created for the same target in that window.

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

Regression test report ✅

Commit: c3e275a41 | Workflow run

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

4 tests: regression=4 unreleased=0 coverage=0 failing=0
test branch main (4c4f104) 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 (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/create/output.txt
        +++ /tmp/TestAcceptbundleauto-deploycreate3091161642/002/output.txt
        @@ -2,289 +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 a service principal, on a production target that a user could not deploy
        +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
         
        ->>> [CLI] bundle 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]"
        -        }
        -      }
        -    }
        -  }
        -}
        +Flags:
        +  -h, --help[=true|false]   help for bundle
        +      --var strings         set values for variables defined in bundle config. Example: --var="foo=bar"
         
        -=== As another user
        +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)
         
        ->>> 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.
        +Use "databricks bundle [command] --help" for more information about a command.
        +File [OUTPUT_DIR]/out.requests.txt not found
         
        -Host:      [DATABRICKS_URL]
        -Auth type: Personal Access Token (pat)
        -
        -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"
        -        }
        -      }
        -    }
        -  }
        -}
        -
        -=== 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"
        -      }
        -    }
... (129 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

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

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

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/delete/output.txt
        +++ /tmp/TestAcceptbundleauto-deploydelete3237985022/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 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 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    you or a user  [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, so there is nothing to delete
        +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):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/delete/output.txt
        +++ /tmp/TestAcceptbundleauto-deploydelete1262196935/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 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 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    you or a user  [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, so there is nothing to delete
        +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.
FAIL
TestAccept/bundle/auto-deploy/get: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/get/output.txt
        +++ /tmp/TestAcceptbundleauto-deployget758959778/002/output.txt
        @@ -2,84 +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:  you or a user
        +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
        -Trigger ID: [UUID][1]
        -Repository: https://github.com/acme/repo
        -Bundle:     databricks.yml
        -Target:     prod
        -Branch:     main
        -Deploy as:  [UUID][2]
        +Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
         
        ->>> [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\""
        -  }
        -}
        -{
        -  "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"
        -  }
        -}
        +Usage:
        +  databricks bundle [command]
         
        -=== Another caller does not see the trigger
        +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 as-test-sp [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
        +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 (4c4f104)

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

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/list/output.txt
        +++ /tmp/TestAcceptbundleauto-deploylist3105122734/002/output.txt
        @@ -2,114 +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.
         
        -=== Another bundle in the same repository, whose trigger is not this bundle's
        +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
         
        ->>> withdir other [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": "other/databricks.yml",
        -        "deployment_mode": "dev"
        -      }
        -    }
        -  }
        -}
        +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
         
        -=== The triggers of this bundle's targets
        +Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
         
        ->>> [CLI] bundle 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]
        +Usage:
        +  databricks bundle [command]
         
        ->>> [CLI] bundle 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"
        -  }
        -}
        +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)
... (45 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/auto-deploy/list/output.txt
        +++ /tmp/TestAcceptbundleauto-deploylist3803581323/002/output.txt
        @@ -2,114 +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.
         
        -=== Another bundle in the same repository, whose trigger is not this bundle's
        +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
         
        ->>> withdir other [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": "other/databricks.yml",
        -        "deployment_mode": "dev"
        -      }
        -    }
        -  }
        -}
        +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
         
        -=== The triggers of this bundle's targets
        +Online documentation: https://docs.databricks.com/en/dev-tools/bundles/index.html
         
        ->>> [CLI] bundle 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]
        +Usage:
        +  databricks bundle [command]
         
        ->>> [CLI] bundle 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"
        -  }
        -}
        +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)
... (44 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: c3e275a

Run: 46397327343

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 173 21 3:44
💚​ aws-windows-latest-4core-16gb 1 173 21 2:37
💚​ azure linux-2core-8gb 1 172 21 4:04
💚​ azure-windows-latest-4core-16gb 1 172 21 1:32
💚​ gcp linux-2core-8gb 1 173 21 3:45
💚​ gcp-windows-latest-4core-16gb 1 173 21 2:50
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:03 azure linux-2core-8gb TestAccept
3:43 aws linux-2core-8gb TestAccept
3:42 gcp linux-2core-8gb TestAccept
2:48 gcp-windows-latest-4core-16gb TestAccept
2:35 aws-windows-latest-4core-16gb TestAccept

@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
@atreyadbrx
atreyadbrx force-pushed the dabs-ad-d4-pr4-get-list branch from eb8b631 to 852eda8 Compare November 27, 2026 16:57
@atreyadbrx
atreyadbrx force-pushed the dabs-ad-d4-pr5-delete branch from 4210154 to 6cd3842 Compare November 27, 2026 16:57

@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 6cd384264 by Opus, Fable and Astra; each finding verified against the code.

No blocking issues. One should-fix inline: the --auto-approve check and its agent notice. The DELETE-with-body visitor is correct for SDK v0.204.0: the SDK reruns visitors on each retry, and the head merged into current main builds and passes TestAccept/bundle/auto-deploy/*.

Review points

  • The fake server is the only thing that asserts three service behaviors this command depends on: the service reads a DELETE's JSON body, requires push_event but ignores it, and returns 200 when nothing matches. Because a no-match counts as success, a service that keys the delete differently (for example on git_provider or a normalized repo_url) would print "Deleted the auto-deploy trigger" while pushes keep deploying. With no test workspace for this API yet, could the description say what was checked by hand on a real workspace: delete then list, deleting a missing trigger, a request without push_event?
  • Remaining risk worth a line in the description: the delete is keyed by repo, bundle path and target, not by trigger ID, because the API has no delete by ID. An SDK retry of a delete that was applied but whose response was lost, or a first attempt that lands late, also deletes a trigger that another checkout re-created for the same target in that window. A one-attempt client wouldn't close this, so it looks acceptable, but it should be written down.

Not posted inline

  1. Nit cmd/bundle/autodeploy/delete.go:44: answering "n" exits 0 with no output; bundle destroy and bundle deploy print "Destroy cancelled!" / "Deployment cancelled!" (bundle/phases/destroy.go:377, bundle/phases/deploy.go:266).
  2. Nit cmd/bundle/autodeploy/trigger.go:97 (reached from delete.go:33): a second delete ends with "To create one, run: databricks bundle auto-deploy create", which is an odd thing to suggest after a delete (last case of the golden). delete could say there is nothing to delete.
  3. For the PR that turns Cloud on: libs/testproxy forwards a DELETE's data only as query parameters (libs/testproxy/server.go:65-74), so with request recording this body won't reach the workspace. Nothing hits it while the tests are Cloud = false.

Comment thread cmd/bundle/autodeploy/delete.go Outdated
}

if !autoApprove {
if !cmdio.IsPromptSupported(ctx) {

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.

🤖 Should fix: this check runs only after loadTrigger has processed the bundle and findTrigger has sent GET /git-webhooks/webhook-triggers, and neither result changes the outcome. A CI job that forgot --auto-approve initializes the bundle and makes the list call, retried by the SDK on 429/503, before it fails on something that depends only on the flag and the terminal. bundle destroy checks first (cmd/bundle/utils/destroy.go:20). Moving the check to the top of RunE, or at least above findTrigger, avoids the extra work.

The message also needs agent.AgentNotice(). Every other bundle error that suggests --auto-approve appends it (cmd/bundle/utils/destroy.go:24, bundle/phases/deploy.go:55, bundle/phases/bind.go:93). Without it, an AI agent that reads "To proceed, use --auto-approve" may retry with the flag and delete the trigger and its runner job without the user's approval.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in ac844d0. The check runs first in RunE, before the bundle loads or any request is sent, and the message ends with agent.AgentNotice(). The delete test asserts that no request was recorded. The message no longer names the target, since the bundle isn't loaded at that point.

@denik
denik requested review from a team November 29, 2026 09:13
@atreyadbrx
atreyadbrx force-pushed the dabs-ad-d4-pr4-get-list branch from 852eda8 to ee80a9e Compare November 29, 2026 22:25
@atreyadbrx
atreyadbrx force-pushed the dabs-ad-d4-pr5-delete branch from 6cd3842 to ac844d0 Compare November 29, 2026 22:25
@atreyadbrx

Copy link
Copy Markdown
Contributor Author

Thanks @denik. I pushed ac844d0 with your points addressed.

  • --auto-approve: checked first, with agent.AgentNotice(). See the inline thread.
  • Answering "n": prints "Delete cancelled.".
  • A target without a trigger: now says there is nothing to delete, instead of suggesting create.
  • Description: now says what only the fake checks, and notes the delete-by-target risk you described.
  • Cloud runs: I noted that libs/testproxy forwards a DELETE's data only as query parameters, for the PR that turns Cloud on.

`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-pr5-delete branch from ac844d0 to c3e275a Compare November 30, 2026 10:07
@atreyadbrx
atreyadbrx force-pushed the dabs-ad-d4-pr4-get-list branch from ee80a9e to b78dec4 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