Skip to content

Record deployment history for bundle resource unbindings - #7401

Draft
shreyas-goenka wants to merge 1 commit into
shreyas-goenka_data/shreyas-goenka/record-bind-historyfrom
shreyas-goenka_data/shreyas-goenka/record-unbind-history
Draft

shreyas-goenka wants to merge 1 commit into
shreyas-goenka_data/shreyas-goenka/record-bind-historyfrom
shreyas-goenka_data/shreyas-goenka/record-unbind-history

Conversation

@shreyas-goenka

@shreyas-goenka shreyas-goenka commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Record bundle deployment unbind through the shared StateDB history lifecycle. Select the resource and child keys first, stage UPDATE operations, then let DeleteState record their removal. Finalize and upload state before completing the version; history failures remain warnings.

Orphaned permissions/grants entries are included, unrelated keys remain untouched, and an already-unbound resource creates no history version. Workspace resources remain intact.

Validation

  • Focused key-selection tests cover parent/children, orphaned children, prefix boundaries, and no-op serial behavior.
  • Local commit failure tests verify failed history completion and WAL recovery.
  • 19 focused acceptance variants pass, including state/history readback, paired history modes, and injected DMS failures.
  • Scoped lint and three review passes cover correctness, minimal scope, and stack integration.

Stack: in-memory preparation #7765 → shared helpers #7766 → bind history #7400 → this PR.

This PR was written by Codex.

@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch from 6247b4f to 1ea379e Compare November 9, 2026 08:01
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch from 1ea379e to d74b071 Compare November 9, 2026 08:08
@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 5b7c802

Run: 44326343257

Env 🔄​flaky 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 288 38 20:21
💚​ aws-windows-latest-4core-16gb 1 290 36 15:28
💚​ azure linux-2core-8gb 1 287 38 17:36
🔄​ azure-windows-latest-4core-16gb 3 287 36 14:15
💚​ gcp linux-2core-8gb 1 288 38 22:09
💚​ gcp-windows-latest-4core-16gb 1 290 36 12:13
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 🔄​f 💚​R 💚​R
🔄​ TestAccept/bundle/deployment/bind/pipelines/recreate ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p
🔄​ TestAccept/bundle/deployment/bind/pipelines/recreate/DMS=true ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p
Top 50 slowest tests (at least 2 minutes):
duration env testname
7:57 aws-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=1
6:37 gcp linux-2core-8gb TestAccept/bundle/dms/bind-unbind/DMS=true
6:16 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsDelete
5:39 azure linux-2core-8gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=1
5:28 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
5:11 gcp linux-2core-8gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=1
5:10 aws-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=
4:53 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsReadDir
4:46 gcp linux-2core-8gb TestAccept/bundle/deployment/bind/pipelines/recreate/DMS=true
4:45 aws linux-2core-8gb TestAccept/bundle/deployment/bind/pipelines/recreate/DMS=true
4:45 aws linux-2core-8gb TestAccept/bundle/dms/bind-unbind/DMS=true
4:45 aws linux-2core-8gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=1
4:44 aws-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files
4:37 gcp linux-2core-8gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=
4:32 aws-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/pipelines/recreate/DMS=true
4:24 azure-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/pipelines/recreate/DMS=
4:24 azure linux-2core-8gb TestAccept/bundle/dms/bind-unbind/DMS=true
4:14 gcp-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=
4:12 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsStat
3:51 azure linux-2core-8gb TestFilerRecursiveDelete/workspace_files
3:50 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsDelete
3:49 gcp-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files
3:44 azure linux-2core-8gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=
3:43 aws-windows-latest-4core-16gb TestAccept/bundle/dms/bind-unbind/DMS=true
3:38 azure linux-2core-8gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=1
3:37 gcp linux-2core-8gb TestFilerWorkspaceFilesExtensionsReadDir
3:37 gcp-windows-latest-4core-16gb TestAccept/bundle/dms/bind-unbind/DMS=true
3:31 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsRead
3:30 aws-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=1
3:24 aws linux-2core-8gb TestAccept/bundle/deployment/bind/pipelines/recreate/DMS=
3:18 gcp-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsReadDir
3:17 gcp-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=1
3:16 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsStat
3:15 azure linux-2core-8gb TestAccept/bundle/deployment/bind/pipelines/recreate/DMS=true
3:12 aws linux-2core-8gb TestAccept/bundle/deployment/bind/feature_spec/DMS=true/OUTPUT_MODE=recorded
3:12 aws-windows-latest-4core-16gb TestAccept
3:12 aws linux-2core-8gb TestFilerRecursiveDelete/workspace_files_extensions
3:11 azure-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=/READPLAN=1
3:09 gcp-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=1
3:08 azure linux-2core-8gb TestFilerWorkspaceFilesExtensionsRead
3:08 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsReadDir
3:07 azure-windows-latest-4core-16gb TestImportDir
3:04 gcp linux-2core-8gb TestImportDirWithOverwriteFlag
3:00 aws-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/dashboard/recreation/DMS=true/READPLAN=
3:00 aws-windows-latest-4core-16gb TestImportDirWithOverwriteFlag
2:55 gcp-windows-latest-4core-16gb TestAccept/bundle/deployment/bind/pipelines/recreate/DMS=
2:50 aws-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files_extensions
2:50 gcp-windows-latest-4core-16gb TestAccept
2:38 gcp linux-2core-8gb TestSyncNestedFolderSync
2:35 azure linux-2core-8gb TestFilerWorkspaceFilesExtensionsDelete

@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch from d74b071 to f75d31f Compare November 9, 2026 09:21
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Commit: 5b7c80278 | Workflow run

Regression test report

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

28 tests: regression=21 unreleased=0 coverage=7 failing=0
test branch main (4c87e6a) latest (v1.26.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/feature_spec/DMS=/OUTPUT_MODE=plain ✅ ✅ ✅
TestAccept/bundle/deployment/bind/feature_spec/DMS=true/OUTPUT_MODE=recorded ✅ ❌ ❌
TestAccept/bundle/deployment/bind/job/job-abort-bind/DMS= ✅ ✅ ✅
TestAccept/bundle/deployment/bind/job/job-abort-bind/DMS=true ✅ ✅ ✅
TestAccept/bundle/deployment/bind/job/noop-job/DMS= ✅ ❌ ❌
TestAccept/bundle/deployment/bind/job/noop-job/DMS=true ✅ ❌ ❌
TestAccept/bundle/deployment/bind/pipelines/recreate/DMS= ✅ ✅ ✅
TestAccept/bundle/deployment/bind/pipelines/recreate/DMS=true ✅ ✅ ✅
TestAccept/bundle/deployment/bind/pipelines/update/DMS= ✅ ✅ ✅
TestAccept/bundle/deployment/bind/pipelines/update/DMS=true ✅ ✅ ✅
TestAccept/bundle/dms/bind-history-failures/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms/bind-immutable/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms/bind-unbind/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms/unbind-history-failures/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/complete_version/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/create_deployment/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/create_version/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/delete_deployment/DMS=true ✅ ❌ ❌
TestAccept/bundle/dms_fault/get_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/deployment/bind/dashboard/recreation/DMS=/READPLAN=: branch ✅ | main (4c87e6a) ❌ | latest (v1.26.0) ❌

main (4c87e6a):

acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1137
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	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=READ2463006283/001/out.state_after_bind.json

latest (v1.26.0): same output as main (4c87e6a)

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

main (4c87e6a):

acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1137
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	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=READ3572848455/001/out.state_after_bind.json

latest (v1.26.0): same output as main (4c87e6a)

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

main (4c87e6a):

acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1137
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	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=true1170424124/001/out.state_after_bind.json

latest (v1.26.0): same output as main (4c87e6a)

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

main (4c87e6a):

acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1137
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	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=true420777656/001/out.state_after_bind.json

latest (v1.26.0): same output as main (4c87e6a)

TestAccept/bundle/deployment/bind/feature_spec/DMS=true/OUTPUT_MODE=recorded: branch ✅ | main (4c87e6a) ❌ | latest (v1.26.0) ❌

main (4c87e6a):

acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1137
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] bundle deployment bind spec1 main.fspec_[UNIQUE_NAME].boundspec --auto-approve\nWarn: Failed to record bind history: failed to create deployment version: operations.resource_key must have a known resource type prefix (e.g. 'jobs.', 'pipelines.'): feature_specs.spec1\nSuccessfully bound feature_spec with an id 'main.fspec_[UNIQUE_NAME].boundspec'\nRun 'bundle deploy' to deploy changes to your workspace\n"
        	            	actual  : "\n>>> [CLI] bundle deployment bind spec1 main.fspec_[UNIQUE_NAME].boundspec --auto-approve\nSuccessfully bound feature_spec with an id 'main.fspec_[UNIQUE_NAME].boundspec'\nRun 'bundle deploy' to deploy changes to your workspace\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,2 @@
        	            	 >>> [CLI] bundle deployment bind spec1 main.fspec_[UNIQUE_NAME].boundspec --auto-approve
        	            	-Warn: Failed to record bind history: failed to create deployment version: operations.resource_key must have a known resource type prefix (e.g. 'jobs.', 'pipelines.'): feature_specs.spec1
        	            	 Successfully bound feature_spec with an id 'main.fspec_[UNIQUE_NAME].boundspec'
        	Test:       	TestAccept/bundle/deployment/bind/feature_spec/DMS=true/OUTPUT_MODE=recorded
        	Messages:   	bundle/deployment/bind/feature_spec/out.bind.recorded.txt vs /tmp/TestAcceptbundledeploymentbindfeature_specDMS=trueOUTPUT_M3748884574/001/out.bind.recorded.txt
    acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1137
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] bundle deployment unbind spec1\nWarn: Failed to record unbind history: failed to create deployment version: operations.resource_key must have a known resource type prefix (e.g. 'jobs.', 'pipelines.'): feature_specs.spec1\n"
        	            	actual  : "\n>>> [CLI] bundle deployment unbind spec1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,2 @@
        	            	 >>> [CLI] bundle deployment unbind spec1
        	            	-Warn: Failed to record unbind history: failed to create deployment version: operations.resource_key must have a known resource type prefix (e.g. 'jobs.', 'pipelines.'): feature_specs.spec1
        	            	 
        	Test:       	TestAccept/bundle/deployment/bind/feature_spec/DMS=true/OUTPUT_MODE=recorded
        	Messages:   	bundle/deployment/bind/feature_spec/out.unbind.recorded.txt vs /tmp/TestAcceptbundledeploymentbindfeature_specDMS=trueOUTPUT_M3748884574/001/out.unbind.recorded.txt
    acceptance_test.go:1162: 
        LOG.cleanup: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/test-bind-feature-spec-kin7dflv2ff6jfw3ypxbo72azy/default
        LOG.cleanup: 
        LOG.cleanup: Destroy: 0 deleted
FAIL

latest (v1.26.0):

acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1137
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] bundle deployment unbind spec1\nWarn: Failed to record unbind history: failed to create deployment version: operations.resource_key must have a known resource type prefix (e.g. 'jobs.', 'pipelines.'): feature_specs.spec1\n"
        	            	actual  : "\n>>> [CLI] bundle deployment unbind spec1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,2 @@
        	            	 >>> [CLI] bundle deployment unbind spec1
        	            	-Warn: Failed to record unbind history: failed to create deployment version: operations.resource_key must have a known resource type prefix (e.g. 'jobs.', 'pipelines.'): feature_specs.spec1
        	            	 
        	Test:       	TestAccept/bundle/deployment/bind/feature_spec/DMS=true/OUTPUT_MODE=recorded
        	Messages:   	bundle/deployment/bind/feature_spec/out.unbind.recorded.txt vs /tmp/TestAcceptbundledeploymentbindfeature_specDMS=trueOUTPUT_M2030398600/001/out.unbind.recorded.txt
    acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1137
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] bundle deployment bind spec1 main.fspec_[UNIQUE_NAME].boundspec --auto-approve\nWarn: Failed to record bind history: failed to create deployment version: operations.resource_key must have a known resource type prefix (e.g. 'jobs.', 'pipelines.'): feature_specs.spec1\nSuccessfully bound feature_spec with an id 'main.fspec_[UNIQUE_NAME].boundspec'\nRun 'bundle deploy' to deploy changes to your workspace\n"
        	            	actual  : "\n>>> [CLI] bundle deployment bind spec1 main.fspec_[UNIQUE_NAME].boundspec --auto-approve\nSuccessfully bound feature_spec with an id 'main.fspec_[UNIQUE_NAME].boundspec'\nRun 'bundle deploy' to deploy changes to your workspace\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,3 +2,2 @@
        	            	 >>> [CLI] bundle deployment bind spec1 main.fspec_[UNIQUE_NAME].boundspec --auto-approve
        	            	-Warn: Failed to record bind history: failed to create deployment version: operations.resource_key must have a known resource type prefix (e.g. 'jobs.', 'pipelines.'): feature_specs.spec1
        	            	 Successfully bound feature_spec with an id 'main.fspec_[UNIQUE_NAME].boundspec'
        	Test:       	TestAccept/bundle/deployment/bind/feature_spec/DMS=true/OUTPUT_MODE=recorded
        	Messages:   	bundle/deployment/bind/feature_spec/out.bind.recorded.txt vs /tmp/TestAcceptbundledeploymentbindfeature_specDMS=trueOUTPUT_M2030398600/001/out.bind.recorded.txt
    acceptance_test.go:1162: 
        LOG.cleanup: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/test-bind-feature-spec-awghgwybavbkxe55gzdv6rndei/default
        LOG.cleanup: 
        LOG.cleanup: Destroy: 0 deleted
FAIL
TestAccept/bundle/deployment/bind/job/noop-job/DMS=: branch ✅ | main (4c87e6a) ❌ | latest (v1.26.0) ❌

main (4c87e6a):

acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1125
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] jobs create --json {\"name\": \"My Job\"}\n\n>>> [CLI] bundle deployment bind job_1 [JOB_ID] --auto-approve\nSuccessfully bound job with an id '[JOB_ID]'\nRun 'bundle deploy' to deploy changes to your workspace\n\n>>> jq {serial, resource_id: .state[\"resources.jobs.job_1\"].__id__} .databricks/bundle/default/resources.json\n{\n  \"serial\": 1,\n  \"resource_id\": \"[JOB_ID]\"\n}\n\n>>> assert_not_exists.py .databricks/bundle/default/resources.json.wal .databricks/bundle/default/resources.json.temp-bind\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files...\nUpdated jobs.job_1\nFiles: 1 uploaded, 0 deleted\nResources: 0 created, 1 changed, 0 deleted, 0 unchanged\n\n>>> [CLI] jobs get [JOB_ID] --output json\n"
        	            	actual  : "\n>>> [CLI] jobs create --json {\"name\": \"My Job\"}\n\n>>> [CLI] bundle deployment bind job_1 [JOB_ID] --auto-approve\nSuccessfully bound job with an id '[JOB_ID]'\nRun 'bundle deploy' to deploy changes to your workspace\n\n>>> jq {serial, resource_id: .state[\"resources.jobs.job_1\"].__id__} .databricks/bundle/default/resources.json\n{\n  \"serial\": 2,\n  \"resource_id\": \"[JOB_ID]\"\n}\n\n>>> assert_not_exists.py .databricks/bundle/default/resources.json.wal .databricks/bundle/default/resources.json.temp-bind\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files...\nUpdated jobs.job_1\nFiles: 1 uploaded, 0 deleted\nResources: 0 created, 1 changed, 0 deleted, 0 unchanged\n\n>>> [CLI] jobs get [JOB_ID] --output json\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -9,3 +9,3 @@
        	            	 {
        	            	-  "serial": 1,
        	            	+  "serial": 2,
        	            	   "resource_id": "[JOB_ID]"
        	Test:       	TestAccept/bundle/deployment/bind/job/noop-job/DMS=
        	Messages:   	bundle/deployment/bind/job/noop-job/output.txt vs /tmp/TestAcceptbundledeploymentbindjobnoop-jobDMS=836612414/002/output.txt

latest (v1.26.0): same output as main (4c87e6a)

TestAccept/bundle/deployment/bind/job/noop-job/DMS=true: branch ✅ | main (4c87e6a) ❌ | latest (v1.26.0) ❌

main (4c87e6a):

acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1125
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] jobs create --json {\"name\": \"My Job\"}\n\n>>> [CLI] bundle deployment bind job_1 [JOB_ID] --auto-approve\nSuccessfully bound job with an id '[JOB_ID]'\nRun 'bundle deploy' to deploy changes to your workspace\n\n>>> jq {serial, resource_id: .state[\"resources.jobs.job_1\"].__id__} .databricks/bundle/default/resources.json\n{\n  \"serial\": 1,\n  \"resource_id\": \"[JOB_ID]\"\n}\n\n>>> assert_not_exists.py .databricks/bundle/default/resources.json.wal .databricks/bundle/default/resources.json.temp-bind\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files...\nUpdated jobs.job_1\nFiles: 1 uploaded, 0 deleted\nResources: 0 created, 1 changed, 0 deleted, 0 unchanged\n\n>>> [CLI] jobs get [JOB_ID] --output json\n"
        	            	actual  : "\n>>> [CLI] jobs create --json {\"name\": \"My Job\"}\n\n>>> [CLI] bundle deployment bind job_1 [JOB_ID] --auto-approve\nSuccessfully bound job with an id '[JOB_ID]'\nRun 'bundle deploy' to deploy changes to your workspace\n\n>>> jq {serial, resource_id: .state[\"resources.jobs.job_1\"].__id__} .databricks/bundle/default/resources.json\n{\n  \"serial\": 2,\n  \"resource_id\": \"[JOB_ID]\"\n}\n\n>>> assert_not_exists.py .databricks/bundle/default/resources.json.wal .databricks/bundle/default/resources.json.temp-bind\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files...\nUpdated jobs.job_1\nFiles: 1 uploaded, 0 deleted\nResources: 0 created, 1 changed, 0 deleted, 0 unchanged\n\n>>> [CLI] jobs get [JOB_ID] --output json\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -9,3 +9,3 @@
        	            	 {
        	            	-  "serial": 1,
        	            	+  "serial": 2,
        	            	   "resource_id": "[JOB_ID]"
        	Test:       	TestAccept/bundle/deployment/bind/job/noop-job/DMS=true
        	Messages:   	bundle/deployment/bind/job/noop-job/output.txt vs /tmp/TestAcceptbundledeploymentbindjobnoop-jobDMS=true2476139106/002/output.txt

latest (v1.26.0): same output as main (4c87e6a)

TestAccept/bundle/dms/bind-history-failures/DMS=true: branch ✅ | main (4c87e6a) ❌ | latest (v1.26.0) ❌

main (4c87e6a):

acceptance_test.go:1384: Diff:
        --- bundle/dms/bind-history-failures/output.txt
        +++ /tmp/TestAcceptbundledmsbind-history-failuresDMS=true4256673257/002/output.txt
        @@ -4,7 +4,6 @@
         >>> fault.py POST /api/2.0/bundle/deployments/*/versions 400 0 1
         
         >>> [CLI] bundle deployment bind create_failed [JOB_ID] --auto-approve
        -Warn: Failed to record bind history: failed to create deployment version: Fault injected by test.
         Successfully bound job with an id '[JOB_ID]'
         Run 'bundle deploy' to deploy changes to your workspace
         
        @@ -13,7 +12,6 @@
         >>> fault.py PATCH /api/2.0/bundle/** 400 0 1
         
         >>> [CLI] bundle deployment bind record_failed [JOB_ID] --auto-approve
        -Warn: Failed to record deployment history: recording operation for resources.jobs.record_failed: Fault injected by test.
         Successfully bound job with an id '[JOB_ID]'
         Run 'bundle deploy' to deploy changes to your workspace
         
        @@ -22,7 +20,6 @@
         >>> fault.py POST /api/2.0/bundle/deployments/*/versions/*/complete 400 0 1
         
         >>> [CLI] bundle deployment bind complete_failed [JOB_ID] --auto-approve
        -Warn: Failed to complete deployment history version: Fault injected by test.
         Successfully bound job with an id '[JOB_ID]'
         Run 'bundle deploy' to deploy changes to your workspace
         
        @@ -42,13 +39,6 @@
         }
         
         >>> print_requests.py --dms //versions --oneline
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "1"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.create_failed"}], "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "2"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.record_failed"}], "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/2/operations/jobs.record_failed", "q": {"update_mask": "state,error_message,resource_id,status"}, "body": {"error_message": "", "resource_id": "[JOB_ID]", "sequence_id": 0, "state": "{\"state\":{\"deployment\":{\"kind\":\"BUNDLE\",\"metadata_file_path\":\"/Workspace/Users/[USERNAME]/.bundle/dms-bind-history-failures-[UNIQUE_NAME]/default/state/metadata.json\"},\"edit_mode\":\"UI_LOCKED\",\"format\":\"MULTI_TASK\",\"max_concurrent_runs\":1,\"name\":\"record_failed\",\"queue\":{\"enabled\":true}}}", "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/2/complete", "body": {"completion_reason": "VERSION_COMPLETE_FAILURE"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "3"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.complete_failed"}], "previous_version_id": "2", "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/3/operations/jobs.complete_failed", "q": {"update_mask": "state,error_message,resource_id,status"}, "body": {"error_message": "", "resource_id": "[JOB_ID]", "sequence_id": 0, "state": "{\"state\":{\"deployment\":{\"kind\":\"BUNDLE\",\"metadata_file_path\":\"/Workspace/Users/[USERNAME]/.bundle/dms-bind-history-failures-[UNIQUE_NAME]/default/state/metadata.json\"},\"edit_mode\":\"UI_LOCKED\",\"format\":\"MULTI_TASK\",\"max_concurrent_runs\":1,\"name\":\"complete_failed\",\"queue\":{\"enabled\":true}}}", "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/3/complete", "body": {"completion_reason": "VERSION_COMPLETE_SUCCESS"}}
         
         === A remote state upload failure fails the bind version
         
        @@ -64,9 +54,6 @@
         
         
         >>> print_requests.py --dms //versions --oneline
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "4"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.upload_failed"}], "previous_version_id": "3", "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/4/operations/jobs.upload_failed", "q": {"update_mask": "state,error_message,resource_id,status"}, "body": {"error_message": "", "resource_id": "[JOB_ID]", "sequence_id": 0, "state": "{\"state\":{\"deployment\":{\"kind\":\"BUNDLE\",\"metadata_file_path\":\"/Workspace/Users/[USERNAME]/.bundle/dms-bind-history-failures-[UNIQUE_NAME]/default/state/metadata.json\"},\"edit_mode\":\"UI_LOCKED\",\"format\":\"MULTI_TASK\",\"max_concurrent_runs\":1,\"name\":\"upload_failed\",\"queue\":{\"enabled\":true}}}", "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/4/complete", "body": {"completion_reason": "VERSION_COMPLETE_FAILURE"}}
         
         === Remote state still contains only the successful bindings

latest (v1.26.0): same output as main (4c87e6a)

TestAccept/bundle/dms/bind-immutable/DMS=true: branch ✅ | main (4c87e6a) ❌ | latest (v1.26.0) ❌

main (4c87e6a):

acceptance_test.go:1384: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1384
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1125
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:688
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] bundle deployment bind foo [JOB_ID] --auto-approve\nSuccessfully bound job with an id '[JOB_ID]'\nRun 'bundle deploy' to deploy changes to your workspace\n\n>>> MSYS_NO_PATHCONV=1 [CLI] bundle-deployments list-resources deployments/[DEPLOYMENT_ID] -o json\n[\n  {\n    \"last_action_type\": \"OPERATION_ACTION_TYPE_UPDATE\",\n    \"resource_id\": \"[JOB_ID]\",\n    \"resource_key\": \"jobs.foo\"\n  }\n]\n"
        	            	actual  : "\n>>> [CLI] bundle deployment bind foo [JOB_ID] --auto-approve\nSuccessfully bound job with an id '[JOB_ID]'\nRun 'bundle deploy' to deploy changes to your workspace\nError: Path (/Workspace/Users/[USERNAME]/.bundle/dms-bind-immutable-[UNIQUE_NAME]/default/state/resources.deployment.json) doesn't exist.\n\nExit code: 1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -4,11 +4,5 @@
        	            	 Run 'bundle deploy' to deploy changes to your workspace
        	            	+Error: Path (/Workspace/Users/[USERNAME]/.bundle/dms-bind-immutable-[UNIQUE_NAME]/default/state/resources.deployment.json) doesn't exist.
        	            	 
        	            	->>> MSYS_NO_PATHCONV=1 [CLI] bundle-deployments list-resources deployments/[DEPLOYMENT_ID] -o json
        	            	-[
        	            	-  {
        	            	-    "last_action_type": "OPERATION_ACTION_TYPE_UPDATE",
        	            	-    "resource_id": "[JOB_ID]",
        	            	-    "resource_key": "jobs.foo"
        	            	-  }
        	            	-]
        	            	+Exit code: 1
        	            	 
        	Test:       	TestAccept/bundle/dms/bind-immutable/DMS=true
        	Messages:   	bundle/dms/bind-immutable/output.txt vs /tmp/TestAcceptbundledmsbind-immutableDMS=true19501610/002/output.txt

latest (v1.26.0): same output as main (4c87e6a)

TestAccept/bundle/dms/bind-unbind/DMS=true: branch ✅ | main (4c87e6a) ❌ | latest (v1.26.0) ❌

main (4c87e6a):

acceptance_test.go:1384: Diff:
        --- bundle/dms/bind-unbind/output.txt
        +++ /tmp/TestAcceptbundledmsbind-unbindDMS=true134140539/002/output.txt
        @@ -23,123 +23,18 @@
         
         >>> jq {serial, features, resource_id: .state["resources.jobs.foo"].__id__} .databricks/bundle/default/resources.json
         {
        -  "serial": 1,
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        +  "serial": 2,
        +  "features": null,
           "resource_id": "[JOB_ID]"
         }
         
         >>> print_requests.py --dms //versions --oneline
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "1"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.foo"}], "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/1/operations/jobs.foo", "q": {"update_mask": "state,error_message,resource_id,status"}, "body": {"error_message": "", "resource_id": "[JOB_ID]", "sequence_id": 0, "state": "{\"state\":{\"deployment\":{\"kind\":\"BUNDLE\",\"metadata_file_path\":\"/Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/state/metadata.json\"},\"edit_mode\":\"UI_LOCKED\",\"format\":\"MULTI_TASK\",\"max_concurrent_runs\":1,\"name\":\"foo\",\"queue\":{\"enabled\":true}}}", "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/1/complete", "body": {"completion_reason": "VERSION_COMPLETE_SUCCESS"}}
         
         >>> [CLI] jobs get [JOB_ID]
         {
           "job_id": [JOB_ID],
           "name": "bind-target-[UNIQUE_NAME]"
         }
        +Error: Path (/Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/state/resources.deployment.json) doesn't exist.
         
        ->>> MSYS_NO_PATHCONV=1 [CLI] bundle-deployments list-resources deployments/[DEPLOYMENT_ID] -o json
        -[
        -  {
        -    "last_action_type": "OPERATION_ACTION_TYPE_UPDATE",
        -    "resource_id": "[JOB_ID]",
        -    "resource_key": "jobs.foo"
        -  }
        -]
        -
        -=== Deploy keeps the bound job ID with recorded history
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/files...
        -Created jobs.foo.permissions
        -Updated jobs.foo
        -Files: 2 uploaded, 0 deleted
        -Resources: 1 created, 1 changed, 0 deleted, 0 unchanged
        -
        ->>> jq {features, resource_id: .state["resources.jobs.foo"].__id__} .databricks/bundle/default/resources.json
        -{
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        -  "resource_id": "[JOB_ID]"
        -}
        -
        -=== Unbind preserves the shadow history marker and leaves the job intact
        -
        ->>> [CLI] bundle deployment unbind foo
        -
        ->>> print_requests.py --dms //versions //jobs //permissions --oneline
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "3"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.foo"}, {"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.foo.permissions"}], "previous_version_id": "2", "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/3/operations/jobs.foo", "q": {"update_mask": "state,error_message,status"}, "body": {"error_message": "", "sequence_id": 0, "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/3/operations/jobs.foo.permissions", "q": {"update_mask": "state,error_message,status"}, "body": {"error_message": "", "sequence_id": 0, "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/3/complete", "body": {"completion_reason": "VERSION_COMPLETE_SUCCESS"}}
        -
        ->>> jq {features, state} .databricks/bundle/default/resources.json
        -{
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        -  "state": {}
        -}
        -
        ->>> [CLI] jobs get [JOB_ID]
        -{
        -  "job_id": [JOB_ID]
        -}
        -
        ->>> MSYS_NO_PATHCONV=1 [CLI] bundle-deployments list-resources deployments/[DEPLOYMENT_ID] -o json
        -[]
        -
        -=== Unbinding an already unbound resource creates no history version
        -
        ->>> [CLI] bundle deployment unbind foo
        -
        ->>> print_requests.py --dms //versions
        -
        -=== Rebind preserves the existing shadow history marker without configuration
        -
        ->>> DATABRICKS_BUNDLE_DEPLOYMENT_HISTORY= [CLI] bundle deployment bind foo [JOB_ID] --auto-approve
        -Successfully bound job with an id '[JOB_ID]'
        -Run 'bundle deploy' to deploy changes to your workspace
        -
        ->>> jq {features, resource_id: .state["resources.jobs.foo"].__id__} .databricks/bundle/default/resources.json
        -{
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        -  "resource_id": "[JOB_ID]"
        -}
        -
        ->>> print_requests.py --dms //versions --oneline
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "5"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.foo"}], "previous_version_id": "3", "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/5/operations/jobs.foo", "q": {"update_mask": "state,error_message,resource_id,status"}, "body": {"error_message": "", "resource_id": "[JOB_ID]", "sequence_id": 0, "state": "{\"state\":{\"deployment\":{\"kind\":\"BUNDLE\",\"metadata_file_path\":\"/Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/state/metadata.json\"},\"edit_mode\":\"UI_LOCKED\",\"format\":\"MULTI_TASK\",\"max_concurrent_runs\":1,\"name\":\"foo\",\"queue\":{\"enabled\":true}}}", "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/5/complete", "body": {"completion_reason": "VERSION_COMPLETE_SUCCESS"}}
        -
        -=== A subsequent deploy continues managing the same job
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/files...
        -Created jobs.foo.permissions
        -Files: 0 uploaded, 0 deleted
        -Resources: 1 created, 0 changed, 0 deleted, 1 unchanged
        -
        ->>> jq {features, resource_id: .state["resources.jobs.foo"].__id__} .databricks/bundle/default/resources.json
        -{
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        -  "resource_id": "[JOB_ID]"
        -}
        -
        -=== A rejected duplicate bind creates no history version
        -
        ->>> musterr [CLI] bundle deployment bind foo [JOB_ID] --auto-approve
        -Error: Resource already managed
        -
        -The bundle is already managing resource for resources.jobs.foo and it is bound to the requested ID [JOB_ID].
        -
        -
        ->>> print_requests.py --dms //versions
        +Exit code: 1
        
    acceptance_test.go:1162: 
        LOG.cleanup: The following resources will be deleted:
        LOG.cleanup:   delete resources.jobs.foo
        LOG.cleanup: 
        LOG.cleanup: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/dms-bind-unbind-4gbdn6lqgbcfjino5x2gs2bzvi/default
        LOG.cleanup: 
        LOG.cleanup: Destroy: 1 deleted
        LOG.cleanup: Error: Not Found
        LOG.cleanup: 
        LOG.cleanup: Exit code: 1

latest (v1.26.0):

acceptance_test.go:1384: Diff:
        --- bundle/dms/bind-unbind/output.txt
        +++ /tmp/TestAcceptbundledmsbind-unbindDMS=true3966898789/002/output.txt
        @@ -23,123 +23,18 @@
         
         >>> jq {serial, features, resource_id: .state["resources.jobs.foo"].__id__} .databricks/bundle/default/resources.json
         {
        -  "serial": 1,
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        +  "serial": 2,
        +  "features": null,
           "resource_id": "[JOB_ID]"
         }
         
         >>> print_requests.py --dms //versions --oneline
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "1"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.foo"}], "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/1/operations/jobs.foo", "q": {"update_mask": "state,error_message,resource_id,status"}, "body": {"error_message": "", "resource_id": "[JOB_ID]", "sequence_id": 0, "state": "{\"state\":{\"deployment\":{\"kind\":\"BUNDLE\",\"metadata_file_path\":\"/Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/state/metadata.json\"},\"edit_mode\":\"UI_LOCKED\",\"format\":\"MULTI_TASK\",\"max_concurrent_runs\":1,\"name\":\"foo\",\"queue\":{\"enabled\":true}}}", "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/1/complete", "body": {"completion_reason": "VERSION_COMPLETE_SUCCESS"}}
         
         >>> [CLI] jobs get [JOB_ID]
         {
           "job_id": [JOB_ID],
           "name": "bind-target-[UNIQUE_NAME]"
         }
        +Error: Path (/Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/state/resources.deployment.json) doesn't exist.
         
        ->>> MSYS_NO_PATHCONV=1 [CLI] bundle-deployments list-resources deployments/[DEPLOYMENT_ID] -o json
        -[
        -  {
        -    "last_action_type": "OPERATION_ACTION_TYPE_UPDATE",
        -    "resource_id": "[JOB_ID]",
        -    "resource_key": "jobs.foo"
        -  }
        -]
        -
        -=== Deploy keeps the bound job ID with recorded history
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/files...
        -Created jobs.foo.permissions
        -Updated jobs.foo
        -Files: 2 uploaded, 0 deleted
        -Resources: 1 created, 1 changed, 0 deleted, 0 unchanged
        -
        ->>> jq {features, resource_id: .state["resources.jobs.foo"].__id__} .databricks/bundle/default/resources.json
        -{
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        -  "resource_id": "[JOB_ID]"
        -}
        -
        -=== Unbind preserves the shadow history marker and leaves the job intact
        -
        ->>> [CLI] bundle deployment unbind foo
        -
        ->>> print_requests.py --dms //versions //jobs //permissions --oneline
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "3"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.foo"}, {"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.foo.permissions"}], "previous_version_id": "2", "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/3/operations/jobs.foo", "q": {"update_mask": "state,error_message,status"}, "body": {"error_message": "", "sequence_id": 0, "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/3/operations/jobs.foo.permissions", "q": {"update_mask": "state,error_message,status"}, "body": {"error_message": "", "sequence_id": 0, "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/3/complete", "body": {"completion_reason": "VERSION_COMPLETE_SUCCESS"}}
        -
        ->>> jq {features, state} .databricks/bundle/default/resources.json
        -{
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        -  "state": {}
        -}
        -
        ->>> [CLI] jobs get [JOB_ID]
        -{
        -  "job_id": [JOB_ID]
        -}
        -
        ->>> MSYS_NO_PATHCONV=1 [CLI] bundle-deployments list-resources deployments/[DEPLOYMENT_ID] -o json
        -[]
        -
        -=== Unbinding an already unbound resource creates no history version
        -
        ->>> [CLI] bundle deployment unbind foo
        -
        ->>> print_requests.py --dms //versions
        -
        -=== Rebind preserves the existing shadow history marker without configuration
        -
        ->>> DATABRICKS_BUNDLE_DEPLOYMENT_HISTORY= [CLI] bundle deployment bind foo [JOB_ID] --auto-approve
        -Successfully bound job with an id '[JOB_ID]'
        -Run 'bundle deploy' to deploy changes to your workspace
        -
        ->>> jq {features, resource_id: .state["resources.jobs.foo"].__id__} .databricks/bundle/default/resources.json
        -{
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        -  "resource_id": "[JOB_ID]"
        -}
        -
        ->>> print_requests.py --dms //versions --oneline
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions", "q": {"version_id": "5"}, "body": {"cli_version": "[CLI_VERSION]", "operations": [{"action_type": "OPERATION_ACTION_TYPE_UPDATE", "resource_key": "jobs.foo"}], "previous_version_id": "3", "version_type": "VERSION_TYPE_DEPLOY"}}
        -{"method": "PATCH", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/5/operations/jobs.foo", "q": {"update_mask": "state,error_message,resource_id,status"}, "body": {"error_message": "", "resource_id": "[JOB_ID]", "sequence_id": 0, "state": "{\"state\":{\"deployment\":{\"kind\":\"BUNDLE\",\"metadata_file_path\":\"/Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/state/metadata.json\"},\"edit_mode\":\"UI_LOCKED\",\"format\":\"MULTI_TASK\",\"max_concurrent_runs\":1,\"name\":\"foo\",\"queue\":{\"enabled\":true}}}", "status": "OPERATION_STATUS_SUCCEEDED"}}
        -{"method": "POST", "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/5/complete", "body": {"completion_reason": "VERSION_COMPLETE_SUCCESS"}}
        -
        -=== A subsequent deploy continues managing the same job
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dms-bind-unbind-[UNIQUE_NAME]/default/files...
        -Created jobs.foo.permissions
        -Files: 0 uploaded, 0 deleted
        -Resources: 1 created, 0 changed, 0 deleted, 1 unchanged
        -
        ->>> jq {features, resource_id: .state["resources.jobs.foo"].__id__} .databricks/bundle/default/resources.json
        -{
        -  "features": {
        -    "deployment_history_shadow": {}
        -  },
        -  "resource_id": "[JOB_ID]"
        -}
        -
        -=== A rejected duplicate bind creates no history version
        -
        ->>> musterr [CLI] bundle deployment bind foo [JOB_ID] --auto-approve
        -Error: Resource already managed
        -
        -The bundle is already managing resource for resources.jobs.foo and it is bound to the requested ID [JOB_ID].
        -
        -
        ->>> print_requests.py --dms //versions
        +Exit code: 1
        
    acceptance_test.go:1162: 
        LOG.cleanup: The following resources will be deleted:
        LOG.cleanup:   delete resources.jobs.foo
        LOG.cleanup: 
        LOG.cleanup: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/dms-bind-unbind-tqybbfaa2rb2lhbbnjtdltljma/default
        LOG.cleanup: 
        LOG.cleanup: Destroy: 1 deleted
        LOG.cleanup: Error: Not Found
        LOG.cleanup: 
        LOG.cleanup: Exit code: 1

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

@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch 20 times, most recently from 2017d94 to 6f52001 Compare November 10, 2026 12:10
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch from 6f52001 to 3befeec Compare November 13, 2026 12:59
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch from 3befeec to e2e41c6 Compare November 16, 2026 04:15
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch from e2e41c6 to 84d4a06 Compare November 18, 2026 12:14
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch from 84d4a06 to 5c44864 Compare November 18, 2026 14:20
@github-actions github-actions Bot added the DABs DABs related issues label Nov 18, 2026
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch from 5c44864 to 4b0a318 Compare November 18, 2026 14:26
@shreyas-goenka
shreyas-goenka force-pushed the shreyas-goenka_data/shreyas-goenka/record-unbind-history branch from 4b0a318 to 5b7c802 Compare November 18, 2026 14:35

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