Skip to content

Add thumbnail_path to the apps resource - #7728

Merged
janniklasrose merged 17 commits into
mainfrom
fjakobs/app-thumbnail
Nov 24, 2026
Merged

janniklasrose merged 17 commits into
mainfrom
fjakobs/app-thumbnail

Conversation

@fjakobs

@fjakobs fjakobs commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Changes

New resources.apps.<key>.thumbnail_path: path of a local PNG or JPEG image, relative to the file that defines the app. bundle deploy uploads it as the app's thumbnail in the Apps UI (PATCH /api/2.0/apps/{name}/thumbnail).

  • The Apps API can't return the image, only thumbnail_url, so the direct engine keeps a hash of it in state (hashed_fields, as for dashboards.serialized_dashboard). An unchanged file makes no API call. New content uploads only the thumbnail, without an app update. Removing the field deletes the thumbnail (DELETE .../thumbnail). A bundle that never sets the field leaves a thumbnail uploaded in the UI alone.
  • The file is checked when the bundle loads, so bundle validate rejects a missing file, a file that isn't PNG or JPEG (detected by its signature, as the API does), or one over 250,000 bytes.
  • On create, the upload runs right after the app is created. If it fails, the deploy warns and leaves the thumbnail out of state, so the next deploy retries it. Failing the create there would leave the new app out of the state.
  • Fake server handlers for the two endpoints, schema annotation, and regenerated JSON schema, refschema and Python models.

Why

Apps can have a thumbnail, but bundles had no way to set it.

  • Name: thumbnail_path follows the _path naming of other local-file fields (source_code_path, file_path). It is also the name of the matching databricks_app argument in Add thumbnail_path to databricks_app terraform-provider-databricks#6196.
  • Limit: 250,000 bytes is the Apps UI's limit and the one the Terraform provider checks at plan time, so all clients accept the same images. The backend allows more (requests up to 1 MiB).

Tests

  • Unit tests for the file checks (PNG, JPEG, exactly 250,000 bytes accepted, 250,001 rejected, GIF, empty file, missing file) and the path visitor.
  • New acceptance tests:
    • bundle/resources/apps/thumbnail records the requests for: create plus upload, an unchanged redeploy (no thumbnail request), new content (thumbnail upload only), deploy --plan from a saved plan (uploads the image, not its hash), removal (delete), and destroy.
    • thumbnail-invalid covers bundle validate errors.
    • thumbnail-upload-fails covers the warn-and-retry path on create.
  • Ran ./task fmt, ./task checks and ./task lint, go test ./bundle/... ./libs/testserver/... and the full local acceptance suite.
  • Ran by hand against a live staging workspace with a locally built CLI:
    • Create sets thumbnail_url.
    • An unchanged redeploy only sends GET /apps/{name}.
    • New content sends a single PATCH .../thumbnail.
    • A JPEG works.
    • A GIF fails bundle validate.
    • Removing the field sends DELETE .../thumbnail.
    • Destroy works.

This pull request and its description were written by Isaac.

@fjakobs
fjakobs requested review from a team as code owners November 17, 2026 16:29
@github-actions github-actions Bot added the DABs DABs related issues label Nov 17, 2026
`resources.apps.<key>.thumbnail_path` points at a local PNG or JPEG image
that `bundle deploy` uploads as the app's thumbnail in the Apps UI. The
Apps API can't return the image, so the direct engine keeps only a hash of
it in state (hashed_fields): an unchanged file makes no API call, new
content uploads only the thumbnail (no app update), and removing the field
deletes the thumbnail.

The file is checked when the bundle is loaded, so `bundle validate` already
rejects files that aren't PNG or JPEG (by signature, like the API) or are
larger than 250,000 bytes, the limit of the Apps UI and of the Terraform
provider's databricks_app.thumbnail_path.

Co-authored-by: Isaac <no-reply@databricks.com>
@fjakobs
fjakobs force-pushed the fjakobs/app-thumbnail branch from bb827e0 to 8eac7c0 Compare November 17, 2026 16:29
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Commit: 22bcfbccd | Workflow run

Regression test report

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

8 tests: regression=8 unreleased=0 coverage=0 failing=0
test branch main (93f8848) latest (v1.27.0)
TestAccept/bundle/refschema/DMS= ✅ ❌ ❌
TestAccept/bundle/refschema/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/thumbnail-invalid/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/thumbnail-invalid/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/thumbnail-upload-fails/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/thumbnail-upload-fails/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/thumbnail/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/thumbnail/DMS=true ✅ ❌ ❌
TestAccept/bundle/refschema/DMS=: branch ✅ | main (93f8848) ❌ | latest (v1.27.0) ❌

main (93f8848):

acceptance_test.go:1402: Diff:
        --- bundle/refschema/output/apps.txt
        +++ /tmp/TestAcceptbundlerefschemaDMS=1350644223/001/output/apps.txt
        @@ -230,9 +230,6 @@
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.logs_table	string	ALL
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.metrics_table	string	ALL
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.traces_table	string	ALL
        -resources.apps.*.thumbnail	string	STATE
        -resources.apps.*.thumbnail_content	string	INPUT
        -resources.apps.*.thumbnail_path	string	INPUT
         resources.apps.*.thumbnail_url	string	ALL
         resources.apps.*.update_time	string	ALL
         resources.apps.*.updater	string	ALL

latest (v1.27.0):

acceptance_test.go:1402: Diff:
        --- bundle/refschema/output/postgres_projects.txt
        +++ /tmp/TestAcceptbundlerefschemaDMS=3951959597/001/output/postgres_projects.txt
        @@ -41,7 +41,6 @@
         resources.postgres_projects.*.status.branch_logical_size_limit_bytes	int64	REMOTE
         resources.postgres_projects.*.status.budget_policy_id	string	REMOTE
         resources.postgres_projects.*.status.compute_last_active_time	*time.Time	REMOTE
        -resources.postgres_projects.*.status.compute_policy_id	string	REMOTE
         resources.postgres_projects.*.status.custom_tags	[]postgres.ProjectCustomTag	REMOTE
         resources.postgres_projects.*.status.custom_tags[*]	postgres.ProjectCustomTag	REMOTE
         resources.postgres_projects.*.status.custom_tags[*].key	string	REMOTE
        
    acceptance_test.go:1402: Diff:
        --- bundle/refschema/output/apps.txt
        +++ /tmp/TestAcceptbundlerefschemaDMS=3951959597/001/output/apps.txt
        @@ -230,9 +230,6 @@
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.logs_table	string	ALL
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.metrics_table	string	ALL
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.traces_table	string	ALL
        -resources.apps.*.thumbnail	string	STATE
        -resources.apps.*.thumbnail_content	string	INPUT
        -resources.apps.*.thumbnail_path	string	INPUT
         resources.apps.*.thumbnail_url	string	ALL
         resources.apps.*.update_time	string	ALL
         resources.apps.*.updater	string	ALL
        
    acceptance_test.go:1402: Diff:
        --- bundle/refschema/output/features.txt
        +++ /tmp/TestAcceptbundlerefschemaDMS=3951959597/001/output/features.txt
        @@ -85,20 +85,6 @@
         resources.features.*.function.extra_parameters[*].key	string	ALL
         resources.features.*.function.extra_parameters[*].value	string	ALL
         resources.features.*.function.function_type	ml.FunctionFunctionType	ALL
        -resources.features.*.function.lookup	*ml.Lookup	ALL
        -resources.features.*.function.lookup.entities	[]ml.EntityBinding	ALL
        -resources.features.*.function.lookup.entities[*]	ml.EntityBinding	ALL
        -resources.features.*.function.lookup.entities[*].entity	string	ALL
        -resources.features.*.function.lookup.entities[*].input	ml.InputReference	ALL
        -resources.features.*.function.lookup.entities[*].input.feature	*ml.FeatureReference	ALL
        -resources.features.*.function.lookup.entities[*].input.feature.feature	string	ALL
        -resources.features.*.function.lookup.feature	ml.FeatureReference	ALL
        -resources.features.*.function.lookup.feature.feature	string	ALL
        -resources.features.*.function.secondary_keys	*ml.SecondaryKeys	ALL
        -resources.features.*.function.secondary_keys.feature	ml.FeatureReference	ALL
        -resources.features.*.function.secondary_keys.feature.feature	string	ALL
        -resources.features.*.function.secondary_keys.key	string	ALL
        -resources.features.*.function.secondary_keys.max_keys	int64	ALL
         resources.features.*.id	string	INPUT
         resources.features.*.inputs	[]string	ALL
         resources.features.*.inputs[*]	string	ALL
TestAccept/bundle/refschema/DMS=true: branch ✅ | main (93f8848) ❌ | latest (v1.27.0) ❌

main (93f8848):

acceptance_test.go:1402: Diff:
        --- bundle/refschema/output/apps.txt
        +++ /tmp/TestAcceptbundlerefschemaDMS=true1134581267/001/output/apps.txt
        @@ -230,9 +230,6 @@
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.logs_table	string	ALL
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.metrics_table	string	ALL
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.traces_table	string	ALL
        -resources.apps.*.thumbnail	string	STATE
        -resources.apps.*.thumbnail_content	string	INPUT
        -resources.apps.*.thumbnail_path	string	INPUT
         resources.apps.*.thumbnail_url	string	ALL
         resources.apps.*.update_time	string	ALL
         resources.apps.*.updater	string	ALL

latest (v1.27.0):

acceptance_test.go:1402: Diff:
        --- bundle/refschema/output/features.txt
        +++ /tmp/TestAcceptbundlerefschemaDMS=true3547251814/001/output/features.txt
        @@ -85,20 +85,6 @@
         resources.features.*.function.extra_parameters[*].key	string	ALL
         resources.features.*.function.extra_parameters[*].value	string	ALL
         resources.features.*.function.function_type	ml.FunctionFunctionType	ALL
        -resources.features.*.function.lookup	*ml.Lookup	ALL
        -resources.features.*.function.lookup.entities	[]ml.EntityBinding	ALL
        -resources.features.*.function.lookup.entities[*]	ml.EntityBinding	ALL
        -resources.features.*.function.lookup.entities[*].entity	string	ALL
        -resources.features.*.function.lookup.entities[*].input	ml.InputReference	ALL
        -resources.features.*.function.lookup.entities[*].input.feature	*ml.FeatureReference	ALL
        -resources.features.*.function.lookup.entities[*].input.feature.feature	string	ALL
        -resources.features.*.function.lookup.feature	ml.FeatureReference	ALL
        -resources.features.*.function.lookup.feature.feature	string	ALL
        -resources.features.*.function.secondary_keys	*ml.SecondaryKeys	ALL
        -resources.features.*.function.secondary_keys.feature	ml.FeatureReference	ALL
        -resources.features.*.function.secondary_keys.feature.feature	string	ALL
        -resources.features.*.function.secondary_keys.key	string	ALL
        -resources.features.*.function.secondary_keys.max_keys	int64	ALL
         resources.features.*.id	string	INPUT
         resources.features.*.inputs	[]string	ALL
         resources.features.*.inputs[*]	string	ALL
        
    acceptance_test.go:1402: Diff:
        --- bundle/refschema/output/postgres_projects.txt
        +++ /tmp/TestAcceptbundlerefschemaDMS=true3547251814/001/output/postgres_projects.txt
        @@ -41,7 +41,6 @@
         resources.postgres_projects.*.status.branch_logical_size_limit_bytes	int64	REMOTE
         resources.postgres_projects.*.status.budget_policy_id	string	REMOTE
         resources.postgres_projects.*.status.compute_last_active_time	*time.Time	REMOTE
        -resources.postgres_projects.*.status.compute_policy_id	string	REMOTE
         resources.postgres_projects.*.status.custom_tags	[]postgres.ProjectCustomTag	REMOTE
         resources.postgres_projects.*.status.custom_tags[*]	postgres.ProjectCustomTag	REMOTE
         resources.postgres_projects.*.status.custom_tags[*].key	string	REMOTE
        
    acceptance_test.go:1402: Diff:
        --- bundle/refschema/output/apps.txt
        +++ /tmp/TestAcceptbundlerefschemaDMS=true3547251814/001/output/apps.txt
        @@ -230,9 +230,6 @@
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.logs_table	string	ALL
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.metrics_table	string	ALL
         resources.apps.*.telemetry_export_destinations[*].unity_catalog.traces_table	string	ALL
        -resources.apps.*.thumbnail	string	STATE
        -resources.apps.*.thumbnail_content	string	INPUT
        -resources.apps.*.thumbnail_path	string	INPUT
         resources.apps.*.thumbnail_url	string	ALL
         resources.apps.*.update_time	string	ALL
         resources.apps.*.updater	string	ALL
TestAccept/bundle/resources/apps/thumbnail-invalid/DMS=: branch ✅ | main (93f8848) ❌ | latest (v1.27.0) ❌

main (93f8848):

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:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "\n=== thumbnail_path: ./thumbnail.gif\n\n>>> musterr [CLI] bundle validate\nError: app thumbnail thumbnail.gif must be a PNG or JPEG image, got image/gif\n  in databricks.yml:9:23\n\nName: test-bundle\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default\n\nFound 1 error\n\n=== thumbnail_path: ./large.png\n\n>>> musterr [CLI] bundle validate\nError: app thumbnail large.png is 250001 bytes, larger than the limit of 250000 bytes\n  in databricks.yml:9:23\n\nName: test-bundle\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default\n\nFound 1 error\n\n=== thumbnail_path: ./missing.png\n\n>>> musterr [CLI] bundle validate\nError: failed to read app thumbnail missing.png: open missing.png: no such file or directory\n  in databricks.yml:9:23\n\nName: test-bundle\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default\n\nFound 1 error\n"
        	            	actual  : "\n=== thumbnail_path: ./thumbnail.gif\n\n>>> musterr [CLI] bundle validate\nWarning: unknown field: thumbnail_path\n  at resources.apps.myapp\n  in databricks.yml:9:7\n\nName: test-bundle\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default\n\nFound 1 warning\n\nUnexpected success\n\nExit code: 1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -4,4 +4,5 @@
        	            	 >>> musterr [CLI] bundle validate
        	            	-Error: app thumbnail thumbnail.gif must be a PNG or JPEG image, got image/gif
        	            	-  in databricks.yml:9:23
        	            	+Warning: unknown field: thumbnail_path
        	            	+  at resources.apps.myapp
        	            	+  in databricks.yml:9:7
        	            	 
        	            	@@ -13,31 +14,7 @@
        	            	 
        	            	-Found 1 error
        	            	+Found 1 warning
        	            	 
        	            	-=== thumbnail_path: ./large.png
        	            	+Unexpected success
        	            	 
        	            	->>> musterr [CLI] bundle validate
        	            	-Error: app thumbnail large.png is 250001 bytes, larger than the limit of 250000 bytes
        	            	-  in databricks.yml:9:23
        	            	+Exit code: 1
        	            	 
        	            	-Name: test-bundle
        	            	-Target: default
        	            	-Workspace:
        	            	-  User: [USERNAME]
        	            	-  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
        	            	-
        	            	-Found 1 error
        	            	-
        	            	-=== thumbnail_path: ./missing.png
        	            	-
        	            	->>> musterr [CLI] bundle validate
        	            	-Error: failed to read app thumbnail missing.png: open missing.png: no such file or directory
        	            	-  in databricks.yml:9:23
        	            	-
        	            	-Name: test-bundle
        	            	-Target: default
        	            	-Workspace:
        	            	-  User: [USERNAME]
        	            	-  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
        	            	-
        	            	-Found 1 error
        	            	-
        	Test:       	TestAccept/bundle/resources/apps/thumbnail-invalid/DMS=
        	Messages:   	bundle/resources/apps/thumbnail-invalid/output.txt vs /tmp/TestAcceptbundleresourcesappsthumbnail-invalidDMS=3426249119/002/output.txt
    acceptance_test.go:1192: Test produced unexpected files:
        .databricks/.gitignore

latest (v1.27.0): same output as main (93f8848)

TestAccept/bundle/resources/apps/thumbnail-invalid/DMS=true: branch ✅ | main (93f8848) ❌ | latest (v1.27.0) ❌

main (93f8848):

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:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "\n=== thumbnail_path: ./thumbnail.gif\n\n>>> musterr [CLI] bundle validate\nError: app thumbnail thumbnail.gif must be a PNG or JPEG image, got image/gif\n  in databricks.yml:9:23\n\nName: test-bundle\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default\n\nFound 1 error\n\n=== thumbnail_path: ./large.png\n\n>>> musterr [CLI] bundle validate\nError: app thumbnail large.png is 250001 bytes, larger than the limit of 250000 bytes\n  in databricks.yml:9:23\n\nName: test-bundle\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default\n\nFound 1 error\n\n=== thumbnail_path: ./missing.png\n\n>>> musterr [CLI] bundle validate\nError: failed to read app thumbnail missing.png: open missing.png: no such file or directory\n  in databricks.yml:9:23\n\nName: test-bundle\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default\n\nFound 1 error\n"
        	            	actual  : "\n=== thumbnail_path: ./thumbnail.gif\n\n>>> musterr [CLI] bundle validate\nWarning: unknown field: thumbnail_path\n  at resources.apps.myapp\n  in databricks.yml:9:7\n\nName: test-bundle\nTarget: default\nWorkspace:\n  User: [USERNAME]\n  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default\n\nFound 1 warning\n\nUnexpected success\n\nExit code: 1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -4,4 +4,5 @@
        	            	 >>> musterr [CLI] bundle validate
        	            	-Error: app thumbnail thumbnail.gif must be a PNG or JPEG image, got image/gif
        	            	-  in databricks.yml:9:23
        	            	+Warning: unknown field: thumbnail_path
        	            	+  at resources.apps.myapp
        	            	+  in databricks.yml:9:7
        	            	 
        	            	@@ -13,31 +14,7 @@
        	            	 
        	            	-Found 1 error
        	            	+Found 1 warning
        	            	 
        	            	-=== thumbnail_path: ./large.png
        	            	+Unexpected success
        	            	 
        	            	->>> musterr [CLI] bundle validate
        	            	-Error: app thumbnail large.png is 250001 bytes, larger than the limit of 250000 bytes
        	            	-  in databricks.yml:9:23
        	            	+Exit code: 1
        	            	 
        	            	-Name: test-bundle
        	            	-Target: default
        	            	-Workspace:
        	            	-  User: [USERNAME]
        	            	-  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
        	            	-
        	            	-Found 1 error
        	            	-
        	            	-=== thumbnail_path: ./missing.png
        	            	-
        	            	->>> musterr [CLI] bundle validate
        	            	-Error: failed to read app thumbnail missing.png: open missing.png: no such file or directory
        	            	-  in databricks.yml:9:23
        	            	-
        	            	-Name: test-bundle
        	            	-Target: default
        	            	-Workspace:
        	            	-  User: [USERNAME]
        	            	-  Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
        	            	-
        	            	-Found 1 error
        	            	-
        	Test:       	TestAccept/bundle/resources/apps/thumbnail-invalid/DMS=true
        	Messages:   	bundle/resources/apps/thumbnail-invalid/output.txt vs /tmp/TestAcceptbundleresourcesappsthumbnail-invalidDMS=true574486663/002/output.txt
    acceptance_test.go:1192: Test produced unexpected files:
        .databricks/.gitignore

latest (v1.27.0): same output as main (93f8848)

TestAccept/bundle/resources/apps/thumbnail-upload-fails/DMS=: branch ✅ | main (93f8848) ❌ | latest (v1.27.0) ❌

main (93f8848):

acceptance_test.go:1402: Diff:
        --- bundle/resources/apps/thumbnail-upload-fails/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsthumbnail-upload-failsDMS=2144768884/002/output.txt
        @@ -2,8 +2,11 @@
         === A failed upload after create keeps the app in state and leaves the thumbnail out of it
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Warning: failed to upload the thumbnail of app myappname, the next deploy retries it: Unsupported image
         Created apps.mykey
         Files: 2 uploaded, 0 deleted
         Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
        @@ -14,25 +16,33 @@
         === The next deploy retries the upload
         
         >>> [CLI] bundle plan
        -update apps.mykey
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
         >>> musterr [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Error: cannot update resources.apps.mykey: updating id=myappname: Unsupported image (400 INVALID_PARAMETER_VALUE)
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        -Endpoint: PATCH [DATABRICKS_URL]/api/2.0/apps/myappname/thumbnail
        -HTTP Status: 400 Bad Request
        -API error_code: INVALID_PARAMETER_VALUE
        -API message: Unsupported image
        -
        +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
         Files: 0 uploaded, 0 deleted
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
        +Unexpected success
        +
         >>> [CLI] bundle destroy --auto-approve
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         The following resources will be deleted:
           delete resources.apps.mykey
         
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
         
         Destroy: 1 deleted
        +
        +Exit code: 1

latest (v1.27.0): same output as main (93f8848)

TestAccept/bundle/resources/apps/thumbnail-upload-fails/DMS=true: branch ✅ | main (93f8848) ❌ | latest (v1.27.0) ❌

main (93f8848):

acceptance_test.go:1402: Diff:
        --- bundle/resources/apps/thumbnail-upload-fails/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsthumbnail-upload-failsDMS=true92957501/002/output.txt
        @@ -2,8 +2,11 @@
         === A failed upload after create keeps the app in state and leaves the thumbnail out of it
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Warning: failed to upload the thumbnail of app myappname, the next deploy retries it: Unsupported image
         Created apps.mykey
         Files: 2 uploaded, 0 deleted
         Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
        @@ -14,25 +16,33 @@
         === The next deploy retries the upload
         
         >>> [CLI] bundle plan
        -update apps.mykey
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
         >>> musterr [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Error: cannot update resources.apps.mykey: updating id=myappname: Unsupported image (400 INVALID_PARAMETER_VALUE)
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        -Endpoint: PATCH [DATABRICKS_URL]/api/2.0/apps/myappname/thumbnail
        -HTTP Status: 400 Bad Request
        -API error_code: INVALID_PARAMETER_VALUE
        -API message: Unsupported image
        -
        +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
         Files: 0 uploaded, 0 deleted
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
        +Unexpected success
        +
         >>> [CLI] bundle destroy --auto-approve
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         The following resources will be deleted:
           delete resources.apps.mykey
         
         All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
         
         Destroy: 1 deleted
        +
        +Exit code: 1
        
FAIL

latest (v1.27.0): same output as main (93f8848)

TestAccept/bundle/resources/apps/thumbnail/DMS=: branch ✅ | main (93f8848) ❌ | latest (v1.27.0) ❌

main (93f8848):

acceptance_test.go:1402: Diff:
        --- bundle/resources/apps/thumbnail/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsthumbnailDMS=3886886213/002/output.txt
        @@ -2,6 +2,10 @@
         === Deploy with a thumbnail: the image is uploaded after the app is created
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
         Created apps.mykey
         Files: 5 uploaded, 0 deleted
        @@ -10,19 +14,31 @@
         >>> print_requests
         
         >>> [CLI] apps get myappname
        -"/ajax-api/2.0/thumbnails/raw/apps/1000/SMALL_DEFAULT.png"
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        +null
        +
         === State keeps only a hash of the image
         
         >>> jq .state["resources.apps.mykey"].state.thumbnail .databricks/bundle/default/resources.json
        -"sha256:[HASH]"
        +null
         
         === Redeploy with an unchanged image: no thumbnail request
         
         >>> [CLI] bundle plan
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
         Files: 1 uploaded, 0 deleted
         Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
        @@ -32,41 +37,49 @@
         === New content at the same path: only the thumbnail is uploaded
         
         >>> [CLI] bundle plan
        -update apps.mykey
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated apps.mykey
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests
         
         === Deploy from a saved plan: the plan carries the image, not its hash
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        +
         >>> [CLI] bundle deploy --plan tmp.plan.json
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated apps.mykey
        -Files: 3 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
        +Files: 2 uploaded, 0 deleted
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests.py //apps ^//api/2.0/bundle
        -iVBORw0KGgoA
         
         === Remove thumbnail_path: the thumbnail is deleted
         
         >>> [CLI] bundle plan
        -update apps.mykey
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        -
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated apps.mykey
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests
         
        
    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: "{\n  \"method\": \"POST\",\n  \"path\": \"/api/2.0/apps\",\n  \"q\": {\n    \"no_compute\": \"true\"\n  },\n  \"body\": {\n    \"description\": \"\",\n    \"name\": \"myappname\",\n    \"source_code_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app\"\n  }\n}\n{\n  \"method\": \"PATCH\",\n  \"path\": \"/api/2.0/apps/myappname/thumbnail\",\n  \"body\": {\n    \"app_thumbnail\": {\n      \"thumbnail\": \"iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAIAAAC1qksFAAAAHklEQVR42mNgYPhPYzRqwagFoxaMWjBqwagFdLAAAM9QPd+sTeHpAAAAAElFTkSuQmCC\"\n    }\n  }\n}\n{\n  \"method\": \"PATCH\",\n  \"path\": \"/api/2.0/apps/myappname/thumbnail\",\n  \"body\": {\n    \"app_thumbnail\": {\n      \"thumbnail\": \"iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAIAAAC1qksFAAAAH0lEQVR42mP4z8BAU8QwasGoBaMWjFowasGoBfSwAABLGz3fTe+jHwAAAABJRU5ErkJggg==\"\n    }\n  }\n}\n{\n  \"method\": \"DELETE\",\n  \"path\": \"/api/2.0/apps/myappname/thumbnail\"\n}\n{\n  \"method\": \"DELETE\",\n  \"path\": \"/api/2.0/apps/myappname\"\n}\n"
        	            	actual  : "{\n  \"method\": \"POST\",\n  \"path\": \"/api/2.0/apps\",\n  \"q\": {\n    \"no_compute\": \"true\"\n  },\n  \"body\": {\n    \"description\": \"\",\n    \"name\": \"myappname\",\n    \"source_code_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app\"\n  }\n}\n{\n  \"method\": \"DELETE\",\n  \"path\": \"/api/2.0/apps/myappname\"\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -13,24 +13,2 @@
        	            	 {
        	            	-  "method": "PATCH",
        	            	-  "path": "/api/2.0/apps/myappname/thumbnail",
        	            	-  "body": {
        	            	-    "app_thumbnail": {
        	            	-      "thumbnail": "iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAIAAAC1qksFAAAAHklEQVR42mNgYPhPYzRqwagFoxaMWjBqwagFdLAAAM9QPd+sTeHpAAAAAElFTkSuQmCC"
        	            	-    }
        	            	-  }
        	            	-}
        	            	-{
        	            	-  "method": "PATCH",
        	            	-  "path": "/api/2.0/apps/myappname/thumbnail",
        	            	-  "body": {
        	            	-    "app_thumbnail": {
        	            	-      "thumbnail": "iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAIAAAC1qksFAAAAH0lEQVR42mP4z8BAU8QwasGoBaMWjFowasGoBfSwAABLGz3fTe+jHwAAAABJRU5ErkJggg=="
        	            	-    }
        	            	-  }
        	            	-}
        	            	-{
        	            	-  "method": "DELETE",
        	            	-  "path": "/api/2.0/apps/myappname/thumbnail"
        	            	-}
        	            	-{
        	            	   "method": "DELETE",
        	Test:       	TestAccept/bundle/resources/apps/thumbnail/DMS=
        	Messages:   	bundle/resources/apps/thumbnail/out.requests.json vs /tmp/TestAcceptbundleresourcesappsthumbnailDMS=3886886213/001/out.requests.json

latest (v1.27.0): same output as main (93f8848)

TestAccept/bundle/resources/apps/thumbnail/DMS=true: branch ✅ | main (93f8848) ❌ | latest (v1.27.0) ❌

main (93f8848):

acceptance_test.go:1402: Diff:
        --- bundle/resources/apps/thumbnail/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsthumbnailDMS=true1853405457/002/output.txt
        @@ -2,6 +2,10 @@
         === Deploy with a thumbnail: the image is uploaded after the app is created
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
         Created apps.mykey
         Files: 5 uploaded, 0 deleted
        @@ -10,19 +14,31 @@
         >>> print_requests
         
         >>> [CLI] apps get myappname
        -"/ajax-api/2.0/thumbnails/raw/apps/1000/SMALL_DEFAULT.png"
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        +null
        +
         === State keeps only a hash of the image
         
         >>> jq .state["resources.apps.mykey"].state.thumbnail .databricks/bundle/default/resources.json
        -"sha256:[HASH]"
        +null
         
         === Redeploy with an unchanged image: no thumbnail request
         
         >>> [CLI] bundle plan
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
         Files: 1 uploaded, 0 deleted
         Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
        @@ -32,41 +37,49 @@
         === New content at the same path: only the thumbnail is uploaded
         
         >>> [CLI] bundle plan
        -update apps.mykey
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated apps.mykey
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests
         
         === Deploy from a saved plan: the plan carries the image, not its hash
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
         
        +
         >>> [CLI] bundle deploy --plan tmp.plan.json
        +Warning: unknown field: thumbnail_path
        +  at resources.apps.mykey
        +  in databricks.yml:9:7
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated apps.mykey
        -Files: 3 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
        +Files: 2 uploaded, 0 deleted
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests.py //apps ^//api/2.0/bundle
        -iVBORw0KGgoA
         
         === Remove thumbnail_path: the thumbnail is deleted
         
         >>> [CLI] bundle plan
        -update apps.mykey
        +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged
         
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        -
         >>> [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated apps.mykey
         Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
         
         >>> print_requests
         
        
    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: "{\n  \"method\": \"POST\",\n  \"path\": \"/api/2.0/apps\",\n  \"q\": {\n    \"no_compute\": \"true\"\n  },\n  \"body\": {\n    \"description\": \"\",\n    \"name\": \"myappname\",\n    \"source_code_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app\"\n  }\n}\n{\n  \"method\": \"PATCH\",\n  \"path\": \"/api/2.0/apps/myappname/thumbnail\",\n  \"body\": {\n    \"app_thumbnail\": {\n      \"thumbnail\": \"iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAIAAAC1qksFAAAAHklEQVR42mNgYPhPYzRqwagFoxaMWjBqwagFdLAAAM9QPd+sTeHpAAAAAElFTkSuQmCC\"\n    }\n  }\n}\n{\n  \"method\": \"PATCH\",\n  \"path\": \"/api/2.0/apps/myappname/thumbnail\",\n  \"body\": {\n    \"app_thumbnail\": {\n      \"thumbnail\": \"iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAIAAAC1qksFAAAAH0lEQVR42mP4z8BAU8QwasGoBaMWjFowasGoBfSwAABLGz3fTe+jHwAAAABJRU5ErkJggg==\"\n    }\n  }\n}\n{\n  \"method\": \"DELETE\",\n  \"path\": \"/api/2.0/apps/myappname/thumbnail\"\n}\n{\n  \"method\": \"DELETE\",\n  \"path\": \"/api/2.0/apps/myappname\"\n}\n"
        	            	actual  : "{\n  \"method\": \"POST\",\n  \"path\": \"/api/2.0/apps\",\n  \"q\": {\n    \"no_compute\": \"true\"\n  },\n  \"body\": {\n    \"description\": \"\",\n    \"name\": \"myappname\",\n    \"source_code_path\": \"/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app\"\n  }\n}\n{\n  \"method\": \"DELETE\",\n  \"path\": \"/api/2.0/apps/myappname\"\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -13,24 +13,2 @@
        	            	 {
        	            	-  "method": "PATCH",
        	            	-  "path": "/api/2.0/apps/myappname/thumbnail",
        	            	-  "body": {
        	            	-    "app_thumbnail": {
        	            	-      "thumbnail": "iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAIAAAC1qksFAAAAHklEQVR42mNgYPhPYzRqwagFoxaMWjBqwagFdLAAAM9QPd+sTeHpAAAAAElFTkSuQmCC"
        	            	-    }
        	            	-  }
        	            	-}
        	            	-{
        	            	-  "method": "PATCH",
        	            	-  "path": "/api/2.0/apps/myappname/thumbnail",
        	            	-  "body": {
        	            	-    "app_thumbnail": {
        	            	-      "thumbnail": "iVBORw0KGgoAAAANSUhEUgAAACAAAAASCAIAAAC1qksFAAAAH0lEQVR42mP4z8BAU8QwasGoBaMWjFowasGoBfSwAABLGz3fTe+jHwAAAABJRU5ErkJggg=="
        	            	-    }
        	            	-  }
        	            	-}
        	            	-{
        	            	-  "method": "DELETE",
        	            	-  "path": "/api/2.0/apps/myappname/thumbnail"
        	            	-}
        	            	-{
        	            	   "method": "DELETE",
        	Test:       	TestAccept/bundle/resources/apps/thumbnail/DMS=true
        	Messages:   	bundle/resources/apps/thumbnail/out.requests.json vs /tmp/TestAcceptbundleresourcesappsthumbnailDMS=true1853405457/001/out.requests.json

latest (v1.27.0): same output as main (93f8848)

@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 22bcfbc

Run: 45373974840

Env 🔄​flaky 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 275 22 6:38
💚​ aws-windows-latest-4core-16gb 1 277 20 6:11
🔄​ azure linux-2core-8gb 3 1 271 22 33:51
💚​ azure-windows-latest-4core-16gb 1 276 20 7:45
💚​ gcp linux-2core-8gb 1 275 22 8:52
💚​ gcp-windows-latest-4core-16gb 1 277 20 7:55
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
🔄​ TestExportDir ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
🔄​ TestExportDirDoesNotOverwrite ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
🔄​ TestExportDirWithOverwriteFlag ✅​p ✅​p 🔄​f ✅​p ✅​p ✅​p
Top 6 slowest tests (at least 2 minutes):
duration env testname
7:47 gcp-windows-latest-4core-16gb TestAccept
7:37 azure-windows-latest-4core-16gb TestAccept
6:04 aws-windows-latest-4core-16gb TestAccept
4:28 gcp linux-2core-8gb TestAccept
4:02 aws linux-2core-8gb TestAccept
3:31 azure linux-2core-8gb TestAccept

@janniklasrose

Copy link
Copy Markdown
Member

/review

Comment thread libs/testserver/apps.go Resolved
Comment thread bundle/direct/dresources/app.go Resolved
trap cleanup EXIT

title "A failed upload after create keeps the app in state and leaves the thumbnail out of it"
trace $CLI bundle deploy

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

use musterr

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Kept errcode here deliberately: this deploy should exit 0. The app was already created, so failing the deploy would leave it out of the bundle state and the next deploy would try to create it again (name conflict). The warning keeps the app managed with the thumbnail left out of state, so the next deploy retries it — that retry is the musterr in the next section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Correction to my reply above: line 7 has no errcode, it is a plain trace. This first deploy is expected to succeed (with the upload warning), so neither errcode nor musterr fits; the failing deploy is the retry at line 12, which now uses musterr.

fjakobs and others added 3 commits November 18, 2026 15:03
Co-authored-by: Isaac <no-reply@databricks.com>
# Conflicts:
#	bundle/direct/dresources/app.go
Co-authored-by: Isaac <no-reply@databricks.com>
Comment thread bundle/internal/schema/annotations.yml Resolved
@janniklasrose
janniklasrose added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit e431adb Nov 24, 2026
31 checks passed
@janniklasrose
janniklasrose deleted the fjakobs/app-thumbnail branch November 24, 2026 11:20
deco-sdk-tagging Bot added a commit that referenced this pull request Nov 24, 2026
## Release v1.28.0

### CLI

 * Retry transient errors in `fs` commands: `fs cp` to a UC Volume from another Volume or DBFS (files up to 8 MiB) on HTTP 503, DBFS uploads when the upload stream is lost, and stat, read and list on UC Volumes on HTTP 500. ([#7607](#7607), [#7763](#7763), [#7839](#7839))
 * `databricks auth profiles --skip-validate` now omits the `Valid` column instead of reporting `NO` for every profile. ([#7638](#7638))
 * Fix Ctrl-C taking about 10 seconds to stop `databricks aitools install`, `update` or `uninstall` while it runs a coding agent's CLI, and retry reading an agent's config on Windows while the agent rewrites it. ([#7832](#7832), [#7870](#7870))
 * Automatic installation of Databricks AI tools no longer asks in containers or installs for the first time without a terminal, no longer runs as root in another user's home, keeps newer skills you installed, no longer hints to install what it is about to install, and on Linux and macOS stops the calling script on Ctrl-C. ([#7828](#7828), [#7834](#7834), [#7874](#7874), [#7888](#7888), [#7890](#7890), [#7901](#7901))
 * Wait before retrying a failed automatic install of Databricks AI tools, starting at 5 minutes and doubling after each failure, so a skills source or coding agent CLI that stays broken no longer slows down each of the next commands. ([#7900](#7900))
 * `databricks aitools install` now cancels the agent picker on Esc. ([#7721](#7721))
 * `databricks aitools uninstall --skills` now fails when its value names no skill instead of removing every skill, and `aitools update` and `uninstall` no longer prompt when a coding agent runs them; with skills in both scopes they fail and ask for `--scope`. ([#7873](#7873))
 * `databricks aitools install --skills-only` and `databricks aitools update` no longer mix skill files with the Databricks plugin: install skips agents that already have the plugin, and update no longer replaces skill files from a `--skills-only` install made with this release or later while the agent's CLI was on PATH. To keep skill files from an earlier `--skills-only` install, run `databricks aitools install --skills-only` again with the agent's CLI on PATH. ([#7831](#7831), [#7903](#7903))
 * `apps init` no longer suggests installing skills to Codex and Copilot users who installed the Databricks plugin with `databricks aitools install`. ([#7830](#7830))
 * Fix `databricks auth login` failing with `data passed to Set was too big` on macOS and Windows for OAuth tokens too large for one keyring item. ([#7845](#7845))
 * Fix the token storage mode (`auth_storage`) being read from the file named by `DATABRICKS_CONFIG_FILE` instead of the config file the profile was loaded from. ([#7733](#7733))
 * `databricks auth login` no longer waits for the browser that the default opener starts to close before it continues. ([#7551](#7551))
 * Allow `databricks auth docker configure` when several profiles match one workspace; the chosen profile is recorded for the registry and shown by `databricks auth docker host`. ([#7383](#7383))
 * Show the HTTP status, error code and endpoint when an API error has no message, instead of a bare `Error: `, and the HTTP status and path for Files API errors that used to show an empty `databricks-api error:`. ([#7800](#7800), [#7839](#7839))
 * AI agents can now submit feedback without confirmation; `--yes`/`-y` is deprecated, and agents passing `--yes=false` now get an error. ([#7795](#7795))
 * Log `/.well-known/databricks-config` fetch failures with a transient HTTP status (408, 429, or 5xx other than 501) at debug level instead of as a warning, like timeouts. ([#7912](#7912))
 * Fix interactive list output sometimes dropping or reordering a page of rows. ([#7804](#7804), [#7914](#7914))
 * Allow `databricks sandbox forward` to forward remote ports below 10000. The sandbox refuses a few reserved platform ports with an error that names the port. ([#7861](#7861))
 * Breaking: `databricks sandbox ssh` now uses local SSH keys and works with sandboxes created through the SDK or API; it no longer accepts `--port` and needs Python 3 and `openssh-server` in the sandbox. Add `databricks sandbox ssh-setup` to configure native SSH and SCP. ([#7588](#7588), [#7589](#7589), [#7590](#7590))
 * `databricks ssh connect` to serverless CPU compute now defaults to environment version 5, so the first connection after upgrading starts a new server; pass `--environment-version 4` to keep the old one. ([#7847](#7847))
 * `databricks ssh connect` now downloads the SSH server binaries from PyPI when GitHub is unreachable, using `PIP_INDEX_URL` or `index-url` from the per-user pip config over HTTPS only, and checks SHA-256 digests. ([#7852](#7852))

### AI Runtime

 * Breaking: `compute.pool_id` is no longer accepted in AIR workload YAML; use `compute.accelerator_pool_id`. ([#7698](#7698))
 * `databricks air convert-to-dabs` handles an existing output directory better: it gives the right guidance when the directory already holds the workload's bundle, `--force` no longer replaces a different bundle or an alternate root file, re-converting removes stale sidecars, and git-pinned code outside the bundle gets an `--output-dir` suggestion. ([#7835](#7835), [#7853](#7853), [#7857](#7857), [#7866](#7866))
 * `air list` and `air get` now find the AI Runtime task anywhere in a multi-task job; a job with several such tasks lists one row per task (so `run_id` is no longer unique in `air list -o json`), and both report `task_key` (`air get --task-key` selects one). `air list --all-status` now orders runs by submission time instead of by their latest attempt's start. ([#7632](#7632))
 * Update fallback messages for pending AI Runtime runs when AIR does not report a status reason. ([#7899](#7899))
 * `air run -o json` now reports config-validation errors as a JSON error envelope, with `UNAUTHENTICATED`, `INVALID_ARGS` or the new `PERMISSION_DENIED` code. ([#7864](#7864))

### Bundles

 * Bundle commands no longer hang after a request timeout on a dead HTTP/2 connection. ([#7723](#7723))
 * Fix a panic when the local Terraform state is removed after it is pulled and before it is migrated to the direct engine, for example by a concurrent `bundle deploy`. ([#7778](#7778))
 * The direct deployment engine now uses a Lakebase or postgres catalog that a failed create request still created, instead of failing the deploy. ([#7801](#7801))
 * `bundle deploy` and `bundle run` for apps now succeed when the app's compute is already active or starting, and deploy the app when the deployment triggered by start failed. ([#7709](#7709), [#7780](#7780))
 * Add `thumbnail_path` to the `apps` resource, so `bundle deploy` sets, updates and deletes the thumbnail shown for the app in the Apps UI. ([#7728](#7728))
 * Fix bundle commands failing on a notebook or file path with a colon in its first segment, such as the default workspace notebook name `New Notebook 2026-10-28 12:17:43.ipynb`. ([#7851](#7851))
 * `bundle run` and `pipelines run` now retry transient errors from the pipeline events and update status reads while waiting for an update. ([#7800](#7800))

### Dependency Updates

 * Bump dependencies with known vulnerabilities. ([#7904](#7904))
 * Update the Go SDK to [v0.203.0](https://github.com/databricks/databricks-sdk-go/releases/tag/v0.203.0). ([#7869](#7869), [#7906](#7906))
 * Update `github.com/databricks/sdk-go/files` to [v0.9.0](https://github.com/databricks/sdk-go/blob/files/v0.9.0/files/CHANGELOG.md). ([#7889](#7889))
return v, nil
}

return dyn.Set(v, "thumbnail_content", dyn.V(base64.StdEncoding.EncodeToString(contents)))

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.

This potentially inflates the plan size by a lot.

@denik @janniklasrose WDYT about keeping this a reference to a file on disk until we deploy?

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.

4 participants