Skip to content

Delete the old resource when its name follows a renamed schema - #7718

Merged
denik merged 3 commits into
mainfrom
denik/uc-parent-fields
Nov 18, 2026
Merged

denik merged 3 commits into
mainfrom
denik/uc-parent-fields

Conversation

@denik

@denik denik commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Changes

A UC resource that takes its own name from another resource's name, and lives in a different schema, was treated as moved when that resource was renamed. For example, a secret in schema shared with name: ${resources.schemas.app.name}: renaming app recreated the secret, but the delete went to shared.<new app name>, which does not exist, and the old secret was left behind. Registered models had the same problem.

Only the fields that name a resource's parent move it with the parent. A new parent_id_fields config lists them (catalog_name, schema_name) for schemas, volumes, registered models and secrets, and both the plan's follow check and the recreate's delete ID now consult only those. Before, any field referencing the renamed resource counted, except a name that can be renamed in place.

Found in review of #7381, where secrets start following a renamed parent. That PR and #7379 rebase on this one.

Tests

  • New schemas/rename_referenced_by_name (Cloud = true): a model and a secret in a shared schema, named after another schema that gets renamed. The first commit records the bug (Badness): the delete went to the new name and the old model and secret stayed. Now the delete goes to their actual path, both are gone, and the redeploy is a no-op.

This pull request and its description were written by Isaac.

denik and others added 3 commits November 17, 2026 12:15
… the wrong path (Badness)

Co-authored-by: Isaac <no-reply@databricks.com>
…nt's rename

A resource whose own name references a renamed resource's name (a secret named after a schema it does not live in) was treated as moved with it: its recreate deleted it at a path that does not exist and left the old one behind. parent_id_fields now lists the fields that name the parent (catalog_name, schema_name), and both the plan's follow check and the recreate's delete ID consult only those.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions github-actions Bot added the DABs DABs related issues label Nov 17, 2026
@denik
denik added this pull request to stack #7719 November 17, 2026 11:23
@github-actions

Copy link
Copy Markdown
Contributor

Commit: dd3927f6b | Workflow run

Regression test report

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

2 tests: regression=2 unreleased=0 coverage=0 failing=0
test branch main (4c8b7a1) latest (v1.26.0)
TestAccept/bundle/resources/schemas/rename_referenced_by_name/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_referenced_by_name/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/schemas/rename_referenced_by_name/DMS=: branch ✅ | main (4c8b7a1) ❌ | latest (v1.26.0) ❌

main (4c8b7a1):

acceptance_test.go:1380: Diff:
        --- bundle/resources/schemas/rename_referenced_by_name/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemasrename_referenced_by_nameDM35004969/002/output.txt
        @@ -32,11 +32,11 @@
         >>> print_requests.py --sort //unity-catalog
         {
           "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/models/main.test_shared_[UNIQUE_NAME].test_app_[UNIQUE_NAME]"
        +  "path": "/api/2.1/unity-catalog/models/main.test_shared_[UNIQUE_NAME].test_app_renamed_[UNIQUE_NAME]"
         }
         {
           "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/secrets/main.test_shared_[UNIQUE_NAME].test_app_[UNIQUE_NAME]"
        +  "path": "/api/2.1/unity-catalog/secrets/main.test_shared_[UNIQUE_NAME].test_app_renamed_[UNIQUE_NAME]"
         }
         {
           "method": "PATCH",
        @@ -68,8 +65,8 @@
         }
         
         === The old model and secret are gone; the new ones are in the shared schema
        -old model is gone
        -old secret is gone
        +old model still exists
        +old secret still exists
         
         >>> [CLI] registered-models get main.test_shared_[UNIQUE_NAME].test_app_renamed_[UNIQUE_NAME]
         {
        
    acceptance_test.go:1158: 
        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_app_aab7a6lfnnea7er5p5peleb2y4"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        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_shared_aab7a6lfnnea7er5p5peleb2y4"
        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": "test_app_aab7a6lfnnea7er5p5peleb2y4",
        LOG.deploy_requests:     "schema_name": "test_shared_aab7a6lfnnea7er5p5peleb2y4"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/secrets",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test_app_aab7a6lfnnea7er5p5peleb2y4",
        LOG.deploy_requests:     "schema_name": "test_shared_aab7a6lfnnea7er5p5peleb2y4",
        LOG.deploy_requests:     "value": "secret-value"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1158: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/secrets/main.test_shared_aab7a6lfnnea7er5p5peleb2y4.test_app_renamed_aab7a6lfnnea7er5p5peleb2y4"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test_shared_aab7a6lfnnea7er5p5peleb2y4.test_app_renamed_aab7a6lfnnea7er5p5peleb2y4"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test_shared_aab7a6lfnnea7er5p5peleb2y4",
        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_app_renamed_aab7a6lfnnea7er5p5peleb2y4",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }

latest (v1.26.0):

acceptance_test.go:1380: Diff:
        --- bundle/resources/schemas/rename_referenced_by_name/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemasrename_referenced_by_nameDM2115759007/002/output.txt
        @@ -16,18 +16,21 @@
         
         >>> [CLI] bundle plan
         recreate registered_models.model1
        -update schemas.app
        +recreate schemas.app
         recreate secrets.secret1
         
        -Plan: 2 to add, 1 to change, 2 to delete, 1 unchanged
        +Plan: 3 to add, 0 to change, 3 to delete, 1 unchanged
         
         >>> [CLI] bundle deploy --auto-approve
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +
        +This action will result in the deletion or recreation of the following UC schemas. Any underlying data may be lost:
        +  recreate resources.schemas.app
         Recreated registered_models.model1
        +Recreated schemas.app
         Recreated secrets.secret1
        -Updated schemas.app
         Files: 2 uploaded, 0 deleted
        -Resources: 2 created, 1 changed, 2 deleted, 1 unchanged
        +Resources: 3 created, 0 changed, 3 deleted, 1 unchanged
         
         >>> print_requests.py --sort //unity-catalog
         {
        @@ -36,18 +31,16 @@
         }
         {
           "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/secrets/main.test_shared_[UNIQUE_NAME].test_app_[UNIQUE_NAME]"
        -}
        -{
        -  "method": "PATCH",
           "path": "/api/2.1/unity-catalog/schemas/main.test_app_[UNIQUE_NAME]",
        -  "body": {
        -    "comment": "",
        -    "custom_max_retention_hours": 0,
        -    "new_name": "test_app_renamed_[UNIQUE_NAME]"
        +  "q": {
        +    "force": "true"
           }
         }
         {
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/secrets/main.test_shared_[UNIQUE_NAME].test_app_[UNIQUE_NAME]"
        +}
        +{
           "method": "POST",
           "path": "/api/2.1/unity-catalog/models",
           "body": {
        @@ -58,6 +47,14 @@
         }
         {
           "method": "POST",
        +  "path": "/api/2.1/unity-catalog/schemas",
        +  "body": {
        +    "catalog_name": "main",
        +    "name": "test_app_renamed_[UNIQUE_NAME]"
        +  }
        +}
        +{
        +  "method": "POST",
           "path": "/api/2.1/unity-catalog/secrets",
           "body": {
             "catalog_name": "main",
        
    acceptance_test.go:1158: 
        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_app_vuhglxvc2rffhdr36thu3hi3se"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        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_shared_vuhglxvc2rffhdr36thu3hi3se"
        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": "test_app_vuhglxvc2rffhdr36thu3hi3se",
        LOG.deploy_requests:     "schema_name": "test_shared_vuhglxvc2rffhdr36thu3hi3se"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/secrets",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test_app_vuhglxvc2rffhdr36thu3hi3se",
        LOG.deploy_requests:     "schema_name": "test_shared_vuhglxvc2rffhdr36thu3hi3se",
        LOG.deploy_requests:     "value": "secret-value"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1158: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test_shared_vuhglxvc2rffhdr36thu3hi3se.test_app_renamed_vuhglxvc2rffhdr36thu3hi3se"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/secrets/main.test_shared_vuhglxvc2rffhdr36thu3hi3se.test_app_renamed_vuhglxvc2rffhdr36thu3hi3se"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test_shared_vuhglxvc2rffhdr36thu3hi3se",
        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_app_renamed_vuhglxvc2rffhdr36thu3hi3se",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
TestAccept/bundle/resources/schemas/rename_referenced_by_name/DMS=true: branch ✅ | main (4c8b7a1) ❌ | latest (v1.26.0) ❌

main (4c8b7a1):

acceptance_test.go:1380: Diff:
        --- bundle/resources/schemas/rename_referenced_by_name/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemasrename_referenced_by_nameDM336421752/002/output.txt
        @@ -32,11 +32,11 @@
         >>> print_requests.py --sort //unity-catalog
         {
           "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/models/main.test_shared_[UNIQUE_NAME].test_app_[UNIQUE_NAME]"
        +  "path": "/api/2.1/unity-catalog/models/main.test_shared_[UNIQUE_NAME].test_app_renamed_[UNIQUE_NAME]"
         }
         {
           "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/secrets/main.test_shared_[UNIQUE_NAME].test_app_[UNIQUE_NAME]"
        +  "path": "/api/2.1/unity-catalog/secrets/main.test_shared_[UNIQUE_NAME].test_app_renamed_[UNIQUE_NAME]"
         }
         {
           "method": "PATCH",
        @@ -68,8 +65,8 @@
         }
         
         === The old model and secret are gone; the new ones are in the shared schema
        -old model is gone
        -old secret is gone
        +old model still exists
        +old secret still exists
         
         >>> [CLI] registered-models get main.test_shared_[UNIQUE_NAME].test_app_renamed_[UNIQUE_NAME]
         {
        
    acceptance_test.go:1158: 
        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_shared_l5zstgihkrf7nnfvi6jmmxkuei"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        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_app_l5zstgihkrf7nnfvi6jmmxkuei"
        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": "test_app_l5zstgihkrf7nnfvi6jmmxkuei",
        LOG.deploy_requests:     "schema_name": "test_shared_l5zstgihkrf7nnfvi6jmmxkuei"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/secrets",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test_app_l5zstgihkrf7nnfvi6jmmxkuei",
        LOG.deploy_requests:     "schema_name": "test_shared_l5zstgihkrf7nnfvi6jmmxkuei",
        LOG.deploy_requests:     "value": "secret-value"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1158: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/secrets/main.test_shared_l5zstgihkrf7nnfvi6jmmxkuei.test_app_renamed_l5zstgihkrf7nnfvi6jmmxkuei"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test_shared_l5zstgihkrf7nnfvi6jmmxkuei.test_app_renamed_l5zstgihkrf7nnfvi6jmmxkuei"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test_app_renamed_l5zstgihkrf7nnfvi6jmmxkuei",
        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_shared_l5zstgihkrf7nnfvi6jmmxkuei",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
FAIL

latest (v1.26.0):

acceptance_test.go:1380: Diff:
        --- bundle/resources/schemas/rename_referenced_by_name/output.txt
        +++ /tmp/TestAcceptbundleresourcesschemasrename_referenced_by_nameDM3233386784/002/output.txt
        @@ -16,18 +16,21 @@
         
         >>> [CLI] bundle plan
         recreate registered_models.model1
        -update schemas.app
        +recreate schemas.app
         recreate secrets.secret1
         
        -Plan: 2 to add, 1 to change, 2 to delete, 1 unchanged
        +Plan: 3 to add, 0 to change, 3 to delete, 1 unchanged
         
         >>> [CLI] bundle deploy --auto-approve
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
        +
        +This action will result in the deletion or recreation of the following UC schemas. Any underlying data may be lost:
        +  recreate resources.schemas.app
         Recreated registered_models.model1
        +Recreated schemas.app
         Recreated secrets.secret1
        -Updated schemas.app
         Files: 2 uploaded, 0 deleted
        -Resources: 2 created, 1 changed, 2 deleted, 1 unchanged
        +Resources: 3 created, 0 changed, 3 deleted, 1 unchanged
         
         >>> print_requests.py --sort //unity-catalog
         {
        @@ -36,18 +31,16 @@
         }
         {
           "method": "DELETE",
        -  "path": "/api/2.1/unity-catalog/secrets/main.test_shared_[UNIQUE_NAME].test_app_[UNIQUE_NAME]"
        -}
        -{
        -  "method": "PATCH",
           "path": "/api/2.1/unity-catalog/schemas/main.test_app_[UNIQUE_NAME]",
        -  "body": {
        -    "comment": "",
        -    "custom_max_retention_hours": 0,
        -    "new_name": "test_app_renamed_[UNIQUE_NAME]"
        +  "q": {
        +    "force": "true"
           }
         }
         {
        +  "method": "DELETE",
        +  "path": "/api/2.1/unity-catalog/secrets/main.test_shared_[UNIQUE_NAME].test_app_[UNIQUE_NAME]"
        +}
        +{
           "method": "POST",
           "path": "/api/2.1/unity-catalog/models",
           "body": {
        @@ -58,6 +47,14 @@
         }
         {
           "method": "POST",
        +  "path": "/api/2.1/unity-catalog/schemas",
        +  "body": {
        +    "catalog_name": "main",
        +    "name": "test_app_renamed_[UNIQUE_NAME]"
        +  }
        +}
        +{
        +  "method": "POST",
           "path": "/api/2.1/unity-catalog/secrets",
           "body": {
             "catalog_name": "main",
        
    acceptance_test.go:1158: 
        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_app_3kevxo7x2neg3hi5a2phlpyi7q"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        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_shared_3kevxo7x2neg3hi5a2phlpyi7q"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
        LOG.deploy_requests: {
        LOG.deploy_requests:   "method": "POST",
        LOG.deploy_requests:   "path": "/api/2.1/unity-catalog/secrets",
        LOG.deploy_requests:   "body": {
        LOG.deploy_requests:     "catalog_name": "main",
        LOG.deploy_requests:     "name": "test_app_3kevxo7x2neg3hi5a2phlpyi7q",
        LOG.deploy_requests:     "schema_name": "test_shared_3kevxo7x2neg3hi5a2phlpyi7q",
        LOG.deploy_requests:     "value": "secret-value"
        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": "test_app_3kevxo7x2neg3hi5a2phlpyi7q",
        LOG.deploy_requests:     "schema_name": "test_shared_3kevxo7x2neg3hi5a2phlpyi7q"
        LOG.deploy_requests:   }
        LOG.deploy_requests: }
    acceptance_test.go:1158: 
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/models/main.test_shared_3kevxo7x2neg3hi5a2phlpyi7q.test_app_renamed_3kevxo7x2neg3hi5a2phlpyi7q"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/secrets/main.test_shared_3kevxo7x2neg3hi5a2phlpyi7q.test_app_renamed_3kevxo7x2neg3hi5a2phlpyi7q"
        LOG.destroy_requests: }
        LOG.destroy_requests: {
        LOG.destroy_requests:   "method": "DELETE",
        LOG.destroy_requests:   "path": "/api/2.1/unity-catalog/schemas/main.test_shared_3kevxo7x2neg3hi5a2phlpyi7q",
        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_app_renamed_3kevxo7x2neg3hi5a2phlpyi7q",
        LOG.destroy_requests:   "q": {
        LOG.destroy_requests:     "force": "true"
        LOG.destroy_requests:   }
        LOG.destroy_requests: }
FAIL

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: dd3927f

Run: 44073224196

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 273 15 7:25
💚​ aws-windows-latest-4core-16gb 1 275 13 6:56
💚​ azure linux-2core-8gb 1 272 15 9:16
💚​ azure-windows-latest-4core-16gb 1 274 13 5:35
💚​ gcp linux-2core-8gb 1 273 15 8:39
💚​ gcp-windows-latest-4core-16gb 1 275 13 6:46
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 5 slowest tests (at least 2 minutes):
duration env testname
4:12 aws-windows-latest-4core-16gb TestAccept
3:18 gcp-windows-latest-4core-16gb TestAccept
3:06 azure-windows-latest-4core-16gb TestAccept
2:54 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/schemas/rename_referenced_by_name/DMS=
2:21 gcp linux-2core-8gb TestAccept/bundle/resources/schemas/rename_referenced_by_name/DMS=true

denik added a commit that referenced this pull request Nov 17, 2026
Only parent_id_fields (catalog_name, schema_name, from #7718) follow a parent's rename, so a name that references a renamed schema's name recreates the secret instead of re-keying it to a path that does not exist.

Co-authored-by: Isaac <no-reply@databricks.com>
denik added a commit that referenced this pull request Nov 17, 2026
Only parent_id_fields (catalog_name, schema_name, from #7718) follow a parent's rename, so a name that references a renamed schema's name recreates the secret instead of re-keying it to a path that does not exist.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik marked this pull request as ready for review November 18, 2026 13:26
@denik
denik requested review from a team as code owners November 18, 2026 13:26
@denik
denik enabled stacked auto-merge November 18, 2026 13:27

@review-oss-bot review-oss-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to me — no issues found.

@denik
denik added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 5c58219 Nov 18, 2026
30 checks passed
@denik
denik deleted the denik/uc-parent-fields branch November 18, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants