Skip to content

bundle summary/open: resolve ${resources.*} references in names and URLs - #8111

Merged
denik merged 6 commits into
mainfrom
summary-resolve-resource-refs
Nov 27, 2026
Merged

denik merged 6 commits into
mainfrom
summary-resolve-resource-refs

Conversation

@denik

@denik denik commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Changes

bundle summary, bundle open and the pipelines open/logs/history commands load the ids of deployed resources from state before they show resources (ProcessOptions.InitIDs). A new mutator, ResolveResourceReferencesForDisplay, runs right after that and resolves ${resources.*} references in every resource from the config, which now holds those ids. URLs are built afterwards, from the resolved values.

Display is best effort, so a reference stays as it is when its value is not known or not safe to show:

  • the field is not set in the config, for example the id of a resource that was never deployed (there is no fallback to implied empty values, which would turn an id into ""), an explicit null, or a field only the workspace has;
  • the field is sensitive (sensitive_fields, for example a secret's value). The check is shared with validate.SensitiveVariableReferences, which already rejects sensitive variables in non-sensitive fields, so other fields hold no secrets;
  • the resource fails to resolve (a reference cycle, which validate accepts and deploy rejects) or its resolved values don't fit its type (a resolved id is a string and must become, for example, an int job_id). Only that resource keeps its references; the others still resolve.

Two related URL fixes:

  • Synced database table URLs use explore/data/<catalog>/<schema>/<table>, like the other table resources (postgres synced tables, schemas, registered models), instead of the dotted name. No URL is built from a name that still holds a reference.
  • A job run's URL uses the job the run was launched for (recorded in state) before the current job_id. Without this, resolving job_id would point the URL at another job after a local edit.

Why

Two Badness notes recorded this:

After deploy, bundle summary prints the synced table's name unresolved, as '${resources.database_catalogs.my_catalog.name}.${resources.database_catalogs.my_catalog.database_name}.my_synced_table', and builds its URL from that string. It should print the resolved name (my_catalog_.my_database.my_synced_table) and a working URL.

After deploy, bundle summary prints job foo's name unresolved, as '${resources.jobs.变量.id}'. This is not specific to unicode keys: synced_database_tables/basic shows the same for ASCII keys. It should print the resolved value.

Before:

    my_synced_table:
      Name: ${resources.database_catalogs.my_catalog.name}.${resources.database_catalogs.my_catalog.database_name}.my_synced_table
      URL:  [DATABRICKS_URL]/explore/data/$%7Bresources.database_catalogs.my_catalog.name%7D.$%7Bresources.database_catalogs.my_catalog.database_name%7D.my_synced_table

After:

    my_synced_table:
      Name: my_catalog_[UNIQUE_NAME].my_database.my_synced_table
      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]/my_database/my_synced_table

and Name: ${resources.jobs.变量.id} becomes Name: [变量_ID].

The same fix also changes these outputs:

  • postgres_synced_tables/basic: the name ${resources.postgres_catalogs.my_catalog.catalog_id}.public.trips_synced resolves, so the summary shows the table's URL.
  • materialization_sets/membership, removal_scope: bundle summary -o json shows the resolved feature_name.
  • templates/default-python/integration_classic: bundle summary -o json shows the job task's resolved pipeline_id.

Tests

  • The two tests' goldens show the resolved values; their Badness notes are removed. unicode_reference also runs bundle summary before deploy: a reference to a job not deployed yet stays a reference.
  • New bundle/resource_deps/summary_resolution. After deploy it checks that id and name references resolve, that references to a secret's value stay (directly, through another job's name, and through a whole-object reference), and that the full JSON summary contains no secret (contains.py '!s3cr3t'). Then, without deploying, it adds a reference cycle and two resources whose resolved values don't fit their types (an int and a duration), renames a referenced job and points the run at another job: the cycle and the misfits keep their references, the reference shows the new name, the run keeps its URL.
  • Unit test TestResolveResourceReferencesForDisplay: id into a string and into an int field, an undeployed id, a secret, a cycle, an explicit null and a type misfit.
  • Mutation checks: removing the sensitive-field skip, the no-implied-empty fallback, the per-resource type check, the null check, the job-run URL order or the synced-table URL change fails at least one of these tests.
  • Local acceptance run over bundle/ and pipelines/: the only other failure is bundle/deploy/mlops-stacks, which also fails on main in this environment.
  • Cloud: aws: line for synced_database_tables/basic and postgres_synced_tables/basic in the last commit message.

Gaps and risks

  • bundle summary -o json output changes: fields that held a ${resources.*} reference now hold the value. That's the purpose of the fix, but a script that parsed the raw reference out of the summary JSON sees a different value.
  • References show the config value, so after a local, undeployed edit they show what the next deploy would use, consistent with how the referenced resource itself is shown.
  • Still unresolved, as before: references to fields that only the workspace has, Terraform-style paths that deploy translates (for example cluster[0]), and children of a value copied through a whole-object reference. The interactive bundle open picker runs before state is loaded, so its titles still show references.
  • Plaintext credential fields that are not declared sensitive (for example a model provider's plaintext API key) can be copied into another resource's name by a reference; the same command already prints them in their own resource's JSON.
  • The open draft acceptance: make local DBR runs opt-out via RunsOnDbr #8037 also edits synced_database_tables/basic/test.toml (removes RunsOnDbr). This PR only removes the Badness line there, so a conflict would be trivial.
  • Risk: low-medium. The change only touches the in-memory config of read-only commands and sends no requests; deploy, plan and destroy don't run the new mutator.

Dashboard

This PR fixes behavior recorded as Badness in acceptance tests.

🤖 AI agent (opus5.5, isaac_claude)

This pull request and its description were written by Isaac.

@github-actions github-actions Bot added the DABs DABs related issues label Nov 27, 2026
Read-only commands that display resources (summary, open, pipelines
open/logs/history) loaded only ids from the deployed state, so a name or
field that references another resource was shown as the raw reference,
and URLs built from such names were broken.

Resolve ${resources.*} references in all resources from the referenced
resource's state, falling back to explicitly set config fields, before
URLs are initialized. References to resources that were never deployed
stay as they are.

aws: TestAccept/bundle/resources/synced_database_tables/basic TestAccept/bundle/resources/postgres_synced_tables/basic

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik force-pushed the summary-resolve-resource-refs branch from edf2c26 to 36084bd Compare November 27, 2026 11:15
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: 60f9ffa05 | Workflow run

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

17 tests: regression=17 unreleased=0 coverage=0 failing=0
test branch main (4c4f104) latest (v1.28.0)
TestAccept/bundle/resource_deps/summary_resolution/DMS= ✅ ❌ ❌
TestAccept/bundle/resource_deps/summary_resolution/DMS=true ✅ ❌ ❌
TestAccept/bundle/resource_deps/unicode_reference/DMS= ✅ ❌ ❌
TestAccept/bundle/resource_deps/unicode_reference/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/materialization_sets/membership/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/materialization_sets/membership/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/materialization_sets/removal_scope/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/materialization_sets/removal_scope/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/postgres_synced_tables/basic/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/postgres_synced_tables/basic/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/synced_database_tables/basic/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/synced_database_tables/basic/DMS=true ✅ ❌ ❌
TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.10 ✅ ❌ ❌
TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.11 ✅ ❌ ❌
TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.12 ✅ ❌ ❌
TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.13 ✅ ❌ ❌
TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.9 ✅ ❌ ❌
TestAccept/bundle/resource_deps/summary_resolution/DMS=: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resource_deps/summary_resolution/output.txt
        +++ /tmp/TestAcceptbundleresource_depssummary_resolutionDMS=3666529184/002/output.txt
        @@ -37,16 +37,16 @@
               Name: job-b
               URL:  [DATABRICKS_URL]/jobs/[B_ID]?w=[WORKSPACE_ID]
             ref_id:
        -      Name: ref [A_ID]
        +      Name: ref ${resources.jobs.a.id}
               URL:  [DATABRICKS_URL]/jobs/[REF_ID_ID]?w=[WORKSPACE_ID]
             ref_name:
        -      Name: after job-a
        +      Name: after ${resources.jobs.a.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_NAME_ID]?w=[WORKSPACE_ID]
             ref_secret:
               Name: secret ${resources.secrets.s.value}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_ID]?w=[WORKSPACE_ID]
             ref_secret_chain:
        -      Name: chain secret ${resources.secrets.s.value}
        +      Name: chain ${resources.jobs.ref_secret.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_CHAIN_ID]?w=[WORKSPACE_ID]
             ref_secret_tag:
               Name: tag ${resources.jobs.ref_secret_tags.tags.k}
        @@ -60,7 +53,7 @@
               URL:  [DATABRICKS_URL]/explore/data/main/default/test_secret?w=[WORKSPACE_ID]
         
         >>> [CLI] bundle summary --var secret_value=s3cr3t-value -o json
        -[{"key":"a","name":"job-a"},{"key":"b","name":"job-b"},{"key":"ref_id","name":"ref [A_ID]"},{"key":"ref_name","name":"after job-a"},{"key":"ref_secret","name":"secret ${resources.secrets.s.value}"},{"key":"ref_secret_chain","name":"chain secret ${resources.secrets.s.value}"},{"key":"ref_secret_tag","name":"tag ${resources.jobs.ref_secret_tags.tags.k}"},{"key":"ref_secret_tags","name":"tags"}]
        +[{"key":"a","name":"job-a"},{"key":"b","name":"job-b"},{"key":"ref_id","name":"ref ${resources.jobs.a.id}"},{"key":"ref_name","name":"after ${resources.jobs.a.name}"},{"key":"ref_secret","name":"secret ${resources.secrets.s.value}"},{"key":"ref_secret_chain","name":"chain ${resources.jobs.ref_secret.name}"},{"key":"ref_secret_tag","name":"tag ${resources.jobs.ref_secret_tags.tags.k}"},{"key":"ref_secret_tags","name":"tags"}]
         
         === The secret appears nowhere in the summary
         
        @@ -98,16 +91,16 @@
               Name: ${resources.jobs.cycle_a.name}
               URL:  (not deployed)
             ref_id:
        -      Name: ref [A_ID]
        +      Name: ref ${resources.jobs.a.id}
               URL:  [DATABRICKS_URL]/jobs/[REF_ID_ID]?w=[WORKSPACE_ID]
             ref_name:
        -      Name: after job-renamed
        +      Name: after ${resources.jobs.a.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_NAME_ID]?w=[WORKSPACE_ID]
             ref_secret:
               Name: secret ${resources.secrets.s.value}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_ID]?w=[WORKSPACE_ID]
             ref_secret_chain:
        -      Name: chain secret ${resources.secrets.s.value}
        +      Name: chain ${resources.jobs.ref_secret.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_CHAIN_ID]?w=[WORKSPACE_ID]
             ref_secret_tag:
               Name: tag ${resources.jobs.ref_secret_tags.tags.k}
        @@ -124,7 +110,7 @@
               URL:  [DATABRICKS_URL]/explore/data/main/default/test_secret?w=[WORKSPACE_ID]
         
         >>> [CLI] bundle summary --var secret_value=s3cr3t-value -o json
        -"after job-renamed"
        +"after ${resources.jobs.a.name}"
         "${resources.jobs.cycle_b.name}"
         "${resources.jobs.a.name}"
         "${resources.jobs.a.name}"
        
    acceptance_test.go:1180: 
        LOG.destroy: 
        LOG.destroy: >>> /tmp/TestAccept3216211978/001/databricks bundle destroy --auto-approve --var secret_value=s3cr3t-value
        LOG.destroy: The following resources will be deleted:
        LOG.destroy:   delete resources.jobs.a
        LOG.destroy:   delete resources.jobs.b
        LOG.destroy:   delete resources.jobs.ref_id
        LOG.destroy:   delete resources.jobs.ref_name
        LOG.destroy:   delete resources.jobs.ref_secret
        LOG.destroy:   delete resources.jobs.ref_secret_chain
        LOG.destroy:   delete resources.jobs.ref_secret_tag
        LOG.destroy:   delete resources.jobs.ref_secret_tags
        LOG.destroy:   delete resources.secrets.s
        LOG.destroy: 
        LOG.destroy: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/summary-resolution/default
        LOG.destroy: 
        LOG.destroy: Destroy: 9 deleted

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resource_deps/summary_resolution/output.txt
        +++ /tmp/TestAcceptbundleresource_depssummary_resolutionDMS=3385178995/002/output.txt
        @@ -37,16 +37,16 @@
               Name: job-b
               URL:  [DATABRICKS_URL]/jobs/[B_ID]?w=[WORKSPACE_ID]
             ref_id:
        -      Name: ref [A_ID]
        +      Name: ref ${resources.jobs.a.id}
               URL:  [DATABRICKS_URL]/jobs/[REF_ID_ID]?w=[WORKSPACE_ID]
             ref_name:
        -      Name: after job-a
        +      Name: after ${resources.jobs.a.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_NAME_ID]?w=[WORKSPACE_ID]
             ref_secret:
               Name: secret ${resources.secrets.s.value}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_ID]?w=[WORKSPACE_ID]
             ref_secret_chain:
        -      Name: chain secret ${resources.secrets.s.value}
        +      Name: chain ${resources.jobs.ref_secret.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_CHAIN_ID]?w=[WORKSPACE_ID]
             ref_secret_tag:
               Name: tag ${resources.jobs.ref_secret_tags.tags.k}
        @@ -60,7 +53,7 @@
               URL:  [DATABRICKS_URL]/explore/data/main/default/test_secret?w=[WORKSPACE_ID]
         
         >>> [CLI] bundle summary --var secret_value=s3cr3t-value -o json
        -[{"key":"a","name":"job-a"},{"key":"b","name":"job-b"},{"key":"ref_id","name":"ref [A_ID]"},{"key":"ref_name","name":"after job-a"},{"key":"ref_secret","name":"secret ${resources.secrets.s.value}"},{"key":"ref_secret_chain","name":"chain secret ${resources.secrets.s.value}"},{"key":"ref_secret_tag","name":"tag ${resources.jobs.ref_secret_tags.tags.k}"},{"key":"ref_secret_tags","name":"tags"}]
        +[{"key":"a","name":"job-a"},{"key":"b","name":"job-b"},{"key":"ref_id","name":"ref ${resources.jobs.a.id}"},{"key":"ref_name","name":"after ${resources.jobs.a.name}"},{"key":"ref_secret","name":"secret ${resources.secrets.s.value}"},{"key":"ref_secret_chain","name":"chain ${resources.jobs.ref_secret.name}"},{"key":"ref_secret_tag","name":"tag ${resources.jobs.ref_secret_tags.tags.k}"},{"key":"ref_secret_tags","name":"tags"}]
         
         === The secret appears nowhere in the summary
         
        @@ -98,16 +91,16 @@
               Name: ${resources.jobs.cycle_a.name}
               URL:  (not deployed)
             ref_id:
        -      Name: ref [A_ID]
        +      Name: ref ${resources.jobs.a.id}
               URL:  [DATABRICKS_URL]/jobs/[REF_ID_ID]?w=[WORKSPACE_ID]
             ref_name:
        -      Name: after job-renamed
        +      Name: after ${resources.jobs.a.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_NAME_ID]?w=[WORKSPACE_ID]
             ref_secret:
               Name: secret ${resources.secrets.s.value}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_ID]?w=[WORKSPACE_ID]
             ref_secret_chain:
        -      Name: chain secret ${resources.secrets.s.value}
        +      Name: chain ${resources.jobs.ref_secret.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_CHAIN_ID]?w=[WORKSPACE_ID]
             ref_secret_tag:
               Name: tag ${resources.jobs.ref_secret_tags.tags.k}
        @@ -124,7 +110,7 @@
               URL:  [DATABRICKS_URL]/explore/data/main/default/test_secret?w=[WORKSPACE_ID]
         
         >>> [CLI] bundle summary --var secret_value=s3cr3t-value -o json
        -"after job-renamed"
        +"after ${resources.jobs.a.name}"
         "${resources.jobs.cycle_b.name}"
         "${resources.jobs.a.name}"
         "${resources.jobs.a.name}"
        
    acceptance_test.go:1180: 
        LOG.destroy: 
        LOG.destroy: >>> /home/runner/work/cli/cli/acceptance/build/linux_amd64/1.28.0/databricks bundle destroy --auto-approve --var secret_value=s3cr3t-value
        LOG.destroy: The following resources will be deleted:
        LOG.destroy:   delete resources.jobs.a
        LOG.destroy:   delete resources.jobs.b
        LOG.destroy:   delete resources.jobs.ref_id
        LOG.destroy:   delete resources.jobs.ref_name
        LOG.destroy:   delete resources.jobs.ref_secret
        LOG.destroy:   delete resources.jobs.ref_secret_chain
        LOG.destroy:   delete resources.jobs.ref_secret_tag
        LOG.destroy:   delete resources.jobs.ref_secret_tags
        LOG.destroy:   delete resources.secrets.s
        LOG.destroy: 
        LOG.destroy: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/summary-resolution/default
        LOG.destroy: 
        LOG.destroy: Destroy: 9 deleted
TestAccept/bundle/resource_deps/summary_resolution/DMS=true: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resource_deps/summary_resolution/output.txt
        +++ /tmp/TestAcceptbundleresource_depssummary_resolutionDMS=true991351194/002/output.txt
        @@ -37,16 +37,16 @@
               Name: job-b
               URL:  [DATABRICKS_URL]/jobs/[B_ID]?w=[WORKSPACE_ID]
             ref_id:
        -      Name: ref [A_ID]
        +      Name: ref ${resources.jobs.a.id}
               URL:  [DATABRICKS_URL]/jobs/[REF_ID_ID]?w=[WORKSPACE_ID]
             ref_name:
        -      Name: after job-a
        +      Name: after ${resources.jobs.a.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_NAME_ID]?w=[WORKSPACE_ID]
             ref_secret:
               Name: secret ${resources.secrets.s.value}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_ID]?w=[WORKSPACE_ID]
             ref_secret_chain:
        -      Name: chain secret ${resources.secrets.s.value}
        +      Name: chain ${resources.jobs.ref_secret.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_CHAIN_ID]?w=[WORKSPACE_ID]
             ref_secret_tag:
               Name: tag ${resources.jobs.ref_secret_tags.tags.k}
        @@ -60,7 +53,7 @@
               URL:  [DATABRICKS_URL]/explore/data/main/default/test_secret?w=[WORKSPACE_ID]
         
         >>> [CLI] bundle summary --var secret_value=s3cr3t-value -o json
        -[{"key":"a","name":"job-a"},{"key":"b","name":"job-b"},{"key":"ref_id","name":"ref [A_ID]"},{"key":"ref_name","name":"after job-a"},{"key":"ref_secret","name":"secret ${resources.secrets.s.value}"},{"key":"ref_secret_chain","name":"chain secret ${resources.secrets.s.value}"},{"key":"ref_secret_tag","name":"tag ${resources.jobs.ref_secret_tags.tags.k}"},{"key":"ref_secret_tags","name":"tags"}]
        +[{"key":"a","name":"job-a"},{"key":"b","name":"job-b"},{"key":"ref_id","name":"ref ${resources.jobs.a.id}"},{"key":"ref_name","name":"after ${resources.jobs.a.name}"},{"key":"ref_secret","name":"secret ${resources.secrets.s.value}"},{"key":"ref_secret_chain","name":"chain ${resources.jobs.ref_secret.name}"},{"key":"ref_secret_tag","name":"tag ${resources.jobs.ref_secret_tags.tags.k}"},{"key":"ref_secret_tags","name":"tags"}]
         
         === The secret appears nowhere in the summary
         
        @@ -98,16 +91,16 @@
               Name: ${resources.jobs.cycle_a.name}
               URL:  (not deployed)
             ref_id:
        -      Name: ref [A_ID]
        +      Name: ref ${resources.jobs.a.id}
               URL:  [DATABRICKS_URL]/jobs/[REF_ID_ID]?w=[WORKSPACE_ID]
             ref_name:
        -      Name: after job-renamed
        +      Name: after ${resources.jobs.a.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_NAME_ID]?w=[WORKSPACE_ID]
             ref_secret:
               Name: secret ${resources.secrets.s.value}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_ID]?w=[WORKSPACE_ID]
             ref_secret_chain:
        -      Name: chain secret ${resources.secrets.s.value}
        +      Name: chain ${resources.jobs.ref_secret.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_CHAIN_ID]?w=[WORKSPACE_ID]
             ref_secret_tag:
               Name: tag ${resources.jobs.ref_secret_tags.tags.k}
        @@ -124,7 +110,7 @@
               URL:  [DATABRICKS_URL]/explore/data/main/default/test_secret?w=[WORKSPACE_ID]
         
         >>> [CLI] bundle summary --var secret_value=s3cr3t-value -o json
        -"after job-renamed"
        +"after ${resources.jobs.a.name}"
         "${resources.jobs.cycle_b.name}"
         "${resources.jobs.a.name}"
         "${resources.jobs.a.name}"
        
    acceptance_test.go:1180: 
        LOG.destroy: 
        LOG.destroy: >>> /tmp/TestAccept3216211978/001/databricks bundle destroy --auto-approve --var secret_value=s3cr3t-value
        LOG.destroy: The following resources will be deleted:
        LOG.destroy:   delete resources.jobs.a
        LOG.destroy:   delete resources.jobs.b
        LOG.destroy:   delete resources.jobs.ref_id
        LOG.destroy:   delete resources.jobs.ref_name
        LOG.destroy:   delete resources.jobs.ref_secret
        LOG.destroy:   delete resources.jobs.ref_secret_chain
        LOG.destroy:   delete resources.jobs.ref_secret_tag
        LOG.destroy:   delete resources.jobs.ref_secret_tags
        LOG.destroy:   delete resources.secrets.s
        LOG.destroy: 
        LOG.destroy: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/summary-resolution/default
        LOG.destroy: 
        LOG.destroy: Destroy: 9 deleted

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resource_deps/summary_resolution/output.txt
        +++ /tmp/TestAcceptbundleresource_depssummary_resolutionDMS=true145932346/002/output.txt
        @@ -37,16 +37,16 @@
               Name: job-b
               URL:  [DATABRICKS_URL]/jobs/[B_ID]?w=[WORKSPACE_ID]
             ref_id:
        -      Name: ref [A_ID]
        +      Name: ref ${resources.jobs.a.id}
               URL:  [DATABRICKS_URL]/jobs/[REF_ID_ID]?w=[WORKSPACE_ID]
             ref_name:
        -      Name: after job-a
        +      Name: after ${resources.jobs.a.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_NAME_ID]?w=[WORKSPACE_ID]
             ref_secret:
               Name: secret ${resources.secrets.s.value}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_ID]?w=[WORKSPACE_ID]
             ref_secret_chain:
        -      Name: chain secret ${resources.secrets.s.value}
        +      Name: chain ${resources.jobs.ref_secret.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_CHAIN_ID]?w=[WORKSPACE_ID]
             ref_secret_tag:
               Name: tag ${resources.jobs.ref_secret_tags.tags.k}
        @@ -60,7 +53,7 @@
               URL:  [DATABRICKS_URL]/explore/data/main/default/test_secret?w=[WORKSPACE_ID]
         
         >>> [CLI] bundle summary --var secret_value=s3cr3t-value -o json
        -[{"key":"a","name":"job-a"},{"key":"b","name":"job-b"},{"key":"ref_id","name":"ref [A_ID]"},{"key":"ref_name","name":"after job-a"},{"key":"ref_secret","name":"secret ${resources.secrets.s.value}"},{"key":"ref_secret_chain","name":"chain secret ${resources.secrets.s.value}"},{"key":"ref_secret_tag","name":"tag ${resources.jobs.ref_secret_tags.tags.k}"},{"key":"ref_secret_tags","name":"tags"}]
        +[{"key":"a","name":"job-a"},{"key":"b","name":"job-b"},{"key":"ref_id","name":"ref ${resources.jobs.a.id}"},{"key":"ref_name","name":"after ${resources.jobs.a.name}"},{"key":"ref_secret","name":"secret ${resources.secrets.s.value}"},{"key":"ref_secret_chain","name":"chain ${resources.jobs.ref_secret.name}"},{"key":"ref_secret_tag","name":"tag ${resources.jobs.ref_secret_tags.tags.k}"},{"key":"ref_secret_tags","name":"tags"}]
         
         === The secret appears nowhere in the summary
         
        @@ -98,16 +91,16 @@
               Name: ${resources.jobs.cycle_a.name}
               URL:  (not deployed)
             ref_id:
        -      Name: ref [A_ID]
        +      Name: ref ${resources.jobs.a.id}
               URL:  [DATABRICKS_URL]/jobs/[REF_ID_ID]?w=[WORKSPACE_ID]
             ref_name:
        -      Name: after job-renamed
        +      Name: after ${resources.jobs.a.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_NAME_ID]?w=[WORKSPACE_ID]
             ref_secret:
               Name: secret ${resources.secrets.s.value}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_ID]?w=[WORKSPACE_ID]
             ref_secret_chain:
        -      Name: chain secret ${resources.secrets.s.value}
        +      Name: chain ${resources.jobs.ref_secret.name}
               URL:  [DATABRICKS_URL]/jobs/[REF_SECRET_CHAIN_ID]?w=[WORKSPACE_ID]
             ref_secret_tag:
               Name: tag ${resources.jobs.ref_secret_tags.tags.k}
        @@ -124,7 +110,7 @@
               URL:  [DATABRICKS_URL]/explore/data/main/default/test_secret?w=[WORKSPACE_ID]
         
         >>> [CLI] bundle summary --var secret_value=s3cr3t-value -o json
        -"after job-renamed"
        +"after ${resources.jobs.a.name}"
         "${resources.jobs.cycle_b.name}"
         "${resources.jobs.a.name}"
         "${resources.jobs.a.name}"
        
    acceptance_test.go:1180: 
        LOG.destroy: 
        LOG.destroy: >>> /home/runner/work/cli/cli/acceptance/build/linux_amd64/1.28.0/databricks bundle destroy --auto-approve --var secret_value=s3cr3t-value
        LOG.destroy: The following resources will be deleted:
        LOG.destroy:   delete resources.jobs.a
        LOG.destroy:   delete resources.jobs.b
        LOG.destroy:   delete resources.jobs.ref_id
        LOG.destroy:   delete resources.jobs.ref_name
        LOG.destroy:   delete resources.jobs.ref_secret
        LOG.destroy:   delete resources.jobs.ref_secret_chain
        LOG.destroy:   delete resources.jobs.ref_secret_tag
        LOG.destroy:   delete resources.jobs.ref_secret_tags
        LOG.destroy:   delete resources.secrets.s
        LOG.destroy: 
        LOG.destroy: All files and directories at the following location will be deleted: /Workspace/Users/tester@databricks.com/.bundle/summary-resolution/default
        LOG.destroy: 
        LOG.destroy: Destroy: 9 deleted
TestAccept/bundle/resource_deps/unicode_reference/DMS=: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resource_deps/unicode_reference/output.txt
        +++ /tmp/TestAcceptbundleresource_depsunicode_referenceDMS=2881944563/002/output.txt
        @@ -49,7 +49,7 @@
         Resources:
           Jobs:
             foo:
        -      Name: [变量_ID]
        +      Name: ${resources.jobs.变量.id}
               URL:  [DATABRICKS_URL]/jobs/[FOO_ID]?w=[WORKSPACE_ID]
             变量:
               Name: hello

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/resource_deps/unicode_reference/DMS=true: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resource_deps/unicode_reference/output.txt
        +++ /tmp/TestAcceptbundleresource_depsunicode_referenceDMS=true1692893471/002/output.txt
        @@ -49,7 +49,7 @@
         Resources:
           Jobs:
             foo:
        -      Name: [变量_ID]
        +      Name: ${resources.jobs.变量.id}
               URL:  [DATABRICKS_URL]/jobs/[FOO_ID]?w=[WORKSPACE_ID]
             变量:
               Name: hello

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/resources/materialization_sets/membership/DMS=: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resources/materialization_sets/membership/output.txt
        +++ /tmp/TestAcceptbundleresourcesmaterialization_setsmembershipDMS=3077790318/002/output.txt
        @@ -67,11 +67,11 @@
         >>> set_members
         [
           {
        -    "feature_name": "main.matset_[UNIQUE_NAME].featb_[UNIQUE_NAME]",
        +    "feature_name": "${resources.features.featb.full_name}",
             "is_online": null
           },
           {
        -    "feature_name": "main.matset_[UNIQUE_NAME].featb_[UNIQUE_NAME]",
        +    "feature_name": "${resources.features.featb.full_name}",
             "is_online": null
           }
         ]

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/resources/materialization_sets/membership/DMS=true: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resources/materialization_sets/membership/output.txt
        +++ /tmp/TestAcceptbundleresourcesmaterialization_setsmembershipDMS=2309879731/002/output.txt
        @@ -67,11 +67,11 @@
         >>> set_members
         [
           {
        -    "feature_name": "main.matset_[UNIQUE_NAME].featb_[UNIQUE_NAME]",
        +    "feature_name": "${resources.features.featb.full_name}",
             "is_online": null
           },
           {
        -    "feature_name": "main.matset_[UNIQUE_NAME].featb_[UNIQUE_NAME]",
        +    "feature_name": "${resources.features.featb.full_name}",
             "is_online": null
           }
         ]

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/resources/materialization_sets/removal_scope/DMS=: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resources/materialization_sets/removal_scope/output.txt
        +++ /tmp/TestAcceptbundleresourcesmaterialization_setsremoval_scopeD3697855309/002/output.txt
        @@ -40,7 +40,7 @@
         >>> set_members
         [
           {
        -    "feature_name": "main.matset_[UNIQUE_NAME].featf2_[UNIQUE_NAME]",
        +    "feature_name": "${resources.features.featf2.full_name}",
             "is_online": null
           }
         ]

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/resources/materialization_sets/removal_scope/DMS=true: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resources/materialization_sets/removal_scope/output.txt
        +++ /tmp/TestAcceptbundleresourcesmaterialization_setsremoval_scopeD1537668270/002/output.txt
        @@ -40,7 +40,7 @@
         >>> set_members
         [
           {
        -    "feature_name": "main.matset_[UNIQUE_NAME].featf2_[UNIQUE_NAME]",
        +    "feature_name": "${resources.features.featf2.full_name}",
             "is_online": null
           }
         ]

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/materialization_sets/removal_scope/output.txt
        +++ /tmp/TestAcceptbundleresourcesmaterialization_setsremoval_scopeD136622828/002/output.txt
        @@ -40,7 +40,7 @@
         >>> set_members
         [
           {
        -    "feature_name": "main.matset_[UNIQUE_NAME].featf2_[UNIQUE_NAME]",
        +    "feature_name": "${resources.features.featf2.full_name}",
             "is_online": null
           }
         ]
        
FAIL
TestAccept/bundle/resources/postgres_synced_tables/basic/DMS=: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resources/postgres_synced_tables/basic/output.txt
        +++ /tmp/TestAcceptbundleresourcespostgres_synced_tablesbasicDMS=3175593760/002/output.txt
        @@ -28,8 +28,8 @@
               Name: Test Project for Synced Table
           Postgres synced tables:
             my_table:
        -      Name: lakebase_test_[UNIQUE_NAME].public.trips_synced
        -      URL:  [DATABRICKS_URL]/explore/data/lakebase_test_[UNIQUE_NAME]/public/trips_synced
        +      Name: ${resources.postgres_catalogs.my_catalog.catalog_id}.public.trips_synced
        +      URL:  (not deployed)
           Schemas:
             pipeline_storage:
               Name: pipeline_storage_[UNIQUE_NAME]

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/resources/postgres_synced_tables/basic/DMS=true: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resources/postgres_synced_tables/basic/output.txt
        +++ /tmp/TestAcceptbundleresourcespostgres_synced_tablesbasicDMS=tru2030715785/002/output.txt
        @@ -28,8 +28,8 @@
               Name: Test Project for Synced Table
           Postgres synced tables:
             my_table:
        -      Name: lakebase_test_[UNIQUE_NAME].public.trips_synced
        -      URL:  [DATABRICKS_URL]/explore/data/lakebase_test_[UNIQUE_NAME]/public/trips_synced
        +      Name: ${resources.postgres_catalogs.my_catalog.catalog_id}.public.trips_synced
        +      URL:  (not deployed)
           Schemas:
             pipeline_storage:
               Name: pipeline_storage_[UNIQUE_NAME]

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/resources/synced_database_tables/basic/DMS=: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resources/synced_database_tables/basic/output.txt
        +++ /tmp/TestAcceptbundleresourcessynced_database_tablesbasicDMS=15999866/002/output.txt
        @@ -20,8 +20,8 @@
               URL:  (not deployed)
           Synced database tables:
             my_synced_table:
        -      Name: my_catalog_[UNIQUE_NAME].my_database.my_synced_table
        -      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]/my_database/my_synced_table
        +      Name: ${resources.database_catalogs.my_catalog.name}.${resources.database_catalogs.my_catalog.database_name}.my_synced_table
        +      URL:  [DATABRICKS_URL]/explore/data/$%7Bresources.database_catalogs.my_catalog.name%7D.$%7Bresources.database_catalogs.my_catalog.database_name%7D.my_synced_table
         
         >>> [CLI] bundle validate
         Name: deploy-lakebase-synced-table-[UNIQUE_NAME]
        
    acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1155
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "Name: deploy-lakebase-synced-table-[UNIQUE_NAME]\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-synced-table-[UNIQUE_NAME]/default\nResources:\n  Database catalogs:\n    my_catalog:\n      Name: my_catalog_[UNIQUE_NAME]\n      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]\n  Database instances:\n    my_instance:\n      Name: test-db-synced-table-[UNIQUE_NAME]\n      URL:  [DATABRICKS_URL]/compute/database-instances/test-db-synced-table-[UNIQUE_NAME]\n  Synced database tables:\n    my_synced_table:\n      Name: my_catalog_[UNIQUE_NAME].my_database.my_synced_table\n      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]/my_database/my_synced_table\n"
        	            	actual  : "Name: deploy-lakebase-synced-table-[UNIQUE_NAME]\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-synced-table-[UNIQUE_NAME]/default\nResources:\n  Database catalogs:\n    my_catalog:\n      Name: my_catalog_[UNIQUE_NAME]\n      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]\n  Database instances:\n    my_instance:\n      Name: test-db-synced-table-[UNIQUE_NAME]\n      URL:  [DATABRICKS_URL]/compute/database-instances/test-db-synced-table-[UNIQUE_NAME]\n  Synced database tables:\n    my_synced_table:\n      Name: ${resources.database_catalogs.my_catalog.name}.${resources.database_catalogs.my_catalog.database_name}.my_synced_table\n      URL:  [DATABRICKS_URL]/explore/data/$%7Bresources.database_catalogs.my_catalog.name%7D.$%7Bresources.database_catalogs.my_catalog.database_name%7D.my_synced_table\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -16,4 +16,4 @@
        	            	     my_synced_table:
        	            	-      Name: my_catalog_[UNIQUE_NAME].my_database.my_synced_table
        	            	-      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]/my_database/my_synced_table
        	            	+      Name: ${resources.database_catalogs.my_catalog.name}.${resources.database_catalogs.my_catalog.database_name}.my_synced_table
        	            	+      URL:  [DATABRICKS_URL]/explore/data/$%7Bresources.database_catalogs.my_catalog.name%7D.$%7Bresources.database_catalogs.my_catalog.database_name%7D.my_synced_table
        	            	 
        	Test:       	TestAccept/bundle/resources/synced_database_tables/basic/DMS=
        	Messages:   	bundle/resources/synced_database_tables/basic/out.summary.txt vs /tmp/TestAcceptbundleresourcessynced_database_tablesbasicDMS=15999866/001/out.summary.txt

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/resources/synced_database_tables/basic/DMS=true: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/resources/synced_database_tables/basic/output.txt
        +++ /tmp/TestAcceptbundleresourcessynced_database_tablesbasicDMS=tru1077315328/002/output.txt
        @@ -20,8 +20,8 @@
               URL:  (not deployed)
           Synced database tables:
             my_synced_table:
        -      Name: my_catalog_[UNIQUE_NAME].my_database.my_synced_table
        -      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]/my_database/my_synced_table
        +      Name: ${resources.database_catalogs.my_catalog.name}.${resources.database_catalogs.my_catalog.database_name}.my_synced_table
        +      URL:  [DATABRICKS_URL]/explore/data/$%7Bresources.database_catalogs.my_catalog.name%7D.$%7Bresources.database_catalogs.my_catalog.database_name%7D.my_synced_table
         
         >>> [CLI] bundle validate
         Name: deploy-lakebase-synced-table-[UNIQUE_NAME]
        
    acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1155
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "Name: deploy-lakebase-synced-table-[UNIQUE_NAME]\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-synced-table-[UNIQUE_NAME]/default\nResources:\n  Database catalogs:\n    my_catalog:\n      Name: my_catalog_[UNIQUE_NAME]\n      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]\n  Database instances:\n    my_instance:\n      Name: test-db-synced-table-[UNIQUE_NAME]\n      URL:  [DATABRICKS_URL]/compute/database-instances/test-db-synced-table-[UNIQUE_NAME]\n  Synced database tables:\n    my_synced_table:\n      Name: my_catalog_[UNIQUE_NAME].my_database.my_synced_table\n      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]/my_database/my_synced_table\n"
        	            	actual  : "Name: deploy-lakebase-synced-table-[UNIQUE_NAME]\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-synced-table-[UNIQUE_NAME]/default\nResources:\n  Database catalogs:\n    my_catalog:\n      Name: my_catalog_[UNIQUE_NAME]\n      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]\n  Database instances:\n    my_instance:\n      Name: test-db-synced-table-[UNIQUE_NAME]\n      URL:  [DATABRICKS_URL]/compute/database-instances/test-db-synced-table-[UNIQUE_NAME]\n  Synced database tables:\n    my_synced_table:\n      Name: ${resources.database_catalogs.my_catalog.name}.${resources.database_catalogs.my_catalog.database_name}.my_synced_table\n      URL:  [DATABRICKS_URL]/explore/data/$%7Bresources.database_catalogs.my_catalog.name%7D.$%7Bresources.database_catalogs.my_catalog.database_name%7D.my_synced_table\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -16,4 +16,4 @@
        	            	     my_synced_table:
        	            	-      Name: my_catalog_[UNIQUE_NAME].my_database.my_synced_table
        	            	-      URL:  [DATABRICKS_URL]/explore/data/my_catalog_[UNIQUE_NAME]/my_database/my_synced_table
        	            	+      Name: ${resources.database_catalogs.my_catalog.name}.${resources.database_catalogs.my_catalog.database_name}.my_synced_table
        	            	+      URL:  [DATABRICKS_URL]/explore/data/$%7Bresources.database_catalogs.my_catalog.name%7D.$%7Bresources.database_catalogs.my_catalog.database_name%7D.my_synced_table
        	            	 
        	Test:       	TestAccept/bundle/resources/synced_database_tables/basic/DMS=true
        	Messages:   	bundle/resources/synced_database_tables/basic/out.summary.txt vs /tmp/TestAcceptbundleresourcessynced_database_tablesbasicDMS=tru1077315328/001/out.summary.txt

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.10: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/templates/default-python/integration_classic/output.txt
        +++ /tmp/TestAcceptbundletemplatesdefault-pythonintegration_classicD227570188/002/output.txt
        @@ -65,13 +65,6 @@
         +        "id": "[SAMPLE_JOB_ID]",
                  "job_clusters": [
                    {
        -@@ -127,5 +128,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "${resources.pipelines.project_name_[UNIQUE_NAME]_etl.id}"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -138,5 +139,6 @@
                      "unit": "DAYS"
                    }
        @@ -429,13 +422,6 @@
         +                "prod"
                        ]
                      },
        -@@ -128,5 +121,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID_2]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -134,5 +127,5 @@
                  ],
                  "trigger": {
        
FAIL

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/templates/default-python/integration_classic/output.txt
        +++ /tmp/TestAcceptbundletemplatesdefault-pythonintegration_classicD1290975526/002/output.txt
        @@ -65,13 +65,6 @@
         +        "id": "[SAMPLE_JOB_ID]",
                  "job_clusters": [
                    {
        -@@ -127,5 +128,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "${resources.pipelines.project_name_[UNIQUE_NAME]_etl.id}"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -138,5 +139,6 @@
                      "unit": "DAYS"
                    }
        @@ -429,13 +422,6 @@
         +                "prod"
                        ]
                      },
        -@@ -128,5 +121,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID_2]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -134,5 +127,5 @@
                  ],
                  "trigger": {
TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.11: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/templates/default-python/integration_classic/output.txt
        +++ /tmp/TestAcceptbundletemplatesdefault-pythonintegration_classicD424776802/002/output.txt
        @@ -65,13 +65,6 @@
         +        "id": "[SAMPLE_JOB_ID]",
                  "job_clusters": [
                    {
        -@@ -127,5 +128,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "${resources.pipelines.project_name_[UNIQUE_NAME]_etl.id}"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -138,5 +139,6 @@
                      "unit": "DAYS"
                    }
        @@ -429,13 +422,6 @@
         +                "prod"
                        ]
                      },
        -@@ -128,5 +121,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID_2]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -134,5 +127,5 @@
                  ],
                  "trigger": {

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.12: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/templates/default-python/integration_classic/output.txt
        +++ /tmp/TestAcceptbundletemplatesdefault-pythonintegration_classicD3833074704/002/output.txt
        @@ -65,13 +65,6 @@
         +        "id": "[SAMPLE_JOB_ID]",
                  "job_clusters": [
                    {
        -@@ -127,5 +128,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "${resources.pipelines.project_name_[UNIQUE_NAME]_etl.id}"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -138,5 +139,6 @@
                      "unit": "DAYS"
                    }
        @@ -429,13 +422,6 @@
         +                "prod"
                        ]
                      },
        -@@ -128,5 +121,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID_2]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -134,5 +127,5 @@
                  ],
                  "trigger": {

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.13: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/templates/default-python/integration_classic/output.txt
        +++ /tmp/TestAcceptbundletemplatesdefault-pythonintegration_classicD4136938888/002/output.txt
        @@ -65,13 +65,6 @@
         +        "id": "[SAMPLE_JOB_ID]",
                  "job_clusters": [
                    {
        -@@ -127,5 +128,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "${resources.pipelines.project_name_[UNIQUE_NAME]_etl.id}"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -138,5 +139,6 @@
                      "unit": "DAYS"
                    }
        @@ -429,13 +422,6 @@
         +                "prod"
                        ]
                      },
        -@@ -128,5 +121,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID_2]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -134,5 +127,5 @@
                  ],
                  "trigger": {

latest (v1.28.0): same output as main (4c4f104)

TestAccept/bundle/templates/default-python/integration_classic/DMS=/UV_PYTHON=3.9: branch ✅ | main (4c4f104) ❌ | latest (v1.28.0) ❌

main (4c4f104):

acceptance_test.go:1402: Diff:
        --- bundle/templates/default-python/integration_classic/output.txt
        +++ /tmp/TestAcceptbundletemplatesdefault-pythonintegration_classicD2415316135/002/output.txt
        @@ -65,13 +65,6 @@
         +        "id": "[SAMPLE_JOB_ID]",
                  "job_clusters": [
                    {
        -@@ -127,5 +128,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "${resources.pipelines.project_name_[UNIQUE_NAME]_etl.id}"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -138,5 +139,6 @@
                      "unit": "DAYS"
                    }
        @@ -429,13 +422,6 @@
         +                "prod"
                        ]
                      },
        -@@ -128,5 +121,5 @@
        -             ],
        -             "pipeline_task": {
        --              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID]"
        -+              "pipeline_id": "[PROJECT_NAME_UNIQUE_NAME_ETL_ID_2]"
        -             },
        -             "task_key": "refresh_pipeline"
         @@ -134,5 +127,5 @@
                  ],
                  "trigger": {

latest (v1.28.0): same output as main (4c4f104)

@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 60f9ffa

Run: 46033580851

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 3 186 20 5:32
💚​ aws-windows-latest-4core-16gb 3 186 20 6:02
💚​ azure linux-2core-8gb 3 185 20 5:24
💚​ azure-windows-latest-4core-16gb 3 185 20 6:07
💚​ gcp linux-2core-8gb 3 183 21 5:38
💚​ gcp-windows-latest-4core-16gb 3 183 21 5:00
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
💚​ TestAccept/bundle/resources/postgres_synced_tables/basic 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/postgres_synced_tables/basic/DMS= 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
3:59 gcp linux-2core-8gb TestAccept
3:27 azure linux-2core-8gb TestAccept
3:17 aws linux-2core-8gb TestAccept
3:04 azure-windows-latest-4core-16gb TestAccept
3:03 aws-windows-latest-4core-16gb TestAccept
2:43 gcp-windows-latest-4core-16gb TestAccept

denik and others added 4 commits November 27, 2026 12:18
- Resolve and type-check each resource on its own, so one bad reference
  does not undo resolution in the others; check the whole config converts
  before Mutate commits it (a failed conversion left it half-written).
- Leave references to sensitive fields, hashed state fields and state
  strings holding a literal ${...} unresolved.
- Cache parsed state per resource for the command.
- Job run URLs prefer the job the run was launched for.
- Synced database table URLs use catalog/schema/table, like other tables.
- New acceptance test bundle/resource_deps/summary_resolution.

aws: TestAccept/bundle/resources/synced_database_tables/basic TestAccept/bundle/resources/postgres_synced_tables/basic

Co-authored-by: Isaac <no-reply@databricks.com>
A field whose config references a sensitive field is deployed with the
secret interpolated, so its value in state holds the secret. Follow
${resources.*} references in the referenced field's config and leave the
reference unresolved when any of them reaches a sensitive field.

aws: TestAccept/bundle/resources/synced_database_tables/basic TestAccept/bundle/resources/postgres_synced_tables/basic

Co-authored-by: Isaac <no-reply@databricks.com>
Following references in config misses deployed values that predate a
local edit and references through a whole-object parent. Skip a resolved
value that contains the value of any sensitive field or sensitive
variable in the config, and follow references in parent fields too.

aws: TestAccept/bundle/resources/synced_database_tables/basic TestAccept/bundle/resources/postgres_synced_tables/basic

Co-authored-by: Isaac <no-reply@databricks.com>
A numeric secret deployed into an int field is stored as a number, so
compare the printed form of every scalar, not only strings.

aws: TestAccept/bundle/resources/synced_database_tables/basic TestAccept/bundle/resources/postgres_synced_tables/basic

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik marked this pull request as ready for review November 27, 2026 14:06
@denik
denik requested review from a team as code owners November 27, 2026 14:06

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

Automated review at 8780c04. Each finding was verified against the code.

Not ready yet: 1 blocking issue(s), tagged [blocking].

This PR makes bundle summary, bundle open and the pipelines open/logs/history commands resolve ${resources.*} references in every resource against deployed state, so names and URLs show real values. It also fixes the synced database table URL and the order in which a job run's URL picks its job id. There is a secret-exposure hole that should be fixed before merge: after a sensitive variable is rotated, a field that was built from it can still print the old value. The other comments are about duplicated helpers and the test script not following the repo's testing rules.

Questions

  1. The synced-table URL change in libs/workspaceurls/urls.go affects every caller of ResourceURL/BuildResourceURL, and the job-run URL order swap in job_run.go is a separate behaviour change. Both ride along with the reference resolution, and AGENTS.md asks for one change per PR. Should they move to their own PR(s), or do they have to land together? (non-blocking)

Comment thread bundle/direct/resolve_config.go Resolved
Comment thread bundle/direct/resolve_config.go Resolved
Comment thread bundle/direct/resolve_config.go Resolved
Comment thread bundle/direct/resolve_config.go Resolved

@Sankalp-Mittal Sankalp-Mittal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[AI Generated] Review by review-factory (Claude Sonnet 5.5 + Claude Opus 5.5 + Claude Opus 5.5, cross-verified). Only points the reviewers agreed on are posted.

Design, rethink before merging: Reading values from state is what needs dependsOnSensitiveField, SensitiveConfigValues/containsAny, the hash and literal guards and cachedStateField, and a rotated secret still leaks. A config-only lookup (explicit fields plus ids from statemgmt.Load) guarded by IsSensitiveField fixes every golden here, since dynvar.Resolve sends each chained hop through the lookup; references then match what their targets show.

Comment thread bundle/direct/resolve_config.go Resolved
Comment thread bundle/direct/resolve_config.go Resolved
Comment thread bundle/direct/resolve_config.go Resolved
Comment thread cmd/bundle/utils/process.go Resolved

@andrewnester andrewnester left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The secret-rotation repro in the automated review is rejected by bundle validate, since a sensitive variable can't be used in a job name, so I'd accept the documented edit-plus-rotation gap.

Comment thread bundle/direct/resolve_config.go Resolved
Per review: instead of reading referenced values from deployed state,
resolve ${resources.*} references from the config, which after
statemgmt.Load holds the ids of deployed resources. Sensitive variables
can only be used in sensitive fields, so skipping sensitive fields is
enough to keep secrets out of the output; the state guards (secret
chains, secret values, content hashes, literals) and the cached state
reader are gone.

- New mutator ResolveResourceReferencesForDisplay, run with InitIDs.
- Share the sensitive-field check with validate
  (dresources.IsSensitiveResourceField).
- Use config.ResourcesTypes(); log skipped resources at debug level.
- Keep references to explicit nulls; no synced table URL from a name
  that still holds a reference.
- Unit test; acceptance test covers cycles and local edits.

aws: TestAccept/bundle/resources/synced_database_tables/basic TestAccept/bundle/resources/postgres_synced_tables/basic

Co-authored-by: Isaac <no-reply@databricks.com>
@denik denik changed the title bundle summary/open: show deployed values of ${resources.*} references bundle summary/open: resolve ${resources.*} references in names and URLs Nov 27, 2026
@denik

denik commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Response to the reviews on 8780c04, pushed as one commit, 60f9ffa.

@Sankalp-Mittal, design: agreed and reworked. A new mutator, ResolveResourceReferencesForDisplay, resolves references from config only: explicit fields plus the ids statemgmt.Load sets. References to sensitive fields are skipped with the validator's own check. Every golden in this PR still comes out the same, and the Badness notes stay fixed. The state guards are gone: secret chains, secret values, content hashes, literals, and the state reader. The production diff shrank to the mutator, a shared sensitive-field helper and the two URL fixes. Trade-off: after an undeployed local edit, a reference shows the config value, which matches how the referenced resource itself is shown. The PR description lists this.

@andrewnester, rotation repro: confirmed. validate.SensitiveVariableReferences rejects a sensitive variable in a job name, and summary runs that validator too. With no state reads, the edit-plus-rotation gap from the previous head is closed as well.

review-oss-bot question, splitting the URL changes: both stay here. The job-run order is needed by this change: resolving the current job_id would otherwise point a run's URL at another job after a local edit (the acceptance test covers it). The synced-table URL is half of the first Badness note ("and a working URL"); it now also skips names that still hold a reference.

An independent re-review (Astra) of the new head found nothing blocking. I fixed explicit-null interpolation and added per-resource debug logs. The gaps it raised that are not new to this PR are in "Gaps and risks".

AI agent (opus5.5, isaac_claude)

@Sankalp-Mittal Sankalp-Mittal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[AI Generated] Review by review-factory (Claude Sonnet 5.5 + Claude Opus 5.5 + Claude Opus 5.5, cross-verified). Only points the reviewers agreed on are posted.

No issues found.

@denik
denik added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit dccdf47 Nov 27, 2026
28 checks passed
@denik
denik deleted the summary-resolve-resource-refs branch November 27, 2026 18:17
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.

4 participants