Skip to content

Destroy finds a schema or volume renamed out of band, and the resources in it - #8096

Draft
denik wants to merge 1 commit into
denik/schema-volume-identityfrom
denik/schema-moved-parent
Draft

denik wants to merge 1 commit into
denik/schema-volume-identityfrom
denik/schema-moved-parent

Conversation

@denik

@denik denik commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #8056; review it after #8056 merges. This PR is stacked on #8056: its base is #8056's branch, so the diff shows only this PR's commit. When #8056 merges, this PR is rebased onto main and its base set back to main.

This is the part of #8056 that was narrowed out during its review. The review threads about it are on #8056 and are all answered there.

Changes

In the direct deployment engine, a schema or volume records its backend id (schema_id, volume_id; internal_id_field). This PR makes the plan and destroy check it, so that neither updates nor deletes an object that is not the bundle's, and destroy finds the bundle's own object after a rename out of band:

  • Plan: an object at the recorded ID whose internal id differs from the recorded one is treated as not the bundle's. The plan then falls through to the existing findMoved lookup at the config's ID, so it finds the bundle's object when the config follows the rename. Otherwise it plans a create, which fails on the name. A warning (a diagnostic) names the object it leaves alone, and says how to take it over (bundle deployment bind, after unbind if the state still has it).
  • Delete entries (destroy, or a resource removed from config): the same check applies. When the bundle's object is not at its recorded ID, a new optional adapter method DoFindByInternalID looks for it by internal id: it lists the schemas in the catalog, or the volumes in the schema. The plan sets the entry's ID and apply deletes it there. A 403 at the recorded ID searches first, then keeps the old behavior.
  • Children of a moved parent (findInMovedParents): a Delete of a resource inside a parent the plan found at a new ID (a volume, model, secret or feature in a renamed schema; matched by case-insensitive full-name prefix; only types with parent_id_fields or the new moves_with_parent config flag) is looked for under the parent's new ID. Verified there by its internal ID, it is deleted there as itself, before the parent. If it cannot be verified (not found, another object, or no internal ID to check) and the parent is deleted, it gets the new plan field with_parent: no delete is sent for it at a guessed name, but approval, lifecycle.prevent_destroy and the counts treat it as a deletion, it is applied only after the parent's delete succeeded, a delete that depends on it also runs before the parent's, the parent's delete waits for what it depends on outside the parent (an external location an external volume names), and --select fails unless the parent is in the selection too (named, or pulled in as a dependent). Whatever is still at a child's old path under a moved parent is never deleted there.
  • Errors: a read at the recorded ID or a search that fails (other than not found or permission denied) now fails the plan. Before, the entry was dropped from state or deleted at the recorded name without the check.
  • Testserver: adds GET /api/2.1/unity-catalog/schemas and GET /api/2.1/unity-catalog/volumes (list).
  • acceptance/bin/replay_tfstate.py: matches a create request to its tfstate entry case-insensitively. UC lowercases names, so a mixed-case schema's schema_id was not remapped on replay, and the migrated state carried a stale id that the new check rejected (migrate/auto/schema-name-normalized).

Why

This PR fixes behavior recorded as Badness in acceptance tests. #8056 already stops the CLI from updating or deleting another object at the recorded name; this PR makes destroy find the bundle's own after a rename out of band.

acceptance/bundle/resources/schemas/destroy_with_other_at_recorded_name (added in #8056):

Destroy does not look for the bundle's schema after a rename out of band: it drops the state entry and leaves the renamed schema behind. It should find it by its schema_id.

Before: a warning, Destroy: 0 deleted, and the renamed schema still there. Now: destroy finds it by its schema_id and sends DELETE /api/2.1/unity-catalog/schemas/main.test-schema-moved-[UNIQUE_NAME]; the other schema at the recorded name is left alone.

acceptance/bundle/resources/schemas/destroy_after_rename_out_of_band:

Destroy does not look for a schema renamed outside the bundle: it reads the recorded name, finds nothing and drops the state entry ('Destroy: 0 deleted'), so the renamed schema and its volume are left behind. Destroy should find the schema by its recorded schema_id, as deploy's plan does, and delete it.

Before: Destroy: 0 deleted, and the renamed schema was still there. Now: Destroy: 2 deleted, with DELETE .../volumes/main.test-schema-renamed-[UNIQUE_NAME].myvolume and DELETE .../schemas/main.test-schema-renamed-[UNIQUE_NAME].

Tests

  • The two tests above, with their Badness notes removed.
  • New: schemas/destroy_search_fails (local only: an injected 500 on the search fails destroy and keeps the state).
  • Children of a moved parent: volumes/prevent_destroy_in_renamed_schema (verified, and renamed too), volumes/prevent_destroy_schema_without_dependency (no recorded edge to the schema), volumes/prevent_destroy_mixed_case_schema (parent recorded in another case), volumes/removed_from_renamed_schema (parent kept in config), schemas/destroy_renamed_with_model_and_secret (no internal ID; a replacement schema at the old name is left alone), registered_models/prevent_destroy_in_renamed_schema (a model renamed with its schema), registered_models/removed_from_renamed_schema (a model deleted at its new path in a kept schema), volumes/select_renamed_schema (--select), and, local only: volumes/with_parent_delete_fails (the parent's delete fails), schemas/destroy_forbidden_at_recorded_name (403 at the recorded names), schemas/destroy_renamed_with_scope_named_like_it and schemas/rename_with_gone_scope_named_like_it (a secret scope named like the schema is never taken for its child, found or not).
  • Unit tests: otherInternalID, findDeleteTarget, underMovedParent, with_parent in IsStateOnly/SendsNoDelete, makeGraph ordering (a dependent of a with_parent child, and its dependencies outside the parent) and cycles, FilterToSelected (a with_parent child needs its parent in the selection, which may be pulled in through a catalog).
  • Every new or changed test fails without the production change (mutation-checked locally). The Cloud tests passed on AWS locally.

Gaps and risks

Overall risk: medium. The change touches plan and destroy for every schema and volume in the direct engine, but it only narrows what the CLI updates or deletes, except in the two cases called out below.

Judgment call: a schema or volume deleted and created again outside the bundle is no longer adopted. The CLI cannot tell it from an object someone else created under the same name: both have another schema_id/volume_id at the recorded name. Adopting it silently is what let destroy delete other people's schemas, so it is now left alone: deploy fails with ALREADY_EXISTS and destroy leaves it, until the user runs bundle deployment unbind and bundle deployment bind. A warning on every plan names the object and the way out, and schemas/recreated_at_recorded_name shows the recovery. Risk: medium. A user who drops and recreates schemas by hand sees deploys fail where they used to succeed; nothing is deleted or changed in the workspace.

A deploy that removes a renamed schema or volume from config now deletes it, at its new name, as destroy does. Before, it only dropped the state entry and left the object. Risk: low; it is what removing a resource from config means, and the delete is listed and approved like any other.

Open question for the owner: bump plan_version? (also open in a review thread) A saved plan's Delete can now carry a moved id and with_parent. An older CLI rejects a plan with with_parent (unknown field); one without it but with a moved id it applies at the recorded ID, which is what that CLI does with its own plan. A newer CLI applying a plan saved by an older one deletes what that plan found at the recorded ID, without this PR's check. Bumping plan_version would reject both mixes with a clear error, but it changes plan_version in bundle plan -o json, so I left it out. Risk if not bumped: low (needs a CLI upgrade between plan and deploy --plan, and a rename out of band in between).

Destroy of a schema or volume deleted out of band now searches for it first. A 404 at the recorded ID cannot tell a rename from a delete, so the plan searches by internal ID (one list of the catalog's schemas, or the schema's volumes). A list that fails with anything other than not found or permission denied, after the client's retries, fails the plan, so the state keeps the record and the command can be run again. Before, the entry was dropped after the single GET. Making the failure a warning would drop the record of a schema that may only have been renamed, and leave it behind. Risk: low; a transient-looking failure fails a destroy that used to succeed.

Residual risks, unchanged by this PR or narrowed:

  • UC deletes by name, so an object can still take the found name between plan and the DELETE (for example while the approval prompt waits, or with deploy --plan). The same window existed for the recorded name before. Risk: low.
  • A child that is not at its parent's new name may be renamed too or deleted; a 404 cannot tell them apart, with or without an internal ID. Under a deleted parent it is listed as going with the parent, so a prevent_destroy on a volume or model deleted out of band blocks the destroy until it is removed from config (fails safe). Under a parent kept in config it is dropped from the state, as before. Risk: low.
  • A parent force-deleted while a child is still in the config (the schema removed from config, the volume kept with a literal schema name) takes the child along. That already happens without any rename. Risk: low; unrelated to this PR.
  • A volume-only bundle whose schema (outside the bundle) was renamed out of band: the volume is not found and is dropped from state, as before. The same holds for a schema whose catalog was renamed. Risk: low; a leak, not a wrong delete.
  • The search lists the catalog's schemas (or the schema's volumes) once per resource not found at its recorded ID; slow in a catalog with many schemas, still correct. Risk: low.
  • Features and feature specs under a renamed schema are found by the same prefix lookup (moves_with_parent), but the testserver does not move them with a schema, so no local test covers them. Risk: low; same behavior as for a model, which is tested.
  • bundle deployment bind does not record the internal id; the next deploy does. Until then the check has nothing to compare, as with state from an older CLI. Risk: low.

Related PRs

  • Base: #8056 (the internal-id check), to merge first.
  • #7418 (internal ids for catalogs, registered models and secrets) touches the same files; #7931 (delete errors in apply.go) has merged and this branch is rebased on it. The overlap is small: this PR changes Destroy's signature, not Delete, and adds new helpers next to findMoved. When Find a catalog renamed outside the bundle by its id #7418 lands, its resources get the identity check automatically; destroy's lookup applies once they implement DoFindByInternalID.

Dashboard

🤖 AI agent (opus5.5, isaac_claude)

This pull request and its description were written by Isaac.

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: bd30b8935 | Workflow run

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

36 tests: regression=34 unreleased=0 coverage=2 failing=0
test branch main (9a14ad6) latest (v1.28.0)
TestAccept/bundle/resources/registered_models/prevent_destroy_in_renamed_schema/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/prevent_destroy_in_renamed_schema/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/removed_from_renamed_schema/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/removed_from_renamed_schema/DMS=true ✅ ❌ ❌
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/destroy_forbidden_at_recorded_name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_forbidden_at_recorded_name/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_renamed_with_model_and_secret/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_renamed_with_model_and_secret/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_renamed_with_scope_named_like_it/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_renamed_with_scope_named_like_it/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_search_fails/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_search_fails/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_with_other_at_recorded_name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/destroy_with_other_at_recorded_name/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/recreated_at_recorded_name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/recreated_at_recorded_name/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_with_gone_scope_named_like_it/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/schemas/rename_with_gone_scope_named_like_it/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/volumes/foreign_at_recorded_name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/foreign_at_recorded_name/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/volumes/prevent_destroy_in_renamed_schema/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/prevent_destroy_in_renamed_schema/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/volumes/prevent_destroy_mixed_case_schema/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/prevent_destroy_mixed_case_schema/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/volumes/prevent_destroy_schema_without_dependency/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/prevent_destroy_schema_without_dependency/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/volumes/removed_from_renamed_schema/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/removed_from_renamed_schema/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/volumes/select_renamed_schema/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/select_renamed_schema/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/volumes/with_parent_delete_fails/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/volumes/with_parent_delete_fails/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/registered_models/prevent_destroy_in_renamed_schema/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/prevent_destroy_in_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsprevent_destroy_in3372312838/002/output.txt
        @@ -24,12 +24,10 @@
         === The model has no internal ID and is not at its new path, but the schema's delete would take it, so destroy lists it and prevent_destroy stops it
         
         >>> musterr [CLI] bundle destroy --auto-approve
        -Error: resources.registered_models.model1 has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for resources.registered_models.model1
        +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
        +Destroy: 0 deleted
         
        ->>> print_requests.py //unity-catalog
        +Unexpected success
         
        ->>> [CLI] registered-models get main.test-schema-renamed-[UNIQUE_NAME].mymodel2
        -{
        -  "full_name": "main.test-schema-renamed-[UNIQUE_NAME].mymodel2"
        -}
        +Exit code: 1
        
    acceptance_test.go:1180: LOG.cleanup: Error: Not Found
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-3gqehlvfnjgoveo5o6kzbi525q"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema-3gqehlvfnjgoveo5o6kzbi525q"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-3gqehlvfnjgoveo5o6kzbi525q",
        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/schemas/main.test-schema-3gqehlvfnjgoveo5o6kzbi525q",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
    acceptance_test.go:1180: 
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-3gqehlvfnjgoveo5o6kzbi525q",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "test-schema-renamed-3gqehlvfnjgoveo5o6kzbi525q"
        LOG.rename_requests:   }
        LOG.rename_requests: }
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema-renamed-3gqehlvfnjgoveo5o6kzbi525q.mymodel",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "mymodel2"
        LOG.rename_requests:   }
        LOG.rename_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/prevent_destroy_in_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsprevent_destroy_in1450569631/002/output.txt
        @@ -24,12 +24,10 @@
         === The model has no internal ID and is not at its new path, but the schema's delete would take it, so destroy lists it and prevent_destroy stops it
         
         >>> musterr [CLI] bundle destroy --auto-approve
        -Error: resources.registered_models.model1 has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for resources.registered_models.model1
        +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
        +Destroy: 0 deleted
         
        ->>> print_requests.py //unity-catalog
        +Unexpected success
         
        ->>> [CLI] registered-models get main.test-schema-renamed-[UNIQUE_NAME].mymodel2
        -{
        -  "full_name": "main.test-schema-renamed-[UNIQUE_NAME].mymodel2"
        -}
        +Exit code: 1
        
    acceptance_test.go:1180: LOG.cleanup: Error: Not Found
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-7iqxpmyb25aalflo47z6xjjz4u"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema-7iqxpmyb25aalflo47z6xjjz4u"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-7iqxpmyb25aalflo47z6xjjz4u",
        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/schemas/main.test-schema-7iqxpmyb25aalflo47z6xjjz4u",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
    acceptance_test.go:1180: 
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-7iqxpmyb25aalflo47z6xjjz4u",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "test-schema-renamed-7iqxpmyb25aalflo47z6xjjz4u"
        LOG.rename_requests:   }
        LOG.rename_requests: }
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema-renamed-7iqxpmyb25aalflo47z6xjjz4u.mymodel",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "mymodel2"
        LOG.rename_requests:   }
        LOG.rename_requests: }
TestAccept/bundle/resources/registered_models/prevent_destroy_in_renamed_schema/DMS=true: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/prevent_destroy_in_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsprevent_destroy_in1884662329/002/output.txt
        @@ -24,12 +24,10 @@
         === The model has no internal ID and is not at its new path, but the schema's delete would take it, so destroy lists it and prevent_destroy stops it
         
         >>> musterr [CLI] bundle destroy --auto-approve
        -Error: resources.registered_models.model1 has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for resources.registered_models.model1
        +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
        +Destroy: 0 deleted
         
        ->>> print_requests.py //unity-catalog
        +Unexpected success
         
        ->>> [CLI] registered-models get main.test-schema-renamed-[UNIQUE_NAME].mymodel2
        -{
        -  "full_name": "main.test-schema-renamed-[UNIQUE_NAME].mymodel2"
        -}
        +Exit code: 1
        
    acceptance_test.go:1180: LOG.cleanup: Error: Not Found
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-lsr6lru6kna75ghhlhmpw7mhha"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema-lsr6lru6kna75ghhlhmpw7mhha"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-lsr6lru6kna75ghhlhmpw7mhha",
        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/schemas/main.test-schema-lsr6lru6kna75ghhlhmpw7mhha",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
    acceptance_test.go:1180: 
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-lsr6lru6kna75ghhlhmpw7mhha",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "test-schema-renamed-lsr6lru6kna75ghhlhmpw7mhha"
        LOG.rename_requests:   }
        LOG.rename_requests: }
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema-renamed-lsr6lru6kna75ghhlhmpw7mhha.mymodel",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "mymodel2"
        LOG.rename_requests:   }
        LOG.rename_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/prevent_destroy_in_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsprevent_destroy_in3902246237/002/output.txt
        @@ -24,12 +24,10 @@
         === The model has no internal ID and is not at its new path, but the schema's delete would take it, so destroy lists it and prevent_destroy stops it
         
         >>> musterr [CLI] bundle destroy --auto-approve
        -Error: resources.registered_models.model1 has lifecycle.prevent_destroy set, but the plan calls for this resource to be recreated or destroyed. To avoid this error, disable lifecycle.prevent_destroy for resources.registered_models.model1
        +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
        +Destroy: 0 deleted
         
        ->>> print_requests.py //unity-catalog
        +Unexpected success
         
        ->>> [CLI] registered-models get main.test-schema-renamed-[UNIQUE_NAME].mymodel2
        -{
        -  "full_name": "main.test-schema-renamed-[UNIQUE_NAME].mymodel2"
        -}
        +Exit code: 1
        
    acceptance_test.go:1180: LOG.cleanup: Error: Not Found
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-2ir35swsubhw5oqwkosloy3xbq"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema-2ir35swsubhw5oqwkosloy3xbq"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-2ir35swsubhw5oqwkosloy3xbq",
        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/schemas/main.test-schema-2ir35swsubhw5oqwkosloy3xbq",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
    acceptance_test.go:1180: 
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-2ir35swsubhw5oqwkosloy3xbq",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "test-schema-renamed-2ir35swsubhw5oqwkosloy3xbq"
        LOG.rename_requests:   }
        LOG.rename_requests: }
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/models/main.test-schema-renamed-2ir35swsubhw5oqwkosloy3xbq.mymodel",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "mymodel2"
        LOG.rename_requests:   }
        LOG.rename_requests: }
TestAccept/bundle/resources/registered_models/removed_from_renamed_schema/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/removed_from_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsremoved_from_renam3451078873/002/output.txt
        @@ -11,39 +11,39 @@
         >>> [CLI] schemas update main.test-schema-[UNIQUE_NAME] --new-name test-schema-renamed-[UNIQUE_NAME]
         {
           "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        -  "schema_id": "[UUID]"
        +  "schema_id": "[UUID][0]"
         }
         
         === Follow the rename in the config and remove the model from it: the model has no internal ID, but is found at its new path inside the bundle's schema
         
         >>> [CLI] bundle plan
        -delete registered_models.model1
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
        -Plan: 0 to add, 0 to change, 1 to delete, 1 unchanged
        -
         === Deploy deletes the model at its new path, and keeps the schema
         
         >>> [CLI] bundle deploy --auto-approve
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Deleted registered_models.model1
         Files: 2 uploaded, 0 deleted
        -Resources: 0 created, 0 changed, 1 deleted, 1 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests.py //unity-catalog
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/models/main.test-schema-renamed-[UNIQUE_NAME].mymodel"
        -}
         
         >>> musterr [CLI] registered-models get main.test-schema-renamed-[UNIQUE_NAME].mymodel
        -Error: Routine or Model 'main.test-schema-renamed-[UNIQUE_NAME].mymodel' does not exist.
        -
        ->>> [CLI] schemas get main.test-schema-renamed-[UNIQUE_NAME]
         {
        -  "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        -  "schema_id": "[UUID]"
        +  "catalog_name": "main",
        +  "created_at": [UNIX_TIME_MILLIS],
        +  "created_by": "[USERNAME]",
        +  "full_name": "main.test-schema-renamed-[UNIQUE_NAME].mymodel",
        +  "metastore_id": "[UUID][1]",
        +  "name": "mymodel",
        +  "owner": "[USERNAME]",
        +  "schema_name": "test-schema-renamed-[UNIQUE_NAME]",
        +  "updated_at": [UNIX_TIME_MILLIS],
        +  "updated_by": "[USERNAME]"
         }
         
        +Unexpected success
        +
         >>> [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.schemas.schema1
        @@ -54,3 +36,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
         Destroy: 1 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-3vlrqrblfje4fd3iihf2zcdohm"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema-3vlrqrblfje4fd3iihf2zcdohm"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "PATCH",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-3vlrqrblfje4fd3iihf2zcdohm",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "new_name": "test-schema-renamed-3vlrqrblfje4fd3iihf2zcdohm"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-3vlrqrblfje4fd3iihf2zcdohm",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/removed_from_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsremoved_from_renam3370683057/002/output.txt
        @@ -11,39 +11,39 @@
         >>> [CLI] schemas update main.test-schema-[UNIQUE_NAME] --new-name test-schema-renamed-[UNIQUE_NAME]
         {
           "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        -  "schema_id": "[UUID]"
        +  "schema_id": "[UUID][0]"
         }
         
         === Follow the rename in the config and remove the model from it: the model has no internal ID, but is found at its new path inside the bundle's schema
         
         >>> [CLI] bundle plan
        -delete registered_models.model1
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
        -Plan: 0 to add, 0 to change, 1 to delete, 1 unchanged
        -
         === Deploy deletes the model at its new path, and keeps the schema
         
         >>> [CLI] bundle deploy --auto-approve
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Deleted registered_models.model1
         Files: 2 uploaded, 0 deleted
        -Resources: 0 created, 0 changed, 1 deleted, 1 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests.py //unity-catalog
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/models/main.test-schema-renamed-[UNIQUE_NAME].mymodel"
        -}
         
         >>> musterr [CLI] registered-models get main.test-schema-renamed-[UNIQUE_NAME].mymodel
        -Error: Routine or Model 'main.test-schema-renamed-[UNIQUE_NAME].mymodel' does not exist.
        -
        ->>> [CLI] schemas get main.test-schema-renamed-[UNIQUE_NAME]
         {
        -  "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        -  "schema_id": "[UUID]"
        +  "catalog_name": "main",
        +  "created_at": [UNIX_TIME_MILLIS],
        +  "created_by": "[USERNAME]",
        +  "full_name": "main.test-schema-renamed-[UNIQUE_NAME].mymodel",
        +  "metastore_id": "[UUID][1]",
        +  "name": "mymodel",
        +  "owner": "[USERNAME]",
        +  "schema_name": "test-schema-renamed-[UNIQUE_NAME]",
        +  "updated_at": [UNIX_TIME_MILLIS],
        +  "updated_by": "[USERNAME]"
         }
         
        +Unexpected success
        +
         >>> [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.schemas.schema1
        @@ -54,3 +36,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
         Destroy: 1 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-wvokgfvcbvhbtbyj5eg4fwodum"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema-wvokgfvcbvhbtbyj5eg4fwodum"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "PATCH",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-wvokgfvcbvhbtbyj5eg4fwodum",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "new_name": "test-schema-renamed-wvokgfvcbvhbtbyj5eg4fwodum"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-wvokgfvcbvhbtbyj5eg4fwodum",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
TestAccept/bundle/resources/registered_models/removed_from_renamed_schema/DMS=true: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/removed_from_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsremoved_from_renam3962713783/002/output.txt
        @@ -11,39 +11,39 @@
         >>> [CLI] schemas update main.test-schema-[UNIQUE_NAME] --new-name test-schema-renamed-[UNIQUE_NAME]
         {
           "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        -  "schema_id": "[UUID]"
        +  "schema_id": "[UUID][0]"
         }
         
         === Follow the rename in the config and remove the model from it: the model has no internal ID, but is found at its new path inside the bundle's schema
         
         >>> [CLI] bundle plan
        -delete registered_models.model1
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
        -Plan: 0 to add, 0 to change, 1 to delete, 1 unchanged
        -
         === Deploy deletes the model at its new path, and keeps the schema
         
         >>> [CLI] bundle deploy --auto-approve
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Deleted registered_models.model1
         Files: 2 uploaded, 0 deleted
        -Resources: 0 created, 0 changed, 1 deleted, 1 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests.py //unity-catalog
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/models/main.test-schema-renamed-[UNIQUE_NAME].mymodel"
        -}
         
         >>> musterr [CLI] registered-models get main.test-schema-renamed-[UNIQUE_NAME].mymodel
        -Error: Routine or Model 'main.test-schema-renamed-[UNIQUE_NAME].mymodel' does not exist.
        -
        ->>> [CLI] schemas get main.test-schema-renamed-[UNIQUE_NAME]
         {
        -  "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        -  "schema_id": "[UUID]"
        +  "catalog_name": "main",
        +  "created_at": [UNIX_TIME_MILLIS],
        +  "created_by": "[USERNAME]",
        +  "full_name": "main.test-schema-renamed-[UNIQUE_NAME].mymodel",
        +  "metastore_id": "[UUID][1]",
        +  "name": "mymodel",
        +  "owner": "[USERNAME]",
        +  "schema_name": "test-schema-renamed-[UNIQUE_NAME]",
        +  "updated_at": [UNIX_TIME_MILLIS],
        +  "updated_by": "[USERNAME]"
         }
         
        +Unexpected success
        +
         >>> [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.schemas.schema1
        @@ -54,3 +36,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
         Destroy: 1 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-sfrzkr63tfetbmcage23zp723m"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema-sfrzkr63tfetbmcage23zp723m"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "PATCH",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-sfrzkr63tfetbmcage23zp723m",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "new_name": "test-schema-renamed-sfrzkr63tfetbmcage23zp723m"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-sfrzkr63tfetbmcage23zp723m",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
FAIL

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/registered_models/removed_from_renamed_schema/output.txt
        +++ /tmp/TestAcceptbundleresourcesregistered_modelsremoved_from_renam1074850546/002/output.txt
        @@ -11,39 +11,39 @@
         >>> [CLI] schemas update main.test-schema-[UNIQUE_NAME] --new-name test-schema-renamed-[UNIQUE_NAME]
         {
           "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        -  "schema_id": "[UUID]"
        +  "schema_id": "[UUID][0]"
         }
         
         === Follow the rename in the config and remove the model from it: the model has no internal ID, but is found at its new path inside the bundle's schema
         
         >>> [CLI] bundle plan
        -delete registered_models.model1
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
        -Plan: 0 to add, 0 to change, 1 to delete, 1 unchanged
        -
         === Deploy deletes the model at its new path, and keeps the schema
         
         >>> [CLI] bundle deploy --auto-approve
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        -Deleted registered_models.model1
         Files: 2 uploaded, 0 deleted
        -Resources: 0 created, 0 changed, 1 deleted, 1 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests.py //unity-catalog
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/models/main.test-schema-renamed-[UNIQUE_NAME].mymodel"
        -}
         
         >>> musterr [CLI] registered-models get main.test-schema-renamed-[UNIQUE_NAME].mymodel
        -Error: Routine or Model 'main.test-schema-renamed-[UNIQUE_NAME].mymodel' does not exist.
        -
        ->>> [CLI] schemas get main.test-schema-renamed-[UNIQUE_NAME]
         {
        -  "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        -  "schema_id": "[UUID]"
        +  "catalog_name": "main",
        +  "created_at": [UNIX_TIME_MILLIS],
        +  "created_by": "[USERNAME]",
        +  "full_name": "main.test-schema-renamed-[UNIQUE_NAME].mymodel",
        +  "metastore_id": "[UUID][1]",
        +  "name": "mymodel",
        +  "owner": "[USERNAME]",
        +  "schema_name": "test-schema-renamed-[UNIQUE_NAME]",
        +  "updated_at": [UNIX_TIME_MILLIS],
        +  "updated_by": "[USERNAME]"
         }
         
        +Unexpected success
        +
         >>> [CLI] bundle destroy --auto-approve
         The following resources will be deleted:
           delete resources.schemas.schema1
        @@ -54,3 +36,5 @@
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
         Destroy: 1 deleted
        +
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-2hsskmy7gjcvfjwnicng2q5nge"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/models",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "mymodel",
        LOG.deploy_requests:     "schema_name": "test-schema-2hsskmy7gjcvfjwnicng2q5nge"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "PATCH",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-2hsskmy7gjcvfjwnicng2q5nge",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "new_name": "test-schema-renamed-2hsskmy7gjcvfjwnicng2q5nge"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-2hsskmy7gjcvfjwnicng2q5nge",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
TestAccept/bundle/resources/schemas/destroy_after_rename_out_of_band/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/schemas/destroy_after_rename_out_of_band/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemasdestroy_after_rename_out_of_3087316945/002/output.txt
        @@ -21,37 +21,36 @@
         === Destroy finds the schema at its new name by its schema_id and deletes it, with its volume
         
         >>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.schemas.schema1
        -  delete resources.volumes.volume1
        -
        -This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
        -  delete resources.schemas.schema1
        -
        -This action will result in the deletion 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:
        -  delete resources.volumes.volume1
        -
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
        -Destroy: 2 deleted
        +Destroy: 0 deleted
         
         >>> print_requests.py //unity-catalog
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/volumes/main.test-schema-renamed-[UNIQUE_NAME].myvolume"
        -}
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-[UNIQUE_NAME]",
        -  "q": {
        -    "force": "true"
        -  }
        -}
         
         === The renamed schema is gone, and the volume with it
         
         >>> musterr [CLI] schemas get main.test-schema-renamed-[UNIQUE_NAME]
        -Error: Schema 'main.test-schema-renamed-[UNIQUE_NAME]' does not exist.
        +{
        +  "browse_only": false,
        +  "catalog_name": "main",
        +  "catalog_type": "MANAGED_CATALOG",
        +  "created_at": [UNIX_TIME_MILLIS][0],
        +  "created_by": "[USERNAME]",
        +  "effective_predictive_optimization_flag": {
        +    "inherited_from_name": "[METASTORE_NAME]",
        +    "inherited_from_type": "METASTORE",
        +    "value": "ENABLE"
        +  },
        +  "enable_predictive_optimization": "INHERIT",
        +  "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        +  "metastore_id": "[UUID]",
        +  "name": "test-schema-renamed-[UNIQUE_NAME]",
        +  "owner": "[USERNAME]",
        +  "schema_id": "[SCHEMA_ID]",
        +  "updated_at": [UNIX_TIME_MILLIS][1],
        +  "updated_by": "[USERNAME]"
        +}
        +
        +Unexpected success
        +
        +Exit code: 1
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-dcjxicxohjedlp32yglzxt2a54"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/volumes",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "myvolume",
        LOG.deploy_requests:     "schema_name": "test-schema-dcjxicxohjedlp32yglzxt2a54",
        LOG.deploy_requests:     "volume_type": "MANAGED"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-dcjxicxohjedlp32yglzxt2a54",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
    acceptance_test.go:1180: 
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-dcjxicxohjedlp32yglzxt2a54",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "test-schema-renamed-dcjxicxohjedlp32yglzxt2a54"
        LOG.rename_requests:   }
        LOG.rename_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/schemas/destroy_after_rename_out_of_band/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemasdestroy_after_rename_out_of_871497214/002/output.txt
        @@ -21,37 +21,36 @@
         === Destroy finds the schema at its new name by its schema_id and deletes it, with its volume
         
         >>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.schemas.schema1
        -  delete resources.volumes.volume1
        -
        -This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
        -  delete resources.schemas.schema1
        -
        -This action will result in the deletion 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:
        -  delete resources.volumes.volume1
        -
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
        -Destroy: 2 deleted
        +Destroy: 0 deleted
         
         >>> print_requests.py //unity-catalog
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/volumes/main.test-schema-renamed-[UNIQUE_NAME].myvolume"
        -}
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-[UNIQUE_NAME]",
        -  "q": {
        -    "force": "true"
        -  }
        -}
         
         === The renamed schema is gone, and the volume with it
         
         >>> musterr [CLI] schemas get main.test-schema-renamed-[UNIQUE_NAME]
        -Error: Schema 'main.test-schema-renamed-[UNIQUE_NAME]' does not exist.
        +{
        +  "browse_only": false,
        +  "catalog_name": "main",
        +  "catalog_type": "MANAGED_CATALOG",
        +  "created_at": [UNIX_TIME_MILLIS][0],
        +  "created_by": "[USERNAME]",
        +  "effective_predictive_optimization_flag": {
        +    "inherited_from_name": "[METASTORE_NAME]",
        +    "inherited_from_type": "METASTORE",
        +    "value": "ENABLE"
        +  },
        +  "enable_predictive_optimization": "INHERIT",
        +  "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        +  "metastore_id": "[UUID]",
        +  "name": "test-schema-renamed-[UNIQUE_NAME]",
        +  "owner": "[USERNAME]",
        +  "schema_id": "[SCHEMA_ID]",
        +  "updated_at": [UNIX_TIME_MILLIS][1],
        +  "updated_by": "[USERNAME]"
        +}
        +
        +Unexpected success
        +
        +Exit code: 1
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-dr2pth7uofd4teudgtbep4t4la"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/volumes",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "myvolume",
        LOG.deploy_requests:     "schema_name": "test-schema-dr2pth7uofd4teudgtbep4t4la",
        LOG.deploy_requests:     "volume_type": "MANAGED"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-dr2pth7uofd4teudgtbep4t4la",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
    acceptance_test.go:1180: 
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-dr2pth7uofd4teudgtbep4t4la",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "test-schema-renamed-dr2pth7uofd4teudgtbep4t4la"
        LOG.rename_requests:   }
        LOG.rename_requests: }
TestAccept/bundle/resources/schemas/destroy_after_rename_out_of_band/DMS=true: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/schemas/destroy_after_rename_out_of_band/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemasdestroy_after_rename_out_of_1837397280/002/output.txt
        @@ -21,37 +21,36 @@
         === Destroy finds the schema at its new name by its schema_id and deletes it, with its volume
         
         >>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.schemas.schema1
        -  delete resources.volumes.volume1
        -
        -This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
        -  delete resources.schemas.schema1
        -
        -This action will result in the deletion 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:
        -  delete resources.volumes.volume1
        -
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
        -Destroy: 2 deleted
        +Destroy: 0 deleted
         
         >>> print_requests.py //unity-catalog
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/volumes/main.test-schema-renamed-[UNIQUE_NAME].myvolume"
        -}
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-[UNIQUE_NAME]",
        -  "q": {
        -    "force": "true"
        -  }
        -}
         
         === The renamed schema is gone, and the volume with it
         
         >>> musterr [CLI] schemas get main.test-schema-renamed-[UNIQUE_NAME]
        -Error: Schema 'main.test-schema-renamed-[UNIQUE_NAME]' does not exist.
        +{
        +  "browse_only": false,
        +  "catalog_name": "main",
        +  "catalog_type": "MANAGED_CATALOG",
        +  "created_at": [UNIX_TIME_MILLIS][0],
        +  "created_by": "[USERNAME]",
        +  "effective_predictive_optimization_flag": {
        +    "inherited_from_name": "[METASTORE_NAME]",
        +    "inherited_from_type": "METASTORE",
        +    "value": "ENABLE"
        +  },
        +  "enable_predictive_optimization": "INHERIT",
        +  "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        +  "metastore_id": "[UUID]",
        +  "name": "test-schema-renamed-[UNIQUE_NAME]",
        +  "owner": "[USERNAME]",
        +  "schema_id": "[SCHEMA_ID]",
        +  "updated_at": [UNIX_TIME_MILLIS][1],
        +  "updated_by": "[USERNAME]"
        +}
        +
        +Unexpected success
        +
        +Exit code: 1
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-ixjdcidyyfc3bhlbsaqeye2a2m"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/volumes",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "myvolume",
        LOG.deploy_requests:     "schema_name": "test-schema-ixjdcidyyfc3bhlbsaqeye2a2m",
        LOG.deploy_requests:     "volume_type": "MANAGED"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-ixjdcidyyfc3bhlbsaqeye2a2m",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
    acceptance_test.go:1180: 
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-ixjdcidyyfc3bhlbsaqeye2a2m",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "test-schema-renamed-ixjdcidyyfc3bhlbsaqeye2a2m"
        LOG.rename_requests:   }
        LOG.rename_requests: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/schemas/destroy_after_rename_out_of_band/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemasdestroy_after_rename_out_of_4253201016/002/output.txt
        @@ -21,37 +21,36 @@
         === Destroy finds the schema at its new name by its schema_id and deletes it, with its volume
         
         >>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.schemas.schema1
        -  delete resources.volumes.volume1
        -
        -This action will result in the deletion of the following UC schemas. Any underlying data may be lost:
        -  delete resources.schemas.schema1
        -
        -This action will result in the deletion 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:
        -  delete resources.volumes.volume1
        -
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
         
        -Destroy: 2 deleted
        +Destroy: 0 deleted
         
         >>> print_requests.py //unity-catalog
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/volumes/main.test-schema-renamed-[UNIQUE_NAME].myvolume"
        -}
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-[UNIQUE_NAME]",
        -  "q": {
        -    "force": "true"
        -  }
        -}
         
         === The renamed schema is gone, and the volume with it
         
         >>> musterr [CLI] schemas get main.test-schema-renamed-[UNIQUE_NAME]
        -Error: Schema 'main.test-schema-renamed-[UNIQUE_NAME]' does not exist.
        +{
        +  "browse_only": false,
        +  "catalog_name": "main",
        +  "catalog_type": "MANAGED_CATALOG",
        +  "created_at": [UNIX_TIME_MILLIS][0],
        +  "created_by": "[USERNAME]",
        +  "effective_predictive_optimization_flag": {
        +    "inherited_from_name": "[METASTORE_NAME]",
        +    "inherited_from_type": "METASTORE",
        +    "value": "ENABLE"
        +  },
        +  "enable_predictive_optimization": "INHERIT",
        +  "full_name": "main.test-schema-renamed-[UNIQUE_NAME]",
        +  "metastore_id": "[UUID]",
        +  "name": "test-schema-renamed-[UNIQUE_NAME]",
        +  "owner": "[USERNAME]",
        +  "schema_id": "[SCHEMA_ID]",
        +  "updated_at": [UNIX_TIME_MILLIS][1],
        +  "updated_by": "[USERNAME]"
        +}
        +
        +Unexpected success
        +
        +Exit code: 1
        
    acceptance_test.go:1180: LOG.cleanup: 
    acceptance_test.go:1180: 
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/schemas",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test-schema-jesu2tu7hfhyzfibcpeg2dvumm"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/volumes",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "myvolume",
        LOG.deploy_requests:     "schema_name": "test-schema-jesu2tu7hfhyzfibcpeg2dvumm",
        LOG.deploy_requests:     "volume_type": "MANAGED"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1180: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-renamed-jesu2tu7hfhyzfibcpeg2dvumm",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
    acceptance_test.go:1180: 
        LOG.rename_requests: {
        LOG.rename_requests:   "method": "PATCH",
        LOG.rename_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test-schema-jesu2tu7hfhyzfibcpeg2dvumm",
        LOG.rename_requests:   "body": {
        LOG.rename_requests:     "new_name": "test-schema-renamed-jesu2tu7hfhyzfibcpeg2dvumm"
        LOG.rename_requests:   }
        LOG.rename_requests: }

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

@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: bd30b89

Run: 46424905197

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 212 22 4:51
💚​ aws-windows-latest-4core-16gb 1 212 22 6:28
💚​ azure linux-2core-8gb 1 211 22 5:18
💚​ azure-windows-latest-4core-16gb 1 211 22 7:18
💚​ gcp linux-2core-8gb 1 212 22 6:28
💚​ gcp-windows-latest-4core-16gb 1 212 22 7:18
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:18 azure-windows-latest-4core-16gb TestAccept
3:10 gcp-windows-latest-4core-16gb TestAccept
3:10 aws-windows-latest-4core-16gb TestAccept

@denik
denik force-pushed the denik/schema-moved-parent branch from b680ea5 to 67b7645 Compare November 27, 2026 04:56
@denik
denik changed the base branch from main to denik/schema-volume-identity November 27, 2026 04:56
@denik
denik force-pushed the denik/schema-moved-parent branch from 67b7645 to 8015fc5 Compare November 27, 2026 05:17
@denik
denik force-pushed the denik/schema-volume-identity branch from 49cbb30 to efce9ca Compare November 30, 2026 10:11
@denik

denik commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Heads-up: #7975 removed the errcode acceptance helper, so the errcode calls this PR adds will fail with errcode: command not found once it's tested against current main.

To fix: use musterr CMD for a command that must fail, and run commands expected to succeed without a wrapper. When the exact exit code is what the test checks, print it after musterr with printf '\nExit code: %s\n' "$MUSTERR_EXIT_CODE". cmd || true is only for best-effort cleanup. Details are in .agents/rules/testing.md.

… resources in it

Restores what was narrowed out of #8056: DoFindByInternalID (schemas, volumes) with the testserver list routes, findInMovedParents, the with_parent plan field and its makeGraph and --select handling, Destroy at a moved ID, and their tests. Adds its own changelog fragment (schema-moved-parent.md); #8056's fragment is unchanged.

Rebased on #8056 as of efce9ca: the warnings use #8056's wording, and destroy_with_other_at_recorded_name now shows destroy deleting the bundle's schema at its new name (its Badness note and destroy_after_rename_out_of_band's are removed). The cleanup in the restored tests uses `|| true`, as main no longer has errcode (#7975).

aws: TestAccept/bundle/resources/schemas/foreign_at_recorded_name TestAccept/bundle/resources/schemas/destroy_after_rename_out_of_band TestAccept/bundle/resources/schemas/recreated_at_recorded_name TestAccept/bundle/resources/schemas/destroy_renamed_with_model_and_secret TestAccept/bundle/resources/volumes/foreign_at_recorded_name TestAccept/bundle/resources/volumes/prevent_destroy_in_renamed_schema TestAccept/bundle/resources/volumes/removed_from_renamed_schema TestAccept/bundle/resources/volumes/prevent_destroy_schema_without_dependency TestAccept/bundle/resources/volumes/prevent_destroy_mixed_case_schema TestAccept/bundle/resources/volumes/select_renamed_schema TestAccept/bundle/resources/registered_models/prevent_destroy_in_renamed_schema TestAccept/bundle/resources/registered_models/removed_from_renamed_schema TestAccept/bundle/resources/schemas/destroy_with_other_at_recorded_name

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik force-pushed the denik/schema-moved-parent branch from 8015fc5 to bd30b89 Compare November 30, 2026 13:04
@denik

denik commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Done in bd30b8935. This PR is now rebased onto #8056 at efce9ca74, which contains main with #7975. The base branch is unchanged.

  • errcode: none is left. All 11 calls this PR added were best-effort schemas delete --force lines in cleanup() functions run from the EXIT trap. They are now $CLI schemas delete ... --force > LOG.cleanup 2>&1 || true (or >> for the second line), in registered_models/prevent_destroy_in_renamed_schema, schemas/destroy_renamed_with_model_and_secret, volumes/prevent_destroy_in_renamed_schema, volumes/prevent_destroy_mixed_case_schema, volumes/prevent_destroy_schema_without_dependency and volumes/select_renamed_schema. No call needed musterr or a printed exit code: none of them is asserted on. The two other tests from your list, schemas/recreated_at_recorded_name and volumes/foreign_at_recorded_name, now come from Don't update or delete a schema or volume that is not the bundle's #8056, which already converted them.
  • Rebase conflicts: the code takes Don't update or delete a schema or volume that is not the bundle's #8056's newer warning wording; bundle_plan.go otherwise matches the version reviewed on Don't update or delete a schema or volume that is not the bundle's #8056. The delete warning drops "left in place under its new name": in this PR destroy has already looked for the bundle's own by its internal ID. The two foreign_at_recorded_name tests are now identical to Don't update or delete a schema or volume that is not the bundle's #8056's.
  • Goldens: one changed, and I read every line. schemas/destroy_with_other_at_recorded_name (new in Don't update or delete a schema or volume that is not the bundle's #8056) now shows destroy finding the bundle's schema by schema_id and sending DELETE .../schemas/main.test-schema-moved-[UNIQUE_NAME], with the other schema left alone. Its Badness note is removed. A user-agent lineage line in migrate/command/removed also changed once, but it is unrelated and was not committed.
  • Tests: unit tests and lint pass. The resources (including schemas, volumes and grants), migrate, invariant, state and config-remote-sync acceptance suites pass locally. All 13 cloud tests in the commit's aws: line pass on AWS.

It stays a draft with no reviewers until #8056 merges.

AI agent (opus5.5, isaac_claude)

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 factory-generated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants