diff --git a/.nextchanges/bundles/app-source-code-path.md b/.nextchanges/bundles/app-source-code-path.md index 92d30119638..99e4b286b05 100644 --- a/.nextchanges/bundles/app-source-code-path.md +++ b/.nextchanges/bundles/app-source-code-path.md @@ -1 +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)) +* Enable drift detection for `source_code_path` and `git_source` on apps. ([#6399](https://github.com/databricks/cli/pull/6399)) diff --git a/acceptance/bundle/resources/apps/source-code-path-update/output.txt b/acceptance/bundle/resources/apps/source-code-path-update/output.txt index cc99dfa7e9f..36254cf3726 100644 --- a/acceptance/bundle/resources/apps/source-code-path-update/output.txt +++ b/acceptance/bundle/resources/apps/source-code-path-update/output.txt @@ -40,6 +40,11 @@ Resources: 0 created, 1 changed, 0 deleted, 0 unchanged >>> print_requests.py //apps +=== The new source_code_path is still stored in the deployment state + +>>> print_state.py + "source_code_path": "/Workspace/Users/[USERNAME]/.bundle/app-source-code-path-update/default/files/app2" + === Change description: App Update omits source_code_path from the body and the update mask >>> update_file.py databricks.yml my_app_description MY_APP_DESCRIPTION diff --git a/acceptance/bundle/resources/apps/source-code-path-update/script b/acceptance/bundle/resources/apps/source-code-path-update/script index 58260eb246d..4991dfdbfc4 100644 --- a/acceptance/bundle/resources/apps/source-code-path-update/script +++ b/acceptance/bundle/resources/apps/source-code-path-update/script @@ -10,6 +10,9 @@ title "Redeploy: UpdateApp rejects source_code_path, so no app request is sent; trace $CLI bundle deploy trace print_requests.py //apps +title "The new source_code_path is still stored in the deployment state" +trace print_state.py | grep source_code_path + title "Change description: App Update omits source_code_path from the body and the update mask" trace update_file.py databricks.yml my_app_description MY_APP_DESCRIPTION trace $CLI bundle deploy