Skip to content

Plan grants and permissions as updates without DoCreate - #7510

Draft
janniklasrose wants to merge 7 commits into
janniklasrose/grants-import-on-planfrom
janniklasrose/optional-do-create
Draft

janniklasrose wants to merge 7 commits into
janniklasrose/grants-import-on-planfrom
janniklasrose/optional-do-create

Conversation

@janniklasrose

@janniklasrose janniklasrose commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Changes

Based on #7422. Make DoCreate optional and require IDFromState plus DoUpdate when it is absent. Grants and permissions, including secret-scope ACLs, now plan as updates on their first deployment. Existing assignments are read during planning when their ID is available; new parent IDs resolve during apply. Older saved plans that request creation of these resources fail before deployment with an instruction to regenerate the plan.

Why

Grants and permissions update their parent’s access settings. They should not appear as newly created objects. The capability also replaces #7422’s temporary grants-only adoption setting.

Tests

  • Adapter validation, direct-engine unit suites, and acceptance coverage for initial deployment from saved plans, deployment history, parent recreation, and unchanged redeployment.
  • Schema/direct generation, full formatting, repository checks, and full lint pass.
  • Full unit suite: 13,273 tests plus 97 tools tests passed, with a log-stream timing retry. Updated inherited feature-spec grants expectations; the local completion SIGPIPE persists, while MLOps and startup timing passed on retry.
  • All Linux, macOS, and Windows checks and all six AWS/Azure/GCP cloud environments pass on the refreshed head.

This PR was written with Codex.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Commit: 2ad675f9e | Workflow run

Regression test report

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

46 tests: regression=42 unreleased=0 coverage=4 failing=0
test branch main (1d69dfe) latest (v1.26.0)
TestAccept/bundle/deploy/update-without-create/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/deploy/update-without-create/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/deploy/update-without-create/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/deploy/update-without-create/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename_all_out_of_band/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename_all_out_of_band/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename_out_of_band/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename_out_of_band/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/catalogs/rename_with_comment/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/catalogs/rename_with_comment/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/grants/schemas/import_errors/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/grants/schemas/import_errors/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/grants/schemas/import_existing/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/grants/schemas/import_existing/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/grants/schemas/import_existing/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/grants/schemas/import_existing/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_after_rename_out_of_band/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/schemas/destroy_after_rename_out_of_band/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/schemas/foreign_at_recorded_name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/foreign_at_recorded_name/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/recreate_interrupted/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/recreate_out_of_band/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/recreate_out_of_band/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_case_only/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_case_only/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_interrupted/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_out_of_band/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_out_of_band/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_out_of_band_old_state/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_out_of_band_old_state/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_probe_forbidden/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_probe_forbidden/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_then_change/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_then_change/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_with_comment/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_with_comment/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_with_volume/DMS=/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_with_volume/DMS=/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_with_volume/DMS=true/READPLAN= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_with_volume/DMS=true/READPLAN=1 ✅ ❌ ❌
TestAccept/bundle/deploy/update-without-create/DMS=/READPLAN=: branch ✅ | main (1d69dfe) ❌ | latest (v1.26.0) ❌

main (1d69dfe):

acceptance_test.go:1345: Diff:
        --- bundle/deploy/update-without-create/output.txt
        +++ /tmp/TestAcceptbundledeployupdate-without-createDMS=READPLAN=473201844/002/output.txt
        @@ -2,11 +2,11 @@
         === Plan updates for grants and permissions before their parents exist
         >>> [CLI] bundle plan
         create jobs.job
        -update jobs.job.permissions
        +create jobs.job.permissions
         create schemas.schema
        -update schemas.schema.grants
        +create schemas.schema.grants
         
        -Plan: 2 to add, 2 to change, 0 to delete, 0 unchanged
        +Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged
         
         >>> [CLI] bundle plan -o json
         
        @@ -14,140 +12,16 @@
         
         === Reject old create actions before modifying resources
         >>> musterr [CLI] bundle deploy --plan legacy-plan.json
        -Error: cannot create resources.jobs.job.permissions: resource does not support creation; run 'bundle plan' again
        -
        -
        ->>> musterr [CLI] bundle deploy --plan legacy-plan.json
        -Error: cannot recreate resources.jobs.job.permissions: resource does not support creation; run 'bundle plan' again
        -
        -
        ->>> print_requests.py //jobs //unity-catalog
        -
        ->>> print_state.py
        -
        -=== Create the parents and apply their dependent updates
        ->>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default/files...
         Created jobs.job
        +Created jobs.job.permissions
         Created schemas.schema
        -Updated jobs.job.permissions
        -Updated schemas.schema.grants
        -Files: 5 uploaded, 0 deleted
        -Resources: 2 created, 2 changed, 0 deleted, 0 unchanged
        +Created schemas.schema.grants
        +Files: 6 uploaded, 0 deleted
        +Resources: 4 created, 0 changed, 0 deleted, 0 unchanged
         
        ->>> print_requests.py //api/2.0/permissions/jobs //unity-catalog/permissions --sort
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/permissions/schema/[SCHEMA_ID]",
        -  "body": {
        -    "changes": [
        -      {
        -        "add": [
        -          "USE_SCHEMA"
        -        ],
        -        "principal": "[USERNAME]",
        -        "remove": [
        -          "ALL_PRIVILEGES"
        -        ]
        -      }
        -    ]
        -  }
        -}
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/permissions/jobs/[JOB_ID]",
        -  "body": {
        -    "access_control_list": [
        -      {
        -        "permission_level": "IS_OWNER",
        -        "service_principal_name": "[USERNAME]"
        -      }
        -    ]
        -  }
        -}
        +Unexpected success
         
        ->>> print_state.py
        -{
        -  "resources.jobs.job.permissions": {
        -    "__id__": "/jobs/[JOB_ID]",
        -    "state": {
        -      "object_id": "/jobs/[JOB_ID]",
        -      "__embed__": [
        -        {
        -          "level": "IS_OWNER",
        -          "service_principal_name": "[USERNAME]"
        -        }
        -      ]
        -    },
        -    "depends_on": [
        -      {
        -        "node": "resources.jobs.job",
        -        "label": "${resources.jobs.job.id}"
        -      }
        -    ]
        -  },
        -  "resources.schemas.schema.grants": {
        -    "__id__": "schema/[SCHEMA_ID]",
        -    "state": {
        -      "securable_type": "schema",
        -      "full_name": "[SCHEMA_ID]",
        -      "__embed__": [
        -        {
        -          "principal": "[USERNAME]",
        -          "privileges": [
        -            "USE_SCHEMA"
        -          ]
        -        }
        -      ]
        -    },
        -    "depends_on": [
        -      {
        -        "node": "resources.schemas.schema",
        -        "label": "${resources.schemas.schema.id}"
        -      }
        -    ]
        -  }
        -}
        -
        -=== A second plan is unchanged
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged
        -
        -=== Recreate a deleted parent and move its permissions to the new ID
        ->>> [CLI] jobs delete [JOB_ID]
        -
        ->>> [CLI] bundle plan
        -create jobs.job
        -update jobs.job.permissions
        -
        -Plan: 1 to add, 1 to change, 0 to delete, 2 unchanged
        -
        ->>> [CLI] bundle plan -o json
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default/files...
        -Created jobs.job
        -Updated jobs.job.permissions
        -Files: 1 uploaded, 0 deleted
        -Resources: 1 created, 1 changed, 0 deleted, 2 unchanged
        -
        ->>> print_requests.py //api/2.0/permissions/jobs
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/permissions/jobs/[JOB_ID_4]",
        -  "body": {
        -    "access_control_list": [
        -      {
        -        "permission_level": "IS_OWNER",
        -        "service_principal_name": "[USERNAME]"
        -      }
        -    ]
        -  }
        -}
        -
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged
        -
         >>> errcode [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.jobs.job
        @@ -159,3 +28,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default
         
         Destroy: 2 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1345: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1345
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1098
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:660
        	Error:      	Not equal: 
        	            	expected: "{\n  \"resources.jobs.job\": {\n    \"action\": \"create\"\n  },\n  \"resources.jobs.job.permissions\": {\n    \"action\": \"update\"\n  },\n  \"resources.schemas.schema\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema.grants\": {\n    \"action\": \"update\"\n  }\n}\n"
        	            	actual  : "{\n  \"resources.jobs.job\": {\n    \"action\": \"create\"\n  },\n  \"resources.jobs.job.permissions\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema.grants\": {\n    \"action\": \"create\"\n  }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -5,3 +5,3 @@
        	            	   "resources.jobs.job.permissions": {
        	            	-    "action": "update"
        	            	+    "action": "create"
        	            	   },
        	            	@@ -11,3 +11,3 @@
        	            	   "resources.schemas.schema.grants": {
        	            	-    "action": "update"
        	            	+    "action": "create"
        	            	   }
        	Test:       	TestAccept/bundle/deploy/update-without-create/DMS=/READPLAN=
        	Messages:   	bundle/deploy/update-without-create/out.actions.json vs /tmp/TestAcceptbundledeployupdate-without-createDMS=READPLAN=473201844/001/out.actions.json
    acceptance_test.go:1135: Test produced unexpected files:
        legacy-plan.json

latest (v1.26.0): same output as main (1d69dfe)

TestAccept/bundle/deploy/update-without-create/DMS=/READPLAN=1: branch ✅ | main (1d69dfe) ❌ | latest (v1.26.0) ❌

main (1d69dfe):

acceptance_test.go:1345: Diff:
        --- bundle/deploy/update-without-create/output.txt
        +++ /tmp/TestAcceptbundledeployupdate-without-createDMS=READPLAN=11317460491/002/output.txt
        @@ -2,11 +2,11 @@
         === Plan updates for grants and permissions before their parents exist
         >>> [CLI] bundle plan
         create jobs.job
        -update jobs.job.permissions
        +create jobs.job.permissions
         create schemas.schema
        -update schemas.schema.grants
        +create schemas.schema.grants
         
        -Plan: 2 to add, 2 to change, 0 to delete, 0 unchanged
        +Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged
         
         >>> [CLI] bundle plan -o json
         
        @@ -14,140 +12,16 @@
         
         === Reject old create actions before modifying resources
         >>> musterr [CLI] bundle deploy --plan legacy-plan.json
        -Error: cannot create resources.jobs.job.permissions: resource does not support creation; run 'bundle plan' again
        -
        -
        ->>> musterr [CLI] bundle deploy --plan legacy-plan.json
        -Error: cannot recreate resources.jobs.job.permissions: resource does not support creation; run 'bundle plan' again
        -
        -
        ->>> print_requests.py //jobs //unity-catalog
        -
        ->>> print_state.py
        -
        -=== Create the parents and apply their dependent updates
        ->>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default/files...
         Created jobs.job
        +Created jobs.job.permissions
         Created schemas.schema
        -Updated jobs.job.permissions
        -Updated schemas.schema.grants
        -Files: 5 uploaded, 0 deleted
        -Resources: 2 created, 2 changed, 0 deleted, 0 unchanged
        +Created schemas.schema.grants
        +Files: 6 uploaded, 0 deleted
        +Resources: 4 created, 0 changed, 0 deleted, 0 unchanged
         
        ->>> print_requests.py //api/2.0/permissions/jobs //unity-catalog/permissions --sort
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/permissions/schema/[SCHEMA_ID]",
        -  "body": {
        -    "changes": [
        -      {
        -        "add": [
        -          "USE_SCHEMA"
        -        ],
        -        "principal": "[USERNAME]",
        -        "remove": [
        -          "ALL_PRIVILEGES"
        -        ]
        -      }
        -    ]
        -  }
        -}
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/permissions/jobs/[JOB_ID]",
        -  "body": {
        -    "access_control_list": [
        -      {
        -        "permission_level": "IS_OWNER",
        -        "service_principal_name": "[USERNAME]"
        -      }
        -    ]
        -  }
        -}
        +Unexpected success
         
        ->>> print_state.py
        -{
        -  "resources.jobs.job.permissions": {
        -    "__id__": "/jobs/[JOB_ID]",
        -    "state": {
        -      "object_id": "/jobs/[JOB_ID]",
        -      "__embed__": [
        -        {
        -          "level": "IS_OWNER",
        -          "service_principal_name": "[USERNAME]"
        -        }
        -      ]
        -    },
        -    "depends_on": [
        -      {
        -        "node": "resources.jobs.job",
        -        "label": "${resources.jobs.job.id}"
        -      }
        -    ]
        -  },
        -  "resources.schemas.schema.grants": {
        -    "__id__": "schema/[SCHEMA_ID]",
        -    "state": {
        -      "securable_type": "schema",
        -      "full_name": "[SCHEMA_ID]",
        -      "__embed__": [
        -        {
        -          "principal": "[USERNAME]",
        -          "privileges": [
        -            "USE_SCHEMA"
        -          ]
        -        }
        -      ]
        -    },
        -    "depends_on": [
        -      {
        -        "node": "resources.schemas.schema",
        -        "label": "${resources.schemas.schema.id}"
        -      }
        -    ]
        -  }
        -}
        -
        -=== A second plan is unchanged
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged
        -
        -=== Recreate a deleted parent and move its permissions to the new ID
        ->>> [CLI] jobs delete [JOB_ID]
        -
        ->>> [CLI] bundle plan
        -create jobs.job
        -update jobs.job.permissions
        -
        -Plan: 1 to add, 1 to change, 0 to delete, 2 unchanged
        -
        ->>> [CLI] bundle plan -o json
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default/files...
        -Created jobs.job
        -Updated jobs.job.permissions
        -Files: 1 uploaded, 0 deleted
        -Resources: 1 created, 1 changed, 0 deleted, 2 unchanged
        -
        ->>> print_requests.py //api/2.0/permissions/jobs
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/permissions/jobs/[JOB_ID_4]",
        -  "body": {
        -    "access_control_list": [
        -      {
        -        "permission_level": "IS_OWNER",
        -        "service_principal_name": "[USERNAME]"
        -      }
        -    ]
        -  }
        -}
        -
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged
        -
         >>> errcode [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.jobs.job
        @@ -159,3 +28,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default
         
         Destroy: 2 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1345: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1345
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1098
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:660
        	Error:      	Not equal: 
        	            	expected: "{\n  \"resources.jobs.job\": {\n    \"action\": \"create\"\n  },\n  \"resources.jobs.job.permissions\": {\n    \"action\": \"update\"\n  },\n  \"resources.schemas.schema\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema.grants\": {\n    \"action\": \"update\"\n  }\n}\n"
        	            	actual  : "{\n  \"resources.jobs.job\": {\n    \"action\": \"create\"\n  },\n  \"resources.jobs.job.permissions\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema.grants\": {\n    \"action\": \"create\"\n  }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -5,3 +5,3 @@
        	            	   "resources.jobs.job.permissions": {
        	            	-    "action": "update"
        	            	+    "action": "create"
        	            	   },
        	            	@@ -11,3 +11,3 @@
        	            	   "resources.schemas.schema.grants": {
        	            	-    "action": "update"
        	            	+    "action": "create"
        	            	   }
        	Test:       	TestAccept/bundle/deploy/update-without-create/DMS=/READPLAN=1
        	Messages:   	bundle/deploy/update-without-create/out.actions.json vs /tmp/TestAcceptbundledeployupdate-without-createDMS=READPLAN=11317460491/001/out.actions.json
    acceptance_test.go:1135: Test produced unexpected files:
        legacy-plan.json

latest (v1.26.0): same output as main (1d69dfe)

TestAccept/bundle/deploy/update-without-create/DMS=true/READPLAN=: branch ✅ | main (1d69dfe) ❌ | latest (v1.26.0) ❌

main (1d69dfe):

acceptance_test.go:1345: Diff:
        --- bundle/deploy/update-without-create/output.txt
        +++ /tmp/TestAcceptbundledeployupdate-without-createDMS=trueREADPLAN1314565596/002/output.txt
        @@ -2,11 +2,11 @@
         === Plan updates for grants and permissions before their parents exist
         >>> [CLI] bundle plan
         create jobs.job
        -update jobs.job.permissions
        +create jobs.job.permissions
         create schemas.schema
        -update schemas.schema.grants
        +create schemas.schema.grants
         
        -Plan: 2 to add, 2 to change, 0 to delete, 0 unchanged
        +Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged
         
         >>> [CLI] bundle plan -o json
         
        @@ -14,140 +12,16 @@
         
         === Reject old create actions before modifying resources
         >>> musterr [CLI] bundle deploy --plan legacy-plan.json
        -Error: cannot create resources.jobs.job.permissions: resource does not support creation; run 'bundle plan' again
        -
        -
        ->>> musterr [CLI] bundle deploy --plan legacy-plan.json
        -Error: cannot recreate resources.jobs.job.permissions: resource does not support creation; run 'bundle plan' again
        -
        -
        ->>> print_requests.py //jobs //unity-catalog
        -
        ->>> print_state.py
        -
        -=== Create the parents and apply their dependent updates
        ->>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default/files...
         Created jobs.job
        +Created jobs.job.permissions
         Created schemas.schema
        -Updated jobs.job.permissions
        -Updated schemas.schema.grants
        -Files: 5 uploaded, 0 deleted
        -Resources: 2 created, 2 changed, 0 deleted, 0 unchanged
        +Created schemas.schema.grants
        +Files: 6 uploaded, 0 deleted
        +Resources: 4 created, 0 changed, 0 deleted, 0 unchanged
         
        ->>> print_requests.py //api/2.0/permissions/jobs //unity-catalog/permissions --sort
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/permissions/schema/[SCHEMA_ID]",
        -  "body": {
        -    "changes": [
        -      {
        -        "add": [
        -          "USE_SCHEMA"
        -        ],
        -        "principal": "[USERNAME]",
        -        "remove": [
        -          "ALL_PRIVILEGES"
        -        ]
        -      }
        -    ]
        -  }
        -}
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/permissions/jobs/[JOB_ID]",
        -  "body": {
        -    "access_control_list": [
        -      {
        -        "permission_level": "IS_OWNER",
        -        "service_principal_name": "[USERNAME]"
        -      }
        -    ]
        -  }
        -}
        +Unexpected success
         
        ->>> print_state.py
        -{
        -  "resources.jobs.job.permissions": {
        -    "__id__": "/jobs/[JOB_ID]",
        -    "state": {
        -      "object_id": "/jobs/[JOB_ID]",
        -      "__embed__": [
        -        {
        -          "level": "IS_OWNER",
        -          "service_principal_name": "[USERNAME]"
        -        }
        -      ]
        -    },
        -    "depends_on": [
        -      {
        -        "node": "resources.jobs.job",
        -        "label": "${resources.jobs.job.id}"
        -      }
        -    ]
        -  },
        -  "resources.schemas.schema.grants": {
        -    "__id__": "schema/[SCHEMA_ID]",
        -    "state": {
        -      "securable_type": "schema",
        -      "full_name": "[SCHEMA_ID]",
        -      "__embed__": [
        -        {
        -          "principal": "[USERNAME]",
        -          "privileges": [
        -            "USE_SCHEMA"
        -          ]
        -        }
        -      ]
        -    },
        -    "depends_on": [
        -      {
        -        "node": "resources.schemas.schema",
        -        "label": "${resources.schemas.schema.id}"
        -      }
        -    ]
        -  }
        -}
        -
        -=== A second plan is unchanged
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged
        -
        -=== Recreate a deleted parent and move its permissions to the new ID
        ->>> [CLI] jobs delete [JOB_ID]
        -
        ->>> [CLI] bundle plan
        -create jobs.job
        -update jobs.job.permissions
        -
        -Plan: 1 to add, 1 to change, 0 to delete, 2 unchanged
        -
        ->>> [CLI] bundle plan -o json
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default/files...
        -Created jobs.job
        -Updated jobs.job.permissions
        -Files: 1 uploaded, 0 deleted
        -Resources: 1 created, 1 changed, 0 deleted, 2 unchanged
        -
        ->>> print_requests.py //api/2.0/permissions/jobs
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/permissions/jobs/[JOB_ID_4]",
        -  "body": {
        -    "access_control_list": [
        -      {
        -        "permission_level": "IS_OWNER",
        -        "service_principal_name": "[USERNAME]"
        -      }
        -    ]
        -  }
        -}
        -
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged
        -
         >>> errcode [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.jobs.job
        @@ -159,3 +28,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default
         
         Destroy: 2 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1345: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1345
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1098
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:660
        	Error:      	Not equal: 
        	            	expected: "{\n  \"resources.jobs.job\": {\n    \"action\": \"create\"\n  },\n  \"resources.jobs.job.permissions\": {\n    \"action\": \"update\"\n  },\n  \"resources.schemas.schema\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema.grants\": {\n    \"action\": \"update\"\n  }\n}\n"
        	            	actual  : "{\n  \"resources.jobs.job\": {\n    \"action\": \"create\"\n  },\n  \"resources.jobs.job.permissions\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema.grants\": {\n    \"action\": \"create\"\n  }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -5,3 +5,3 @@
        	            	   "resources.jobs.job.permissions": {
        	            	-    "action": "update"
        	            	+    "action": "create"
        	            	   },
        	            	@@ -11,3 +11,3 @@
        	            	   "resources.schemas.schema.grants": {
        	            	-    "action": "update"
        	            	+    "action": "create"
        	            	   }
        	Test:       	TestAccept/bundle/deploy/update-without-create/DMS=true/READPLAN=
        	Messages:   	bundle/deploy/update-without-create/out.actions.json vs /tmp/TestAcceptbundledeployupdate-without-createDMS=trueREADPLAN1314565596/001/out.actions.json
    acceptance_test.go:1135: Test produced unexpected files:
        legacy-plan.json

latest (v1.26.0): same output as main (1d69dfe)

TestAccept/bundle/deploy/update-without-create/DMS=true/READPLAN=1: branch ✅ | main (1d69dfe) ❌ | latest (v1.26.0) ❌

main (1d69dfe):

acceptance_test.go:1345: Diff:
        --- bundle/deploy/update-without-create/output.txt
        +++ /tmp/TestAcceptbundledeployupdate-without-createDMS=trueREADPLAN2150307776/002/output.txt
        @@ -2,11 +2,11 @@
         === Plan updates for grants and permissions before their parents exist
         >>> [CLI] bundle plan
         create jobs.job
        -update jobs.job.permissions
        +create jobs.job.permissions
         create schemas.schema
        -update schemas.schema.grants
        +create schemas.schema.grants
         
        -Plan: 2 to add, 2 to change, 0 to delete, 0 unchanged
        +Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged
         
         >>> [CLI] bundle plan -o json
         
        @@ -14,140 +12,16 @@
         
         === Reject old create actions before modifying resources
         >>> musterr [CLI] bundle deploy --plan legacy-plan.json
        -Error: cannot create resources.jobs.job.permissions: resource does not support creation; run 'bundle plan' again
        -
        -
        ->>> musterr [CLI] bundle deploy --plan legacy-plan.json
        -Error: cannot recreate resources.jobs.job.permissions: resource does not support creation; run 'bundle plan' again
        -
        -
        ->>> print_requests.py //jobs //unity-catalog
        -
        ->>> print_state.py
        -
        -=== Create the parents and apply their dependent updates
        ->>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default/files...
         Created jobs.job
        +Created jobs.job.permissions
         Created schemas.schema
        -Updated jobs.job.permissions
        -Updated schemas.schema.grants
        -Files: 5 uploaded, 0 deleted
        -Resources: 2 created, 2 changed, 0 deleted, 0 unchanged
        +Created schemas.schema.grants
        +Files: 6 uploaded, 0 deleted
        +Resources: 4 created, 0 changed, 0 deleted, 0 unchanged
         
        ->>> print_requests.py //api/2.0/permissions/jobs //unity-catalog/permissions --sort
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/permissions/schema/[SCHEMA_ID]",
        -  "body": {
        -    "changes": [
        -      {
        -        "add": [
        -          "USE_SCHEMA"
        -        ],
        -        "principal": "[USERNAME]",
        -        "remove": [
        -          "ALL_PRIVILEGES"
        -        ]
        -      }
        -    ]
        -  }
        -}
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/permissions/jobs/[JOB_ID]",
        -  "body": {
        -    "access_control_list": [
        -      {
        -        "permission_level": "IS_OWNER",
        -        "service_principal_name": "[USERNAME]"
        -      }
        -    ]
        -  }
        -}
        +Unexpected success
         
        ->>> print_state.py
        -{
        -  "resources.jobs.job.permissions": {
        -    "__id__": "/jobs/[JOB_ID]",
        -    "state": {
        -      "object_id": "/jobs/[JOB_ID]",
        -      "__embed__": [
        -        {
        -          "level": "IS_OWNER",
        -          "service_principal_name": "[USERNAME]"
        -        }
        -      ]
        -    },
        -    "depends_on": [
        -      {
        -        "node": "resources.jobs.job",
        -        "label": "${resources.jobs.job.id}"
        -      }
        -    ]
        -  },
        -  "resources.schemas.schema.grants": {
        -    "__id__": "schema/[SCHEMA_ID]",
        -    "state": {
        -      "securable_type": "schema",
        -      "full_name": "[SCHEMA_ID]",
        -      "__embed__": [
        -        {
        -          "principal": "[USERNAME]",
        -          "privileges": [
        -            "USE_SCHEMA"
        -          ]
        -        }
        -      ]
        -    },
        -    "depends_on": [
        -      {
        -        "node": "resources.schemas.schema",
        -        "label": "${resources.schemas.schema.id}"
        -      }
        -    ]
        -  }
        -}
        -
        -=== A second plan is unchanged
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged
        -
        -=== Recreate a deleted parent and move its permissions to the new ID
        ->>> [CLI] jobs delete [JOB_ID]
        -
        ->>> [CLI] bundle plan
        -create jobs.job
        -update jobs.job.permissions
        -
        -Plan: 1 to add, 1 to change, 0 to delete, 2 unchanged
        -
        ->>> [CLI] bundle plan -o json
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default/files...
        -Created jobs.job
        -Updated jobs.job.permissions
        -Files: 1 uploaded, 0 deleted
        -Resources: 1 created, 1 changed, 0 deleted, 2 unchanged
        -
        ->>> print_requests.py //api/2.0/permissions/jobs
        -{
        -  "method": "PUT",
        -  "path": "/api/2.0/permissions/jobs/[JOB_ID_4]",
        -  "body": {
        -    "access_control_list": [
        -      {
        -        "permission_level": "IS_OWNER",
        -        "service_principal_name": "[USERNAME]"
        -      }
        -    ]
        -  }
        -}
        -
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged
        -
         >>> errcode [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.jobs.job
        @@ -159,3 +28,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-without-create-[UNIQUE_NAME]/default
         
         Destroy: 2 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1345: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1345
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1098
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:660
        	Error:      	Not equal: 
        	            	expected: "{\n  \"resources.jobs.job\": {\n    \"action\": \"create\"\n  },\n  \"resources.jobs.job.permissions\": {\n    \"action\": \"update\"\n  },\n  \"resources.schemas.schema\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema.grants\": {\n    \"action\": \"update\"\n  }\n}\n"
        	            	actual  : "{\n  \"resources.jobs.job\": {\n    \"action\": \"create\"\n  },\n  \"resources.jobs.job.permissions\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema\": {\n    \"action\": \"create\"\n  },\n  \"resources.schemas.schema.grants\": {\n    \"action\": \"create\"\n  }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -5,3 +5,3 @@
        	            	   "resources.jobs.job.permissions": {
        	            	-    "action": "update"
        	            	+    "action": "create"
        	            	   },
        	            	@@ -11,3 +11,3 @@
        	            	   "resources.schemas.schema.grants": {
        	            	-    "action": "update"
        	            	+    "action": "create"
        	            	   }
        	Test:       	TestAccept/bundle/deploy/update-without-create/DMS=true/READPLAN=1
        	Messages:   	bundle/deploy/update-without-create/out.actions.json vs /tmp/TestAcceptbundledeployupdate-without-createDMS=trueREADPLAN2150307776/001/out.actions.json
    acceptance_test.go:1135: Test produced unexpected files:
        legacy-plan.json

latest (v1.26.0): same output as main (1d69dfe)

TestAccept/bundle/resources/catalogs/rename/DMS=/READPLAN=: branch ✅ | main (1d69dfe) ❌ | latest (v1.26.0) ❌

main (1d69dfe):

acceptance_test.go:1345: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=READPLAN=2295895311/002/output.txt
        @@ -73,8 +73,7 @@
                 "label": "${resources.catalogs.catalog1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -93,17 +92,11 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        -      },
        -      "schema_id": {
        -        "action": "skip",
        -        "reason": "internal_id",
        -        "old": "[SCHEMA_ID]",
        -        "remote": "[SCHEMA_ID]"
               }
             }
           },
        @@ -118,8 +108,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -141,17 +130,11 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        -      },
        -      "volume_id": {
        -        "action": "skip",
        -        "reason": "internal_id",
        -        "old": "[VOLUME_ID]",
        -        "remote": "[VOLUME_ID]"
               }
             }
           }
        @@ -160,63 +140,21 @@
         === Deploy renames the catalog. UC moves the schema and the volume with it, so they get no request
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Updated catalogs.catalog1
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 2 unchanged
         
        ->>> print_requests.py //unity-catalog
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/catalogs/test_catalog_[UNIQUE_NAME]",
        -  "body": {
        -    "comment": "",
        -    "custom_max_retention_hours": 0,
        -    "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
        -  }
        -}
        +This action will result in the deletion or recreation of the following UC schemas. Any underlying data may be lost:
        +  recreate resources.schemas.schema1
         
        -=== The old catalog is gone and the schema and the volume are under the new one, with their original ids
        -old catalog is gone
        +This action will result in the deletion or recreation of the following volumes.
        +For managed volumes, the files stored in the volume are also deleted from your
        +cloud tenant within 30 days. For external volumes, the metadata about the volume
        +is removed from the catalog, but the underlying files are not deleted:
        +  recreate resources.volumes.volume1
        +Error: the deployment requires destructive actions, but the current console does not support prompting.
        +Deleting data assets such as schemas, pipelines, or volumes may cause permanent data loss and should be carefully reviewed.
        +To proceed, use --auto-approve after reviewing the plan above.
         
        ->>> [CLI] schemas get test_catalog_renamed_[UNIQUE_NAME].myschema
        -{
        -  "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema",
        -  "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "schema_id": "[SCHEMA_ID]"
        -}
        +Files: 1 uploaded, 0 deleted
         
        ->>> [CLI] volumes read test_catalog_renamed_[UNIQUE_NAME].myschema.myvolume
        -{
        -  "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.myvolume",
        -  "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "volume_id": "[VOLUME_ID]"
        -}
        -
        -=== The state tracks the new paths
        ->>> [CLI] bundle summary --output json
        -{
        -  "catalogs": {
        -    "catalog1": "test_catalog_renamed_[UNIQUE_NAME]"
        -  },
        -  "schemas": {
        -    "schema1": "test_catalog_renamed_[UNIQUE_NAME].myschema"
        -  },
        -  "volumes": {
        -    "volume1": "test_catalog_renamed_[UNIQUE_NAME].myschema.myvolume"
        -  }
        -}
        -
        -=== Redeploy is a no-op
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 3 unchanged
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Files: 0 uploaded, 0 deleted
        -Resources: 0 created, 0 changed, 0 deleted, 3 unchanged
        -
        ->>> print_requests.py //unity-catalog
        -
         >>> [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.catalogs.catalog1
        @@ -235,3 +169,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
         Destroy: 3 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1123: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_5ur72z4ebbhyjnxhg45cwgtzie.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_5ur72z4ebbhyjnxhg45cwgtzie.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_5ur72z4ebbhyjnxhg45cwgtzie",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.26.0):

acceptance_test.go:1345: Diff:
        --- bundle/resources/catalogs/rename/output.txt
        +++ /tmp/TestAcceptbundleresourcescatalogsrenameDMS=READPLAN=660650042/002/output.txt
        @@ -73,8 +73,7 @@
                 "label": "${resources.catalogs.catalog1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -93,17 +92,11 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        -      },
        -      "schema_id": {
        -        "action": "skip",
        -        "reason": "internal_id",
        -        "old": "[SCHEMA_ID]",
        -        "remote": "[SCHEMA_ID]"
               }
             }
           },
        @@ -118,8 +108,7 @@
                 "label": "${resources.schemas.schema1.name}"
               }
             ],
        -    "action": "update_id",
        -    "state_only": true,
        +    "action": "recreate",
             "new_state": {
               "value": {
                 "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        @@ -141,17 +130,11 @@
             },
             "changes": {
               "catalog_name": {
        -        "action": "update_id",
        -        "reason": "parent_renamed",
        +        "action": "recreate",
        +        "reason": "id_field",
                 "old": "test_catalog_[UNIQUE_NAME]",
                 "new": "test_catalog_renamed_[UNIQUE_NAME]",
                 "remote": "test_catalog_[UNIQUE_NAME]"
        -      },
        -      "volume_id": {
        -        "action": "skip",
        -        "reason": "internal_id",
        -        "old": "[VOLUME_ID]",
        -        "remote": "[VOLUME_ID]"
               }
             }
           }
        @@ -160,63 +140,21 @@
         === Deploy renames the catalog. UC moves the schema and the volume with it, so they get no request
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Updated catalogs.catalog1
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 2 unchanged
         
        ->>> print_requests.py //unity-catalog
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.1/unity-catalog/catalogs/test_catalog_[UNIQUE_NAME]",
        -  "body": {
        -    "comment": "",
        -    "custom_max_retention_hours": 0,
        -    "new_name": "test_catalog_renamed_[UNIQUE_NAME]"
        -  }
        -}
        +This action will result in the deletion or recreation of the following UC schemas. Any underlying data may be lost:
        +  recreate resources.schemas.schema1
         
        -=== The old catalog is gone and the schema and the volume are under the new one, with their original ids
        -old catalog is gone
        +This action will result in the deletion or recreation of the following volumes.
        +For managed volumes, the files stored in the volume are also deleted from your
        +cloud tenant within 30 days. For external volumes, the metadata about the volume
        +is removed from the catalog, but the underlying files are not deleted:
        +  recreate resources.volumes.volume1
        +Error: the deployment requires destructive actions, but the current console does not support prompting.
        +Deleting data assets such as schemas, pipelines, or volumes may cause permanent data loss and should be carefully reviewed.
        +To proceed, use --auto-approve after reviewing the plan above.
         
        ->>> [CLI] schemas get test_catalog_renamed_[UNIQUE_NAME].myschema
        -{
        -  "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema",
        -  "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "schema_id": "[SCHEMA_ID]"
        -}
        +Files: 1 uploaded, 0 deleted
         
        ->>> [CLI] volumes read test_catalog_renamed_[UNIQUE_NAME].myschema.myvolume
        -{
        -  "full_name": "test_catalog_renamed_[UNIQUE_NAME].myschema.myvolume",
        -  "catalog_name": "test_catalog_renamed_[UNIQUE_NAME]",
        -  "volume_id": "[VOLUME_ID]"
        -}
        -
        -=== The state tracks the new paths
        ->>> [CLI] bundle summary --output json
        -{
        -  "catalogs": {
        -    "catalog1": "test_catalog_renamed_[UNIQUE_NAME]"
        -  },
        -  "schemas": {
        -    "schema1": "test_catalog_renamed_[UNIQUE_NAME].myschema"
        -  },
        -  "volumes": {
        -    "volume1": "test_catalog_renamed_[UNIQUE_NAME].myschema.myvolume"
        -  }
        -}
        -
        -=== Redeploy is a no-op
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 3 unchanged
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Files: 0 uploaded, 0 deleted
        -Resources: 0 created, 0 changed, 0 deleted, 3 unchanged
        -
        ->>> print_requests.py //unity-catalog
        -
         >>> [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.catalogs.catalog1
        @@ -235,3 +169,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
         Destroy: 3 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1123: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/volumes/test_catalog_7rvyctn2vfc2zhmksfvfr4dcai.myschema.myvolume"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/test_catalog_7rvyctn2vfc2zhmksfvfr4dcai.myschema",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/catalogs/test_catalog_7rvyctn2vfc2zhmksfvfr4dcai",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

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

@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 2ad675f

Run: 43111418124

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 373 34 19:11
✅​ aws-windows-latest-4core-16gb 372 33 20:40
✅​ azure linux-2core-8gb 372 34 19:20
✅​ azure-windows-latest-4core-16gb 371 33 20:21
✅​ gcp linux-2core-8gb 373 34 23:41
✅​ gcp-windows-latest-4core-16gb 372 33 25:11
Top 27 slowest tests (at least 2 minutes):
duration env testname
4:29 gcp linux-2core-8gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=true
4:01 azure linux-2core-8gb TestAccept
4:00 aws linux-2core-8gb TestAccept
3:58 azure-windows-latest-4core-16gb TestAccept
3:56 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=true
3:52 gcp linux-2core-8gb TestAccept
3:47 gcp-windows-latest-4core-16gb TestAccept
3:42 aws-windows-latest-4core-16gb TestAccept
3:40 gcp linux-2core-8gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=
3:30 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=
3:28 azure linux-2core-8gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=true
3:16 aws-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=true
3:09 aws-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=
2:54 aws linux-2core-8gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=true
2:51 gcp linux-2core-8gb TestAccept/bundle/resources/grants/schemas/import_existing/DMS=true/READPLAN=
2:48 azure linux-2core-8gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=
2:42 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/grants/schemas/import_existing/DMS=true/READPLAN=
2:39 aws linux-2core-8gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=
2:33 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/grants/schemas/import_existing/DMS=/READPLAN=
2:29 azure-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=true
2:19 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_with_volume/DMS=true/READPLAN=
2:15 aws linux-2core-8gb TestAccept/bundle/resources/grants/schemas/import_existing/DMS=true/READPLAN=
2:14 gcp-windows-latest-4core-16gb TestTelemetryEndpoint
2:13 gcp linux-2core-8gb TestAccept/bundle/resources/grants/schemas/import_existing/DMS=true/READPLAN=1
2:07 azure-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_then_change/DMS=
2:04 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/volumes/rename_catalog_and_schema/DMS=true/READPLAN=1
2:04 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_out_of_band_old_state/DMS=/READPLAN=

@janniklasrose
janniklasrose force-pushed the janniklasrose/optional-do-create branch from 1d3cdec to 2ad675f Compare November 11, 2026 22:22

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants