Skip to content

Use source_code_path and git_source on create/update - #6399

Merged
andrewnester merged 13 commits into
mainfrom
fix/app-source-code-path
Nov 18, 2026
Merged

andrewnester merged 13 commits into
mainfrom
fix/app-source-code-path

Conversation

@andrewnester

@andrewnester andrewnester commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Changes

For apps deployed with the direct engine, source_code_path and git_source are sent on the App Create and Update requests, in addition to the app Deploy API. They are recorded on the app and drift-detected.

Why

source_code_path and git_source are input-only fields: the API accepts them on write and does not echo them on read, so drift is suppressed via ignore_remote_changes.

Evidence on whether UpdateApp accepts source_code_path:

  • Staging (e2-dogfood, aws), current API: the update-source-code-path-cloud acceptance test passes against a real workspace. The UpdateApp request carries a non-empty source_code_path and the update reports Updated apps.myapp with no error.
  • Production, 2026-09-08: the Integration Tests run (https://go/deco-tests/34250782149) rejected the update with 400 INVALID_PARAMETER_VALUE: Invalid update mask ... source_code_path. The allowed mask at that time did not include source_code_path, and git_repository/git_source were already allowed.

These results disagree, so this PR's own Integration Tests run on production is the final confirmation. If production still rejects source_code_path on update, the fallback is to send source_code_path on Create only, and to send git_repository and git_source on Create and Update.

Tests

  • Acceptance: update-source-code-path-cloud (Cloud = true) and source-code-path-update cover the update path. The fake server (libs/testserver/apps.go) rejects only an empty source_code_path on UpdateApp.
  • Unit: TestAppRequestBody_* and TestAppUpdateMaskOmitsEmptySourceCodePath in bundle/direct/dresources.

This pull request and its description were written by Isaac.

@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Approval status: pending

/acceptance/bundle/ - needs approval

27 files changed
Suggested: @denik
Also eligible: @shreyas-goenka, @janniklasrose, @pietern, @anton-107, @lennartkats-db

/bundle/ - needs approval

Files: bundle/config/resources/apps.go, bundle/deploy/terraform/tfdyn/convert_app.go, bundle/direct/dresources/app.go
Suggested: @denik
Also eligible: @shreyas-goenka, @janniklasrose, @pietern, @anton-107, @lennartkats-db

General files (require maintainer)

Files: .nextchanges/bundles/app-source-code-path.md, libs/testserver/apps.go
Based on git history:

  • @denik -- recent work in .nextchanges/bundles/, bundle/direct/dresources/, libs/testserver/

Any maintainer (@anton-107, @denik, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db, @janniklasrose, @lennartkats-db, @rugpanov, @rclarey) can approve all areas.
See OWNERS for ownership rules.

@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: c88a0a8

Run: 43212205749

Env 🔄​flaky 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 9 274 26 17:51
💚​ aws-windows-latest-4core-16gb 9 276 24 20:36
💚​ azure linux-2core-8gb 9 273 26 16:55
💚​ azure-windows-latest-4core-16gb 9 275 24 19:19
💚​ gcp linux-2core-8gb 9 274 26 18:11
🔄​ gcp-windows-latest-4core-16gb 1 9 275 24 22:13
10 interesting tests: 9 RECOVERED, 1 flaky
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/apps/lifecycle-started 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-omitted 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-toggle 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS= 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started/DMS= 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/apps/lifecycle-started/DMS=true 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🔄​ TestSyncNestedSpacePlusAndHashAreEscapedSync ✅​p ✅​p ✅​p ✅​p ✅​p 🔄​f
Top 43 slowest tests (at least 2 minutes):
duration env testname
13:09 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
12:57 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
11:15 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
11:05 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
11:00 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
10:16 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
9:54 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
9:53 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
9:49 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
9:15 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
9:14 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
8:40 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
4:54 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
4:46 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true
4:38 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
4:28 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
4:24 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=
4:21 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true
4:11 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true
4:08 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
4:05 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
4:00 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=
3:58 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
3:58 azure linux-2core-8gb TestAccept
3:56 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=
3:55 aws-windows-latest-4core-16gb TestAccept
3:54 aws linux-2core-8gb TestAccept
3:53 gcp-windows-latest-4core-16gb TestAccept
3:52 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=
3:50 gcp linux-2core-8gb TestAccept
3:49 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
3:49 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
3:43 azure-windows-latest-4core-16gb TestAccept
3:42 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true
3:41 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
3:38 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true
3:34 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=
3:32 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
3:24 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true
3:23 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true
3:19 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=
3:04 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=
2:07 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/update-source-code-path-cloud/DMS=

yb-yu pushed a commit to yb-yu/terraform-provider-databricks that referenced this pull request Sep 10, 2026
…caller_credential_id (databricks#5977)

## Changes

Makes the `databricks_app` resource able to manage the app's
`INPUT_ONLY` git-deployment fields — `git_source`, `source_code_path`,
and `git_repository.caller_credential_id` (and, transitively,
`git_repository.auto_deploy`). Today, setting `git_source` or
`source_code_path` fails with **"Provider produced inconsistent result
after apply"** and then a perpetual diff.

Two root causes, both fixed here:

1. **Not echoed on read.** These fields are `INPUT_ONLY` — the Apps API
accepts them on write but never returns them (the read-back is the
separate `OUTPUT_ONLY` `default_git_source`/`default_source_code_path`).
The hand-written resource overwrote state from the empty response
because it never ran the reconciliation the generated model already
provides. Fix: call the generated `App.SyncFieldsDuringCreateOrUpdate` /
`SyncFieldsDuringRead` at the state-set sites — the convention every
other plugin-framework resource follows (e.g. `database_instance`'s
`stopped`/`effective_stopped`). This carries the configured value across
reads for all input-only App fields, guarded to known/non-null.
- `SyncFieldsDuringRead` does not reconcile `user_api_scopes` (only
`effective_user_api_scopes`), so the existing
`reconcileEmptyUserApiScopes` restore is kept on the read path to avoid
regressing databricks#5834.

2. **Computed nested fields.** `git_source`'s nested
`git_repository`/`resolved_commit` are generated as `Computed` (because
`GitSource` is a shared message reused in output contexts). For an
input-only `git_source` they can never be populated, so a configured
value was left unknown after apply. Fix: strip `Computed` from those
descendants in `ApplySchemaCustomizations` (same nested-override pattern
the resource already uses for `provider_config.workspace_id`), so a
configured `git_source` is fully known. This is the only genuinely new
logic in the PR.

This unblocks `git_repository.auto_deploy`, whose prerequisite (a
settable `git_source` branch) now round-trips.

Scope: this is the standalone `databricks_app` resource. It does not
touch the DABs bundle→Terraform path (databricks/cli#6399), which
deliberately drops these fields; that change is in a different repo and
does not conflict.

## Tests

- `TestResourceApp_GitSourceInputOnlySchema` (unit) — asserts
`git_source` is settable and its nested
`git_repository`/`resolved_commit` are not `Computed`.
- `TestReconcileEmptyUserApiScopes` (unit, existing) — the
`user_api_scopes` empty-list restore still exercised on the read path.
- `TestAccAppResource_GitSource` (acceptance) — a git-backed app
applies, then a re-apply is a no-op (regression coverage for
inconsistent-result/perpetual-diff, mirroring
`TestAccAppResource_EmptyUserApiScopes`).

Verified end-to-end against a live workspace: applied a `databricks_app`
with `git_repository{auto_deploy=true, caller_credential_id}` +
`git_source{branch}`, second plan clean (no perpetual diff). Integration
tests pass in CI.

## Schema breaking-change check

ALLOW_SCHEMA_BREAKING_CHANGE=true

The bypass is intentional. The classifier flags exactly one change —
`git_source.git_repository.caller_credential_id` is no longer `Computed`
(`ComputedRemoved`) — which is precisely this fix. That field is
`INPUT_ONLY` (never returned by the API), so `Computed` was a
shared-message codegen artifact, not a real server-populated value;
leaving it `Computed` is what produced the "unknown after apply"
failure. `git_source` could not be managed before this PR, so no
existing state relies on the prior behavior, and the top-level
`git_repository.caller_credential_id` is unchanged.

This pull request and its description were written by Isaac.

---------

Signed-off-by: atreya-misra_data <atreya.misra@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Omer Lachish <289488+rauchy@users.noreply.github.com>
@janniklasrose
janniklasrose removed their request for review November 9, 2026 09:37
The bundles fragment was not a "* " bullet with a trailing PR link, so
the Changelog Preview and the lint check-changelog step both failed.
Rewrite it as a single bullet line that ends with the PR link.

Co-authored-by: Isaac <no-reply@databricks.com>
@andrewnester
andrewnester requested review from a team as code owners November 11, 2026 10:57
@github-actions github-actions Bot added the DABs DABs related issues label Nov 11, 2026
Resolve conflicts with main: take main's removal of the terraform app converter,
keep main's nostamp plan checks in the no-deployment scripts.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Commit: c88a0a8a2 | Workflow run

Regression test report

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

30 tests: regression=30 unreleased=0 coverage=0 failing=0
test branch main (4668f26) latest (v1.26.0)
TestAccept/bundle/empty_string_dropped/DMS= ✅ ❌ ❌
TestAccept/bundle/empty_string_dropped/DMS=true ✅ ❌ ❌
TestAccept/bundle/resource_deps/remote_app_url/DMS= ✅ ❌ ❌
TestAccept/bundle/resource_deps/remote_app_url/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/config-no-deployment/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/config-no-deployment/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/default_description/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/default_description/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/git-source-no-deployment/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/git-source-no-deployment/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/immutable/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/immutable/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/lifecycle-started/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/lifecycle-started/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/missing-service-principal/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/missing-service-principal/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/resource-refs/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/resource-refs/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/source-code-path-update/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/source-code-path-update/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/update-compute-size/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/update-compute-size/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/update-source-code-path-cloud/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/update-source-code-path-cloud/DMS=true ✅ ❌ ❌
TestAccept/bundle/resources/apps/update/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/apps/update/DMS=true ✅ ❌ ❌
TestAccept/bundle/empty_string_dropped/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/empty_string_dropped/out.requests.json
        +++ /tmp/TestAcceptbundleempty_string_droppedDMS=336523289/001/out.requests.json
        @@ -6,8 +6,7 @@
           },
           "body": {
             "description": "",
        -    "name": "test-app-direct",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/direct/files/app"
        +    "name": "test-app-direct"
           }
         }
         {

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/empty_string_dropped/DMS=true: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/empty_string_dropped/out.requests.json
        +++ /tmp/TestAcceptbundleempty_string_droppedDMS=true3166483911/001/out.requests.json
        @@ -6,8 +6,7 @@
           },
           "body": {
             "description": "",
        -    "name": "test-app-direct",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/direct/files/app"
        +    "name": "test-app-direct"
           }
         }
         {

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resource_deps/remote_app_url/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resource_deps/remote_app_url/output.txt
        +++ /tmp/TestAcceptbundleresource_depsremote_app_urlDMS=779653373/002/output.txt
        @@ -65,8 +65,7 @@
           },
           "body": {
             "description": "best app",
        -    "name": "myapp",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app"
        +    "name": "myapp"
           }
         }
         {

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resource_deps/remote_app_url/DMS=true: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resource_deps/remote_app_url/output.txt
        +++ /tmp/TestAcceptbundleresource_depsremote_app_urlDMS=true2431103513/002/output.txt
        @@ -65,8 +65,7 @@
           },
           "body": {
             "description": "best app",
        -    "name": "myapp",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app"
        +    "name": "myapp"
           }
         }
         {
        
FAIL

latest (v1.26.0):

acceptance_test.go:1373: Diff:
        --- bundle/resource_deps/remote_app_url/output.txt
        +++ /tmp/TestAcceptbundleresource_depsremote_app_urlDMS=true3118821969/002/output.txt
        @@ -65,8 +65,7 @@
           },
           "body": {
             "description": "best app",
        -    "name": "myapp",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app"
        +    "name": "myapp"
           }
         }
         {
TestAccept/bundle/resources/apps/config-no-deployment/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/config-no-deployment/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsconfig-no-deploymentDMS=3699990290/002/output.txt
        @@ -46,9 +46,8 @@
           },
           "source_code_path": {
             "action": "skip",
        -    "reason": "spec:input_only",
        +    "reason": "no active deployment",
             "old": "/Workspace/Users/[USERNAME]/.bundle/app-config-no-deployment/default/files/app",
        -    "new": "/Workspace/Users/[USERNAME]/.bundle/app-config-no-deployment/default/files/app",
        -    "remote": ""
        +    "new": "/Workspace/Users/[USERNAME]/.bundle/app-config-no-deployment/default/files/app"
           }
         }

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/config-no-deployment/DMS=true: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/config-no-deployment/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsconfig-no-deploymentDMS=true3096187636/002/output.txt
        @@ -46,9 +46,8 @@
           },
           "source_code_path": {
             "action": "skip",
        -    "reason": "spec:input_only",
        +    "reason": "no active deployment",
             "old": "/Workspace/Users/[USERNAME]/.bundle/app-config-no-deployment/default/files/app",
        -    "new": "/Workspace/Users/[USERNAME]/.bundle/app-config-no-deployment/default/files/app",
        -    "remote": ""
        +    "new": "/Workspace/Users/[USERNAME]/.bundle/app-config-no-deployment/default/files/app"
           }
         }

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/default_description/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1373
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1114
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:678
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...\nCreated apps.mykey\nFiles: 2 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n>>> print_requests.py //apps\n{\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\"\n  }\n}\n"
        	            	actual  : "\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...\nCreated apps.mykey\nFiles: 2 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n>>> print_requests.py //apps\n{\n  \"method\": \"POST\",\n  \"path\": \"/api/2.0/apps\",\n  \"q\": {\n    \"no_compute\": \"true\"\n  },\n  \"body\": {\n    \"description\": \"\",\n    \"name\": \"myappname\"\n  }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -16,4 +16,3 @@
        	            	     "description": "",
        	            	-    "name": "myappname",
        	            	-    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
        	            	+    "name": "myappname"
        	            	   }
        	Test:       	TestAccept/bundle/resources/apps/default_description/DMS=
        	Messages:   	bundle/resources/apps/default_description/output.txt vs /tmp/TestAcceptbundleresourcesappsdefault_descriptionDMS=1293051389/002/output.txt

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/default_description/DMS=true: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1373
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1114
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:678
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...\nCreated apps.mykey\nFiles: 2 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n>>> print_requests.py //apps\n{\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\"\n  }\n}\n"
        	            	actual  : "\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...\nCreated apps.mykey\nFiles: 2 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n>>> print_requests.py //apps\n{\n  \"method\": \"POST\",\n  \"path\": \"/api/2.0/apps\",\n  \"q\": {\n    \"no_compute\": \"true\"\n  },\n  \"body\": {\n    \"description\": \"\",\n    \"name\": \"myappname\"\n  }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -16,4 +16,3 @@
        	            	     "description": "",
        	            	-    "name": "myappname",
        	            	-    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
        	            	+    "name": "myappname"
        	            	   }
        	Test:       	TestAccept/bundle/resources/apps/default_description/DMS=true
        	Messages:   	bundle/resources/apps/default_description/output.txt vs /tmp/TestAcceptbundleresourcesappsdefault_descriptionDMS=true2343413970/002/output.txt

latest (v1.26.0):

acceptance_test.go:1373: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1373
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1114
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:678
        	Error:      	Not equal: 
        	            	expected: "\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...\nCreated apps.mykey\nFiles: 2 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n>>> print_requests.py //apps\n{\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\"\n  }\n}\n"
        	            	actual  : "\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...\nCreated apps.mykey\nFiles: 2 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n>>> print_requests.py //apps\n{\n  \"method\": \"POST\",\n  \"path\": \"/api/2.0/apps\",\n  \"q\": {\n    \"no_compute\": \"true\"\n  },\n  \"body\": {\n    \"description\": \"\",\n    \"name\": \"myappname\"\n  }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -16,4 +16,3 @@
        	            	     "description": "",
        	            	-    "name": "myappname",
        	            	-    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files"
        	            	+    "name": "myappname"
        	            	   }
        	Test:       	TestAccept/bundle/resources/apps/default_description/DMS=true
        	Messages:   	bundle/resources/apps/default_description/output.txt vs /tmp/TestAcceptbundleresourcesappsdefault_descriptionDMS=true1552408646/002/output.txt
FAIL
TestAccept/bundle/resources/apps/git-source-no-deployment/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1373
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1114
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:678
        	Error:      	Not equal: 
        	            	expected: "\n=== Deploy: app created with no_compute; git_source is not deployed until the app starts\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-git-source-no-deployment/default/files...\nCreated apps.myapp\nFiles: 1 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n=== Plan is a no-op: git_source drift is skipped while the app has no active deployment\n\n>>> [CLI] bundle plan\nPlan: 0 to add, 0 to change, 0 to delete, 1 unchanged\n\n=== git_source is skipped with reason \"no active deployment\"\n\n>>> [CLI] bundle plan -o json\n{\n  \"git_source\": {\n    \"action\": \"skip\",\n    \"reason\": \"spec:input_only\",\n    \"old\": {\n      \"branch\": \"main\"\n    },\n    \"new\": {\n      \"branch\": \"main\"\n    }\n  }\n}\n"
        	            	actual  : "\n=== Deploy: app created with no_compute; git_source is not deployed until the app starts\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-git-source-no-deployment/default/files...\nCreated apps.myapp\nFiles: 1 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n=== Plan is a no-op: git_source drift is skipped while the app has no active deployment\n\n>>> [CLI] bundle plan\nPlan: 0 to add, 0 to change, 0 to delete, 1 unchanged\n\n=== git_source is skipped with reason \"no active deployment\"\n\n>>> [CLI] bundle plan -o json\n{\n  \"git_source\": {\n    \"action\": \"skip\",\n    \"reason\": \"no active deployment\",\n    \"old\": {\n      \"branch\": \"main\"\n    },\n    \"new\": {\n      \"branch\": \"main\"\n    }\n  }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -20,3 +20,3 @@
        	            	     "action": "skip",
        	            	-    "reason": "spec:input_only",
        	            	+    "reason": "no active deployment",
        	            	     "old": {
        	Test:       	TestAccept/bundle/resources/apps/git-source-no-deployment/DMS=
        	Messages:   	bundle/resources/apps/git-source-no-deployment/output.txt vs /tmp/TestAcceptbundleresourcesappsgit-source-no-deploymentDMS=1316467900/002/output.txt

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/git-source-no-deployment/DMS=true: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1373
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1114
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:678
        	Error:      	Not equal: 
        	            	expected: "\n=== Deploy: app created with no_compute; git_source is not deployed until the app starts\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-git-source-no-deployment/default/files...\nCreated apps.myapp\nFiles: 1 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n=== Plan is a no-op: git_source drift is skipped while the app has no active deployment\n\n>>> [CLI] bundle plan\nPlan: 0 to add, 0 to change, 0 to delete, 1 unchanged\n\n=== git_source is skipped with reason \"no active deployment\"\n\n>>> [CLI] bundle plan -o json\n{\n  \"git_source\": {\n    \"action\": \"skip\",\n    \"reason\": \"spec:input_only\",\n    \"old\": {\n      \"branch\": \"main\"\n    },\n    \"new\": {\n      \"branch\": \"main\"\n    }\n  }\n}\n"
        	            	actual  : "\n=== Deploy: app created with no_compute; git_source is not deployed until the app starts\n\n>>> [CLI] bundle deploy\nUploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-git-source-no-deployment/default/files...\nCreated apps.myapp\nFiles: 1 uploaded, 0 deleted\nResources: 1 created, 0 changed, 0 deleted, 0 unchanged\n\n=== Plan is a no-op: git_source drift is skipped while the app has no active deployment\n\n>>> [CLI] bundle plan\nPlan: 0 to add, 0 to change, 0 to delete, 1 unchanged\n\n=== git_source is skipped with reason \"no active deployment\"\n\n>>> [CLI] bundle plan -o json\n{\n  \"git_source\": {\n    \"action\": \"skip\",\n    \"reason\": \"no active deployment\",\n    \"old\": {\n      \"branch\": \"main\"\n    },\n    \"new\": {\n      \"branch\": \"main\"\n    }\n  }\n}\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -20,3 +20,3 @@
        	            	     "action": "skip",
        	            	-    "reason": "spec:input_only",
        	            	+    "reason": "no active deployment",
        	            	     "old": {
        	Test:       	TestAccept/bundle/resources/apps/git-source-no-deployment/DMS=true
        	Messages:   	bundle/resources/apps/git-source-no-deployment/output.txt vs /tmp/TestAcceptbundleresourcesappsgit-source-no-deploymentDMS=tr3142670190/002/output.txt

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/immutable/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/immutable/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsimmutableDMS=2908860564/002/output.txt
        @@ -24,8 +24,7 @@
           },
           "body": {
             "description": "",
        -    "name": "my-immutable-app",
        -    "source_code_path": "/Workspace/Users/[UUID][0]/.snapshots/[SNAPSHOT_HASH]/[SNAPSHOT_HASH]-[UUID][1]/snapshot/files/app"
        +    "name": "my-immutable-app"
           }
         }
         {

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/immutable/DMS=true: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/immutable/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsimmutableDMS=true358403580/002/output.txt
        @@ -24,8 +24,7 @@
           },
           "body": {
             "description": "",
        -    "name": "my-immutable-app",
        -    "source_code_path": "/Workspace/Users/[UUID][0]/.snapshots/[SNAPSHOT_HASH]/[SNAPSHOT_HASH]-[UUID][1]/snapshot/files/app"
        +    "name": "my-immutable-app"
           }
         }
         {

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/lifecycle-started-omitted/output.txt
        +++ /tmp/TestAcceptbundleresourcesappslifecycle-started-omittedDMS=2394951458/002/output.txt
        @@ -16,8 +16,7 @@
           },
           "body": {
             "description": "my_app_description",
        -    "name": "[UNIQUE_NAME]",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default/files/app"
        +    "name": "[UNIQUE_NAME]"
           }
         }
         
        
    acceptance_test.go:1151: 
        LOG.planjson: {
        LOG.planjson:   "plan_version": 2,
        LOG.planjson:   "cli_version": "1.27.0-dev",
        LOG.planjson:   "lineage": "7ea79428-97f9-46c8-91cd-6b49f498a1e8",
        LOG.planjson:   "serial": 3,
        LOG.planjson:   "plan": {
        LOG.planjson:     "resources.apps.mykey": {
        LOG.planjson:       "action": "skip",
        LOG.planjson:       "remote_state": {
        LOG.planjson:         "active_deployment": {
        LOG.planjson:           "deployment_id": "deploy-8794484455073054800",
        LOG.planjson:           "mode": "SNAPSHOT",
        LOG.planjson:           "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-7ixkzybykbbcvegtlaixngjn3q/default/files/app",
        LOG.planjson:           "status": {
        LOG.planjson:             "message": "Deployment succeeded",
        LOG.planjson:             "state": "SUCCEEDED"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "app_status": {
        LOG.planjson:           "message": "App has status: App is running",
        LOG.planjson:           "state": "RUNNING"
        LOG.planjson:         },
        LOG.planjson:         "compute_size": "MEDIUM",
        LOG.planjson:         "compute_status": {
        LOG.planjson:           "message": "App compute is active.",
        LOG.planjson:           "state": "ACTIVE"
        LOG.planjson:         },
        LOG.planjson:         "default_source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-7ixkzybykbbcvegtlaixngjn3q/default/files/app",
        LOG.planjson:         "description": "my_app_description",
        LOG.planjson:         "forward_user_access_token": true,
        LOG.planjson:         "id": "1000",
        LOG.planjson:         "lifecycle": {
        LOG.planjson:           "started": true
        LOG.planjson:         },
        LOG.planjson:         "name": "7ixkzybykbbcvegtlaixngjn3q",
        LOG.planjson:         "service_principal_client_id": "7a0c4904-2753-b905-7a0c-49042753ba43",
        LOG.planjson:         "service_principal_id": 8794484454536232305,
        LOG.planjson:         "service_principal_name": "app-7ixkzybykbbcvegtlaixngjn3q",
        LOG.planjson:         "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-7ixkzybykbbcvegtlaixngjn3q/default/files/app",
        LOG.planjson:         "url": "7ixkzybykbbcvegtlaixngjn3q-123.cloud.databricksapps.com"
        LOG.planjson:       },
        LOG.planjson:       "changes": {
        LOG.planjson:         "active_deployment": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "deployment_id": "deploy-8794484455073054800",
        LOG.planjson:             "mode": "SNAPSHOT",
        LOG.planjson:             "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-7ixkzybykbbcvegtlaixngjn3q/default/files/app",
        LOG.planjson:             "status": {
        LOG.planjson:               "message": "Deployment succeeded",
        LOG.planjson:               "state": "SUCCEEDED"
        LOG.planjson:             }
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "app_status": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "message": "App has status: App is running",
        LOG.planjson:             "state": "RUNNING"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "compute_size": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": "MEDIUM"
        LOG.planjson:         },
        LOG.planjson:         "compute_status": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "message": "App compute is active.",
        LOG.planjson:             "state": "ACTIVE"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "default_source_code_path": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-7ixkzybykbbcvegtlaixngjn3q/default/files/app"
        LOG.planjson:         },
        LOG.planjson:         "forward_user_access_token": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": true
        LOG.planjson:         },
        LOG.planjson:         "id": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": "1000"
        LOG.planjson:         },
        LOG.planjson:         "lifecycle": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": {
        LOG.planjson:             "started": true
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "service_principal_client_id": {
        LOG.planjson:           "action": "skip",
        LOG.planjson: ... (22 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.26.0):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/lifecycle-started-omitted/output.txt
        +++ /tmp/TestAcceptbundleresourcesappslifecycle-started-omittedDMS=3018982724/002/output.txt
        @@ -16,8 +16,7 @@
           },
           "body": {
             "description": "my_app_description",
        -    "name": "[UNIQUE_NAME]",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default/files/app"
        +    "name": "[UNIQUE_NAME]"
           }
         }
         
        
    acceptance_test.go:1151: 
        LOG.planjson: {
        LOG.planjson:   "plan_version": 2,
        LOG.planjson:   "cli_version": "1.26.0",
        LOG.planjson:   "lineage": "61b47bf4-419b-44c9-88d2-c920e1ba9d45",
        LOG.planjson:   "serial": 3,
        LOG.planjson:   "plan": {
        LOG.planjson:     "resources.apps.mykey": {
        LOG.planjson:       "action": "skip",
        LOG.planjson:       "remote_state": {
        LOG.planjson:         "active_deployment": {
        LOG.planjson:           "deployment_id": "deploy-8794484468405958461",
        LOG.planjson:           "mode": "SNAPSHOT",
        LOG.planjson:           "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-yvhye27js5dknk7vze3i46erse/default/files/app",
        LOG.planjson:           "status": {
        LOG.planjson:             "message": "Deployment succeeded",
        LOG.planjson:             "state": "SUCCEEDED"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "app_status": {
        LOG.planjson:           "message": "App has status: App is running",
        LOG.planjson:           "state": "RUNNING"
        LOG.planjson:         },
        LOG.planjson:         "compute_size": "MEDIUM",
        LOG.planjson:         "compute_status": {
        LOG.planjson:           "message": "App compute is active.",
        LOG.planjson:           "state": "ACTIVE"
        LOG.planjson:         },
        LOG.planjson:         "default_source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-yvhye27js5dknk7vze3i46erse/default/files/app",
        LOG.planjson:         "description": "my_app_description",
        LOG.planjson:         "forward_user_access_token": true,
        LOG.planjson:         "id": "1000",
        LOG.planjson:         "lifecycle": {
        LOG.planjson:           "started": true
        LOG.planjson:         },
        LOG.planjson:         "name": "yvhye27js5dknk7vze3i46erse",
        LOG.planjson:         "service_principal_client_id": "7a0c4907-445d-9b4d-7a0c-4907445d9c69",
        LOG.planjson:         "service_principal_id": 8794484467908321222,
        LOG.planjson:         "service_principal_name": "app-yvhye27js5dknk7vze3i46erse",
        LOG.planjson:         "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-yvhye27js5dknk7vze3i46erse/default/files/app",
        LOG.planjson:         "url": "yvhye27js5dknk7vze3i46erse-123.cloud.databricksapps.com"
        LOG.planjson:       },
        LOG.planjson:       "changes": {
        LOG.planjson:         "active_deployment": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "deployment_id": "deploy-8794484468405958461",
        LOG.planjson:             "mode": "SNAPSHOT",
        LOG.planjson:             "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-yvhye27js5dknk7vze3i46erse/default/files/app",
        LOG.planjson:             "status": {
        LOG.planjson:               "message": "Deployment succeeded",
        LOG.planjson:               "state": "SUCCEEDED"
        LOG.planjson:             }
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "app_status": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "message": "App has status: App is running",
        LOG.planjson:             "state": "RUNNING"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "compute_size": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": "MEDIUM"
        LOG.planjson:         },
        LOG.planjson:         "compute_status": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "message": "App compute is active.",
        LOG.planjson:             "state": "ACTIVE"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "default_source_code_path": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-yvhye27js5dknk7vze3i46erse/default/files/app"
        LOG.planjson:         },
        LOG.planjson:         "forward_user_access_token": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": true
        LOG.planjson:         },
        LOG.planjson:         "id": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": "1000"
        LOG.planjson:         },
        LOG.planjson:         "lifecycle": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": {
        LOG.planjson:             "started": true
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "service_principal_client_id": {
        LOG.planjson:           "action": "skip",
        LOG.planjson: ... (22 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)
TestAccept/bundle/resources/apps/lifecycle-started-omitted/DMS=true: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/lifecycle-started-omitted/output.txt
        +++ /tmp/TestAcceptbundleresourcesappslifecycle-started-omittedDMS=t3874524277/002/output.txt
        @@ -16,8 +16,7 @@
           },
           "body": {
             "description": "my_app_description",
        -    "name": "[UNIQUE_NAME]",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default/files/app"
        +    "name": "[UNIQUE_NAME]"
           }
         }
         
        
    acceptance_test.go:1151: 
        LOG.planjson: {
        LOG.planjson:   "plan_version": 2,
        LOG.planjson:   "cli_version": "1.27.0-dev",
        LOG.planjson:   "lineage": "a185ec8a-e52e-48c6-98e1-63fc6f75c8ac",
        LOG.planjson:   "serial": 3,
        LOG.planjson:   "plan": {
        LOG.planjson:     "resources.apps.mykey": {
        LOG.planjson:       "action": "skip",
        LOG.planjson:       "remote_state": {
        LOG.planjson:         "active_deployment": {
        LOG.planjson:           "deployment_id": "deploy-8794484456486469908",
        LOG.planjson:           "mode": "SNAPSHOT",
        LOG.planjson:           "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-emxvar3lyraf5co4ry2bfaslm4/default/files/app",
        LOG.planjson:           "status": {
        LOG.planjson:             "message": "Deployment succeeded",
        LOG.planjson:             "state": "SUCCEEDED"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "app_status": {
        LOG.planjson:           "message": "App has status: App is running",
        LOG.planjson:           "state": "RUNNING"
        LOG.planjson:         },
        LOG.planjson:         "compute_size": "MEDIUM",
        LOG.planjson:         "compute_status": {
        LOG.planjson:           "message": "App compute is active.",
        LOG.planjson:           "state": "ACTIVE"
        LOG.planjson:         },
        LOG.planjson:         "default_source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-emxvar3lyraf5co4ry2bfaslm4/default/files/app",
        LOG.planjson:         "description": "my_app_description",
        LOG.planjson:         "forward_user_access_token": true,
        LOG.planjson:         "id": "1000",
        LOG.planjson:         "lifecycle": {
        LOG.planjson:           "started": true
        LOG.planjson:         },
        LOG.planjson:         "name": "emxvar3lyraf5co4ry2bfaslm4",
        LOG.planjson:         "service_principal_client_id": "7a0c4904-7d40-6f11-7a0c-49047d4070c3",
        LOG.planjson:         "service_principal_id": 8794484455977809127,
        LOG.planjson:         "service_principal_name": "app-emxvar3lyraf5co4ry2bfaslm4",
        LOG.planjson:         "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-emxvar3lyraf5co4ry2bfaslm4/default/files/app",
        LOG.planjson:         "url": "emxvar3lyraf5co4ry2bfaslm4-123.cloud.databricksapps.com"
        LOG.planjson:       },
        LOG.planjson:       "changes": {
        LOG.planjson:         "active_deployment": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "deployment_id": "deploy-8794484456486469908",
        LOG.planjson:             "mode": "SNAPSHOT",
        LOG.planjson:             "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-emxvar3lyraf5co4ry2bfaslm4/default/files/app",
        LOG.planjson:             "status": {
        LOG.planjson:               "message": "Deployment succeeded",
        LOG.planjson:               "state": "SUCCEEDED"
        LOG.planjson:             }
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "app_status": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "message": "App has status: App is running",
        LOG.planjson:             "state": "RUNNING"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "compute_size": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": "MEDIUM"
        LOG.planjson:         },
        LOG.planjson:         "compute_status": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "message": "App compute is active.",
        LOG.planjson:             "state": "ACTIVE"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "default_source_code_path": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-emxvar3lyraf5co4ry2bfaslm4/default/files/app"
        LOG.planjson:         },
        LOG.planjson:         "forward_user_access_token": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": true
        LOG.planjson:         },
        LOG.planjson:         "id": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": "1000"
        LOG.planjson:         },
        LOG.planjson:         "lifecycle": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": {
        LOG.planjson:             "started": true
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "service_principal_client_id": {
        LOG.planjson:           "action": "skip",
        LOG.planjson: ... (22 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.26.0):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/lifecycle-started-omitted/output.txt
        +++ /tmp/TestAcceptbundleresourcesappslifecycle-started-omittedDMS=t945191478/002/output.txt
        @@ -16,8 +16,7 @@
           },
           "body": {
             "description": "my_app_description",
        -    "name": "[UNIQUE_NAME]",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default/files/app"
        +    "name": "[UNIQUE_NAME]"
           }
         }
         
        
    acceptance_test.go:1151: 
        LOG.planjson: {
        LOG.planjson:   "plan_version": 2,
        LOG.planjson:   "cli_version": "1.26.0",
        LOG.planjson:   "lineage": "b1766f0b-80e2-4660-b6e3-09d31a60e4fe",
        LOG.planjson:   "serial": 3,
        LOG.planjson:   "plan": {
        LOG.planjson:     "resources.apps.mykey": {
        LOG.planjson:       "action": "skip",
        LOG.planjson:       "remote_state": {
        LOG.planjson:         "active_deployment": {
        LOG.planjson:           "deployment_id": "deploy-8794484468405743701",
        LOG.planjson:           "mode": "SNAPSHOT",
        LOG.planjson:           "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-qnwveqj5xne5zhsmfvhcc7p2uq/default/files/app",
        LOG.planjson:           "status": {
        LOG.planjson:             "message": "Deployment succeeded",
        LOG.planjson:             "state": "SUCCEEDED"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "app_status": {
        LOG.planjson:           "message": "App has status: App is running",
        LOG.planjson:           "state": "RUNNING"
        LOG.planjson:         },
        LOG.planjson:         "compute_size": "MEDIUM",
        LOG.planjson:         "compute_status": {
        LOG.planjson:           "message": "App compute is active.",
        LOG.planjson:           "state": "ACTIVE"
        LOG.planjson:         },
        LOG.planjson:         "default_source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-qnwveqj5xne5zhsmfvhcc7p2uq/default/files/app",
        LOG.planjson:         "description": "my_app_description",
        LOG.planjson:         "forward_user_access_token": true,
        LOG.planjson:         "id": "1000",
        LOG.planjson:         "lifecycle": {
        LOG.planjson:           "started": true
        LOG.planjson:         },
        LOG.planjson:         "name": "qnwveqj5xne5zhsmfvhcc7p2uq",
        LOG.planjson:         "service_principal_client_id": "7a0c4907-4235-16c6-7a0c-4907423517fa",
        LOG.planjson:         "service_principal_id": 8794484467872111400,
        LOG.planjson:         "service_principal_name": "app-qnwveqj5xne5zhsmfvhcc7p2uq",
        LOG.planjson:         "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-qnwveqj5xne5zhsmfvhcc7p2uq/default/files/app",
        LOG.planjson:         "url": "qnwveqj5xne5zhsmfvhcc7p2uq-123.cloud.databricksapps.com"
        LOG.planjson:       },
        LOG.planjson:       "changes": {
        LOG.planjson:         "active_deployment": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "deployment_id": "deploy-8794484468405743701",
        LOG.planjson:             "mode": "SNAPSHOT",
        LOG.planjson:             "source_code_path": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-qnwveqj5xne5zhsmfvhcc7p2uq/default/files/app",
        LOG.planjson:             "status": {
        LOG.planjson:               "message": "Deployment succeeded",
        LOG.planjson:               "state": "SUCCEEDED"
        LOG.planjson:             }
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "app_status": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "message": "App has status: App is running",
        LOG.planjson:             "state": "RUNNING"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "compute_size": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": "MEDIUM"
        LOG.planjson:         },
        LOG.planjson:         "compute_status": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": {
        LOG.planjson:             "message": "App compute is active.",
        LOG.planjson:             "state": "ACTIVE"
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "default_source_code_path": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": "/Workspace/Users/tester@databricks.com/.bundle/lifecycle-started-omitted-qnwveqj5xne5zhsmfvhcc7p2uq/default/files/app"
        LOG.planjson:         },
        LOG.planjson:         "forward_user_access_token": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": true
        LOG.planjson:         },
        LOG.planjson:         "id": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "spec:output_only",
        LOG.planjson:           "remote": "1000"
        LOG.planjson:         },
        LOG.planjson:         "lifecycle": {
        LOG.planjson:           "action": "skip",
        LOG.planjson:           "reason": "backend_default",
        LOG.planjson:           "remote": {
        LOG.planjson:             "started": true
        LOG.planjson:           }
        LOG.planjson:         },
        LOG.planjson:         "service_principal_client_id": {
        LOG.planjson:           "action": "skip",
        LOG.planjson: ... (22 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)
TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/lifecycle-started-toggle/output.txt
        +++ /tmp/TestAcceptbundleresourcesappslifecycle-started-toggleDMS=3361029992/002/output.txt
        @@ -16,8 +16,7 @@
           },
           "body": {
             "description": "my_app_description",
        -    "name": "[UNIQUE_NAME]",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/lifecycle-started-toggle-[UNIQUE_NAME]/default/files/app"
        +    "name": "[UNIQUE_NAME]"
           }
         }

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/lifecycle-started-toggle/DMS=true: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/lifecycle-started-toggle/output.txt
        +++ /tmp/TestAcceptbundleresourcesappslifecycle-started-toggleDMS=tr1717636392/002/output.txt
        @@ -16,8 +16,7 @@
           },
           "body": {
             "description": "my_app_description",
        -    "name": "[UNIQUE_NAME]",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/lifecycle-started-toggle-[UNIQUE_NAME]/default/files/app"
        +    "name": "[UNIQUE_NAME]"
           }
         }

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/lifecycle-started/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/lifecycle-started/output.txt
        +++ /tmp/TestAcceptbundleresourcesappslifecycle-startedDMS=807293687/002/output.txt
        @@ -13,8 +13,7 @@
           "path": "/api/2.0/apps",
           "body": {
             "description": "my_app_description",
        -    "name": "[UNIQUE_NAME]",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/lifecycle-started-[UNIQUE_NAME]/default/files/app"
        +    "name": "[UNIQUE_NAME]"
           }
         }
         {
        @@ -96,7 +95,7 @@
               "description": "MY_APP_DESCRIPTION_2",
               "name": "[UNIQUE_NAME]"
             },
        -    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,git_source,telemetry_export_destinations"
        +    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
           }
         }
         
        @@ -124,7 +123,7 @@
               "description": "MY_APP_DESCRIPTION_3",
               "name": "[UNIQUE_NAME]"
             },
        -    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,git_source,telemetry_export_destinations"
        +    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
           }
         }
         {

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/lifecycle-started/DMS=true: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/lifecycle-started/output.txt
        +++ /tmp/TestAcceptbundleresourcesappslifecycle-startedDMS=true2188767509/002/output.txt
        @@ -13,8 +13,7 @@
           "path": "/api/2.0/apps",
           "body": {
             "description": "my_app_description",
        -    "name": "[UNIQUE_NAME]",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/lifecycle-started-[UNIQUE_NAME]/default/files/app"
        +    "name": "[UNIQUE_NAME]"
           }
         }
         {
        @@ -96,7 +95,7 @@
               "description": "MY_APP_DESCRIPTION_2",
               "name": "[UNIQUE_NAME]"
             },
        -    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,git_source,telemetry_export_destinations"
        +    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
           }
         }
         
        @@ -124,7 +123,7 @@
               "description": "MY_APP_DESCRIPTION_3",
               "name": "[UNIQUE_NAME]"
             },
        -    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,git_source,telemetry_export_destinations"
        +    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
           }
         }
         {

latest (v1.26.0): same output as main (4668f26)

TestAccept/bundle/resources/apps/missing-service-principal/DMS=: branch ✅ | main (4668f26) ❌ | latest (v1.26.0) ❌

main (4668f26):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/missing-service-principal/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsmissing-service-principalDMS=2461931028/002/output.txt
        @@ -33,8 +33,7 @@
           },
           "body": {
             "description": "my_app_description",
        -    "name": "myappname",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app"
        +    "name": "myappname"
           }
         }
         {
        @@ -45,7 +44,7 @@
               "description": "MY_APP_DESCRIPTION",
               "name": "myappname"
             },
        -    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,git_source,telemetry_export_destinations"
        +    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
           }
         }

latest (v1.26.0):

acceptance_test.go:1373: Diff:
        --- bundle/resources/apps/missing-service-principal/output.txt
        +++ /tmp/TestAcceptbundleresourcesappsmissing-service-principalDMS=592298106/002/output.txt
        @@ -11,10 +11,8 @@
         
         >>> errcode [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Error: cannot update resources.apps.mykey: updating id=myappname: App: myappname's service principal does not exist or is deleted. App cannot run without a valid service principal. Please delete your app.
        +Error: cannot update resources.apps.mykey: updating id=myappname: App: myappname's service principal does not exist or is deleted. App cannot run without a valid service principal. Please delete your app. (400 BAD_REQUEST)
         
        -The app cannot be updated or started without its service principal. To recreate the app, delete it with "databricks apps delete myappname", wait for the deletion to finish, and run "databricks bundle deploy" again, using the same profile and target as for this deploy. Deleting the app also deletes its deployment history (400 BAD_REQUEST)
        -
         Endpoint: POST [DATABRICKS_URL]/api/2.0/apps/myappname/update
         HTTP Status: 400 Bad Request
         API error_code: BAD_REQUEST
        @@ -33,8 +30,7 @@
           },
           "body": {
             "description": "my_app_description",
        -    "name": "myappname",
        -    "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app"
        +    "name": "myappname"
           }
         }
         {
        @@ -45,7 +41,7 @@
               "description": "MY_APP_DESCRIPTION",
               "name": "myappname"
             },
        -    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,git_source,telemetry_export_destinations"
        +    "update_mask": "description,budget_policy_id,usage_policy_id,resources,user_api_scopes,compute_min_instances,compute_max_instances,git_repository,telemetry_export_destinations"
           }
         }
         
        @@ -57,10 +53,8 @@
         
         >>> errcode [CLI] bundle deploy
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Error: cannot update resources.apps.mykey: updating id=myappname: App: myappname's service principal does not exist or is deleted. App cannot run without a valid service principal. Please delete your app.
        +Error: cannot update resources.apps.mykey: updating id=myappname: App: myappname's service principal does not exist or is deleted. App cannot run without a valid service principal. Please delete your app. (400 BAD_REQUEST)
         
        -The app cannot be updated or started without its service principal. To recreate the app, delete it with "databricks apps delete myappname", wait for the deletion to finish, and run "databricks bundle deploy" again, using the same profile and target as for this deploy. Deleting the app also deletes its deployment history (400 BAD_REQUEST)
        -
         Endpoint: POST [DATABRICKS_URL]/api/2.0/apps/myappname/start
         HTTP Status: 400 Bad Request
         API error_code: BAD_REQUEST

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

andrewnester and others added 3 commits November 11, 2026 12:50
The Apps API accepts a non-empty source_code_path on UpdateApp (verified
against a real workspace in the update-source-code-path-cloud test). Keep
sending it on Create and Update so the app records and drift-detects it.
An empty source_code_path is still never sent: #6401 showed the API
rejects "source_code_path": "" and #6404 guards against it. The fake
server now models both rules.

Co-authored-by: Isaac <no-reply@databricks.com>
The production Integration Tests run for this PR rejected UpdateApp with
400 INVALID_PARAMETER_VALUE because the update mask contained
source_code_path (lifecycle-started and update-source-code-path-cloud
failed on every cloud). Apply the fallback from the PR description:

- Keep source_code_path in the CreateApp body. On UpdateApp, clear it
  from the body and drop it from UpdateMaskFields; git_repository and
  git_source stay on both Create and Update.
- Exclude source_code_path from hasAppChanges again, so a change to it
  alone no longer triggers an UpdateApp call that cannot carry it. The
  Deploy API in manageLifecycle still receives source_code_path.
- Teach the fake server to reject source_code_path in the UpdateApp mask
  and in the body at any value, matching production, so the local suite
  catches a regression.
- Rework the source-code-path-update acceptance test to assert both the
  no-request path for a source_code_path-only change and the UpdateApp
  body/mask without source_code_path on a description change; retitle
  the cloud test and regenerate affected outputs.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@andrewnester

Copy link
Copy Markdown
Contributor Author

The production Integration Tests run on 160bdfd answered the open question: UpdateApp rejects source_code_path in the update mask with 400 INVALID_PARAMETER_VALUE on all six environments (lifecycle-started and update-source-code-path-cloud failed, the app cloud tests that never call UpdateApp passed). Staging's acceptance of it does not carry over to production.

Implemented the fallback described above: source_code_path is sent on CreateApp only, git_repository and git_source stay on Create and Update, and the Deploy API still receives source_code_path. A change to source_code_path alone no longer issues an UpdateApp call; it is applied by the next deployment, as on main before this PR. The fake server now rejects source_code_path in the UpdateApp mask (and body) like production, so the local suite catches a regression; source-code-path-update asserts the new behaviour and the two cloud tests' outputs were regenerated locally. The changelog fragment is reworded accordingly.

On the new head (f9fa887) update-source-code-path-cloud passes on all six environments; lifecycle-started still fails on two runners and is flaky on two others while passing on Linux AWS/Azure, which looks timing-related rather than mask-related.

andrewnester and others added 3 commits November 11, 2026 16:22
The merge of main (#7461) into this branch kept main's header for the old
TestAppRequestBody_StripsSourceCodePathFromForceSendFields on top of this
branch's rewritten body, which no longer compiled (undefined: app). Restore
this branch's TestAppRequestBody_StripsEmptySourceCodePathFromForceSendFields
below main's TestAppUpdateMask_ComputeSizeFollowsBody.

Regenerate the apps acceptance goldens so they reflect both parents:
- update, lifecycle-started: the merge took main's copy, which lacked this
  branch's git_source in the update mask.
- update-compute-size (new on main): add source_code_path to the Create
  body and git_source to the update mask (this branch).
- source-code-path-update (new on this branch): drop compute_size from the
  update mask when the bundle does not declare it (main, #7461).

Co-authored-by: Isaac <no-reply@databricks.com>
@andrewnester

Copy link
Copy Markdown
Contributor Author

Integration run on 105179d: update-source-code-path-cloud now passes on all environments. The only failure is apps/lifecycle-started/DMS=true on aws-windows, which also fails on main (7ac220c), so it is pre-existing flakiness.

@andrewnester andrewnester added the ai-auto Deprecated: use factory-generated instead. label Nov 13, 2026
@pietern pietern changed the title Use source_code_path and git_source on Create/Update Use source_code_path and git_source on create/update Nov 18, 2026
@@ -0,0 +1 @@
* Send `source_code_path` on the app Create request and `git_source` on the app Create and Update requests, so the app records its configured source before its first deployment. ([#6399](https://github.com/databricks/cli/pull/6399))

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 is very detailed; maybe something like "enable drift detection for source_code_path and git_source for apps"?

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.

Agreed, shortened to "Enable drift detection for source_code_path and git_source on apps." in #7761.

Files: 1 uploaded, 0 deleted
Resources: 0 created, 1 changed, 0 deleted, 0 unchanged

>>> print_requests.py //apps

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 is empty because the update doesn't fire a request, but still stores the updated value in the state?

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.

Yes. UpdateApp rejects source_code_path, so no request is sent, but state stores the new value. #7761 makes the test print it.

@@ -0,0 +1,17 @@
envsubst < databricks.yml.tmpl > databricks.yml

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.

How is this different from "source-code-path-update"?

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.

Same rule, but this one runs against a real workspace (Cloud = true). The local test also covers plan, state and description updates, so I kept both.

@andrewnester
andrewnester added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 64f9a31 Nov 18, 2026
28 checks passed
@andrewnester
andrewnester deleted the fix/app-source-code-path branch November 18, 2026 10:24
denik added a commit that referenced this pull request Nov 18, 2026
Resolve the doUpdate conflict with #6399: keep the plan-time started
state captured before the update and main's comment and appUpdateBody.

cloud: TestAccept/bundle/apps/job_permissions TestAccept/bundle/invariant/no_drift/DMS=true/INPUT_CONFIG=app.yml.tmpl

Co-authored-by: Isaac <no-reply@databricks.com>
denik added a commit that referenced this pull request Nov 18, 2026
Resolve the conflict in bundle/direct/dresources/app.go: keep startApp and
take main's updated hasAppChanges comment from #6399.

Co-authored-by: Isaac <no-reply@databricks.com>
deco-sdk-tagging Bot added a commit that referenced this pull request Nov 19, 2026
## Release v1.27.0

### Notable Changes

 * `databricks aitools install`, `update` and `uninstall` now exit with code 1 when they do nothing they were asked to. `install` fails when it sets up nothing: no coding agent is detected, every agent is skipped or fails to install, or no skill in the release can be installed (also with `--path`). `update` fails when every update or check it attempts fails, and `uninstall` when every removal it attempts fails. Scripts that ran these commands as a best-effort step and relied on exit code 0 should handle the new exit code. ([#7481](#7481))
 * Add `file:<path>` selectors to `pipelines run` and pipeline `bundle run`. `--refresh` and `--full-refresh` now use space-separated lists, such as `--refresh "orders payments"`, instead of comma-separated lists. Single names containing spaces now require backticks, e.g. ``--refresh 'table:`order details`'``. ([#7184](#7184))
 * The Databricks CLI is now available on PyPI as `databricks`: run it with `uvx databricks`, or install it with `uv tool install databricks`, `pipx install databricks` or `pip install databricks`. The package contains only the prebuilt CLI binary. Uninstall the legacy `databricks-cli` package first, since both install a `databricks` command. ([#7704](#7704), [#7777](#7777))

### CLI

 * Add `databricks sandbox fs` commands (`cp`, `ls`, `cat`, `mkdir`, `rm`) to transfer files between your local filesystem and sandboxes using `<sandbox-id>:/path`. ([#7372](#7372))
 * `databricks fs` commands retry reads (stat, list, open) and deletes on DBFS and Volumes when the server returns a transient error or does not respond within the HTTP timeout. ([#7556](#7556))
 * Retry UC Volumes file operations (`fs cp`, `fs ls`, `fs rm`, bundle uploads to Volumes) when the Files API returns HTTP 408, 429, 502, 503 or 504 (for example "AWS S3 is throttling requests"), or on a transient network error; this regressed in v1.10.0. ([#7559](#7559))
 * Stop warning when the host metadata request (`/.well-known/databricks-config`) times out; the CLI already falls back to your config, and the message is still shown with `--debug`. ([#7752](#7752))
 * Add `databricks aitools auto-install disable` and `enable` to turn off (or back on) the automatic installation of Databricks AI tools on CLI upgrades. A global-scope `databricks aitools uninstall` also turns it off. ([#7701](#7701))
 * Stop printing the Databricks AI tooling install hint on `auth`, `configure`, `current-user me`, `version`, `help`, and shell-completion commands. ([#7452](#7452))
 * When Codex, Cursor, GitHub Copilot CLI, OpenCode, Gemini CLI, Antigravity, Pi, Goose or Kiro run the CLI without Databricks skills installed for that agent, the CLI now prints a one-line hint to install them with `databricks aitools install --agents <agent> --scope global`, previously shown only to Claude Code. ([#7586](#7586))
 * `databricks aitools install` now rejects an unknown `--agents` name before it shows the scope prompt, instead of after. ([#7469](#7469))
 * `databricks aitools install` no longer asks "Proceed?" after the agent picker; the picker selection confirms the plan. The picker title now shows the install scope, its hint says Enter installs, `--skills-only` runs label plugin agents "skills" and pre-check every agent whose config dir exists, and the plan summary after it is reduced to the scope line. ([#7478](#7478))
 * `databricks aitools install --output json` reports more specific `error_category` values: `SKILLS_FETCH_FAILED`, `RELEASE_LOOKUP_FAILED`, `RATE_LIMITED`, `MANIFEST_INVALID`, `STATE_INVALID` and `PLUGIN_CLI_TIMEOUT`. A coding agent CLI that does not answer in time is now reported as `timed out after <duration>`, followed by any stderr it wrote before it was stopped. ([#7475](#7475))
 * `databricks aitools install` no longer prompts when a coding agent runs it, even in a pseudo-terminal; it uses the non-interactive defaults instead and prints a note saying so. ([#7477](#7477))
 * `databricks aitools install` now prints the directory it installed skills into (for example `Installed 1 skill in ~/.databricks/aitools/skills.`), so agents can open the installed `SKILL.md` files without searching for them. ([#7668](#7668))
 * `databricks aitools install` now ends a failed install with a step to recover, in the text output and in a new `recovery` field of `--output json`. ([#7480](#7480))
 * `databricks aitools install` now installs plugins for the other coding agents even when installing skill files fails. ([#7479](#7479))
 * `databricks aitools install` now installs skill files for a detected coding agent whose CLI is not on PATH (for example a Claude Code desktop or IDE install), unless it already has the plugin, says how to switch to the plugin later, and warns when the current project also has the plugin. `databricks aitools update` no longer tries to install the plugin for such an agent, and no longer writes skill files next to a plugin that such an agent already has. ([#7482](#7482))
 * Fix `databricks aitools install` waiting a long time on an unreachable or slow workspace while it resolves authentication for telemetry; that wait is now limited to a few seconds. ([#7468](#7468))
 * `databricks aitools install`, `update` and `list` now refuse a skills manifest that names a skill or file outside the skills directory, before writing any skill files. A skill whose name or file paths are not portable is skipped with a warning, and `update` keeps its installed copy. ([#7722](#7722))
 * `databricks aitools install` and `databricks aitools update` refresh only the marketplace the Databricks plugin is listed in, so another unreachable marketplace no longer blocks them. When that refresh fails, both commands warn, install or update the plugin from the local copy of the marketplace, and record the plugin version as unknown. ([#7473](#7473))
 * `databricks aitools install` and `databricks aitools update` now wait up to 20 seconds instead of 5 for a coding agent's CLI to answer the plugin capability check, so a slow first start is less likely to report the agent as unavailable. ([#7472](#7472))
 * `databricks aitools install` no longer fails a plugin-only install when the lookup of the latest skills release on GitHub fails or is rate-limited. The plugin is installed and its version is recorded as unknown. ([#7474](#7474))
 * `databricks aitools` commands now send usage telemetry, and the CLI records when it recommends installing Databricks AI tools. When the configured workspace is slow or unreachable, `aitools install`, `update` and `uninstall` can take up to about 6 seconds longer, and `list`, `version` and runs that stop early up to about 3 seconds. Set `DATABRICKS_CLI_DISABLE_TELEMETRY=1` to opt out. ([#7467](#7467), [#7469](#7469), [#7470](#7470))
 * `databricks aitools install` and `databricks aitools update` now report a coding agent CLI shim (`.cmd` or `.bat`) on Windows that prints its plugin help and then exits with an error as `shim-exited-with-error`, with the command to run to see the error, instead of reporting the CLI as not on PATH. ([#7476](#7476))
 * `apps init` no longer suggests installing skills when every detected coding agent already has the Databricks plugin. ([#7467](#7467))
 * `databricks auth login` now gives up on the optional workspace lookup after about 5 seconds instead of retrying for about 5 minutes, and explains the fallback to the manual workspace ID prompt. ([#7522](#7522))
 * Throttle Claude Code's native plugin install hint separately from the text hint: it prints at most once per 10 minutes per session, so the install dialog still comes up when a subagent, a hook, or a command outside a Claude Code subprocess runs the session's first `databricks` command. ([#7692](#7692))
 * Print Claude Code's native plugin install hint alongside the text hint, so Claude Code offers a one-click install of the Databricks plugin. Claude Code now counts as having the tooling only when it loads it: skills only in `~/.databricks/aitools/skills` don't count, and a project- or local-scope plugin counts only when the CLI runs inside that project. `auth token`, `auth docker token` and CLI subprocesses no longer print install hints. ([#7585](#7585))
 * Interactive prompts and pagers now work in Git for Windows' bash and other MSYS2 shells when they run under ConPTY (the default since Git for Windows 2.47) or directly in a Windows console. ([#7699](#7699))
 * Add the `databricks feedback` command to send feedback about the CLI to Databricks. ([#7724](#7724))
 * Fix shell completion in `databricks fs` commands for local paths typed with a leading `./` or repeated separators, which previously offered no suggestions. ([#7679](#7679))
 * Fix a panic in `databricks labs` commands when a non-string SDK setting such as `DATABRICKS_DEBUG_HEADERS` or `DATABRICKS_RATE_LIMIT` is set in the environment. ([#7673](#7673))
 * Fix a panic in `databricks labs install` for projects whose `labs.yml` has no `install` section. ([#7673](#7673))
 * `NO_COLOR` no longer disables prompts, spinners or the list pager; they run without color. ([#7700](#7700))
 * Add the Beta `databricks pipelines test` command, which runs the tests of a pipeline, and the `testing` property of pipelines in bundles. ([#7429](#7429))
 * Add `databricks sandbox forward`, which serves an app running in a sandbox at a local URL. ([#7395](#7395))
 * Bound the whole telemetry upload at exit, including config resolution and authentication, by its timeout, so a stalled auth or telemetry endpoint no longer keeps a command from exiting. ([#7467](#7467))
 * `databricks version --check` now suggests `databricks aitools install` on stderr when a coding agent is detected without the Databricks plugin or skills. ([#7471](#7471))

### AI Runtime

 * `air get -o json` now reports `PENDING` while the run waits for compute, matching `air list`, and includes the run's `status_message`. ([#7455](#7455))
 * Wrap long failure reasons and log lines in the `air list` info and logs panes, keep the MLflow link (labeled with its retry) when a run's last retry failed before starting, and point `air logs` at earlier retries when the last one has no logs. ([#7456](#7456))
 * `databricks air logs --node` now reports an out-of-range node index when it can determine the run's node count, instead of looking like a successful run with no logs. ([#7516](#7516))
 * Add experiment, duration, accelerator, and dashboard metadata to `air list --output json`. For retried runs, `started_at` now reports the latest attempt, matching `air get`. ([#7568](#7568))
 * `air list` shortens MLflow run names and unnamed-run IDs by keeping their end behind a leading `…`, and its columns no longer overflow on wide (for example CJK) text; `air get` shows an unnamed run's full MLflow run ID. ([#7582](#7582))
 * Shrink the Experiment and User columns of the interactive `air list` table to fit the terminal width, keeping the end of a shortened experiment name. ([#7583](#7583))
 * Show the experiment, accelerators and configuration in the `air list` info pane for runs where it showed `N/A`. ([#7587](#7587))
 * Strip terminal control characters from the MLflow run, experiment and user names shown by `air list` and `air get`, so a run name cannot clear or retitle the terminal of whoever lists it. ([#7601](#7601))
 * `air logs`, `air get`, and `air run --watch` no longer make an extra credential-check request before fetching the run, and `air get` reuses the configured workspace ID instead of looking it up. ([#7613](#7613))
 * `air list` no longer waits on extra current-user requests before listing runs, which makes the default list about 150ms faster. ([#7615](#7615))
 * `air list --all-status` requests larger index pages, so it makes far fewer round trips once the server supports `page_size`. ([#7616](#7616))
 * Fit the interactive `air list` table to narrow terminals: when the Experiment and User columns are at their floors, shorten Started to `MM-DD HH:MM` and size the MLflow column to its labels, then hide Accelerators, User, MLflow and Progress in that order, naming the hidden columns in the hint line. ([#7629](#7629))
 * `air get -o json` now includes `mlflow_run_id` and `mlflow_experiment_id`, so a run can be handed to MLflow-based steps without parsing `mlflow_url`. They identify the MLflow run `mlflow_url` links to, including one from an earlier retry that `mlflow_retry` names. ([#7636](#7636))
 * `air get` and the `air list` info pane now show the environment of runs on the Databricks AI environment (`databricks_ai_v*`) instead of `N/A`. ([#7637](#7637))
 * `air run` now rejects a `code_source.include_paths` path that selects no files instead of uploading a snapshot without it; glob patterns and pathspec magic are left to git. ([#7643](#7643))
 * `air convert-to-dabs` now suggests the `--output-dir` that converts a working-tree workload whose `code_source.root_path` is outside the bundle directory, instead of suggesting `sync.paths`. ([#7644](#7644))
 * `air run` now lists a `code_source.root_path` outside a git repository relative to `root_path`, so running from a subdirectory of `root_path` no longer uploads an empty or partial snapshot. ([#7646](#7646))
 * `air list --all-status` now fills `--limit` past purged or inaccessible indexed runs. ([#7743](#7743))
 * `air run` now warns about missing PyTorch when a pinned snapshot's `include_paths` selects a Python file. ([#7744](#7744))
 * `air cancel JOB_RUN_ID` now rejects run IDs that are not AI Runtime runs instead of cancelling unrelated Jobs runs. In `-o json` output, the `failed[].error` text for a run that does not exist or that you cannot view now starts with `failed to get run <id>:` instead of the cancel API error. ([#7569](#7569))
 * `air get -o json` now reports `mlflow_retry` when the MLflow link comes from an earlier retry because the run's last retry never reached MLflow. ([#7620](#7620))
 * `databricks air run --help` now shows how to install the databricks-ai-runtime coding agent skill. ([#7652](#7652))
 * `air run --watch -o json` now reports each lifecycle `STATUS` transition once and never reports a non-terminal state after the run has ended, including when logs are served from MLflow artifacts. ([#7621](#7621))
 * `air convert-to-dabs` now explains the `--output-dir` workaround when `code_source.root_path` resolves to the bundle root, and notes when the generated job carries the default `max_retries`. ([#7579](#7579))
 * `air run` now refuses to upload a `code_source` snapshot that selects no files (for example when `root_path` is git-ignored) and explains the cause, and `--dry-run` runs the snapshot file selection and reports the file count. ([#7570](#7570))
 * Repeat the Jobs run link after live log streaming ends. ([#7571](#7571))
 * `air get -o json` includes run details including flat `accelerator_type` and `num_accelerators`. Use `--include-config` to include stored config, which may contain plaintext `env_variables` and parameters; downloads over 1 MiB are omitted, and config-dependent `max_retries` is otherwise null. ([#7624](#7624))
 * `air get` and the `air list` info pane no longer show `Max Retries 0` when the Jobs API leaves the task's retry limit out. For a run submitted with `air run`, the limit now comes from the run's uploaded config, shown as `3 (CLI default)` when the config doesn't set `max_retries`; it shows `N/A` when the limit can't be known (job runs, multi-container runs, legacy runs with no explicit value, or an unreadable config). ([#7623](#7623))
 * Reorganize `databricks air` help: subcommands are grouped by task, `air run` has examples, and YAML fields are listed under headings, with pool fields marked optional and `command`, `compute.num_accelerators`, and `compute.accelerator_type` correctly marked required. ([#7512](#7512))
 * `air run -h config` now lists the environment variables AI Runtime sets on every node (such as `MLFLOW_RUN_ID` and `CODE_SOURCE_PATH`), and `air logs --help` notes that `--download-to` cannot be combined with `--tail` or `--minutes`. ([#7655](#7655))
 * Support full workspace accelerator types in `air list` filters while preserving family matching, and reject invalid filter values. ([#7515](#7515))
 * `databricks air list --all-status` now warns when the AI Runtime run index is unavailable and it falls back to scanning Jobs runs. That fallback scan is capped at 250 runs, and a stuck index request fails after 15 seconds instead of retrying for minutes. `--all-status --filter user=<your email>` now uses the run index instead of scanning the workspace's full run history. ([#7619](#7619))
 * Return structured JSON errors for invalid `air list --filter` values when `-o json` is used. ([#7612](#7612))
 * `air list --all-status` no longer fails when a listed run has been purged. ([#7523](#7523))
 * **Behavior change:** `databricks air logs` now prints the logs available now and exits, also for an active run, matching `kubectl logs`, `docker logs` and `databricks apps logs`. Pass `--follow` (`-f`) to stream new lines until the run completes; `--tail N --follow` prints the last N lines first. `databricks air run --watch` still submits and streams. ([#7658](#7658))
 * `databricks air logs -o json` and `databricks air run --watch -o json` now emit a `WAITING` event, for example `{"type":"WAITING","message":"Waiting for accelerator compute capacity..."}`, when the reported waiting status changes. ([#7695](#7695))
 * `databricks air logs` on a run that ended in the last two minutes now waits for the log index to settle before printing, instead of sometimes dropping lines that were indexed late. ([#7663](#7663))
 * `air logs` and `air run --watch` now print the waiting status (for example `Waiting for accelerator compute capacity...`) as a line on stderr when stderr is not a terminal, instead of printing nothing until the run produces logs. ([#7657](#7657))
 * Route AIR log links to the MLflow Logs page instead of the hidden artifact path. ([#7491](#7491))
 * Invalid `compute.accelerator_type` errors and `air run -h config.compute` no longer list the CLI's built-in accelerator types, which could differ from the workspace's. ([#7520](#7520))
 * `databricks air --help` now notes that GPU pools are not required to run workloads. ([#7581](#7581))
 * `air run` now prints the job run URL with the `?o=<workspace-id>` suffix, matching `air get` and `air list`; `dashboard_url` in `air run -o json` and the `--watch` events gains it too. When `air list` cannot resolve the workspace ID, its links now omit `?o=` instead of ending in `?o=0`. ([#7573](#7573))
 * `databricks air run` now reports an unknown workload YAML key by its field path, suggests the closest valid field, and points to `-h config` instead of naming an internal Go type. ([#7574](#7574))
 * `air run` (including `--dry-run`) now warns before submitting when the `code_source` imports `torch` but PyTorch is not declared: the environment is the Standard environment (version 5 or later) with no `torch` dependency, so the run may fail after it waits for a GPU. ([#7656](#7656))

### Bundles

 * Add `isolation_mode` to the `catalogs` resource, so a catalog can be deployed as `OPEN` or `ISOLATED`. ([#7463](#7463))
 * `bundle validate` no longer warns when resource permissions and top-level or target permissions name the same principal. ([#7291](#7291))
 * Retry bundle file uploads, reads and deletes when the server does not respond within the HTTP timeout ("request timed out after ... of inactivity"). ([#7521](#7521))
 * Show how to recover when `bundle deploy` fails because an app's service principal does not exist or was deleted. ([#7533](#7533))
 * Retry transient server errors when creating Lakebase (`postgres_*`) resources in the direct deployment engine. ([#7557](#7557))
 * Fix `bundle plan` reporting the `spark_conf` and `custom_tags` the backend derives from `is_single_node: true` as drift on clusters. ([#7577](#7577))
 * Stop planning a spurious update for Lakeflow Connect pipelines whose `ingestion_definition.data_staging_options` is filled in by the backend. ([#7603](#7603))
 * Retry the root path check in `bundle destroy` on transient errors, so a dropped connection no longer fails the destroy. ([#7597](#7597))
 * Use the Lakebase branch when its create request times out but the branch was created, instead of failing the deploy, in the direct deployment engine. ([#7602](#7602))
 * Retry transient server errors when deleting resources in the direct deployment engine. ([#7708](#7708))
 * Use the Lakebase project when its create request times out but the project was created, instead of failing the deploy with "already exists", in the direct deployment engine. ([#7747](#7747))
 * Use the feature, model serving endpoint or dashboard that a create request created despite timing out, instead of failing the deploy, in the direct deployment engine. ([#7757](#7757))
 * Use the Lakebase role when its create request fails with a transient error but the role was created, instead of failing the deploy, in the direct deployment engine. ([#7767](#7767))
 * Use the MCP service, model service or model provider service that a create request created despite failing with a timeout, a 499 or a reset stream, instead of failing the deploy, in the direct deployment engine. Create recovery for features, serving endpoints and dashboards now also covers 499 and reset streams. ([#7782](#7782))
 * Retry app updates and deletes in the direct deployment engine when they fail with 400 BAD_REQUEST because the app compute is `UPDATING`, after waiting for the compute to settle. ([#7606](#7606))
 * Enable drift detection for `source_code_path` and `git_source` on apps. ([#6399](#6399))
 * `bundle destroy` and `bundle deploy` no longer fail with "internal error, missing in state" when the state holds an empty-ID entry left by an interrupted recreate in an older CLI. ([#7676](#7676))
 * Fix a feature whose `full_name` contains uppercase letters being recreated on every deploy. ([#7398](#7398))
 * Fix `bundle deployment bind` (and `bundle generate --bind`) failing with `no such node "resources.internal_immutable_snapshots.immutable"` when `workspace.sync_mode` is `immutable`, as reported in [#7306](#7306). ([#7329](#7329))
 * Retry creating the deployment lock (without `--force-lock`) when the request fails with a transient server error, times out ("request timed out after ... of inactivity") or loses its connection ("unexpected EOF"). ([#7594](#7594))
 * Fix a materialization set member whose `feature_name` contains uppercase letters failing to deploy, or recreating the set on every deploy. ([#7398](#7398))
 * Delete the old resource when its name follows a renamed schema. ([#7718](#7718))
 * Fix `pipelines dry-run` starting a real run when given a job KEY, and a crash in its shell completion. ([#7672](#7672))
 * Rename schemas in place; schemas and volumes follow a renamed catalog or schema. ([#7343](#7343))
 * Fix a panic when validating or deploying jobs with local libraries and serverless job clusters. ([#7725](#7725))
 * Fix `tgz` artifacts with `git` set producing an empty tarball or failing when the bundle is in a subdirectory of the git repository. ([#7674](#7674))
 * Apply `presets.trigger_pause_status` and the development mode pause default to `triggers[]` entries on jobs. ([#7450](#7450))

### Dependency Updates

 * Bump dependencies with known vulnerabilities. ([#7750](#7750))
 * Update the Go SDK to [v0.198.0](https://github.com/databricks/databricks-sdk-go/releases/tag/v0.198.0). ([#7530](#7530))
 * Update the Go SDK to [v0.199.0](https://github.com/databricks/databricks-sdk-go/releases/tag/v0.199.0). ([#7584](#7584))
 * Update the Go SDK to [v0.200.0](https://github.com/databricks/databricks-sdk-go/releases/tag/v0.200.0). ([#7653](#7653))
 * Update the Go SDK to [v0.201.0](https://github.com/databricks/databricks-sdk-go/releases/tag/v0.201.0). ([#7769](#7769))
@denik denik added factory-generated and removed ai-auto Deprecated: use factory-generated instead. labels Nov 20, 2026
idelafuente-oc pushed a commit to idelafuente-oc/cli that referenced this pull request Nov 20, 2026
…p state in test (databricks#7761)

## Changes

Follow-up to databricks#6399. Shortens the changelog entry as suggested in review.

- Print the stored `source_code_path` in `source-code-path-update`, so
the test shows the update sends no request but still records the new
value in state.

## Why

Addresses the open review threads on databricks#6399.
`update-source-code-path-cloud` is kept: it is the real-workspace run of
the same rule.

## Tests

`source-code-path-update` (both DMS variants) and
`update-source-code-path-cloud` acceptance tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Isaac <no-reply@databricks.com>
idelafuente-oc pushed a commit to idelafuente-oc/cli that referenced this pull request Nov 20, 2026
…cks#7780)

## Changes
`appdeploy.WaitForDeploymentToComplete` no longer fails when the active
or pending deployment it waits for ends in `FAILED`. It logs the failure
and returns, and the caller runs the bundle's own deployment. Both
callers (`bundle run` for apps and `lifecycle.started` in the direct
engine) deploy right after waiting, so the new deployment replaces the
failed one.

## Why
Since databricks#6399, Create sends `source_code_path`, so the app records a
`default_source_code_path`. Starting a stopped app then makes the
backend deploy that source with the `app.yaml` it contains, not the
bundle's inline `config`. If that config doesn't run (in
`inline_config`, `app.yaml` runs `python app.py`, which exits right
away), the deployment fails with `app exited unexpectedly`. `bundle run`
waited on that deployment, returned its error, and never deployed the
inline config.

This is a regression from databricks#6399. It is unreleased, so there is no
changelog entry.

Decision: I fixed the wait instead of reverting `source_code_path` on
Create, which databricks#6399 added on purpose. A failed earlier deployment never
needs to block the new one.

## Tests
- Unit tests in `bundle/appdeploy`: a FAILED deployment no longer
returns an error. The test fails without the fix.
- `TestAccept/bundle/resources/apps/inline_config` (both DMS variants)
passes on AWS with the fix and fails without it. The run log shows
`Deployment ... failed (Error: app exited unexpectedly. ...), deploying
again`, followed by `App started successfully`.
- The last commit asks the PR's cloud run to run `inline_config` on
every cloud.

## Dashboard

[error/3769](http://go/cli/dashboard/error/3769?main=1&pr=1&end=2026-11-18T18:00:00Z&last=1d):
74 failures in 11 main runs on aws, azure and gcp, starting with the
first run after databricks#6399.
-
[TestAccept/bundle/resources/apps/inline_config/DMS=](http://go/cli/dashboard/test/acceptance.TestAccept/bundle/resources/apps/inline_config/DMS=?main=1&pr=1&end=2026-11-18T18:00:00Z&last=1d)
-
[TestAccept/bundle/resources/apps/inline_config/DMS=true](http://go/cli/dashboard/test/acceptance.TestAccept/bundle/resources/apps/inline_config/DMS=true?main=1&pr=1&end=2026-11-18T18:00:00Z&last=1d)

```
LOG.run_app: ✓ Waiting for the active deployment to complete...
LOG.run_app: Error: failed to reach SUCCEEDED, got FAILED: Error: app exited unexpectedly. Please check /logz for more details
```

This pull request and its description were written by Isaac.

---------

Co-authored-by: Isaac <no-reply@databricks.com>
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