Skip to content

direct: implement bind via regular plan and apply - #7813

Open
denik wants to merge 2 commits into
denik/bind-test-undeployed-dependencyfrom
denik/bind-via-plan-apply
Open

denik wants to merge 2 commits into
denik/bind-test-undeployed-dependencyfrom
denik/bind-via-plan-apply

Conversation

@denik

@denik denik commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Changes

bundle deployment bind now reuses the plan and apply code. It plans with the resource recorded at the new ID and turns its entry into a state-only update (the bind plan). The bind plan is applied to a temp copy of the state to compute the plan shown to the user; after confirmation the same bind plan is applied to the real state, replacing the rename of the temp state file.

Why

Removes the hand-written state writes in bind: recording the resource now goes through the same Apply path as deploy (WAL, deployment history shadow).

Tests

Stacked on #7846, which adds bind/job/undeployed-dependency. Bind now writes the state once instead of twice, so the serial after bind is one lower in that test and in bind/dashboard/recreation, and the version links in dms_fault/* move down accordingly.

This pull request and its description were written by Isaac.

@denik
denik requested review from a team as code owners November 19, 2026 14:44
@github-actions github-actions Bot added the DABs DABs related issues label Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Commit: 576c34cee | Workflow run

Regression test report

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

17 tests: regression=17 unreleased=0 coverage=0 failing=0
test branch main (ef8fc0b) latest (v1.27.0)
TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/deployment/bind/job/undeployed-dependency/DMS= ✅ ❌ ❌
TestAccept/bundle/deployment/bind/job/undeployed-dependency/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/complete_version/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/delete_deployment/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/get_operation/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/get_resource/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/get_version/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/heartbeat/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/list_deployments/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/list_operations/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/list_resources/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/list_versions/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/update_operation/DMS=true ✅ ❌ ❌
TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=: branch ✅ | main (ef8fc0b) ❌ | latest (v1.27.0) ❌

main (ef8fc0b):

acceptance_test.go:1400: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1400
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1153
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "{\n \"state_version\": 3,\n \"cli_version\": \"[CLI_VERSION]\",\n \"lineage\": \"[UUID]\",\n \"serial\": 1,\n \"state\": {\n  \"resources.dashboards.dashboard1\": {\n   \"__id__\": \"[DASHBOARD_ID]\",\n   \"state\": {\n    \"display_name\": \"test dashboard [UNIQUE_NAME]\",\n    \"embed_credentials\": true,\n    \"etag\": [ETAG],\n    \"parent_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/resources\",\n    \"published\": true,\n    \"serialized_dashboard\": \"{\\\"pages\\\":[{\\\"displayName\\\":\\\"Page One\\\",\\\"name\\\":\\\"02724bf2\\\"}]}\",\n    \"warehouse_id\": \"[TEST_DEFAULT_WAREHOUSE_ID]\"\n   }\n  }\n }\n}\n"
        	            	actual  : "{\n \"state_version\": 3,\n \"cli_version\": \"[CLI_VERSION]\",\n \"lineage\": \"[UUID]\",\n \"serial\": 2,\n \"state\": {\n  \"resources.dashboards.dashboard1\": {\n   \"__id__\": \"[DASHBOARD_ID]\",\n   \"state\": {\n    \"display_name\": \"test dashboard [UNIQUE_NAME]\",\n    \"embed_credentials\": true,\n    \"etag\": [ETAG],\n    \"parent_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/resources\",\n    \"published\": true,\n    \"serialized_dashboard\": \"{\\\"pages\\\":[{\\\"displayName\\\":\\\"Page One\\\",\\\"name\\\":\\\"02724bf2\\\"}]}\",\n    \"warehouse_id\": \"[TEST_DEFAULT_WAREHOUSE_ID]\"\n   }\n  }\n }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -4,3 +4,3 @@
        	            	  "lineage": "[UUID]",
        	            	- "serial": 1,
        	            	+ "serial": 2,
        	            	  "state": {
        	Test:       	TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=
        	Messages:   	bundle/deployment/bind/dashboard/recreation/out.state_after_bind.json vs /tmp/TestAcceptbundledeploymentbinddashboardrecreationDMS=READ2767255786/001/out.state_after_bind.json

latest (v1.27.0): same output as main (ef8fc0b)

TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=1: branch ✅ | main (ef8fc0b) ❌ | latest (v1.27.0) ❌

main (ef8fc0b):

acceptance_test.go:1400: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1400
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1153
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "{\n \"state_version\": 3,\n \"cli_version\": \"[CLI_VERSION]\",\n \"lineage\": \"[UUID]\",\n \"serial\": 1,\n \"state\": {\n  \"resources.dashboards.dashboard1\": {\n   \"__id__\": \"[DASHBOARD_ID]\",\n   \"state\": {\n    \"display_name\": \"test dashboard [UNIQUE_NAME]\",\n    \"embed_credentials\": true,\n    \"etag\": [ETAG],\n    \"parent_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/resources\",\n    \"published\": true,\n    \"serialized_dashboard\": \"{\\\"pages\\\":[{\\\"displayName\\\":\\\"Page One\\\",\\\"name\\\":\\\"02724bf2\\\"}]}\",\n    \"warehouse_id\": \"[TEST_DEFAULT_WAREHOUSE_ID]\"\n   }\n  }\n }\n}\n"
        	            	actual  : "{\n \"state_version\": 3,\n \"cli_version\": \"[CLI_VERSION]\",\n \"lineage\": \"[UUID]\",\n \"serial\": 2,\n \"state\": {\n  \"resources.dashboards.dashboard1\": {\n   \"__id__\": \"[DASHBOARD_ID]\",\n   \"state\": {\n    \"display_name\": \"test dashboard [UNIQUE_NAME]\",\n    \"embed_credentials\": true,\n    \"etag\": [ETAG],\n    \"parent_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/resources\",\n    \"published\": true,\n    \"serialized_dashboard\": \"{\\\"pages\\\":[{\\\"displayName\\\":\\\"Page One\\\",\\\"name\\\":\\\"02724bf2\\\"}]}\",\n    \"warehouse_id\": \"[TEST_DEFAULT_WAREHOUSE_ID]\"\n   }\n  }\n }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -4,3 +4,3 @@
        	            	  "lineage": "[UUID]",
        	            	- "serial": 1,
        	            	+ "serial": 2,
        	            	  "state": {
        	Test:       	TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=1
        	Messages:   	bundle/deployment/bind/dashboard/recreation/out.state_after_bind.json vs /tmp/TestAcceptbundledeploymentbinddashboardrecreationDMS=READ2642640481/001/out.state_after_bind.json

latest (v1.27.0): same output as main (ef8fc0b)

TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=: branch ✅ | main (ef8fc0b) ❌ | latest (v1.27.0) ❌

main (ef8fc0b):

acceptance_test.go:1400: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1400
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1153
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "{\n \"state_version\": 3,\n \"cli_version\": \"[CLI_VERSION]\",\n \"lineage\": \"[UUID]\",\n \"serial\": 1,\n \"state\": {\n  \"resources.dashboards.dashboard1\": {\n   \"__id__\": \"[DASHBOARD_ID]\",\n   \"state\": {\n    \"display_name\": \"test dashboard [UNIQUE_NAME]\",\n    \"embed_credentials\": true,\n    \"etag\": [ETAG],\n    \"parent_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/resources\",\n    \"published\": true,\n    \"serialized_dashboard\": \"{\\\"pages\\\":[{\\\"displayName\\\":\\\"Page One\\\",\\\"name\\\":\\\"02724bf2\\\"}]}\",\n    \"warehouse_id\": \"[TEST_DEFAULT_WAREHOUSE_ID]\"\n   }\n  }\n }\n}\n"
        	            	actual  : "{\n \"state_version\": 3,\n \"cli_version\": \"[CLI_VERSION]\",\n \"lineage\": \"[UUID]\",\n \"serial\": 2,\n \"state\": {\n  \"resources.dashboards.dashboard1\": {\n   \"__id__\": \"[DASHBOARD_ID]\",\n   \"state\": {\n    \"display_name\": \"test dashboard [UNIQUE_NAME]\",\n    \"embed_credentials\": true,\n    \"etag\": [ETAG],\n    \"parent_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/resources\",\n    \"published\": true,\n    \"serialized_dashboard\": \"{\\\"pages\\\":[{\\\"displayName\\\":\\\"Page One\\\",\\\"name\\\":\\\"02724bf2\\\"}]}\",\n    \"warehouse_id\": \"[TEST_DEFAULT_WAREHOUSE_ID]\"\n   }\n  }\n }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -4,3 +4,3 @@
        	            	  "lineage": "[UUID]",
        	            	- "serial": 1,
        	            	+ "serial": 2,
        	            	  "state": {
        	Test:       	TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=
        	Messages:   	bundle/deployment/bind/dashboard/recreation/out.state_after_bind.json vs /tmp/TestAcceptbundledeploymentbinddashboardrecreationDMS=true1999725849/001/out.state_after_bind.json

latest (v1.27.0): same output as main (ef8fc0b)

TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=1: branch ✅ | main (ef8fc0b) ❌ | latest (v1.27.0) ❌

main (ef8fc0b):

acceptance_test.go:1400: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1400
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1153
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "{\n \"state_version\": 3,\n \"cli_version\": \"[CLI_VERSION]\",\n \"lineage\": \"[UUID]\",\n \"serial\": 1,\n \"state\": {\n  \"resources.dashboards.dashboard1\": {\n   \"__id__\": \"[DASHBOARD_ID]\",\n   \"state\": {\n    \"display_name\": \"test dashboard [UNIQUE_NAME]\",\n    \"embed_credentials\": true,\n    \"etag\": [ETAG],\n    \"parent_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/resources\",\n    \"published\": true,\n    \"serialized_dashboard\": \"{\\\"pages\\\":[{\\\"displayName\\\":\\\"Page One\\\",\\\"name\\\":\\\"02724bf2\\\"}]}\",\n    \"warehouse_id\": \"[TEST_DEFAULT_WAREHOUSE_ID]\"\n   }\n  }\n }\n}\n"
        	            	actual  : "{\n \"state_version\": 3,\n \"cli_version\": \"[CLI_VERSION]\",\n \"lineage\": \"[UUID]\",\n \"serial\": 2,\n \"state\": {\n  \"resources.dashboards.dashboard1\": {\n   \"__id__\": \"[DASHBOARD_ID]\",\n   \"state\": {\n    \"display_name\": \"test dashboard [UNIQUE_NAME]\",\n    \"embed_credentials\": true,\n    \"etag\": [ETAG],\n    \"parent_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/resources\",\n    \"published\": true,\n    \"serialized_dashboard\": \"{\\\"pages\\\":[{\\\"displayName\\\":\\\"Page One\\\",\\\"name\\\":\\\"02724bf2\\\"}]}\",\n    \"warehouse_id\": \"[TEST_DEFAULT_WAREHOUSE_ID]\"\n   }\n  }\n }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -4,3 +4,3 @@
        	            	  "lineage": "[UUID]",
        	            	- "serial": 1,
        	            	+ "serial": 2,
        	            	  "state": {
        	Test:       	TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=1
        	Messages:   	bundle/deployment/bind/dashboard/recreation/out.state_after_bind.json vs /tmp/TestAcceptbundledeploymentbinddashboardrecreationDMS=true3292711391/001/out.state_after_bind.json

latest (v1.27.0): same output as main (ef8fc0b)

TestAccept/bundle/deployment/bind/job/undeployed-dependency/DMS=: branch ✅ | main (ef8fc0b) ❌ | latest (v1.27.0) ❌

main (ef8fc0b):

acceptance_test.go:1400: Diff:
        --- bundle/deployment/bind/job/undeployed-dependency/output.txt
        +++ /tmp/TestAcceptbundledeploymentbindjobundeployed-dependencyDMS=2214919455/002/output.txt
        @@ -42,7 +42,7 @@
         
         >>> jq {serial, job_1: .state["resources.jobs.job_1"] | {__id__, depends_on, description: .state.description}} .databricks/bundle/default/resources.json
         {
        -  "serial": 2,
        +  "serial": 3,
           "job_1": {
             "__id__": "[EXTERNAL_JOB_ID]",
             "depends_on": [

latest (v1.27.0): same output as main (ef8fc0b)

TestAccept/bundle/deployment/bind/job/undeployed-dependency/DMS=true: branch ✅ | main (ef8fc0b) ❌ | latest (v1.27.0) ❌

main (ef8fc0b):

acceptance_test.go:1400: Diff:
        --- bundle/deployment/bind/job/undeployed-dependency/output.txt
        +++ /tmp/TestAcceptbundledeploymentbindjobundeployed-dependencyDMS=3135469213/002/output.txt
        @@ -42,7 +42,7 @@
         
         >>> jq {serial, job_1: .state["resources.jobs.job_1"] | {__id__, depends_on, description: .state.description}} .databricks/bundle/default/resources.json
         {
        -  "serial": 2,
        +  "serial": 3,
           "job_1": {
             "__id__": "[EXTERNAL_JOB_ID]",
             "depends_on": [

latest (v1.27.0): same output as main (ef8fc0b)

TestAccept/bundle/dms_fault/complete_version/DMS=true: branch ✅ | main (ef8fc0b) ❌ | latest (v1.27.0) ❌

main (ef8fc0b):

acceptance_test.go:1400: Diff:
        --- bundle/dms_fault/complete_version/output.txt
        +++ /tmp/TestAcceptbundledms_faultcomplete_versionDMS=true1569423138/002/output.txt
        @@ -83,7 +83,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-complete_version-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=7
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
           Updated pipelines.bar
           Files: 6 uploaded, 0 deleted
           Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        @@ -102,7 +102,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-complete_version-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=11
           Updated jobs.foo
           Updated pipelines.bar
           Files: 2 uploaded, 0 deleted
        
    acceptance_test.go:1178: 
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:41609/deployments/4000000000000598?version=1
        LOG.commands: Created pipelines.bar
        LOG.commands: Created jobs.foo
        LOG.commands: Files: 4 uploaded, 0 deleted
        LOG.commands: Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('workspace', 'get-status', '/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe/state/resources.deployment.json', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "object_id": 4000000000000598,
        LOG.commands:   "object_type": "BUNDLE_DEPLOYMENT",
        LOG.commands:   "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe/state/resources.deployment.json"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:41609/deployments/4000000000000598?version=2
        LOG.commands: Updated pipelines.bar
        LOG.commands: Updated jobs.foo
        LOG.commands: Files: 3 uploaded, 0 deleted
        LOG.commands: Resources: 0 created, 2 changed, 0 deleted, 0 unchanged
        LOG.commands: Warn: Failed to complete deployment history version: Fault injected by test.
        LOG.commands: 
        LOG.commands: commands: ('jobs', 'get', '8795180216919434950', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "created_time": 1795180216919,
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "job_id": 8795180216919434950,
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "settings": {
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000598",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "description": "history-true",
        LOG.commands:     "edit_mode": "UI_LOCKED",
        LOG.commands:     "email_notifications": {},
        LOG.commands:     "format": "MULTI_TASK",
        LOG.commands:     "max_concurrent_runs": 1,
        LOG.commands:     "name": "updated-dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe",
        LOG.commands:     "queue": {
        LOG.commands:       "enabled": true
        LOG.commands:     },
        LOG.commands:     "timeout_seconds": 0,
        LOG.commands:     "webhook_notifications": {}
        LOG.commands:   }
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('pipelines', 'get', '7a0ec1ce-f4d5-46e1-7a0e-c1cef4d547f1', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "effective_publishing_mode": "DEFAULT_PUBLISHING_MODE",
        LOG.commands:   "last_modified": 1795180216916,
        LOG.commands:   "name": "updated-dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe",
        LOG.commands:   "pipeline_id": "7a0ec1ce-f4d5-46e1-7a0e-c1cef4d547f1",
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "spec": {
        LOG.commands:     "catalog": "main",
        LOG.commands:     "channel": "CURRENT",
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000598",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "edition": "ADVANCED",
        LOG.commands:     "id": "7a0ec1ce-f4d5-46e1-7a0e-c1cef4d547f1",
        LOG.commands:     "libraries": [
        LOG.commands:       {
        LOG.commands:         "file": {
        LOG.commands:           "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe/files/pipeline.sql"
        LOG.commands:         }
        LOG.commands:       }
        LOG.commands:     ],
        LOG.commands:     "name": "updated-dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe",
        LOG.commands:     "schema": "default",
        LOG.commands:     "serverless": true
        LOG.commands:   },
        LOG.commands:   "state": "IDLE"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'summary')
        LOG.commands: exit=0
        LOG.commands: Name: updated-dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe
        LOG.commands: Target: default
        LOG.commands: Workspace:
        LOG.commands:   User: tester@databricks.com
        LOG.commands:   Path: /Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-j5ezhs65yvb3xp2t7ugfvj7eqe
        LOG.commands: Resources:
        LOG.commands:   Jobs:
        LOG.commands:     foo:
        LOG.commands: ... (358 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.27.0):

acceptance_test.go:1400: Diff:
        --- bundle/dms_fault/complete_version/output.txt
        +++ /tmp/TestAcceptbundledms_faultcomplete_versionDMS=true2173591613/002/output.txt
        @@ -83,7 +83,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-complete_version-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=7
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
           Updated pipelines.bar
           Files: 6 uploaded, 0 deleted
           Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        @@ -102,7 +102,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-complete_version-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=11
           Updated jobs.foo
           Updated pipelines.bar
           Files: 2 uploaded, 0 deleted
        
    acceptance_test.go:1178: 
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:41279/deployments/4000000000000894?version=1
        LOG.commands: Created jobs.foo
        LOG.commands: Created pipelines.bar
        LOG.commands: Files: 4 uploaded, 0 deleted
        LOG.commands: Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('workspace', 'get-status', '/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq/state/resources.deployment.json', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "object_id": 4000000000000894,
        LOG.commands:   "object_type": "BUNDLE_DEPLOYMENT",
        LOG.commands:   "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq/state/resources.deployment.json"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:41279/deployments/4000000000000894?version=2
        LOG.commands: Updated pipelines.bar
        LOG.commands: Updated jobs.foo
        LOG.commands: Files: 3 uploaded, 0 deleted
        LOG.commands: Resources: 0 created, 2 changed, 0 deleted, 0 unchanged
        LOG.commands: Warn: Failed to complete deployment history version: Fault injected by test.
        LOG.commands: 
        LOG.commands: commands: ('jobs', 'get', '8795180244559549474', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "created_time": 1795180244559,
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "job_id": 8795180244559549474,
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "settings": {
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000894",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "description": "history-true",
        LOG.commands:     "edit_mode": "UI_LOCKED",
        LOG.commands:     "email_notifications": {},
        LOG.commands:     "format": "MULTI_TASK",
        LOG.commands:     "max_concurrent_runs": 1,
        LOG.commands:     "name": "updated-dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq",
        LOG.commands:     "queue": {
        LOG.commands:       "enabled": true
        LOG.commands:     },
        LOG.commands:     "timeout_seconds": 0,
        LOG.commands:     "webhook_notifications": {}
        LOG.commands:   }
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('pipelines', 'get', '7a0ec1d5-64ae-d72c-7a0e-c1d564aed833', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "effective_publishing_mode": "DEFAULT_PUBLISHING_MODE",
        LOG.commands:   "last_modified": 1795180244562,
        LOG.commands:   "name": "updated-dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq",
        LOG.commands:   "pipeline_id": "7a0ec1d5-64ae-d72c-7a0e-c1d564aed833",
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "spec": {
        LOG.commands:     "catalog": "main",
        LOG.commands:     "channel": "CURRENT",
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000894",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "edition": "ADVANCED",
        LOG.commands:     "id": "7a0ec1d5-64ae-d72c-7a0e-c1d564aed833",
        LOG.commands:     "libraries": [
        LOG.commands:       {
        LOG.commands:         "file": {
        LOG.commands:           "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq/files/pipeline.sql"
        LOG.commands:         }
        LOG.commands:       }
        LOG.commands:     ],
        LOG.commands:     "name": "updated-dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq",
        LOG.commands:     "schema": "default",
        LOG.commands:     "serverless": true
        LOG.commands:   },
        LOG.commands:   "state": "IDLE"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'summary')
        LOG.commands: exit=0
        LOG.commands: Name: updated-dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq
        LOG.commands: Target: default
        LOG.commands: Workspace:
        LOG.commands:   User: tester@databricks.com
        LOG.commands:   Path: /Workspace/Users/tester@databricks.com/.bundle/dms-fault-complete_version-commands-gsim6vkl3rcctay5eaj2ev2onq
        LOG.commands: Resources:
        LOG.commands:   Jobs:
        LOG.commands:     foo:
        LOG.commands: ... (358 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)
TestAccept/bundle/dms_fault/delete_deployment/DMS=true: branch ✅ | main (ef8fc0b) ❌ | latest (v1.27.0) ❌

main (ef8fc0b):

acceptance_test.go:1400: Diff:
        --- bundle/dms_fault/delete_deployment/output.txt
        +++ /tmp/TestAcceptbundledms_faultdelete_deploymentDMS=true2076247609/002/output.txt
        @@ -82,7 +82,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-delete_deployment-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=7
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
           Updated pipelines.bar
           Files: 6 uploaded, 0 deleted
           Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        @@ -100,7 +100,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-delete_deployment-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=11
           Updated jobs.foo
           Updated pipelines.bar
           Files: 2 uploaded, 0 deleted
        
    acceptance_test.go:1178: 
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:34657/deployments/4000000000000455?version=1
        LOG.commands: Created jobs.foo
        LOG.commands: Created pipelines.bar
        LOG.commands: Files: 4 uploaded, 0 deleted
        LOG.commands: Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('workspace', 'get-status', '/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i/state/resources.deployment.json', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "object_id": 4000000000000455,
        LOG.commands:   "object_type": "BUNDLE_DEPLOYMENT",
        LOG.commands:   "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i/state/resources.deployment.json"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:34657/deployments/4000000000000455?version=2
        LOG.commands: Updated pipelines.bar
        LOG.commands: Updated jobs.foo
        LOG.commands: Files: 3 uploaded, 0 deleted
        LOG.commands: Resources: 0 created, 2 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('jobs', 'get', '8795180214848376395', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "created_time": 1795180214849,
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "job_id": 8795180214848376395,
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "settings": {
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000455",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "description": "history-true",
        LOG.commands:     "edit_mode": "UI_LOCKED",
        LOG.commands:     "email_notifications": {},
        LOG.commands:     "format": "MULTI_TASK",
        LOG.commands:     "max_concurrent_runs": 1,
        LOG.commands:     "name": "updated-dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i",
        LOG.commands:     "queue": {
        LOG.commands:       "enabled": true
        LOG.commands:     },
        LOG.commands:     "timeout_seconds": 0,
        LOG.commands:     "webhook_notifications": {}
        LOG.commands:   }
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('pipelines', 'get', '7a0ec1ce-7993-907c-7a0e-c1ce799391d7', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "effective_publishing_mode": "DEFAULT_PUBLISHING_MODE",
        LOG.commands:   "last_modified": 1795180214848,
        LOG.commands:   "name": "updated-dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i",
        LOG.commands:   "pipeline_id": "7a0ec1ce-7993-907c-7a0e-c1ce799391d7",
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "spec": {
        LOG.commands:     "catalog": "main",
        LOG.commands:     "channel": "CURRENT",
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000455",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "edition": "ADVANCED",
        LOG.commands:     "id": "7a0ec1ce-7993-907c-7a0e-c1ce799391d7",
        LOG.commands:     "libraries": [
        LOG.commands:       {
        LOG.commands:         "file": {
        LOG.commands:           "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i/files/pipeline.sql"
        LOG.commands:         }
        LOG.commands:       }
        LOG.commands:     ],
        LOG.commands:     "name": "updated-dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i",
        LOG.commands:     "schema": "default",
        LOG.commands:     "serverless": true
        LOG.commands:   },
        LOG.commands:   "state": "IDLE"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'summary')
        LOG.commands: exit=0
        LOG.commands: Name: updated-dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i
        LOG.commands: Target: default
        LOG.commands: Workspace:
        LOG.commands:   User: tester@databricks.com
        LOG.commands:   Path: /Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i
        LOG.commands: Resources:
        LOG.commands:   Jobs:
        LOG.commands:     foo:
        LOG.commands:       Name: updated-dms-fault-delete_deployment-commands-tmhwjn6kijenzem77w5lpwlv2i
        LOG.commands: ... (357 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.27.0):

acceptance_test.go:1400: Diff:
        --- bundle/dms_fault/delete_deployment/output.txt
        +++ /tmp/TestAcceptbundledms_faultdelete_deploymentDMS=true749165716/002/output.txt
        @@ -82,7 +82,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-delete_deployment-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=7
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
           Updated pipelines.bar
           Files: 6 uploaded, 0 deleted
           Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        @@ -100,7 +100,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-delete_deployment-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=11
           Updated jobs.foo
           Updated pipelines.bar
           Files: 2 uploaded, 0 deleted
        
    acceptance_test.go:1178: 
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:46117/deployments/4000000000001071?version=1
        LOG.commands: Created pipelines.bar
        LOG.commands: Created jobs.foo
        LOG.commands: Files: 4 uploaded, 0 deleted
        LOG.commands: Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('workspace', 'get-status', '/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm/state/resources.deployment.json', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "object_id": 4000000000001071,
        LOG.commands:   "object_type": "BUNDLE_DEPLOYMENT",
        LOG.commands:   "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm/state/resources.deployment.json"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:46117/deployments/4000000000001071?version=2
        LOG.commands: Updated jobs.foo
        LOG.commands: Updated pipelines.bar
        LOG.commands: Files: 3 uploaded, 0 deleted
        LOG.commands: Resources: 0 created, 2 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('jobs', 'get', '8795180247167988210', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "created_time": 1795180247168,
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "job_id": 8795180247167988210,
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "settings": {
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000001071",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "description": "history-true",
        LOG.commands:     "edit_mode": "UI_LOCKED",
        LOG.commands:     "email_notifications": {},
        LOG.commands:     "format": "MULTI_TASK",
        LOG.commands:     "max_concurrent_runs": 1,
        LOG.commands:     "name": "updated-dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm",
        LOG.commands:     "queue": {
        LOG.commands:       "enabled": true
        LOG.commands:     },
        LOG.commands:     "timeout_seconds": 0,
        LOG.commands:     "webhook_notifications": {}
        LOG.commands:   }
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('pipelines', 'get', '7a0ec1d5-ffe1-3879-7a0e-c1d5ffe13a25', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "effective_publishing_mode": "DEFAULT_PUBLISHING_MODE",
        LOG.commands:   "last_modified": 1795180247166,
        LOG.commands:   "name": "updated-dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm",
        LOG.commands:   "pipeline_id": "7a0ec1d5-ffe1-3879-7a0e-c1d5ffe13a25",
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "spec": {
        LOG.commands:     "catalog": "main",
        LOG.commands:     "channel": "CURRENT",
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000001071",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "edition": "ADVANCED",
        LOG.commands:     "id": "7a0ec1d5-ffe1-3879-7a0e-c1d5ffe13a25",
        LOG.commands:     "libraries": [
        LOG.commands:       {
        LOG.commands:         "file": {
        LOG.commands:           "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm/files/pipeline.sql"
        LOG.commands:         }
        LOG.commands:       }
        LOG.commands:     ],
        LOG.commands:     "name": "updated-dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm",
        LOG.commands:     "schema": "default",
        LOG.commands:     "serverless": true
        LOG.commands:   },
        LOG.commands:   "state": "IDLE"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'summary')
        LOG.commands: exit=0
        LOG.commands: Name: updated-dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm
        LOG.commands: Target: default
        LOG.commands: Workspace:
        LOG.commands:   User: tester@databricks.com
        LOG.commands:   Path: /Workspace/Users/tester@databricks.com/.bundle/dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm
        LOG.commands: Resources:
        LOG.commands:   Jobs:
        LOG.commands:     foo:
        LOG.commands:       Name: updated-dms-fault-delete_deployment-commands-jhcpmzqrnze2vfcjo3irrldlsm
        LOG.commands: ... (357 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)
FAIL
TestAccept/bundle/dms_fault/get_operation/DMS=true: branch ✅ | main (ef8fc0b) ❌ | latest (v1.27.0) ❌

main (ef8fc0b):

acceptance_test.go:1400: Diff:
        --- bundle/dms_fault/get_operation/output.txt
        +++ /tmp/TestAcceptbundledms_faultget_operationDMS=true2118223160/002/output.txt
        @@ -82,7 +82,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-get_operation-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=7
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
           Updated pipelines.bar
           Files: 6 uploaded, 0 deleted
           Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        @@ -100,7 +100,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-get_operation-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=11
           Updated jobs.foo
           Updated pipelines.bar
           Files: 2 uploaded, 0 deleted
        
    acceptance_test.go:1178: 
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:38329/deployments/4000000000000418?version=1
        LOG.commands: Created pipelines.bar
        LOG.commands: Created jobs.foo
        LOG.commands: Files: 4 uploaded, 0 deleted
        LOG.commands: Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('workspace', 'get-status', '/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga/state/resources.deployment.json', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "object_id": 4000000000000418,
        LOG.commands:   "object_type": "BUNDLE_DEPLOYMENT",
        LOG.commands:   "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga/state/resources.deployment.json"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:38329/deployments/4000000000000418?version=2
        LOG.commands: Updated pipelines.bar
        LOG.commands: Updated jobs.foo
        LOG.commands: Files: 3 uploaded, 0 deleted
        LOG.commands: Resources: 0 created, 2 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('jobs', 'get', '8795180214152039002', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "created_time": 1795180214152,
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "job_id": 8795180214152039002,
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "settings": {
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000418",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "description": "history-true",
        LOG.commands:     "edit_mode": "UI_LOCKED",
        LOG.commands:     "email_notifications": {},
        LOG.commands:     "format": "MULTI_TASK",
        LOG.commands:     "max_concurrent_runs": 1,
        LOG.commands:     "name": "updated-dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga",
        LOG.commands:     "queue": {
        LOG.commands:       "enabled": true
        LOG.commands:     },
        LOG.commands:     "timeout_seconds": 0,
        LOG.commands:     "webhook_notifications": {}
        LOG.commands:   }
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('pipelines', 'get', '7a0ec1ce-5002-4f47-7a0e-c1ce50025080', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "effective_publishing_mode": "DEFAULT_PUBLISHING_MODE",
        LOG.commands:   "last_modified": 1795180214150,
        LOG.commands:   "name": "updated-dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga",
        LOG.commands:   "pipeline_id": "7a0ec1ce-5002-4f47-7a0e-c1ce50025080",
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "spec": {
        LOG.commands:     "catalog": "main",
        LOG.commands:     "channel": "CURRENT",
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000418",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "edition": "ADVANCED",
        LOG.commands:     "id": "7a0ec1ce-5002-4f47-7a0e-c1ce50025080",
        LOG.commands:     "libraries": [
        LOG.commands:       {
        LOG.commands:         "file": {
        LOG.commands:           "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga/files/pipeline.sql"
        LOG.commands:         }
        LOG.commands:       }
        LOG.commands:     ],
        LOG.commands:     "name": "updated-dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga",
        LOG.commands:     "schema": "default",
        LOG.commands:     "serverless": true
        LOG.commands:   },
        LOG.commands:   "state": "IDLE"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'summary')
        LOG.commands: exit=0
        LOG.commands: Name: updated-dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga
        LOG.commands: Target: default
        LOG.commands: Workspace:
        LOG.commands:   User: tester@databricks.com
        LOG.commands:   Path: /Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga
        LOG.commands: Resources:
        LOG.commands:   Jobs:
        LOG.commands:     foo:
        LOG.commands:       Name: updated-dms-fault-get_operation-commands-3uxytec3d5bdfo5mvl2ubdovga
        LOG.commands: ... (354 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.27.0):

acceptance_test.go:1400: Diff:
        --- bundle/dms_fault/get_operation/output.txt
        +++ /tmp/TestAcceptbundledms_faultget_operationDMS=true379005954/002/output.txt
        @@ -82,7 +82,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-get_operation-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=7
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
           Updated pipelines.bar
           Files: 6 uploaded, 0 deleted
           Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        @@ -100,7 +100,7 @@
         
         >>> bundle deploy --auto-approve
           Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-fault-get_operation-commands-[UNIQUE_NAME]/files...
        -  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=9
        +  Current Deployment Version: [DATABRICKS_URL]/deployments/[DEPLOYMENT_ID]?version=11
           Updated jobs.foo
           Updated pipelines.bar
           Files: 2 uploaded, 0 deleted
        
    acceptance_test.go:1178: 
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:43825/deployments/4000000000000698?version=1
        LOG.commands: Created pipelines.bar
        LOG.commands: Created jobs.foo
        LOG.commands: Files: 4 uploaded, 0 deleted
        LOG.commands: Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('workspace', 'get-status', '/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm/state/resources.deployment.json', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "object_id": 4000000000000698,
        LOG.commands:   "object_type": "BUNDLE_DEPLOYMENT",
        LOG.commands:   "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm/state/resources.deployment.json"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'deploy', '--auto-approve')
        LOG.commands: exit=0
        LOG.commands: Uploading bundle files to /Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm/files...
        LOG.commands: Current Deployment Version: http://127.0.0.1:43825/deployments/4000000000000698?version=2
        LOG.commands: Updated pipelines.bar
        LOG.commands: Updated jobs.foo
        LOG.commands: Files: 3 uploaded, 0 deleted
        LOG.commands: Resources: 0 created, 2 changed, 0 deleted, 0 unchanged
        LOG.commands: 
        LOG.commands: commands: ('jobs', 'get', '8795180241848575459', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "created_time": 1795180241849,
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "job_id": 8795180241848575459,
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "settings": {
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000698",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "description": "history-true",
        LOG.commands:     "edit_mode": "UI_LOCKED",
        LOG.commands:     "email_notifications": {},
        LOG.commands:     "format": "MULTI_TASK",
        LOG.commands:     "max_concurrent_runs": 1,
        LOG.commands:     "name": "updated-dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm",
        LOG.commands:     "queue": {
        LOG.commands:       "enabled": true
        LOG.commands:     },
        LOG.commands:     "timeout_seconds": 0,
        LOG.commands:     "webhook_notifications": {}
        LOG.commands:   }
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('pipelines', 'get', '7a0ec1d4-c2e6-dbba-7a0e-c1d4c2e6dcf5', '-o', 'json')
        LOG.commands: exit=0
        LOG.commands: {
        LOG.commands:   "creator_user_name": "tester@databricks.com",
        LOG.commands:   "effective_publishing_mode": "DEFAULT_PUBLISHING_MODE",
        LOG.commands:   "last_modified": 1795180241848,
        LOG.commands:   "name": "updated-dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm",
        LOG.commands:   "pipeline_id": "7a0ec1d4-c2e6-dbba-7a0e-c1d4c2e6dcf5",
        LOG.commands:   "run_as_user_name": "tester@databricks.com",
        LOG.commands:   "spec": {
        LOG.commands:     "catalog": "main",
        LOG.commands:     "channel": "CURRENT",
        LOG.commands:     "deployment": {
        LOG.commands:       "deployment_id": "4000000000000698",
        LOG.commands:       "kind": "BUNDLE",
        LOG.commands:       "metadata_file_path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm/state/metadata.json",
        LOG.commands:       "version_id": "2"
        LOG.commands:     },
        LOG.commands:     "edition": "ADVANCED",
        LOG.commands:     "id": "7a0ec1d4-c2e6-dbba-7a0e-c1d4c2e6dcf5",
        LOG.commands:     "libraries": [
        LOG.commands:       {
        LOG.commands:         "file": {
        LOG.commands:           "path": "/Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm/files/pipeline.sql"
        LOG.commands:         }
        LOG.commands:       }
        LOG.commands:     ],
        LOG.commands:     "name": "updated-dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm",
        LOG.commands:     "schema": "default",
        LOG.commands:     "serverless": true
        LOG.commands:   },
        LOG.commands:   "state": "IDLE"
        LOG.commands: }
        LOG.commands: 
        LOG.commands: commands: ('bundle', 'summary')
        LOG.commands: exit=0
        LOG.commands: Name: updated-dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm
        LOG.commands: Target: default
        LOG.commands: Workspace:
        LOG.commands:   User: tester@databricks.com
        LOG.commands:   Path: /Workspace/Users/tester@databricks.com/.bundle/dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm
        LOG.commands: Resources:
        LOG.commands:   Jobs:
        LOG.commands:     foo:
        LOG.commands:       Name: updated-dms-fault-get_operation-commands-nlzrnb5klrcptckcecvffj6zsm
        LOG.commands: ... (354 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

8 more failure details omitted, see the full report in the run.

@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.

Looks good to me — no issues found.

@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 576c34c

Run: 44740788109

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 277 31 5:03
💚​ aws-windows-latest-4core-16gb 1 279 29 5:01
💚​ azure linux-2core-8gb 1 276 31 4:32
💚​ azure-windows-latest-4core-16gb 1 278 29 4:47
💚​ gcp linux-2core-8gb 1 277 31 4:37
💚​ gcp-windows-latest-4core-16gb 1 279 29 4:47
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 3 slowest tests (at least 2 minutes):
duration env testname
4:04 gcp-windows-latest-4core-16gb TestAccept
4:01 aws-windows-latest-4core-16gb TestAccept
3:58 azure-windows-latest-4core-16gb TestAccept

denik and others added 2 commits November 20, 2026 12:58
Bind now builds a bind plan where the bound resource is a state-only
update at the new ID, applies it with the regular Apply to a temp copy
of the state to compute the plan shown to the user, and on confirmation
applies the same bind plan to the real state instead of renaming the
temp file over it.

Co-authored-by: Isaac <no-reply@databricks.com>
The bound resource's state-only update is now decided in planNode, next
to the other state-only updates, instead of being assembled in bind.go
from a copy of the plan entry. The bind plan reuses FilterToSelected to
keep only the bound resource and its dependencies.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik force-pushed the denik/bind-via-plan-apply branch from 178e6f7 to 576c34c Compare November 20, 2026 13:01
@denik
denik changed the base branch from main to denik/bind-test-undeployed-dependency November 20, 2026 13:01

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

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants