diff --git a/acceptance/apps/deploy/bundle-no-args-with-flags/output.txt b/acceptance/apps/deploy/bundle-no-args-with-flags/output.txt index 5c655deef1e..8cb38ed1a58 100644 --- a/acceptance/apps/deploy/bundle-no-args-with-flags/output.txt +++ b/acceptance/apps/deploy/bundle-no-args-with-flags/output.txt @@ -2,9 +2,9 @@ >>> [CLI] apps deploy --skip-validation --auto-approve --force-lock --fail-on-active-runs Deploying project... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.myapp + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. ✓ Getting the status of the app myapp ✓ App is in RUNNING state ✓ App compute is in STOPPED state @@ -21,5 +21,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/apps/deploy/bundle-no-args/output.txt b/acceptance/apps/deploy/bundle-no-args/output.txt index d6c98f85351..fd944a108e3 100644 --- a/acceptance/apps/deploy/bundle-no-args/output.txt +++ b/acceptance/apps/deploy/bundle-no-args/output.txt @@ -2,9 +2,9 @@ >>> [CLI] apps deploy --skip-validation Deploying project... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.myapp + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. ✓ Getting the status of the app myapp ✓ App is in RUNNING state ✓ App compute is in STOPPED state @@ -21,5 +21,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/apps/app_yaml/output.txt b/acceptance/bundle/apps/app_yaml/output.txt index addb91d683c..2d43c0188b6 100644 --- a/acceptance/bundle/apps/app_yaml/output.txt +++ b/acceptance/bundle/apps/app_yaml/output.txt @@ -15,9 +15,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.myapp + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> jq select(.path | test("app.yml")) out.requests.txt @@ -27,8 +27,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //apps { diff --git a/acceptance/bundle/apps/compute_size/out.update.direct.txt b/acceptance/bundle/apps/compute_size/out.update.direct.txt index 6e02b630e61..9666ce745ad 100644 --- a/acceptance/bundle/apps/compute_size/out.update.direct.txt +++ b/acceptance/bundle/apps/compute_size/out.update.direct.txt @@ -1,9 +1,9 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-compute-size-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.my_app + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] apps get app-[UNIQUE_NAME] { diff --git a/acceptance/bundle/apps/compute_size/out.update.terraform.txt b/acceptance/bundle/apps/compute_size/out.update.terraform.txt index 62a03593a3f..78bed419d05 100644 --- a/acceptance/bundle/apps/compute_size/out.update.terraform.txt +++ b/acceptance/bundle/apps/compute_size/out.update.terraform.txt @@ -1,7 +1,6 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-compute-size-[UNIQUE_NAME]/files... -Deploying resources... Error: terraform apply: exit status 1 Error: failed to update app @@ -14,7 +13,6 @@ Compute size updates are not supported in this update API. Please use the new update API instead. -Updating deployment state... Exit code: 1 diff --git a/acceptance/bundle/apps/compute_size/output.txt b/acceptance/bundle/apps/compute_size/output.txt index 3c22e34adbd..10ac0b2d8cc 100644 --- a/acceptance/bundle/apps/compute_size/output.txt +++ b/acceptance/bundle/apps/compute_size/output.txt @@ -2,9 +2,9 @@ === Deploy bundle >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-compute-size-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.my_app + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Update compute size and redeploy >>> [CLI] bundle destroy --auto-approve @@ -13,5 +13,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/app-compute-size-[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/apps/git_source/output.txt b/acceptance/bundle/apps/git_source/output.txt index e012c597482..f86f598a4bf 100644 --- a/acceptance/bundle/apps/git_source/output.txt +++ b/acceptance/bundle/apps/git_source/output.txt @@ -18,9 +18,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged === Deploy bundle >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-git-source-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.my_app + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run my_app ✓ Getting the status of the app [APP_NAME] @@ -61,9 +61,7 @@ You can access the app at [APP_NAME]-123.cloud.databricksapps.com === Update git_source branch and redeploy >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-git-source-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. === Verify config update was applied >>> [CLI] apps get [APP_NAME] --output json @@ -78,5 +76,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/app-git-source-[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/apps/job_permissions/output.txt b/acceptance/bundle/apps/job_permissions/output.txt index d64fd16fd0c..b4d1c5d6ec5 100644 --- a/acceptance/bundle/apps/job_permissions/output.txt +++ b/acceptance/bundle/apps/job_permissions/output.txt @@ -1,5 +1,5 @@ ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Warning: app "my_app" references jobs "my_job" which has permissions set. To prevent permission override after deploying the app, please add the app service principal to the jobs permissions at resources.apps.my_app in databricks.yml:24:7 @@ -15,15 +15,12 @@ Add the following section to the jobs permissions: Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! === After first deploy >>> has_manage_run === After second deploy ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Warning: app "my_app" references jobs "my_job" which has permissions set. To prevent permission override after deploying the app, please add the app service principal to the jobs permissions at resources.apps.my_app in databricks.yml:24:7 @@ -39,19 +36,13 @@ Add the following section to the jobs permissions: Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> has_manage_run false === Apply fix and redeploy ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> has_manage_run true @@ -63,5 +54,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/apps/job_permissions/script b/acceptance/bundle/apps/job_permissions/script index df8a6b9e392..63e469c83f0 100644 --- a/acceptance/bundle/apps/job_permissions/script +++ b/acceptance/bundle/apps/job_permissions/script @@ -3,7 +3,7 @@ # Issue: https://github.com/databricks/cli/issues/4309 envsubst < databricks.yml.tmpl > databricks.yml -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' job_id=$(read_id.py my_job) @@ -27,12 +27,12 @@ trace has_manage_run > out.after_first_deploy.$DATABRICKS_BUNDLE_ENGINE.txt rm -f out.after_first_deploy.direct.txt title "After second deploy" -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace has_manage_run title "Apply fix and redeploy" patch -s --no-backup-if-mismatch databricks.yml < fix.patch -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace has_manage_run trace $CLI bundle destroy --auto-approve diff --git a/acceptance/bundle/artifacts/artifact_upload_for_volumes/output.txt b/acceptance/bundle/artifacts/artifact_upload_for_volumes/output.txt index 021ff6d7556..df70133f6a2 100644 --- a/acceptance/bundle/artifacts/artifact_upload_for_volumes/output.txt +++ b/acceptance/bundle/artifacts/artifact_upload_for_volumes/output.txt @@ -2,9 +2,9 @@ >>> [CLI] bundle deploy Uploading whl/source.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Expecting 2 wheels in libraries section in /jobs/create >>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.tasks out.requests.txt diff --git a/acceptance/bundle/artifacts/artifact_upload_for_workspace/output.txt b/acceptance/bundle/artifacts/artifact_upload_for_workspace/output.txt index dd81ba7de2a..f0548248ba9 100644 --- a/acceptance/bundle/artifacts/artifact_upload_for_workspace/output.txt +++ b/acceptance/bundle/artifacts/artifact_upload_for_workspace/output.txt @@ -2,9 +2,9 @@ >>> [CLI] bundle deploy Uploading whl/source.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Expecting 2 wheels in libraries section in /jobs/create >>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.tasks out.requests.txt diff --git a/acceptance/bundle/artifacts/artifact_upload_with_no_library_reference/output.txt b/acceptance/bundle/artifacts/artifact_upload_with_no_library_reference/output.txt index 6d24880e6c0..dd532d4b46d 100644 --- a/acceptance/bundle/artifacts/artifact_upload_with_no_library_reference/output.txt +++ b/acceptance/bundle/artifacts/artifact_upload_with_no_library_reference/output.txt @@ -2,8 +2,7 @@ >>> [CLI] bundle deploy Uploading whl/source.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. === Expecting wheel to be uploaded >>> jq .path diff --git a/acceptance/bundle/artifacts/build_and_files_whl/output.txt b/acceptance/bundle/artifacts/build_and_files_whl/output.txt index b618de6b89a..01746ffbf88 100644 --- a/acceptance/bundle/artifacts/build_and_files_whl/output.txt +++ b/acceptance/bundle/artifacts/build_and_files_whl/output.txt @@ -12,5 +12,4 @@ Validation OK! Building artifact_with_custom_dist... Uploading mydist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/artifacts/glob_exact_whl/output.txt b/acceptance/bundle/artifacts/glob_exact_whl/output.txt index 3f292b7a0d9..edcf3d75f9c 100644 --- a/acceptance/bundle/artifacts/glob_exact_whl/output.txt +++ b/acceptance/bundle/artifacts/glob_exact_whl/output.txt @@ -15,6 +15,6 @@ >>> [CLI] bundle deploy Uploading prebuilt/other_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/artifacts/issue_3109/output.txt b/acceptance/bundle/artifacts/issue_3109/output.txt index ff6b9968ce4..c2d0eb22646 100644 --- a/acceptance/bundle/artifacts/issue_3109/output.txt +++ b/acceptance/bundle/artifacts/issue_3109/output.txt @@ -5,6 +5,6 @@ Warning: required field "entry_point" is not set Building wheels... Uploading dist/my_default_python-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/artifacts/shell/bash/output.txt b/acceptance/bundle/artifacts/shell/bash/output.txt index fa5d7b76bcd..1aaf778b5ef 100644 --- a/acceptance/bundle/artifacts/shell/bash/output.txt +++ b/acceptance/bundle/artifacts/shell/bash/output.txt @@ -2,5 +2,4 @@ >>> [CLI] bundle deploy Building my_artifact... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/shell-bash/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/artifacts/shell/basic/output.txt b/acceptance/bundle/artifacts/shell/basic/output.txt index b5e01c79e67..62a9e3ec194 100644 --- a/acceptance/bundle/artifacts/shell/basic/output.txt +++ b/acceptance/bundle/artifacts/shell/basic/output.txt @@ -2,5 +2,4 @@ >>> [CLI] bundle deploy Building my_artifact... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/shell-basic/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/artifacts/shell/default/output.txt b/acceptance/bundle/artifacts/shell/default/output.txt index fa5d7b76bcd..1aaf778b5ef 100644 --- a/acceptance/bundle/artifacts/shell/default/output.txt +++ b/acceptance/bundle/artifacts/shell/default/output.txt @@ -2,5 +2,4 @@ >>> [CLI] bundle deploy Building my_artifact... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/shell-bash/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/artifacts/shell/sh/output.txt b/acceptance/bundle/artifacts/shell/sh/output.txt index 5117e6e9fc0..74eab7c7da2 100644 --- a/acceptance/bundle/artifacts/shell/sh/output.txt +++ b/acceptance/bundle/artifacts/shell/sh/output.txt @@ -2,5 +2,4 @@ >>> [CLI] bundle deploy Building my_artifact... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/shell-sh/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/artifacts/unique_name_libraries/output.txt b/acceptance/bundle/artifacts/unique_name_libraries/output.txt index ca37098f923..a6598fe7b36 100644 --- a/acceptance/bundle/artifacts/unique_name_libraries/output.txt +++ b/acceptance/bundle/artifacts/unique_name_libraries/output.txt @@ -5,6 +5,6 @@ Building whl2... Uploading whl1/dist/my_package-0.0.1-py3-none-any.whl... Uploading whl2/dist/my_other_package-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/artifacts/upload_multiple_libraries/output.txt b/acceptance/bundle/artifacts/upload_multiple_libraries/output.txt index fa725a29d86..e6f7f08c85e 100644 --- a/acceptance/bundle/artifacts/upload_multiple_libraries/output.txt +++ b/acceptance/bundle/artifacts/upload_multiple_libraries/output.txt @@ -5,9 +5,9 @@ Uploading whl/source2.whl... Uploading whl/source3.whl... Uploading whl/source4.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Expecting 5 wheels in libraries section in /jobs/create >>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.tasks out.requests.txt diff --git a/acceptance/bundle/artifacts/whl_change_version/output.txt b/acceptance/bundle/artifacts/whl_change_version/output.txt index 4fc7ff66741..2b149960338 100644 --- a/acceptance/bundle/artifacts/whl_change_version/output.txt +++ b/acceptance/bundle/artifacts/whl_change_version/output.txt @@ -3,9 +3,9 @@ Building python_artifact... Uploading dist/my_test_code-0.1.0-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> find.py --expect 1 whl dist/my_test_code-0.1.0-py3-none-any.whl @@ -53,9 +53,9 @@ dist/my_test_code-0.1.0-py3-none-any.whl Building python_artifact... Uploading dist/my_test_code-0.2.0-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.test_job + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> find.py --expect 2 whl dist/my_test_code-0.1.0-py3-none-any.whl @@ -85,9 +85,9 @@ Building python_artifact... Uploading dist/my_test_code-0.1.0-py3-none-any.whl... Uploading dist/my_test_code-0.2.0-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.test_job + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> find.py --expect 2 whl dist/my_test_code-0.1.0-py3-none-any.whl diff --git a/acceptance/bundle/artifacts/whl_dbfs/output.txt b/acceptance/bundle/artifacts/whl_dbfs/output.txt index 306de22de1f..48c2aa73c19 100644 --- a/acceptance/bundle/artifacts/whl_dbfs/output.txt +++ b/acceptance/bundle/artifacts/whl_dbfs/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Expecting to find no wheels >>> errcode find.py --expect 0 whl diff --git a/acceptance/bundle/artifacts/whl_dynamic/output.txt b/acceptance/bundle/artifacts/whl_dynamic/output.txt index c7409f37408..d1d83c3c355 100644 --- a/acceptance/bundle/artifacts/whl_dynamic/output.txt +++ b/acceptance/bundle/artifacts/whl_dynamic/output.txt @@ -30,9 +30,9 @@ Building my_test_code... Uploading .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl... Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === There are 2 original wheels and 2 patched ones >>> find.py --expect 4 whl @@ -72,9 +72,9 @@ Building my_test_code... Uploading .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl... Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][2]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.test_job + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === Verify contents, it should now have new_module.py >>> find.py --expect 1 .databricks/.*my_test_code.*whl diff --git a/acceptance/bundle/artifacts/whl_explicit/output.txt b/acceptance/bundle/artifacts/whl_explicit/output.txt index 6c1c06c46e0..c9904bf60b3 100644 --- a/acceptance/bundle/artifacts/whl_explicit/output.txt +++ b/acceptance/bundle/artifacts/whl_explicit/output.txt @@ -3,9 +3,9 @@ Building my_test_code... Uploading my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> find.py --expect 1 whl my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl diff --git a/acceptance/bundle/artifacts/whl_implicit/output.txt b/acceptance/bundle/artifacts/whl_implicit/output.txt index 698cc20c514..8bcd52fab26 100644 --- a/acceptance/bundle/artifacts/whl_implicit/output.txt +++ b/acceptance/bundle/artifacts/whl_implicit/output.txt @@ -3,9 +3,9 @@ Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> find.py --expect 1 whl dist/my_test_code-0.0.1-py3-none-any.whl diff --git a/acceptance/bundle/artifacts/whl_implicit_custom_path/output.txt b/acceptance/bundle/artifacts/whl_implicit_custom_path/output.txt index 71f1bffc1df..a8f92bb6164 100644 --- a/acceptance/bundle/artifacts/whl_implicit_custom_path/output.txt +++ b/acceptance/bundle/artifacts/whl_implicit_custom_path/output.txt @@ -2,9 +2,9 @@ >>> [CLI] bundle deploy Uploading package/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> find.py --expect 1 whl package/my_test_code-0.0.1-py3-none-any.whl diff --git a/acceptance/bundle/artifacts/whl_implicit_notebook/output.txt b/acceptance/bundle/artifacts/whl_implicit_notebook/output.txt index 7e393eabc47..ed09c5d0b06 100644 --- a/acceptance/bundle/artifacts/whl_implicit_notebook/output.txt +++ b/acceptance/bundle/artifacts/whl_implicit_notebook/output.txt @@ -3,9 +3,9 @@ Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> find.py --expect 1 whl dist/my_test_code-0.0.1-py3-none-any.whl diff --git a/acceptance/bundle/artifacts/whl_multiple/output.txt b/acceptance/bundle/artifacts/whl_multiple/output.txt index a03025d9103..9e6d7ea732f 100644 --- a/acceptance/bundle/artifacts/whl_multiple/output.txt +++ b/acceptance/bundle/artifacts/whl_multiple/output.txt @@ -5,9 +5,9 @@ Building my_test_code_2... Uploading my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl... Uploading my_test_code/dist/my_test_code_2-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> find.py --expect 2 whl my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl diff --git a/acceptance/bundle/artifacts/whl_no_cleanup/output.txt b/acceptance/bundle/artifacts/whl_no_cleanup/output.txt index a78810dbca9..9c469cc5d8e 100644 --- a/acceptance/bundle/artifacts/whl_no_cleanup/output.txt +++ b/acceptance/bundle/artifacts/whl_no_cleanup/output.txt @@ -3,9 +3,9 @@ Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> find.py --expect 1 whl dist/my_test_code-0.0.1-py3-none-any.whl @@ -19,9 +19,7 @@ dist/my_test_code-0.0.1-py3-none-any.whl Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. === No calls to delete internal folder expected >>> jq -s .[] | select(.path=="/api/2.0/workspace/delete") | select(.body.path | test(".*/artifacts/.internal")) out.requests.txt diff --git a/acceptance/bundle/artifacts/whl_prebuilt_multiple/output.txt b/acceptance/bundle/artifacts/whl_prebuilt_multiple/output.txt index 4fe390e6350..b1212952967 100644 --- a/acceptance/bundle/artifacts/whl_prebuilt_multiple/output.txt +++ b/acceptance/bundle/artifacts/whl_prebuilt_multiple/output.txt @@ -7,9 +7,9 @@ dist/my_test_code-0.0.1-py3-none-any.whl Uploading dist/lib/other_test_code-0.0.1-py3-none-any.whl... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Expecting to find 2 wheels, same as initially provided >>> find.py --expect 2 whl diff --git a/acceptance/bundle/artifacts/whl_prebuilt_outside/output.txt b/acceptance/bundle/artifacts/whl_prebuilt_outside/output.txt index 369db2e47a7..11145cfc817 100644 --- a/acceptance/bundle/artifacts/whl_prebuilt_outside/output.txt +++ b/acceptance/bundle/artifacts/whl_prebuilt_outside/output.txt @@ -3,9 +3,9 @@ Uploading other_dab/dist/lib/other_test_code-0.0.1-py3-none-any.whl... Uploading other_dab/dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/python-wheel/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Expecting to find no wheels in current directory >>> find.py --expect 0 whl diff --git a/acceptance/bundle/artifacts/whl_prebuilt_outside_dynamic/output.txt b/acceptance/bundle/artifacts/whl_prebuilt_outside_dynamic/output.txt index 570b124a5bd..fa624505c15 100644 --- a/acceptance/bundle/artifacts/whl_prebuilt_outside_dynamic/output.txt +++ b/acceptance/bundle/artifacts/whl_prebuilt_outside_dynamic/output.txt @@ -3,9 +3,9 @@ Uploading this_dab/.databricks/bundle/default/patched_wheels/art1_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl... Uploading this_dab/.databricks/bundle/default/patched_wheels/art2_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/python-wheel/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Expecting to find two patched wheels in current directory >>> find.py --expect 2 whl diff --git a/acceptance/bundle/artifacts/whl_via_environment_key/output.txt b/acceptance/bundle/artifacts/whl_via_environment_key/output.txt index 8afa59e7d8b..c9f139782fe 100644 --- a/acceptance/bundle/artifacts/whl_via_environment_key/output.txt +++ b/acceptance/bundle/artifacts/whl_via_environment_key/output.txt @@ -3,9 +3,9 @@ Building my_test_code... Uploading my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> find.py --expect 1 whl my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl diff --git a/acceptance/bundle/bundle_tag/id/output.txt b/acceptance/bundle/bundle_tag/id/output.txt index acfd8c3d1a1..59783dee26b 100644 --- a/acceptance/bundle/bundle_tag/id/output.txt +++ b/acceptance/bundle/bundle_tag/id/output.txt @@ -35,9 +35,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs { @@ -76,8 +76,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/bundle_tag/url/output.txt b/acceptance/bundle/bundle_tag/url/output.txt index 76d46c68fa7..d8b3c565f16 100644 --- a/acceptance/bundle/bundle_tag/url/output.txt +++ b/acceptance/bundle/bundle_tag/url/output.txt @@ -35,9 +35,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs { @@ -76,8 +76,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/bundle_tag/url_ref/out.deploy.terraform.txt b/acceptance/bundle/bundle_tag/url_ref/out.deploy.terraform.txt index 92039fc564a..d1ea1f0dbd5 100644 --- a/acceptance/bundle/bundle_tag/url_ref/out.deploy.terraform.txt +++ b/acceptance/bundle/bundle_tag/url_ref/out.deploy.terraform.txt @@ -2,6 +2,7 @@ Warning: "resources.jobs.foo.url": Terraform-only field; this reference will not in databricks.yml:11:12 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/bundle_tag/url_ref/out.destroy.terraform.txt b/acceptance/bundle/bundle_tag/url_ref/out.destroy.terraform.txt index 1909121883b..3800ea08524 100644 --- a/acceptance/bundle/bundle_tag/url_ref/out.destroy.terraform.txt +++ b/acceptance/bundle/bundle_tag/url_ref/out.destroy.terraform.txt @@ -7,5 +7,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/config-remote-sync/cli_defaults/output.txt b/acceptance/bundle/config-remote-sync/cli_defaults/output.txt index 307a945ea93..cea4533af7a 100644 --- a/acceptance/bundle/config-remote-sync/cli_defaults/output.txt +++ b/acceptance/bundle/config-remote-sync/cli_defaults/output.txt @@ -1,7 +1,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job1 +created jobs.job2 +created pipelines.pipeline1 + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. === Modify jobs Change max_concurrent_runs, name, change default tag @@ -62,5 +64,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/config-remote-sync/config_edits/output.txt b/acceptance/bundle/config-remote-sync/config_edits/output.txt index ce51b3c7a65..868915a6448 100644 --- a/acceptance/bundle/config-remote-sync/config_edits/output.txt +++ b/acceptance/bundle/config-remote-sync/config_edits/output.txt @@ -1,8 +1,8 @@ Uploading dummy.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Case 1: Added locally, updated remotely with different value @@ -59,5 +59,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/dashboard_etag/output.txt b/acceptance/bundle/config-remote-sync/dashboard_etag/output.txt index a0f902fb002..bcd8e9b1b3e 100644 --- a/acceptance/bundle/config-remote-sync/dashboard_etag/output.txt +++ b/acceptance/bundle/config-remote-sync/dashboard_etag/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.my_dashboard + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Modify the dashboard out of band to bump its remote etag { @@ -28,5 +28,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/flushed_cache/output.txt b/acceptance/bundle/config-remote-sync/flushed_cache/output.txt index 32ded320618..e6cd1712168 100644 --- a/acceptance/bundle/config-remote-sync/flushed_cache/output.txt +++ b/acceptance/bundle/config-remote-sync/flushed_cache/output.txt @@ -1,9 +1,9 @@ === Deploy bundle Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Get job ID and modify remote resource Modify max_concurrent_runs to 5 @@ -27,5 +27,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/formatting_preserved/output.txt b/acceptance/bundle/config-remote-sync/formatting_preserved/output.txt index 6cba3ca53af..f0a966f6a78 100644 --- a/acceptance/bundle/config-remote-sync/formatting_preserved/output.txt +++ b/acceptance/bundle/config-remote-sync/formatting_preserved/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Modify max_concurrent_runs, description, and add timeout === Detect and save changes @@ -55,5 +55,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/job_fields/output.txt b/acceptance/bundle/config-remote-sync/job_fields/output.txt index 7e0b7fe07d4..b9289abd95b 100644 --- a/acceptance/bundle/config-remote-sync/job_fields/output.txt +++ b/acceptance/bundle/config-remote-sync/job_fields/output.txt @@ -1,8 +1,8 @@ Uploading dummy.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Modify job fields remotely @@ -114,5 +114,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/job_multiple_tasks/output.txt b/acceptance/bundle/config-remote-sync/job_multiple_tasks/output.txt index 6c45a66bed1..bd7b842b47f 100644 --- a/acceptance/bundle/config-remote-sync/job_multiple_tasks/output.txt +++ b/acceptance/bundle/config-remote-sync/job_multiple_tasks/output.txt @@ -1,7 +1,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job +created jobs.no_tasks_job +created jobs.rename_task_job + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. === Modify c_task, remove d_task, add e_task === Detect and save changes @@ -71,10 +73,9 @@ Resource: resources.jobs.no_tasks_job + task_key: new_task rename_task_job: + +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! === Rename b_task, replace a_task notebook_path, add synced_task === Detect task key rename @@ -152,5 +153,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/config-remote-sync/job_multiple_tasks/script b/acceptance/bundle/config-remote-sync/job_multiple_tasks/script index f935b4a7564..662fe5699db 100755 --- a/acceptance/bundle/config-remote-sync/job_multiple_tasks/script +++ b/acceptance/bundle/config-remote-sync/job_multiple_tasks/script @@ -66,7 +66,7 @@ envsubst < databricks.yml > databricks.yml.resolved mv databricks.yml.resolved databricks.yml # Deploy the updated configuration to sync state -$CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' title "Rename b_task, replace a_task notebook_path, add synced_task" rename_job_id="$(read_id.py rename_task_job)" diff --git a/acceptance/bundle/config-remote-sync/job_params_variables/output.txt b/acceptance/bundle/config-remote-sync/job_params_variables/output.txt index 9d440510f83..5a24baa18e8 100644 --- a/acceptance/bundle/config-remote-sync/job_params_variables/output.txt +++ b/acceptance/bundle/config-remote-sync/job_params_variables/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Add new parameter remotely === Detect and save changes @@ -31,5 +31,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/job_pipeline_task/output.txt b/acceptance/bundle/config-remote-sync/job_pipeline_task/output.txt index 54a1e342788..ba6bcc53fb8 100644 --- a/acceptance/bundle/config-remote-sync/job_pipeline_task/output.txt +++ b/acceptance/bundle/config-remote-sync/job_pipeline_task/output.txt @@ -1,7 +1,8 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job +created pipelines.my_pipeline + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Modify pipeline_task full_refresh to True === Modify pipeline continuous to True @@ -46,5 +47,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/config-remote-sync/multiple_files/output.txt b/acceptance/bundle/config-remote-sync/multiple_files/output.txt index aa943ca185a..049915b0f3c 100644 --- a/acceptance/bundle/config-remote-sync/multiple_files/output.txt +++ b/acceptance/bundle/config-remote-sync/multiple_files/output.txt @@ -1,7 +1,8 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_one +created jobs.job_two + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Modify job_one: max_concurrent_runs, rename c_task === Add synced_task to job_one (notebook in sync root, resource in subdirectory) @@ -110,5 +111,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/dev -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/config-remote-sync/multiple_resources/output.txt b/acceptance/bundle/config-remote-sync/multiple_resources/output.txt index adaa02f27a9..925382fe686 100644 --- a/acceptance/bundle/config-remote-sync/multiple_resources/output.txt +++ b/acceptance/bundle/config-remote-sync/multiple_resources/output.txt @@ -1,7 +1,13 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.test_cluster +created experiments.test_experiment +created jobs.job_one +created jobs.job_two +created registered_models.test_model +created sql_warehouses.test_warehouse +created volumes.test_volume + +Deploy: 7 created, 0 changed, 0 deleted, 0 unchanged. === Modify both jobs === Detect and save changes @@ -65,5 +71,4 @@ is removed from the catalog, but the underlying files are not deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 7 deleted. diff --git a/acceptance/bundle/config-remote-sync/output_json/output.txt b/acceptance/bundle/config-remote-sync/output_json/output.txt index 29ecfec8b71..024c0f1b899 100644 --- a/acceptance/bundle/config-remote-sync/output_json/output.txt +++ b/acceptance/bundle/config-remote-sync/output_json/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === JSON output format{ "files": [ @@ -31,5 +31,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/output_no_changes/output.txt b/acceptance/bundle/config-remote-sync/output_no_changes/output.txt index 6aa616cbeee..7eafedf3563 100644 --- a/acceptance/bundle/config-remote-sync/output_no_changes/output.txt +++ b/acceptance/bundle/config-remote-sync/output_no_changes/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Check for changes immediately after deployment No changes detected. @@ -23,5 +23,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/pipeline_fields/output.txt b/acceptance/bundle/config-remote-sync/pipeline_fields/output.txt index e14b94f76f5..a21a6e17c3e 100644 --- a/acceptance/bundle/config-remote-sync/pipeline_fields/output.txt +++ b/acceptance/bundle/config-remote-sync/pipeline_fields/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Modify pipeline fields remotely === Detect and save changes @@ -65,5 +65,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/policy_injected_cluster_fields/output.txt b/acceptance/bundle/config-remote-sync/policy_injected_cluster_fields/output.txt index b6d44241592..7655f2f0216 100644 --- a/acceptance/bundle/config-remote-sync/policy_injected_cluster_fields/output.txt +++ b/acceptance/bundle/config-remote-sync/policy_injected_cluster_fields/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Simulate a cluster policy injecting custom_tags and cluster_log_conf These fields exist only remotely (the user never set them in config). @@ -34,5 +34,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/resolve_variables/output.txt b/acceptance/bundle/config-remote-sync/resolve_variables/output.txt index 388f7ab3bbf..834f2c7451c 100644 --- a/acceptance/bundle/config-remote-sync/resolve_variables/output.txt +++ b/acceptance/bundle/config-remote-sync/resolve_variables/output.txt @@ -1,7 +1,8 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job +created pipelines.my_pipeline + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Modify pipeline environment dependencies === Add and replace parameters remotely @@ -148,5 +149,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/config-remote-sync/select_basic/output.txt b/acceptance/bundle/config-remote-sync/select_basic/output.txt index 14987921858..5d57513d1db 100644 --- a/acceptance/bundle/config-remote-sync/select_basic/output.txt +++ b/acceptance/bundle/config-remote-sync/select_basic/output.txt @@ -1,7 +1,8 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_one +created jobs.job_two + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Modify both jobs remotely === Sync only job_one, selected by its type and deployed resource id @@ -62,5 +63,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/config-remote-sync/select_multiple/output.txt b/acceptance/bundle/config-remote-sync/select_multiple/output.txt index c491353879e..d4b0f39cfd1 100644 --- a/acceptance/bundle/config-remote-sync/select_multiple/output.txt +++ b/acceptance/bundle/config-remote-sync/select_multiple/output.txt @@ -1,7 +1,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_a +created jobs.job_b +created jobs.job_c + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. === Modify all three jobs remotely === Comma-separated selectors preview two of three resources @@ -70,5 +72,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/config-remote-sync/target_override/output.txt b/acceptance/bundle/config-remote-sync/target_override/output.txt index fa32ecade2c..278571c0c8b 100644 --- a/acceptance/bundle/config-remote-sync/target_override/output.txt +++ b/acceptance/bundle/config-remote-sync/target_override/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Modify fields in target override === Detect and save changes @@ -35,5 +35,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/dev -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/task_rename_revert/output.txt b/acceptance/bundle/config-remote-sync/task_rename_revert/output.txt index f05ccc1c743..5d804a11903 100644 --- a/acceptance/bundle/config-remote-sync/task_rename_revert/output.txt +++ b/acceptance/bundle/config-remote-sync/task_rename_revert/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Rename task to new_task_2 remotely @@ -63,5 +63,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/config-remote-sync/validation_errors/output.txt b/acceptance/bundle/config-remote-sync/validation_errors/output.txt index c4ce29efa0a..772d13a0183 100644 --- a/acceptance/bundle/config-remote-sync/validation_errors/output.txt +++ b/acceptance/bundle/config-remote-sync/validation_errors/output.txt @@ -1,7 +1,8 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job +created pipelines.my_pipeline + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Set correct paths and add git info remotely === Break local paths to simulate stale config @@ -56,5 +57,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/deploy/empty-bundle/output.txt b/acceptance/bundle/deploy/empty-bundle/output.txt index 919accb661f..09856871174 100644 --- a/acceptance/bundle/deploy/empty-bundle/output.txt +++ b/acceptance/bundle/deploy/empty-bundle/output.txt @@ -1,11 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. diff --git a/acceptance/bundle/deploy/experimental-python/output.txt b/acceptance/bundle/deploy/experimental-python/output.txt index b3bfef9d4ca..04f52e63723 100644 --- a/acceptance/bundle/deploy/experimental-python/output.txt +++ b/acceptance/bundle/deploy/experimental-python/output.txt @@ -1,9 +1,9 @@ >>> uv run --quiet --with [DATABRICKS_BUNDLES_WHEEL] -- [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs list --output json [ diff --git a/acceptance/bundle/deploy/fail-on-active-runs/output.txt b/acceptance/bundle/deploy/fail-on-active-runs/output.txt index b4ba46f998f..cc2688edb8a 100644 --- a/acceptance/bundle/deploy/fail-on-active-runs/output.txt +++ b/acceptance/bundle/deploy/fail-on-active-runs/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> errcode [CLI] bundle deploy --fail-on-active-runs Error: job [NUMID] is running diff --git a/acceptance/bundle/deploy/files/no-snapshot-sync/output.txt b/acceptance/bundle/deploy/files/no-snapshot-sync/output.txt index 5ed1d5aa884..d8938634e27 100644 --- a/acceptance/bundle/deploy/files/no-snapshot-sync/output.txt +++ b/acceptance/bundle/deploy/files/no-snapshot-sync/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Check that test file is in workspace >>> [CLI] workspace get-status /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files/test.py @@ -44,9 +44,7 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. === Check that removed files are not in the workspace anymore >>> errcode [CLI] workspace get-status /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files/test.py @@ -69,5 +67,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/deploy/files/out-of-band-delete/output.txt b/acceptance/bundle/deploy/files/out-of-band-delete/output.txt index e769969ddca..12c5501167d 100644 --- a/acceptance/bundle/deploy/files/out-of-band-delete/output.txt +++ b/acceptance/bundle/deploy/files/out-of-band-delete/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/out-of-band-delete/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === After the initial deploy the python_file exists >>> [CLI] workspace get-status /Workspace/Users/[USERNAME]/.bundle/out-of-band-delete/default/files/hello_world.py @@ -18,9 +18,7 @@ Deployment complete! === Redeploy reuses the stale snapshot, so the python_file is NOT re-uploaded >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/out-of-band-delete/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> musterr [CLI] workspace get-status /Workspace/Users/[USERNAME]/.bundle/out-of-band-delete/default/files/hello_world.py Error: Path (/Workspace/Users/[USERNAME]/.bundle/out-of-band-delete/default/files/hello_world.py) doesn't exist. @@ -30,9 +28,7 @@ Error: Path (/Workspace/Users/[USERNAME]/.bundle/out-of-band-delete/default/file >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/out-of-band-delete/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] workspace get-status /Workspace/Users/[USERNAME]/.bundle/out-of-band-delete/default/files/hello_world.py { diff --git a/acceptance/bundle/deploy/mlops-stacks/output.txt b/acceptance/bundle/deploy/mlops-stacks/output.txt index 64a5599952e..c408aa156db 100644 --- a/acceptance/bundle/deploy/mlops-stacks/output.txt +++ b/acceptance/bundle/deploy/mlops-stacks/output.txt @@ -79,6 +79,16 @@ Warning: unknown field: description Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev/files... Deploying resources... +created experiments.experiment +created experiments.experiment.permissions +created jobs.batch_inference_job +created jobs.batch_inference_job.permissions +created jobs.model_training_job +created jobs.model_training_job.permissions +created models.model +created models.model.permissions + +Deploy: 8 created, 0 changed, 0 deleted, 0 unchanged. Updating deployment state... Deployment complete! diff --git a/acceptance/bundle/deploy/pipeline-config-dots/output.txt b/acceptance/bundle/deploy/pipeline-config-dots/output.txt index 48b6576f221..cdc718a24c7 100644 --- a/acceptance/bundle/deploy/pipeline-config-dots/output.txt +++ b/acceptance/bundle/deploy/pipeline-config-dots/output.txt @@ -10,9 +10,10 @@ Validation OK! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline +created schemas.my_schema + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -28,5 +29,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/deploy/python-notebook/output.txt b/acceptance/bundle/deploy/python-notebook/output.txt index 62e9567ccee..3e5df7f3d57 100644 --- a/acceptance/bundle/deploy/python-notebook/output.txt +++ b/acceptance/bundle/deploy/python-notebook/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs list --output json [ diff --git a/acceptance/bundle/deploy/readplan/basic/output.txt b/acceptance/bundle/deploy/readplan/basic/output.txt index 485488f0904..8b02961cb52 100644 --- a/acceptance/bundle/deploy/readplan/basic/output.txt +++ b/acceptance/bundle/deploy/readplan/basic/output.txt @@ -5,9 +5,9 @@ >>> [CLI] bundle deploy --plan out.plan_create.json Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --get //jobs { @@ -41,9 +41,7 @@ Deployment complete! >>> [CLI] bundle deploy --plan out.plan_skip.json Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py --get //jobs @@ -53,5 +51,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/deploy/readplan/cli-version-mismatch/output.txt b/acceptance/bundle/deploy/readplan/cli-version-mismatch/output.txt index 568c435dade..1f744dcc97e 100644 --- a/acceptance/bundle/deploy/readplan/cli-version-mismatch/output.txt +++ b/acceptance/bundle/deploy/readplan/cli-version-mismatch/output.txt @@ -4,9 +4,9 @@ >>> [CLI] bundle deploy --plan plan.json Warn: Plan was created with CLI version 1.2.3 but current version is [DEV_VERSION] Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. { "method": "POST", "path": "/api/2.2/jobs/create", @@ -31,5 +31,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/deploy/readplan/postgres_role/output.txt b/acceptance/bundle/deploy/readplan/postgres_role/output.txt index 1a6d0b7994c..2c2feed8396 100644 --- a/acceptance/bundle/deploy/readplan/postgres_role/output.txt +++ b/acceptance/bundle/deploy/readplan/postgres_role/output.txt @@ -5,9 +5,11 @@ >>> [CLI] bundle deploy --plan plan.json Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.branch +created postgres_projects.project +created postgres_roles.role + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //roles { @@ -42,5 +44,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/deploy/readplan/serial-mismatch/output.txt b/acceptance/bundle/deploy/readplan/serial-mismatch/output.txt index 50f6d7149ca..b36566acbf9 100644 --- a/acceptance/bundle/deploy/readplan/serial-mismatch/output.txt +++ b/acceptance/bundle/deploy/readplan/serial-mismatch/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -o json Error: plan serial 999 does not match state serial 1; the state has been modified since the plan was created. Please run 'bundle plan' again @@ -15,5 +15,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/deploy/snapshot-comparison/output.txt b/acceptance/bundle/deploy/snapshot-comparison/output.txt index b5bb597e264..fd3165e0b87 100644 --- a/acceptance/bundle/deploy/snapshot-comparison/output.txt +++ b/acceptance/bundle/deploy/snapshot-comparison/output.txt @@ -2,9 +2,10 @@ === Deploy bundle 1 with terraform >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/snapshot-test-1-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job +created pipelines.test_pipeline + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Run migrate on bundle 1 >>> [CLI] bundle deployment migrate @@ -20,9 +21,10 @@ To undo the migration, remove [TEST_TMP_DIR]/bundle1/.databricks/bundle/default/ === Deploy bundle 2 with terraform and YamlSync >>> DATABRICKS_BUNDLE_ENABLE_EXPERIMENTAL_YAML_SYNC=true DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/snapshot-test-2-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job +created pipelines.test_pipeline + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Normalize bundle names for comparison >>> cp bundle1/.databricks/bundle/default/resources.json tmp.bundle1.json @@ -48,8 +50,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/snapshot-test-1-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. === Cleanup bundle 2 >>> [CLI] bundle destroy --auto-approve @@ -63,5 +64,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/snapshot-test-2-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/deploy/spark-jar-task/output.txt b/acceptance/bundle/deploy/spark-jar-task/output.txt index be85c64ad0a..c9e0d88bce3 100644 --- a/acceptance/bundle/deploy/spark-jar-task/output.txt +++ b/acceptance/bundle/deploy/spark-jar-task/output.txt @@ -3,9 +3,9 @@ Building my_java_code... Uploading myjar/PrintArgs.jar... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/spark-jar-task-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.jar_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run jar_job Run URL: [DATABRICKS_URL]/jobs/[NUMID]/runs/[NUMID]?o=[NUMID] @@ -20,5 +20,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/spark-jar-task-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/deploy/wal/chain-3-jobs/output.txt b/acceptance/bundle/deploy/wal/chain-3-jobs/output.txt index f27bfaa3f2c..82088395381 100644 --- a/acceptance/bundle/deploy/wal/chain-3-jobs/output.txt +++ b/acceptance/bundle/deploy/wal/chain-3-jobs/output.txt @@ -2,7 +2,6 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/wal-chain-test/default/files... -Deploying resources... [PROCESS_KILLED] Exit code: [KILLED] diff --git a/acceptance/bundle/deploy/wal/corrupted-wal-entry/output.txt b/acceptance/bundle/deploy/wal/corrupted-wal-entry/output.txt index b29571ff666..7254f9da4c8 100644 --- a/acceptance/bundle/deploy/wal/corrupted-wal-entry/output.txt +++ b/acceptance/bundle/deploy/wal/corrupted-wal-entry/output.txt @@ -9,9 +9,10 @@ Warn: Skipping corrupted WAL entry at [TEST_TMP_DIR]/.databricks/bundle/default/resources.json.wal:4: unexpected end of JSON input Warn: Saved 1 corrupted WAL entries to [TEST_TMP_DIR]/.databricks/bundle/default/resources.json.wal.corrupted Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/wal-corrupted-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.another_valid +created jobs.valid_job + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle summary Name: wal-corrupted-test diff --git a/acceptance/bundle/deploy/wal/crash-after-create/output.txt b/acceptance/bundle/deploy/wal/crash-after-create/output.txt index 2ab926a1dd9..8813766ff32 100644 --- a/acceptance/bundle/deploy/wal/crash-after-create/output.txt +++ b/acceptance/bundle/deploy/wal/crash-after-create/output.txt @@ -2,7 +2,6 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/wal-crash-test/default/files... -Deploying resources... [PROCESS_KILLED] Exit code: [KILLED] diff --git a/acceptance/bundle/deploy/wal/empty-wal/output.txt b/acceptance/bundle/deploy/wal/empty-wal/output.txt index bba6d249fce..ff6d6a60e89 100644 --- a/acceptance/bundle/deploy/wal/empty-wal/output.txt +++ b/acceptance/bundle/deploy/wal/empty-wal/output.txt @@ -1,6 +1,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/wal-empty-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/deploy/wal/failed-plan-no-wal/output.txt b/acceptance/bundle/deploy/wal/failed-plan-no-wal/output.txt index 7d830c172b1..2ec834c1420 100644 --- a/acceptance/bundle/deploy/wal/failed-plan-no-wal/output.txt +++ b/acceptance/bundle/deploy/wal/failed-plan-no-wal/output.txt @@ -2,9 +2,9 @@ === Deploy 1 (normal: creates the job and the committed state) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Deploy 2 (planning fails, must not leave a WAL) >>> errcode [CLI] bundle deploy @@ -43,6 +43,4 @@ Exit code: 1 === Deploy 4 (fault expired: recovers and succeeds) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. diff --git a/acceptance/bundle/deploy/wal/header-only-wal/output.txt b/acceptance/bundle/deploy/wal/header-only-wal/output.txt index 4048098e51c..cff28cfd637 100644 --- a/acceptance/bundle/deploy/wal/header-only-wal/output.txt +++ b/acceptance/bundle/deploy/wal/header-only-wal/output.txt @@ -2,7 +2,6 @@ === First deploy (killed before recording the job, leaves a header-only WAL) >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... [PROCESS_KILLED] Exit code: [KILLED] @@ -13,7 +12,6 @@ Exit code: [KILLED] === Second deploy (killed again, leaves another header-only WAL) >>> errcode [CLI] bundle deploy --force-lock Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... [PROCESS_KILLED] Exit code: [KILLED] @@ -24,9 +22,9 @@ Exit code: [KILLED] === Third deploy (must recover and succeed, not blocked by the leftover WAL) >>> errcode [CLI] bundle deploy --force-lock Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> errcode assert_not_exists.py .databricks/bundle/default/resources.json.wal diff --git a/acceptance/bundle/deploy/wal/stale-wal/output.txt b/acceptance/bundle/deploy/wal/stale-wal/output.txt index 91a7a07643d..188669b00d3 100644 --- a/acceptance/bundle/deploy/wal/stale-wal/output.txt +++ b/acceptance/bundle/deploy/wal/stale-wal/output.txt @@ -5,9 +5,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/wal-stale-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.test_job + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === Checking WAL file after deploy === Stale WAL deleted (expected) === State file should NOT contain stale_job === diff --git a/acceptance/bundle/deploy/wal/wal-with-delete/output.txt b/acceptance/bundle/deploy/wal/wal-with-delete/output.txt index 4eb0fb5724a..70354687960 100644 --- a/acceptance/bundle/deploy/wal/wal-with-delete/output.txt +++ b/acceptance/bundle/deploy/wal/wal-with-delete/output.txt @@ -5,9 +5,7 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/wal-delete-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. === Final state (should have no jobs) === >>> [CLI] bundle summary diff --git a/acceptance/bundle/deploy/yaml-sync-empty-grants/output.txt b/acceptance/bundle/deploy/yaml-sync-empty-grants/output.txt index e037b25fd29..df083271cc1 100644 --- a/acceptance/bundle/deploy/yaml-sync-empty-grants/output.txt +++ b/acceptance/bundle/deploy/yaml-sync-empty-grants/output.txt @@ -1,6 +1,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/yaml-sync-empty-grants/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.schema1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/deployment/bind/catalog/output.txt b/acceptance/bundle/deployment/bind/catalog/output.txt index d365080f498..2f8f3e3daf3 100644 --- a/acceptance/bundle/deployment/bind/catalog/output.txt +++ b/acceptance/bundle/deployment/bind/catalog/output.txt @@ -6,16 +6,15 @@ } >>> [CLI] bundle deployment bind foo test-catalog-[UNIQUE_NAME] --auto-approve -Updating deployment state... Successfully bound catalog with an id 'test-catalog-[UNIQUE_NAME]' Run 'bundle deploy' to deploy changes to your workspace === Deploy bundle >>> [CLI] bundle deploy --force-lock --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated catalogs.foo + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] catalogs get test-catalog-[UNIQUE_NAME] { @@ -25,14 +24,12 @@ Deployment complete! === Unbind catalog >>> [CLI] bundle deployment unbind foo -Updating deployment state... === Destroy bundle >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. === Read the pre-defined catalog again (expecting it still exists): >>> [CLI] catalogs get test-catalog-[UNIQUE_NAME] diff --git a/acceptance/bundle/deployment/bind/cluster/output.txt b/acceptance/bundle/deployment/bind/cluster/output.txt index 9c194337e76..d206309df05 100644 --- a/acceptance/bundle/deployment/bind/cluster/output.txt +++ b/acceptance/bundle/deployment/bind/cluster/output.txt @@ -5,9 +5,7 @@ } >>> [CLI] bundle deployment bind cluster1 [TEST_DEFAULT_CLUSTER_ID] --auto-approve -Updating deployment state... Successfully bound cluster with an id '[TEST_DEFAULT_CLUSTER_ID]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deployment unbind cluster1 -Updating deployment state... diff --git a/acceptance/bundle/deployment/bind/dashboard/output.txt b/acceptance/bundle/deployment/bind/dashboard/output.txt index 5d3f23d4a7e..4b91793b372 100644 --- a/acceptance/bundle/deployment/bind/dashboard/output.txt +++ b/acceptance/bundle/deployment/bind/dashboard/output.txt @@ -1,14 +1,13 @@ >>> [CLI] bundle deployment bind dashboard1 [DASHBOARD_ID] --auto-approve -Updating deployment state... Successfully bound dashboard with an id '[DASHBOARD_ID]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated dashboards.dashboard1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -28,13 +27,11 @@ Deployment complete! } >>> [CLI] bundle deployment unbind dashboard1 -Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> [CLI] lakeview get [DASHBOARD_ID] { diff --git a/acceptance/bundle/deployment/bind/dashboard/recreation/output.txt b/acceptance/bundle/deployment/bind/dashboard/recreation/output.txt index 26de10b19c8..6b29b9d28eb 100644 --- a/acceptance/bundle/deployment/bind/dashboard/recreation/output.txt +++ b/acceptance/bundle/deployment/bind/dashboard/recreation/output.txt @@ -1,6 +1,5 @@ >>> [CLI] bundle deployment bind dashboard1 [DASHBOARD_ID] --auto-approve -Updating deployment state... Successfully bound dashboard with an id '[DASHBOARD_ID]' Run 'bundle deploy' to deploy changes to your workspace @@ -26,13 +25,12 @@ To proceed, use --auto-approve after reviewing the plan above. Exit code: 1 >>> [CLI] bundle deployment unbind dashboard1 -Updating deployment state... >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { diff --git a/acceptance/bundle/deployment/bind/database_instance/output.txt b/acceptance/bundle/deployment/bind/database_instance/output.txt index 95c9600c488..f147c6eff1e 100644 --- a/acceptance/bundle/deployment/bind/database_instance/output.txt +++ b/acceptance/bundle/deployment/bind/database_instance/output.txt @@ -1,6 +1,5 @@ >>> [CLI] bundle deployment bind database_instance1 [UUID] --auto-approve -Updating deployment state... Successfully bound database_instance with an id '[UUID]' Run 'bundle deploy' to deploy changes to your workspace @@ -17,7 +16,6 @@ Resources: URL: [DATABRICKS_URL]/compute/database-instances/test-instance-02?w=[NUMID] >>> [CLI] bundle deployment unbind database_instance1 -Updating deployment state... >>> [CLI] bundle summary Name: test-bundle diff --git a/acceptance/bundle/deployment/bind/experiment/output.txt b/acceptance/bundle/deployment/bind/experiment/output.txt index 1efb0ddc4dd..1208c630966 100644 --- a/acceptance/bundle/deployment/bind/experiment/output.txt +++ b/acceptance/bundle/deployment/bind/experiment/output.txt @@ -1,14 +1,11 @@ >>> [CLI] bundle deployment bind experiment1 [NUMID] --auto-approve -Updating deployment state... Successfully bound experiment with an id '[NUMID]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy --force-lock --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] experiments get-experiment [NUMID] { @@ -17,13 +14,11 @@ Deployment complete! } >>> [CLI] bundle deployment unbind experiment1 -Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> [CLI] experiments get-experiment [NUMID] { diff --git a/acceptance/bundle/deployment/bind/external_location/output.txt b/acceptance/bundle/deployment/bind/external_location/output.txt index bc2ad4be800..edcae6c38e6 100644 --- a/acceptance/bundle/deployment/bind/external_location/output.txt +++ b/acceptance/bundle/deployment/bind/external_location/output.txt @@ -7,16 +7,15 @@ } >>> [CLI] bundle deployment bind test_location test-location-[UNIQUE_NAME] --auto-approve -Updating deployment state... Successfully bound external_location with an id 'test-location-[UNIQUE_NAME]' Run 'bundle deploy' to deploy changes to your workspace === Deploy bundle >>> [CLI] bundle deploy --force-lock --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated external_locations.test_location + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] external-locations get test-location-[UNIQUE_NAME] { @@ -27,14 +26,12 @@ Deployment complete! === Unbind external location >>> [CLI] bundle deployment unbind test_location -Updating deployment state... === Destroy bundle >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. === Read the pre-defined external location again (expecting it still exists): >>> [CLI] external-locations get test-location-[UNIQUE_NAME] diff --git a/acceptance/bundle/deployment/bind/genie_space/output.txt b/acceptance/bundle/deployment/bind/genie_space/output.txt index 34c6295bb51..09e868f8add 100644 --- a/acceptance/bundle/deployment/bind/genie_space/output.txt +++ b/acceptance/bundle/deployment/bind/genie_space/output.txt @@ -1,6 +1,5 @@ >>> [CLI] bundle deployment bind genie_space1 [GENIE_SPACE_ID] --auto-approve -Updating deployment state... Successfully bound genie_space with an id '[GENIE_SPACE_ID]' Run 'bundle deploy' to deploy changes to your workspace @@ -9,9 +8,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] genie get-space [GENIE_SPACE_ID] { @@ -21,13 +18,11 @@ Deployment complete! } >>> [CLI] bundle deployment unbind genie_space1 -Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> [CLI] genie get-space [GENIE_SPACE_ID] { diff --git a/acceptance/bundle/deployment/bind/job/already-managed-different/output.txt b/acceptance/bundle/deployment/bind/job/already-managed-different/output.txt index 9f0d1005cd8..9ae07021e3c 100644 --- a/acceptance/bundle/deployment/bind/job/already-managed-different/output.txt +++ b/acceptance/bundle/deployment/bind/job/already-managed-different/output.txt @@ -1,8 +1,8 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs create --json {"name": "My Job"} diff --git a/acceptance/bundle/deployment/bind/job/already-managed-same/output.txt b/acceptance/bundle/deployment/bind/job/already-managed-same/output.txt index 29757521ac0..efbd592d55b 100644 --- a/acceptance/bundle/deployment/bind/job/already-managed-same/output.txt +++ b/acceptance/bundle/deployment/bind/job/already-managed-same/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged diff --git a/acceptance/bundle/deployment/bind/job/engine-from-config/output.txt b/acceptance/bundle/deployment/bind/job/engine-from-config/output.txt index 1e8bb572e8f..c51f03802f5 100644 --- a/acceptance/bundle/deployment/bind/job/engine-from-config/output.txt +++ b/acceptance/bundle/deployment/bind/job/engine-from-config/output.txt @@ -1,19 +1,17 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/engine-from-config/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === State files after deploy === .databricks/bundle/default/resources.json >>> [CLI] bundle deployment unbind job_1 -Updating deployment state... >>> [CLI] jobs create --json {"name": "My Job"} >>> [CLI] bundle deployment bind job_1 [NUMID] --auto-approve -Updating deployment state... Successfully bound job with an id '[NUMID]' Run 'bundle deploy' to deploy changes to your workspace === State files after bind === diff --git a/acceptance/bundle/deployment/bind/job/generate-and-bind/output.txt b/acceptance/bundle/deployment/bind/job/generate-and-bind/output.txt index ad92c2d3e0d..a2a4077c32a 100644 --- a/acceptance/bundle/deployment/bind/job/generate-and-bind/output.txt +++ b/acceptance/bundle/deployment/bind/job/generate-and-bind/output.txt @@ -17,15 +17,14 @@ test.py name: generate-job-[UNIQUE_NAME] >>> [CLI] bundle deployment bind test_job_key [NUMID] --auto-approve -Updating deployment state... Successfully bound job with an id '[NUMID]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-generate-bind-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.test_job_key + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -33,8 +32,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-generate-bind-[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. === Check that job is bound and does not exist after bundle is destroyed: >>> errcode [CLI] jobs get [NUMID] --output json diff --git a/acceptance/bundle/deployment/bind/job/job-abort-bind/output.txt b/acceptance/bundle/deployment/bind/job/job-abort-bind/output.txt index b4da76ff600..c36774ea836 100644 --- a/acceptance/bundle/deployment/bind/job/job-abort-bind/output.txt +++ b/acceptance/bundle/deployment/bind/job/job-abort-bind/output.txt @@ -12,9 +12,9 @@ Exit code: 1 === Deploy bundle: >>> [CLI] bundle deploy --force-lock Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bind-job-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Check that job is not bound and not updated with config from bundle: >>> [CLI] jobs get [JOB_ID] diff --git a/acceptance/bundle/deployment/bind/job/job-spark-python-task/output.txt b/acceptance/bundle/deployment/bind/job/job-spark-python-task/output.txt index 3b68a53f081..86e95a19ae1 100644 --- a/acceptance/bundle/deployment/bind/job/job-spark-python-task/output.txt +++ b/acceptance/bundle/deployment/bind/job/job-spark-python-task/output.txt @@ -4,7 +4,6 @@ Created job with ID: [NUMID] === Bind job: >>> [CLI] bundle deployment bind foo [NUMID] --auto-approve -Updating deployment state... Successfully bound job with an id '[NUMID]' Run 'bundle deploy' to deploy changes to your workspace @@ -14,9 +13,9 @@ Run 'bundle deploy' to deploy changes to your workspace === Deploy bundle: >>> [CLI] bundle deploy --force-lock --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bind-job-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.foo + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === Read the pre-defined job: >>> [CLI] jobs get [NUMID] @@ -37,7 +36,6 @@ Deployment complete! === Unbind the job: >>> [CLI] bundle deployment unbind foo -Updating deployment state... === Remove .databricks directory to simulate fresh deployment: >>> rm -rf .databricks @@ -46,8 +44,7 @@ Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bind-job-[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 0 deleted. === Read the pre-defined job again (expecting it still exists): >>> [CLI] jobs get [NUMID] diff --git a/acceptance/bundle/deployment/bind/job/noop-job/output.txt b/acceptance/bundle/deployment/bind/job/noop-job/output.txt index 21d3780de6c..331fdf69f33 100644 --- a/acceptance/bundle/deployment/bind/job/noop-job/output.txt +++ b/acceptance/bundle/deployment/bind/job/noop-job/output.txt @@ -2,14 +2,13 @@ >>> [CLI] jobs create --json {"name": "My Job"} >>> [CLI] bundle deployment bind job_1 [NUMID] --auto-approve -Updating deployment state... Successfully bound job with an id '[NUMID]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.job_1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs get [NUMID] --output json diff --git a/acceptance/bundle/deployment/bind/job/python-job/output.txt b/acceptance/bundle/deployment/bind/job/python-job/output.txt index 2e327e3b476..72ec07b8b33 100644 --- a/acceptance/bundle/deployment/bind/job/python-job/output.txt +++ b/acceptance/bundle/deployment/bind/job/python-job/output.txt @@ -2,14 +2,13 @@ >>> [CLI] jobs create --json {"name": "My Job"} >>> uv run --with [DATABRICKS_BUNDLES_WHEEL] -q [CLI] bundle deployment bind job_1 [NUMID] --auto-approve -Updating deployment state... Successfully bound job with an id '[NUMID]' Run 'bundle deploy' to deploy changes to your workspace >>> uv run --with [DATABRICKS_BUNDLES_WHEEL] -q [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.job_1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs get [NUMID] --output json diff --git a/acceptance/bundle/deployment/bind/job/stale-state/output.txt b/acceptance/bundle/deployment/bind/job/stale-state/output.txt index 815586e6d4a..24a53fc362b 100644 --- a/acceptance/bundle/deployment/bind/job/stale-state/output.txt +++ b/acceptance/bundle/deployment/bind/job/stale-state/output.txt @@ -2,17 +2,17 @@ === Step 1: Deploy with job_1 only >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/stale_state_test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Step 2: Save stale local state (has only job_1, serial=1) === Step 3: Add job_2 to config and deploy again >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/stale_state_test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_2 + +Deploy: 1 created, 0 changed, 0 deleted, 1 unchanged. === Step 4: Record deployed job_2 ID from stateDeployed job_2 ID: [JOB_2_ID] diff --git a/acceptance/bundle/deployment/bind/model-serving-endpoint/output.txt b/acceptance/bundle/deployment/bind/model-serving-endpoint/output.txt index 702a1c17189..71fdc66328a 100644 --- a/acceptance/bundle/deployment/bind/model-serving-endpoint/output.txt +++ b/acceptance/bundle/deployment/bind/model-serving-endpoint/output.txt @@ -29,15 +29,12 @@ resources: } >>> [CLI] bundle deployment bind endpoint1 test-endpoint-[UNIQUE_NAME] -Updating deployment state... Successfully bound model_serving_endpoint with an id 'test-endpoint-[UNIQUE_NAME]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] serving-endpoints get test-endpoint-[UNIQUE_NAME] { @@ -51,13 +48,11 @@ Deployment complete! } >>> [CLI] bundle deployment unbind endpoint1 -Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> [CLI] serving-endpoints get test-endpoint-[UNIQUE_NAME] { diff --git a/acceptance/bundle/deployment/bind/pipelines/recreate/out.bind-success.direct.txt b/acceptance/bundle/deployment/bind/pipelines/recreate/out.bind-success.direct.txt index 6c88a3134b8..670eec7006e 100644 --- a/acceptance/bundle/deployment/bind/pipelines/recreate/out.bind-success.direct.txt +++ b/acceptance/bundle/deployment/bind/pipelines/recreate/out.bind-success.direct.txt @@ -1,5 +1,4 @@ >>> [CLI] bundle deployment bind foo [NEW_PIPELINE_ID] --auto-approve -Updating deployment state... Successfully bound pipeline with an id '[NEW_PIPELINE_ID]' Run 'bundle deploy' to deploy changes to your workspace diff --git a/acceptance/bundle/deployment/bind/pipelines/recreate/out.bind-success.terraform.txt b/acceptance/bundle/deployment/bind/pipelines/recreate/out.bind-success.terraform.txt index 6c88a3134b8..670eec7006e 100644 --- a/acceptance/bundle/deployment/bind/pipelines/recreate/out.bind-success.terraform.txt +++ b/acceptance/bundle/deployment/bind/pipelines/recreate/out.bind-success.terraform.txt @@ -1,5 +1,4 @@ >>> [CLI] bundle deployment bind foo [NEW_PIPELINE_ID] --auto-approve -Updating deployment state... Successfully bound pipeline with an id '[NEW_PIPELINE_ID]' Run 'bundle deploy' to deploy changes to your workspace diff --git a/acceptance/bundle/deployment/bind/pipelines/recreate/output.txt b/acceptance/bundle/deployment/bind/pipelines/recreate/output.txt index 4da2a167b7f..f95504cc179 100644 --- a/acceptance/bundle/deployment/bind/pipelines/recreate/output.txt +++ b/acceptance/bundle/deployment/bind/pipelines/recreate/output.txt @@ -29,8 +29,8 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them. Recreating restore the defined STs and MVs through full refresh. Note that recreation is necessary when pipeline properties such as the 'catalog' or 'storage' are changed: recreate resources.pipelines.foo -Deploying resources... -Updating deployment state... -Deployment complete! +recreated pipelines.foo + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests.py ^//import-file/ ^//workspace/ ^//telemetry-ext diff --git a/acceptance/bundle/deployment/bind/pipelines/update/out.bind-success.direct.txt b/acceptance/bundle/deployment/bind/pipelines/update/out.bind-success.direct.txt index 6c88a3134b8..670eec7006e 100644 --- a/acceptance/bundle/deployment/bind/pipelines/update/out.bind-success.direct.txt +++ b/acceptance/bundle/deployment/bind/pipelines/update/out.bind-success.direct.txt @@ -1,5 +1,4 @@ >>> [CLI] bundle deployment bind foo [NEW_PIPELINE_ID] --auto-approve -Updating deployment state... Successfully bound pipeline with an id '[NEW_PIPELINE_ID]' Run 'bundle deploy' to deploy changes to your workspace diff --git a/acceptance/bundle/deployment/bind/pipelines/update/out.bind-success.terraform.txt b/acceptance/bundle/deployment/bind/pipelines/update/out.bind-success.terraform.txt index 6c88a3134b8..670eec7006e 100644 --- a/acceptance/bundle/deployment/bind/pipelines/update/out.bind-success.terraform.txt +++ b/acceptance/bundle/deployment/bind/pipelines/update/out.bind-success.terraform.txt @@ -1,5 +1,4 @@ >>> [CLI] bundle deployment bind foo [NEW_PIPELINE_ID] --auto-approve -Updating deployment state... Successfully bound pipeline with an id '[NEW_PIPELINE_ID]' Run 'bundle deploy' to deploy changes to your workspace diff --git a/acceptance/bundle/deployment/bind/pipelines/update/output.txt b/acceptance/bundle/deployment/bind/pipelines/update/output.txt index f88ed70d69d..5d310f16fd4 100644 --- a/acceptance/bundle/deployment/bind/pipelines/update/output.txt +++ b/acceptance/bundle/deployment/bind/pipelines/update/output.txt @@ -8,8 +8,8 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-recreate/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated pipelines.foo + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py ^//import-file/ ^//workspace/delete ^//telemetry-ext diff --git a/acceptance/bundle/deployment/bind/postgres_database/output.txt b/acceptance/bundle/deployment/bind/postgres_database/output.txt index 799751d7e91..86bb47f3eff 100644 --- a/acceptance/bundle/deployment/bind/postgres_database/output.txt +++ b/acceptance/bundle/deployment/bind/postgres_database/output.txt @@ -1,6 +1,5 @@ >>> [CLI] bundle deployment bind database1 projects/test-project/branches/main/databases/test-database --auto-approve -Updating deployment state... Successfully bound postgres_database with an id 'projects/test-project/branches/main/databases/test-database' Run 'bundle deploy' to deploy changes to your workspace @@ -17,7 +16,6 @@ Resources: URL: (not deployed) >>> [CLI] bundle deployment unbind database1 -Updating deployment state... >>> [CLI] bundle summary Name: test-bundle diff --git a/acceptance/bundle/deployment/bind/postgres_role/output.txt b/acceptance/bundle/deployment/bind/postgres_role/output.txt index b439a090ee5..ade277df2ae 100644 --- a/acceptance/bundle/deployment/bind/postgres_role/output.txt +++ b/acceptance/bundle/deployment/bind/postgres_role/output.txt @@ -1,6 +1,5 @@ >>> [CLI] bundle deployment bind role1 projects/test-project/branches/main/roles/test-role --auto-approve -Updating deployment state... Successfully bound postgres_role with an id 'projects/test-project/branches/main/roles/test-role' Run 'bundle deploy' to deploy changes to your workspace @@ -17,7 +16,6 @@ Resources: URL: (not deployed) >>> [CLI] bundle deployment unbind role1 -Updating deployment state... >>> [CLI] bundle summary Name: test-bundle diff --git a/acceptance/bundle/deployment/bind/quality-monitor/output.txt b/acceptance/bundle/deployment/bind/quality-monitor/output.txt index 30e2790c9eb..576d87abae2 100644 --- a/acceptance/bundle/deployment/bind/quality-monitor/output.txt +++ b/acceptance/bundle/deployment/bind/quality-monitor/output.txt @@ -13,12 +13,9 @@ } >>> [CLI] bundle deployment bind monitor1 catalog.schema.table -Updating deployment state... Successfully bound quality_monitor with an id 'catalog.schema.table' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/bind-quality-monitor-test-localonly/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. diff --git a/acceptance/bundle/deployment/bind/registered-model/output.txt b/acceptance/bundle/deployment/bind/registered-model/output.txt index cda82ea075f..0f3b8214535 100644 --- a/acceptance/bundle/deployment/bind/registered-model/output.txt +++ b/acceptance/bundle/deployment/bind/registered-model/output.txt @@ -15,15 +15,12 @@ resources: } >>> [CLI] bundle deployment bind model1 main.test-schema-rmodel-[UNIQUE_NAME].test-registered-model-[UNIQUE_NAME] -Updating deployment state... Successfully bound registered_model with an id 'main.test-schema-rmodel-[UNIQUE_NAME].test-registered-model-[UNIQUE_NAME]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] registered-models get main.test-schema-rmodel-[UNIQUE_NAME].test-registered-model-[UNIQUE_NAME] { @@ -33,13 +30,11 @@ Deployment complete! } >>> [CLI] bundle deployment unbind model1 -Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> [CLI] registered-models get main.test-schema-rmodel-[UNIQUE_NAME].test-registered-model-[UNIQUE_NAME] { diff --git a/acceptance/bundle/deployment/bind/schema/output.txt b/acceptance/bundle/deployment/bind/schema/output.txt index 2e6976fb580..17a188075de 100644 --- a/acceptance/bundle/deployment/bind/schema/output.txt +++ b/acceptance/bundle/deployment/bind/schema/output.txt @@ -6,14 +6,13 @@ "catalog_name": "main" } -=== Bind schema: Updating deployment state... -Successfully bound schema with an id 'main.test-schema-[UUID]' +=== Bind schema: Successfully bound schema with an id 'main.test-schema-[UUID]' Run 'bundle deploy' to deploy changes to your workspace === Deploy bundle: Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated schemas.schema1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === Read the pre-defined schema: { "full_name": "main.test-schema-[UUID]", @@ -21,12 +20,10 @@ Deployment complete! "comment": "This schema was created from DABs" } -=== Unbind the schema: Updating deployment state... - +=== Unbind the schema: === Destroy the bundle: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. === Read the pre-defined schema again (expecting it still exists): { "full_name": "main.test-schema-[UUID]", diff --git a/acceptance/bundle/deployment/bind/secret-scope/output.txt b/acceptance/bundle/deployment/bind/secret-scope/output.txt index fb0f3ac11f3..a106574eaa0 100644 --- a/acceptance/bundle/deployment/bind/secret-scope/output.txt +++ b/acceptance/bundle/deployment/bind/secret-scope/output.txt @@ -2,15 +2,11 @@ >>> [CLI] secrets create-scope test-secret-scope-[UNIQUE_NAME] >>> [CLI] bundle deployment bind secret_scope1 test-secret-scope-[UNIQUE_NAME] --auto-approve -Updating deployment state... Successfully bound secret_scope with an id 'test-secret-scope-[UNIQUE_NAME]' Run 'bundle deploy' to deploy changes to your workspace ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/bind-secret-scope-test-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] secrets list-scopes -o json { @@ -19,13 +15,11 @@ Deployment complete! } >>> [CLI] bundle deployment unbind secret_scope1 -Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/bind-secret-scope-test-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> [CLI] secrets list-scopes -o json { diff --git a/acceptance/bundle/deployment/bind/secret-scope/script b/acceptance/bundle/deployment/bind/secret-scope/script index c4e80009e64..b49f18e0b64 100644 --- a/acceptance/bundle/deployment/bind/secret-scope/script +++ b/acceptance/bundle/deployment/bind/secret-scope/script @@ -12,7 +12,7 @@ trap cleanup EXIT trace $CLI bundle deployment bind secret_scope1 "${SECRET_SCOPE_NAME}" --auto-approve -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace $CLI secrets list-scopes -o json | jq --arg value ${SECRET_SCOPE_NAME} '.[] | select(.name == $value)' diff --git a/acceptance/bundle/deployment/bind/sql_warehouse/output.txt b/acceptance/bundle/deployment/bind/sql_warehouse/output.txt index ea7f3945a54..858dec32105 100644 --- a/acceptance/bundle/deployment/bind/sql_warehouse/output.txt +++ b/acceptance/bundle/deployment/bind/sql_warehouse/output.txt @@ -1,6 +1,5 @@ >>> [CLI] bundle deployment bind sql_warehouse1 [SQL-WAREHOUSE-ID] --auto-approve -Updating deployment state... Successfully bound sql_warehouse with an id '[SQL-WAREHOUSE-ID]' Run 'bundle deploy' to deploy changes to your workspace @@ -17,7 +16,6 @@ Resources: URL: [DATABRICKS_URL]/sql/warehouses/[SQL-WAREHOUSE-ID]?w=[NUMID] >>> [CLI] bundle deployment unbind sql_warehouse1 -Updating deployment state... >>> [CLI] bundle summary Name: test-bundle diff --git a/acceptance/bundle/deployment/bind/vector_search_endpoint/output.txt b/acceptance/bundle/deployment/bind/vector_search_endpoint/output.txt index 2a731b4827e..1fac4d3f8cf 100644 --- a/acceptance/bundle/deployment/bind/vector_search_endpoint/output.txt +++ b/acceptance/bundle/deployment/bind/vector_search_endpoint/output.txt @@ -7,15 +7,12 @@ } >>> [CLI] bundle deployment bind endpoint1 test-vs-endpoint-[UNIQUE_NAME] --auto-approve -Updating deployment state... Successfully bound vector_search_endpoint with an id 'test-vs-endpoint-[UNIQUE_NAME]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] vector-search-endpoints get-endpoint test-vs-endpoint-[UNIQUE_NAME] { @@ -25,13 +22,11 @@ Deployment complete! } >>> [CLI] bundle deployment unbind endpoint1 -Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> [CLI] vector-search-endpoints get-endpoint test-vs-endpoint-[UNIQUE_NAME] { diff --git a/acceptance/bundle/deployment/bind/vector_search_index/output.txt b/acceptance/bundle/deployment/bind/vector_search_index/output.txt index a91168a5137..ffbab172263 100644 --- a/acceptance/bundle/deployment/bind/vector_search_index/output.txt +++ b/acceptance/bundle/deployment/bind/vector_search_index/output.txt @@ -14,15 +14,12 @@ } >>> [CLI] bundle deployment bind index1 main.default.test_vs_index_[UNIQUE_NAME] --auto-approve -Updating deployment state... Successfully bound vector_search_index with an id 'main.default.test_vs_index_[UNIQUE_NAME]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] vector-search-indexes get-index main.default.test_vs_index_[UNIQUE_NAME] { @@ -33,13 +30,11 @@ Deployment complete! } >>> [CLI] bundle deployment unbind index1 -Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> [CLI] vector-search-indexes get-index main.default.test_vs_index_[UNIQUE_NAME] { diff --git a/acceptance/bundle/deployment/bind/volume/output.txt b/acceptance/bundle/deployment/bind/volume/output.txt index b7938df1430..0df02c2f022 100644 --- a/acceptance/bundle/deployment/bind/volume/output.txt +++ b/acceptance/bundle/deployment/bind/volume/output.txt @@ -7,15 +7,12 @@ === Create a pre-defined volume: >>> [CLI] bundle deployment bind volume1 main.test-schema-[UNIQUE_NAME].volume-[UNIQUE_NAME] --auto-approve -Updating deployment state... Successfully bound volume with an id 'main.test-schema-[UNIQUE_NAME].volume-[UNIQUE_NAME]' Run 'bundle deploy' to deploy changes to your workspace >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] volumes read main.test-schema-[UNIQUE_NAME].volume-[UNIQUE_NAME] { @@ -26,13 +23,11 @@ Deployment complete! } >>> [CLI] bundle deployment unbind volume1 -Updating deployment state... >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> [CLI] volumes read main.test-schema-[UNIQUE_NAME].volume-[UNIQUE_NAME] { diff --git a/acceptance/bundle/deployment/unbind/engine-from-config/output.txt b/acceptance/bundle/deployment/unbind/engine-from-config/output.txt index 9e833d5a0d0..8dceb42e20a 100644 --- a/acceptance/bundle/deployment/unbind/engine-from-config/output.txt +++ b/acceptance/bundle/deployment/unbind/engine-from-config/output.txt @@ -1,13 +1,12 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/engine-from-config/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === State files after deploy === .databricks/bundle/default/resources.json >>> [CLI] bundle deployment unbind job_1 -Updating deployment state... === State files after unbind === .databricks/bundle/default/resources.json diff --git a/acceptance/bundle/deployment/unbind/grants/output.txt b/acceptance/bundle/deployment/unbind/grants/output.txt index 073bad25816..518fc968cb5 100644 --- a/acceptance/bundle/deployment/unbind/grants/output.txt +++ b/acceptance/bundle/deployment/unbind/grants/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.schema_1 +created schemas.schema_1.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] grants get schema main.test-schema-[UNIQUE_NAME] --output json { @@ -15,13 +16,13 @@ Deployment complete! } >>> [CLI] bundle deployment unbind schema_1 -Updating deployment state... >>> [CLI] bundle deploy --var suffix=another Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.schema_1 +created schemas.schema_1.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Grants should be the same as before unbind >>> [CLI] grants get schema main.test-schema-[UNIQUE_NAME] --output json @@ -42,8 +43,7 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> [CLI] schemas delete main.test-schema-[UNIQUE_NAME] 0 diff --git a/acceptance/bundle/deployment/unbind/job/output.txt b/acceptance/bundle/deployment/unbind/job/output.txt index e1c72de2d4f..5d5c9006480 100644 --- a/acceptance/bundle/deployment/unbind/job/output.txt +++ b/acceptance/bundle/deployment/unbind/job/output.txt @@ -1,20 +1,19 @@ >>> [CLI] bundle deploy --var job_name=My Job Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle summary --var job_name=My Job --output json >>> [CLI] bundle deployment unbind job_1 --var job_name=My Job -Updating deployment state... >>> [CLI] bundle deploy --var job_name=Updated Job Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs get [NUMID] --output json { diff --git a/acceptance/bundle/deployment/unbind/permissions/output.txt b/acceptance/bundle/deployment/unbind/permissions/output.txt index a7e824374bf..3ade50d53b7 100644 --- a/acceptance/bundle/deployment/unbind/permissions/output.txt +++ b/acceptance/bundle/deployment/unbind/permissions/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_1 +created jobs.job_1.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle summary --output json @@ -19,13 +20,13 @@ Deployment complete! } >>> [CLI] bundle deployment unbind job_1 -Updating deployment state... >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_1 +created jobs.job_1.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Permissions should be the same as before unbind >>> [CLI] jobs get-permissions [NUMID] --output json @@ -45,8 +46,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> [CLI] jobs delete [NUMID] 0 diff --git a/acceptance/bundle/deployment/unbind/python-job/output.txt b/acceptance/bundle/deployment/unbind/python-job/output.txt index 75ff185b35c..6ef0ed547a3 100644 --- a/acceptance/bundle/deployment/unbind/python-job/output.txt +++ b/acceptance/bundle/deployment/unbind/python-job/output.txt @@ -1,20 +1,19 @@ >>> uv run --with [DATABRICKS_BUNDLES_WHEEL] -q [CLI] bundle deploy --var job_name=My Job Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> uv run --with [DATABRICKS_BUNDLES_WHEEL] -q [CLI] bundle summary --var job_name=My Job --output json >>> uv run --with [DATABRICKS_BUNDLES_WHEEL] -q [CLI] bundle deployment unbind job_1 --var job_name=My Job -Updating deployment state... >>> uv run --with [DATABRICKS_BUNDLES_WHEEL] -q [CLI] bundle deploy --var job_name=Updated Job Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_project/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs get [NUMID] --output json { diff --git a/acceptance/bundle/destroy/all-resources/output.txt b/acceptance/bundle/destroy/all-resources/output.txt index 5fd8d432a82..5d9d7363110 100644 --- a/acceptance/bundle/destroy/all-resources/output.txt +++ b/acceptance/bundle/destroy/all-resources/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline +created schemas.my_schema + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -19,5 +20,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/destroy/jobs-and-pipeline/output.txt b/acceptance/bundle/destroy/jobs-and-pipeline/output.txt index ce1530c469a..b1e46332789 100644 --- a/acceptance/bundle/destroy/jobs-and-pipeline/output.txt +++ b/acceptance/bundle/destroy/jobs-and-pipeline/output.txt @@ -5,6 +5,10 @@ Directory does not exist >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... Deploying resources... +created jobs.foo +created pipelines.bar + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. Updating deployment state... Deployment complete! diff --git a/acceptance/bundle/environments/dependencies/output.txt b/acceptance/bundle/environments/dependencies/output.txt index da08e74cdb4..30130969bf4 100644 --- a/acceptance/bundle/environments/dependencies/output.txt +++ b/acceptance/bundle/environments/dependencies/output.txt @@ -11,9 +11,10 @@ Validation OK! >>> [CLI] bundle deploy Uploading dist/test.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dependencies/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job +created pipelines.test_pipeline + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.environments out.requests.txt [ diff --git a/acceptance/bundle/generate/auto-bind/output.txt b/acceptance/bundle/generate/auto-bind/output.txt index fd574b5f7b2..c3275f90d4d 100644 --- a/acceptance/bundle/generate/auto-bind/output.txt +++ b/acceptance/bundle/generate/auto-bind/output.txt @@ -23,6 +23,9 @@ test.py >>> [CLI] bundle deploy Uploading bundle files to /Workspace/tmp/[UNIQUE_NAME]/files... Deploying resources... +updated jobs.test_job + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. Updating deployment state... Deployment complete! diff --git a/acceptance/bundle/generate/dashboard-inplace/output.txt b/acceptance/bundle/generate/dashboard-inplace/output.txt index 90d054197aa..fa74192b18b 100644 --- a/acceptance/bundle/generate/dashboard-inplace/output.txt +++ b/acceptance/bundle/generate/dashboard-inplace/output.txt @@ -5,9 +5,9 @@ === deploy initial dashboard >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dashboard update inplace/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.test_dashboard + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === update the dashboard >>> [CLI] lakeview update [DASHBOARD_ID] --serialized-dashboard {"a":"b"} diff --git a/acceptance/bundle/generate/genie_space_inplace/output.txt b/acceptance/bundle/generate/genie_space_inplace/output.txt index 9beebf12605..da455b2bc81 100644 --- a/acceptance/bundle/generate/genie_space_inplace/output.txt +++ b/acceptance/bundle/generate/genie_space_inplace/output.txt @@ -5,9 +5,9 @@ === deploy initial genie space >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/genie space update inplace/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.test_genie_space + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === update the genie space >>> [CLI] genie update-space [GENIE_SPACE_ID] --serialized-space {"a":"b"} diff --git a/acceptance/bundle/generate/pipeline_and_deploy/output.txt b/acceptance/bundle/generate/pipeline_and_deploy/output.txt index 41c92d9ac10..34ce67ac2cd 100644 --- a/acceptance/bundle/generate/pipeline_and_deploy/output.txt +++ b/acceptance/bundle/generate/pipeline_and_deploy/output.txt @@ -14,15 +14,13 @@ Pipeline configuration successfully saved to resources/out.pipeline.yml === Deploy the generated bundle >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pipeline_and_deploy-[UNIQUE_NAME]/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. === Destroy the deployed bundle >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/pipeline_and_deploy-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. === Cleanup: delete the original pipeline and files >>> errcode [CLI] pipelines delete [PIPELINE_ID] diff --git a/acceptance/bundle/generate/python_job_and_deploy/output.txt b/acceptance/bundle/generate/python_job_and_deploy/output.txt index aaa39b42448..56be3299f1c 100644 --- a/acceptance/bundle/generate/python_job_and_deploy/output.txt +++ b/acceptance/bundle/generate/python_job_and_deploy/output.txt @@ -13,15 +13,13 @@ Job configuration successfully saved to resources/out.job.yml === Deploy the generated bundle >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/python_job_and_deploy-[UNIQUE_NAME]/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. === Destroy the deployed bundle >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/python_job_and_deploy-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. === Cleanup: delete the original job and notebook >>> errcode [CLI] jobs delete [JOB_ID] diff --git a/acceptance/bundle/help/bundle-deploy/output.txt b/acceptance/bundle/help/bundle-deploy/output.txt index 7e9e3ff34dd..c0e1bdda2c0 100644 --- a/acceptance/bundle/help/bundle-deploy/output.txt +++ b/acceptance/bundle/help/bundle-deploy/output.txt @@ -20,6 +20,7 @@ Flags: --force-lock Force acquisition of deployment lock. -h, --help help for deploy --plan string Path to a JSON plan file to apply instead of planning (direct engine only). + -q, --quiet Only print the summary line, not the per-resource actions. --select strings Deploy only the specified resource (e.g. 'my_job' or 'jobs.my_job'). Can be repeated or comma-separated. Global Flags: diff --git a/acceptance/bundle/integration_whl/base/output.txt b/acceptance/bundle/integration_whl/base/output.txt index 3a335ebbe51..095307650c2 100644 --- a/acceptance/bundle/integration_whl/base/output.txt +++ b/acceptance/bundle/integration_whl/base/output.txt @@ -34,9 +34,9 @@ resources: Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.some_other_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -52,9 +52,7 @@ Got arguments: Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -71,5 +69,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/integration_whl/custom_params/output.txt b/acceptance/bundle/integration_whl/custom_params/output.txt index 763f169e73f..fb1880fb754 100644 --- a/acceptance/bundle/integration_whl/custom_params/output.txt +++ b/acceptance/bundle/integration_whl/custom_params/output.txt @@ -34,9 +34,9 @@ resources: Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.some_other_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job --python-params param1,param2 Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -53,5 +53,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/integration_whl/interactive_cluster/output.txt b/acceptance/bundle/integration_whl/interactive_cluster/output.txt index 63ff83e67e4..942629c7b09 100644 --- a/acceptance/bundle/integration_whl/interactive_cluster/output.txt +++ b/acceptance/bundle/integration_whl/interactive_cluster/output.txt @@ -34,9 +34,10 @@ resources: Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.test_cluster +created jobs.some_other_job + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -52,9 +53,7 @@ Got arguments: Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 2 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -72,5 +71,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/integration_whl/interactive_cluster_dynamic_version/output.txt b/acceptance/bundle/integration_whl/interactive_cluster_dynamic_version/output.txt index ea37514510b..5dbb1a88e94 100644 --- a/acceptance/bundle/integration_whl/interactive_cluster_dynamic_version/output.txt +++ b/acceptance/bundle/integration_whl/interactive_cluster_dynamic_version/output.txt @@ -3,9 +3,10 @@ Building python_artifact... Uploading .databricks/bundle/default/patched_wheels/python_artifact_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.test_cluster +created jobs.some_other_job + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -17,13 +18,10 @@ Got arguments: ['my_test_code', 'one', 'two'] === Make a change to code without version change and run the job again ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Building python_artifact... Uploading .databricks/bundle/default/patched_wheels/python_artifact_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -41,5 +39,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/integration_whl/interactive_cluster_dynamic_version/script b/acceptance/bundle/integration_whl/interactive_cluster_dynamic_version/script index 987dbef22f3..64c629097fc 100644 --- a/acceptance/bundle/integration_whl/interactive_cluster_dynamic_version/script +++ b/acceptance/bundle/integration_whl/interactive_cluster_dynamic_version/script @@ -10,5 +10,5 @@ trace $CLI bundle run some_other_job title "Make a change to code without version change and run the job again" update_file.py my_test_code/__main__.py 'Hello from my func' 'UPDATED MY FUNC' -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace $CLI bundle run some_other_job diff --git a/acceptance/bundle/integration_whl/interactive_single_user/output.txt b/acceptance/bundle/integration_whl/interactive_single_user/output.txt index 35ce77c6df0..7d58964e7d9 100644 --- a/acceptance/bundle/integration_whl/interactive_single_user/output.txt +++ b/acceptance/bundle/integration_whl/interactive_single_user/output.txt @@ -34,9 +34,10 @@ resources: Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.test_cluster +created jobs.some_other_job + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -45,13 +46,10 @@ Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] [TIMESTAMP] "[default] Test Wheel Job [UNIQUE_NAME]" TERMINATED SUCCESS === Make a change to code without version change and run the job again ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -66,5 +64,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/integration_whl/interactive_single_user/script b/acceptance/bundle/integration_whl/interactive_single_user/script index 1fb27126962..e31c37070a8 100644 --- a/acceptance/bundle/integration_whl/interactive_single_user/script +++ b/acceptance/bundle/integration_whl/interactive_single_user/script @@ -12,5 +12,5 @@ trace $CLI bundle run some_other_job > out.$DATABRICKS_BUNDLE_ENGINE.txt title "Make a change to code without version change and run the job again" update_file.py my_test_code/__main__.py 'Hello from my func' 'UPDATED MY FUNC' -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace $CLI bundle run some_other_job >> out.$DATABRICKS_BUNDLE_ENGINE.txt diff --git a/acceptance/bundle/integration_whl/serverless/output.txt b/acceptance/bundle/integration_whl/serverless/output.txt index b23c80e491f..2c57efe07be 100644 --- a/acceptance/bundle/integration_whl/serverless/output.txt +++ b/acceptance/bundle/integration_whl/serverless/output.txt @@ -5,9 +5,9 @@ Building my_test_code... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.some_other_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -23,9 +23,7 @@ Got arguments: Building my_test_code... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -42,5 +40,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/integration_whl/serverless_custom_params/output.txt b/acceptance/bundle/integration_whl/serverless_custom_params/output.txt index 3bb59861afb..e249a7e6a19 100644 --- a/acceptance/bundle/integration_whl/serverless_custom_params/output.txt +++ b/acceptance/bundle/integration_whl/serverless_custom_params/output.txt @@ -3,9 +3,9 @@ Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.some_other_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -31,5 +31,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/integration_whl/serverless_dynamic_version/output.txt b/acceptance/bundle/integration_whl/serverless_dynamic_version/output.txt index 30de76035c7..fd07a988f71 100644 --- a/acceptance/bundle/integration_whl/serverless_dynamic_version/output.txt +++ b/acceptance/bundle/integration_whl/serverless_dynamic_version/output.txt @@ -5,9 +5,9 @@ Building my_test_code... Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.some_other_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -23,9 +23,9 @@ Got arguments: Building my_test_code... Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.some_other_job + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -42,5 +42,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/integration_whl/wrapper/output.txt b/acceptance/bundle/integration_whl/wrapper/output.txt index 09c0e810248..794521153e1 100644 --- a/acceptance/bundle/integration_whl/wrapper/output.txt +++ b/acceptance/bundle/integration_whl/wrapper/output.txt @@ -34,9 +34,9 @@ resources: Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.some_other_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job Run URL: [DATABRICKS_URL]/jobs/[SOME_OTHER_JOB_ID]/runs/[NUMID]?o=[NUMID] @@ -53,5 +53,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/integration_whl/wrapper_custom_params/output.txt b/acceptance/bundle/integration_whl/wrapper_custom_params/output.txt index 6d18ceab9cb..e260269d6cb 100644 --- a/acceptance/bundle/integration_whl/wrapper_custom_params/output.txt +++ b/acceptance/bundle/integration_whl/wrapper_custom_params/output.txt @@ -34,9 +34,9 @@ resources: Building python_artifact... Uploading dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.some_other_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run some_other_job --python-params param1,param2 Run URL: [DATABRICKS_URL]/jobs/[NUMID]/runs/[NUMID]?o=[NUMID] @@ -53,5 +53,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/libraries/maven/output.txt b/acceptance/bundle/libraries/maven/output.txt index fd72d8d144b..231463e2004 100644 --- a/acceptance/bundle/libraries/maven/output.txt +++ b/acceptance/bundle/libraries/maven/output.txt @@ -10,6 +10,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/maven/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.testjob + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/libraries/outside_of_bundle_root/output.txt b/acceptance/bundle/libraries/outside_of_bundle_root/output.txt index e7d6530536a..49432f3a511 100644 --- a/acceptance/bundle/libraries/outside_of_bundle_root/output.txt +++ b/acceptance/bundle/libraries/outside_of_bundle_root/output.txt @@ -28,9 +28,10 @@ Validation OK! >>> [CLI] bundle deploy Uploading ../lib/test.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/outside_of_bundle_root/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test +created pipelines.pipeline + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Check that the job libraries are uploaded and the path is correct in the job >>> cat out.requests.txt diff --git a/acceptance/bundle/libraries/pypi/output.txt b/acceptance/bundle/libraries/pypi/output.txt index 002677d64e1..0eaf10bb6a9 100644 --- a/acceptance/bundle/libraries/pypi/output.txt +++ b/acceptance/bundle/libraries/pypi/output.txt @@ -10,6 +10,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pypi/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.testjob + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/lifecycle/prevent-destroy/out.direct.txt b/acceptance/bundle/lifecycle/prevent-destroy/out.direct.txt index a100c8774f7..1952d0dd438 100644 --- a/acceptance/bundle/lifecycle/prevent-destroy/out.direct.txt +++ b/acceptance/bundle/lifecycle/prevent-destroy/out.direct.txt @@ -43,9 +43,10 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them. Recreating restore the defined STs and MVs through full refresh. Note that recreation is necessary when pipeline properties such as the 'catalog' or 'storage' are changed: recreate resources.pipelines.my_pipelines -Deploying resources... -Updating deployment state... -Deployment complete! +recreated pipelines.my_pipelines +recreated schemas.my_schema + +Deploy: 2 created, 0 changed, 2 deleted, 0 unchanged. >>> errcode [CLI] bundle plan delete pipelines.my_pipelines @@ -64,6 +65,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them. Recreating restore the defined STs and MVs through full refresh. Note that recreation is necessary when pipeline properties such as the 'catalog' or 'storage' are changed: delete resources.pipelines.my_pipelines -Deploying resources... -Updating deployment state... -Deployment complete! +deleted pipelines.my_pipelines +deleted schemas.my_schema + +Deploy: 0 created, 0 changed, 2 deleted, 0 unchanged. diff --git a/acceptance/bundle/lifecycle/prevent-destroy/out.terraform.txt b/acceptance/bundle/lifecycle/prevent-destroy/out.terraform.txt index f36fe5c8f30..85268eecf2a 100644 --- a/acceptance/bundle/lifecycle/prevent-destroy/out.terraform.txt +++ b/acceptance/bundle/lifecycle/prevent-destroy/out.terraform.txt @@ -127,9 +127,10 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them. Recreating restore the defined STs and MVs through full refresh. Note that recreation is necessary when pipeline properties such as the 'catalog' or 'storage' are changed: recreate resources.pipelines.my_pipelines -Deploying resources... -Updating deployment state... -Deployment complete! +recreated pipelines.my_pipelines +recreated schemas.my_schema + +Deploy: 2 created, 0 changed, 2 deleted, 0 unchanged. >>> errcode [CLI] bundle plan delete pipelines.my_pipelines @@ -148,6 +149,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them. Recreating restore the defined STs and MVs through full refresh. Note that recreation is necessary when pipeline properties such as the 'catalog' or 'storage' are changed: delete resources.pipelines.my_pipelines -Deploying resources... -Updating deployment state... -Deployment complete! +deleted pipelines.my_pipelines +deleted schemas.my_schema + +Deploy: 0 created, 0 changed, 2 deleted, 0 unchanged. diff --git a/acceptance/bundle/lifecycle/prevent-destroy/output.txt b/acceptance/bundle/lifecycle/prevent-destroy/output.txt index 6a0f626b376..78a7018ba63 100644 --- a/acceptance/bundle/lifecycle/prevent-destroy/output.txt +++ b/acceptance/bundle/lifecycle/prevent-destroy/output.txt @@ -10,9 +10,10 @@ Validation OK! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/prevent-destroy/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipelines +created schemas.my_schema + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> errcode [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged diff --git a/acceptance/bundle/local_state_staleness/output.txt b/acceptance/bundle/local_state_staleness/output.txt index c22387f85ed..d28a1b07405 100644 --- a/acceptance/bundle/local_state_staleness/output.txt +++ b/acceptance/bundle/local_state_staleness/output.txt @@ -2,23 +2,19 @@ === Step 1: Deploy bundle A >>> [CLI] bundle deploy --force-lock --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/local-state-staleness-test-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Step 2: Deploy bundle B >>> [CLI] bundle deploy --force-lock --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/local-state-staleness-test-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. === Step 3: Deploy bundle A again (should use remote state) >>> [CLI] bundle deploy --force-lock --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/local-state-staleness-test-[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. === Step 4: Verify only one job exists { @@ -34,8 +30,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/local-state-staleness-test-[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> rm -rf [TEST_TMP_DIR]/bundle_a diff --git a/acceptance/bundle/migrate/added/output.txt b/acceptance/bundle/migrate/added/output.txt index 9a77ac41c1c..c8db18bba69 100644 --- a/acceptance/bundle/migrate/added/output.txt +++ b/acceptance/bundle/migrate/added/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-added-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_a + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate Success! Migrated 1 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json @@ -22,9 +22,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 1 unchanged >>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-added-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_b + +Deploy: 1 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py //jobs/create { diff --git a/acceptance/bundle/migrate/basic/output.txt b/acceptance/bundle/migrate/basic/output.txt index cc70cdaee02..161606983f8 100644 --- a/acceptance/bundle/migrate/basic/output.txt +++ b/acceptance/bundle/migrate/basic/output.txt @@ -6,9 +6,11 @@ To start using direct engine, set "engine: direct" under bundle in your databric >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job +created pipelines.test_pipeline +created volumes.test_volume + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate Success! Migrated 3 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json @@ -30,9 +32,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 3 unchanged >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 3 unchanged. === Should show that it's already migrated >>> musterr [CLI] bundle deployment migrate @@ -73,9 +73,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 3 unchanged >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 3 unchanged. >>> print_requests.py --get //jobs/get "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" @@ -110,16 +108,20 @@ Plan: 0 to add, 2 to change, 0 to delete, 1 unchanged >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.test_job +updated pipelines.test_pipeline + +Deploy: 0 created, 2 changed, 0 deleted, 1 unchanged. === Different target, still on terraform >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy -t prod Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/prod/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job +created pipelines.test_pipeline +created schemas.test_schema +created volumes.test_volume + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle debug states -t prod [TEST_TMP_DIR]/.databricks/bundle/prod/terraform/terraform.tfstate: local terraform state serial=5 lineage="[UUID]" diff --git a/acceptance/bundle/migrate/dashboards/output.txt b/acceptance/bundle/migrate/dashboards/output.txt index cfda4350ceb..a0dc6fe8f86 100644 --- a/acceptance/bundle/migrate/dashboards/output.txt +++ b/acceptance/bundle/migrate/dashboards/output.txt @@ -1,9 +1,9 @@ >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate Success! Migrated 1 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json @@ -20,9 +20,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged @@ -36,9 +34,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py --get //dashboards diff --git a/acceptance/bundle/migrate/default-python/output.txt b/acceptance/bundle/migrate/default-python/output.txt index fb554bc258d..3fc347b1451 100644 --- a/acceptance/bundle/migrate/default-python/output.txt +++ b/acceptance/bundle/migrate/default-python/output.txt @@ -16,9 +16,10 @@ To get started, refer to the project README.md file and the documentation at htt Building python_artifact... Uploading .databricks/bundle/dev/patched_wheels/python_artifact_my_default_python/my_default_python-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job +created pipelines.my_default_python_etl + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_state.py @@ -155,9 +156,9 @@ Building python_artifact... Building python_artifact... Uploading .databricks/bundle/dev/patched_wheels/python_artifact_my_default_python/my_default_python-0.0.1+[UNIX_TIME_NANOS][3]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.sample_job + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_state.py diff --git a/acceptance/bundle/migrate/grants/output.txt b/acceptance/bundle/migrate/grants/output.txt index 86acb6398f5..fe4d84e28f6 100644 --- a/acceptance/bundle/migrate/grants/output.txt +++ b/acceptance/bundle/migrate/grants/output.txt @@ -1,9 +1,14 @@ >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created registered_models.my_registered_model +created registered_models.my_registered_model.grants +created schemas.my_schema +created schemas.my_schema.grants +created volumes.my_volume +created volumes.my_volume.grants + +Deploy: 6 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate Success! Migrated 6 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json @@ -20,9 +25,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 6 unchanged >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 6 unchanged. >>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 6 unchanged @@ -34,9 +37,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 6 unchanged >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 6 unchanged. >>> print_requests.py --get //unity-catalog/permissions diff --git a/acceptance/bundle/migrate/permissions/output.txt b/acceptance/bundle/migrate/permissions/output.txt index 51caca51104..ddb1f59a4e9 100644 --- a/acceptance/bundle/migrate/permissions/output.txt +++ b/acceptance/bundle/migrate/permissions/output.txt @@ -1,9 +1,12 @@ >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job +created jobs.test_job.permissions +created pipelines.test_pipeline +created pipelines.test_pipeline.permissions + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate Success! Migrated 4 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json @@ -49,9 +52,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 4 unchanged. >>> print_requests.py --get //jobs/get "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" diff --git a/acceptance/bundle/migrate/profile_arg/output.txt b/acceptance/bundle/migrate/profile_arg/output.txt index 082feee15b1..2e889256d73 100644 --- a/acceptance/bundle/migrate/profile_arg/output.txt +++ b/acceptance/bundle/migrate/profile_arg/output.txt @@ -1,9 +1,9 @@ >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate -p non_existent321 Success! Migrated 1 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json @@ -17,9 +17,10 @@ To undo the migration, remove [TEST_TMP_DIR]/.databricks/bundle/dev/resources.js >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy -t prod Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/prod/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job +created schemas.test_schema + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate -p non_existent321 -t prod Success! Migrated 2 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/prod/resources.json diff --git a/acceptance/bundle/migrate/removed/output.txt b/acceptance/bundle/migrate/removed/output.txt index 9896acb4247..f19bef16d89 100644 --- a/acceptance/bundle/migrate/removed/output.txt +++ b/acceptance/bundle/migrate/removed/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-removed-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_a +created jobs.job_b + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate Success! Migrated 2 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json @@ -22,9 +23,9 @@ Plan: 0 to add, 0 to change, 1 to delete, 1 unchanged >>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-removed-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +deleted jobs.job_b + +Deploy: 0 created, 0 changed, 1 deleted, 1 unchanged. >>> print_requests.py //jobs/delete { diff --git a/acceptance/bundle/migrate/runas/output.txt b/acceptance/bundle/migrate/runas/output.txt index f8a9b475bdc..af002a69d07 100644 --- a/acceptance/bundle/migrate/runas/output.txt +++ b/acceptance/bundle/migrate/runas/output.txt @@ -31,9 +31,10 @@ See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more in databricks.yml:5:3 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dabs_revenue-[UNIQUE_NAME]/production/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created pipelines.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //pipelines @@ -143,5 +144,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/dabs_revenue-[UNIQUE_NAME]/production -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/migrate/var_arg/output.txt b/acceptance/bundle/migrate/var_arg/output.txt index 3c20819211d..5b525d713ad 100644 --- a/acceptance/bundle/migrate/var_arg/output.txt +++ b/acceptance/bundle/migrate/var_arg/output.txt @@ -1,9 +1,9 @@ >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy --var=job_name=Custom Job Name Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-var-test/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate --var=job_name=Custom Job Name Success! Migrated 1 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json @@ -27,14 +27,13 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/migrate-var-test/dev -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy --var job_name=Custom Job Name Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-var-test/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deployment migrate --var job_name=Custom Job Name Success! Migrated 1 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json @@ -58,5 +57,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/migrate-var-test/dev -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/open/output.txt b/acceptance/bundle/open/output.txt index e2bbd82d4fa..c02c0f082e0 100644 --- a/acceptance/bundle/open/output.txt +++ b/acceptance/bundle/open/output.txt @@ -13,9 +13,9 @@ Exit code: 1 >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/caterpillar/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Use a fake browser that just prints the URL it would have opened === open after deployment diff --git a/acceptance/bundle/resource_deps/bad_syntax/out.deploy.direct.txt b/acceptance/bundle/resource_deps/bad_syntax/out.deploy.direct.txt index 6bed0296b30..1a0ff4e4f13 100644 --- a/acceptance/bundle/resource_deps/bad_syntax/out.deploy.direct.txt +++ b/acceptance/bundle/resource_deps/bad_syntax/out.deploy.direct.txt @@ -1,6 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created volumes.bar +created volumes.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. Unexpected success diff --git a/acceptance/bundle/resource_deps/create_error/out.deploy.direct.txt b/acceptance/bundle/resource_deps/create_error/out.deploy.direct.txt index 40c9dce1038..2534c11be17 100644 --- a/acceptance/bundle/resource_deps/create_error/out.deploy.direct.txt +++ b/acceptance/bundle/resource_deps/create_error/out.deploy.direct.txt @@ -1,5 +1,4 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... Error: cannot create resources.jobs.foo: INJECTED (500 UNKNOWN) Endpoint: POST [DATABRICKS_URL]/api/2.2/jobs/create @@ -11,4 +10,3 @@ Error: cannot create resources.jobs.bar: dependency failed: resources.jobs.foo Error: cannot create resources.jobs.baz: dependency failed: resources.jobs.foo -Updating deployment state... diff --git a/acceptance/bundle/resource_deps/create_error/out.deploy.terraform.txt b/acceptance/bundle/resource_deps/create_error/out.deploy.terraform.txt index a09da8f06f1..aca3c83fd61 100644 --- a/acceptance/bundle/resource_deps/create_error/out.deploy.terraform.txt +++ b/acceptance/bundle/resource_deps/create_error/out.deploy.terraform.txt @@ -1,5 +1,4 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... Error: terraform apply: exit status 1 Error: cannot create job: INJECTED @@ -10,4 +9,3 @@ Error: cannot create job: INJECTED -Updating deployment state... diff --git a/acceptance/bundle/resource_deps/create_error/output.txt b/acceptance/bundle/resource_deps/create_error/output.txt index f8f3c819fa0..b47f16859e0 100644 --- a/acceptance/bundle/resource_deps/create_error/output.txt +++ b/acceptance/bundle/resource_deps/create_error/output.txt @@ -101,8 +101,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/resource_deps/duplicate_ref/output.txt b/acceptance/bundle/resource_deps/duplicate_ref/output.txt index 960f349c6bc..0c1e41eda32 100644 --- a/acceptance/bundle/resource_deps/duplicate_ref/output.txt +++ b/acceptance/bundle/resource_deps/duplicate_ref/output.txt @@ -41,9 +41,11 @@ Plan: 3 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.bar +created pipelines.baz +created pipelines.foo + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> jq -s [.[] | select(.path=="/api/2.0/pipelines" and .method=="POST") | .body.name] | sort out.requests.txt [ diff --git a/acceptance/bundle/resource_deps/grant_ref/output.txt b/acceptance/bundle/resource_deps/grant_ref/output.txt index 47cfaccbcbd..72b0c8c08c1 100644 --- a/acceptance/bundle/resource_deps/grant_ref/output.txt +++ b/acceptance/bundle/resource_deps/grant_ref/output.txt @@ -11,6 +11,9 @@ Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.schema_a +created schemas.schema_a.grants +created schemas.schema_b +created schemas.schema_b.grants + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resource_deps/id_chain/output.txt b/acceptance/bundle/resource_deps/id_chain/output.txt index 62dfb09f18c..1c28a6393b1 100644 --- a/acceptance/bundle/resource_deps/id_chain/output.txt +++ b/acceptance/bundle/resource_deps/id_chain/output.txt @@ -14,9 +14,13 @@ Plan: 5 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.a +created jobs.b +created jobs.c +created jobs.d +created jobs.e + +Deploy: 5 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests_short "aa" @@ -44,9 +48,13 @@ Plan: 0 to add, 5 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.a +updated jobs.b +updated jobs.c +updated jobs.d +updated jobs.e + +Deploy: 0 created, 5 changed, 0 deleted, 0 unchanged. >>> print_requests_short "aa" diff --git a/acceptance/bundle/resource_deps/immutable_field_ref/output.txt b/acceptance/bundle/resource_deps/immutable_field_ref/output.txt index 0ce0b280a25..01022f1fc0d 100644 --- a/acceptance/bundle/resource_deps/immutable_field_ref/output.txt +++ b/acceptance/bundle/resource_deps/immutable_field_ref/output.txt @@ -1,9 +1,11 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created schemas.schema +created volumes.foo + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> update_file.py databricks.yml comment1 comment2 diff --git a/acceptance/bundle/resource_deps/job_id/output.txt b/acceptance/bundle/resource_deps/job_id/output.txt index 89f0656f907..4d04fa31927 100644 --- a/acceptance/bundle/resource_deps/job_id/output.txt +++ b/acceptance/bundle/resource_deps/job_id/output.txt @@ -9,9 +9,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs { @@ -61,9 +62,10 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +deleted jobs.bar +deleted jobs.foo + +Deploy: 0 created, 0 changed, 2 deleted, 0 unchanged. >>> print_requests.py //jobs { @@ -84,7 +86,6 @@ Deployment complete! >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. >>> print_requests.py //jobs diff --git a/acceptance/bundle/resource_deps/job_id_big_graph/delete_all/output.txt b/acceptance/bundle/resource_deps/job_id_big_graph/delete_all/output.txt index b6c98142421..2b9d60c12e9 100644 --- a/acceptance/bundle/resource_deps/job_id_big_graph/delete_all/output.txt +++ b/acceptance/bundle/resource_deps/job_id_big_graph/delete_all/output.txt @@ -1,9 +1,20 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.chain_bottom +created jobs.chain_mid +created jobs.chain_top +created jobs.diamond_bottom +created jobs.diamond_left +created jobs.diamond_right +created jobs.diamond_top +created jobs.independent1 +created jobs.independent2 +created jobs.multi_child +created jobs.multi_parent1 +created jobs.multi_parent2 + +Deploy: 12 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --sort //jobs { @@ -278,12 +289,22 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +deleted jobs.chain_bottom +deleted jobs.chain_mid +deleted jobs.chain_top +deleted jobs.diamond_bottom +deleted jobs.diamond_left +deleted jobs.diamond_right +deleted jobs.diamond_top +deleted jobs.independent1 +deleted jobs.independent2 +deleted jobs.multi_child +deleted jobs.multi_parent1 +deleted jobs.multi_parent2 + +Deploy: 0 created, 0 changed, 12 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. diff --git a/acceptance/bundle/resource_deps/job_id_big_graph/destroy/output.txt b/acceptance/bundle/resource_deps/job_id_big_graph/destroy/output.txt index 72b7277ec76..3950e8f1d39 100644 --- a/acceptance/bundle/resource_deps/job_id_big_graph/destroy/output.txt +++ b/acceptance/bundle/resource_deps/job_id_big_graph/destroy/output.txt @@ -1,9 +1,20 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.chain_bottom +created jobs.chain_mid +created jobs.chain_top +created jobs.diamond_bottom +created jobs.diamond_left +created jobs.diamond_right +created jobs.diamond_top +created jobs.independent1 +created jobs.independent2 +created jobs.multi_child +created jobs.multi_parent1 +created jobs.multi_parent2 + +Deploy: 12 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --sort //jobs { @@ -291,5 +302,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 12 deleted. diff --git a/acceptance/bundle/resource_deps/job_id_delete_bar/output.txt b/acceptance/bundle/resource_deps/job_id_delete_bar/output.txt index fdba7e0c427..47abd51e836 100644 --- a/acceptance/bundle/resource_deps/job_id_delete_bar/output.txt +++ b/acceptance/bundle/resource_deps/job_id_delete_bar/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs { @@ -54,9 +55,10 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +deleted jobs.bar +updated jobs.foo + +Deploy: 0 created, 1 changed, 1 deleted, 0 unchanged. >>> print_requests.py --sort //jobs @@ -66,8 +68,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/resource_deps/job_id_delete_foo/output.txt b/acceptance/bundle/resource_deps/job_id_delete_foo/output.txt index dd604c51486..a35179d8921 100644 --- a/acceptance/bundle/resource_deps/job_id_delete_foo/output.txt +++ b/acceptance/bundle/resource_deps/job_id_delete_foo/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs { @@ -54,9 +55,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +deleted jobs.foo + +Deploy: 0 created, 0 changed, 1 deleted, 1 unchanged. >>> print_requests.py //jobs { @@ -73,8 +74,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/resource_deps/job_tasks/output.txt b/acceptance/bundle/resource_deps/job_tasks/output.txt index 3ff91361fb4..2164ebad72f 100644 --- a/acceptance/bundle/resource_deps/job_tasks/output.txt +++ b/acceptance/bundle/resource_deps/job_tasks/output.txt @@ -2,8 +2,9 @@ >>> [CLI] bundle deploy Uploading hello.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.test_job + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_telemetry_bool_values diff --git a/acceptance/bundle/resource_deps/jobs_update/output.txt b/acceptance/bundle/resource_deps/jobs_update/output.txt index e37e9f115c1..9fe2901ca51 100644 --- a/acceptance/bundle/resource_deps/jobs_update/output.txt +++ b/acceptance/bundle/resource_deps/jobs_update/output.txt @@ -7,9 +7,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs @@ -26,9 +27,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.foo + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py //jobs @@ -70,8 +71,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/resource_deps/jobs_update_remote/output.txt b/acceptance/bundle/resource_deps/jobs_update_remote/output.txt index 8cd27e9c352..8dfe7075ce7 100644 --- a/acceptance/bundle/resource_deps/jobs_update_remote/output.txt +++ b/acceptance/bundle/resource_deps/jobs_update_remote/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs { @@ -73,8 +74,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/resource_deps/missing_ingestion_definition/out.deploy.direct.txt b/acceptance/bundle/resource_deps/missing_ingestion_definition/out.deploy.direct.txt index ca94099d2e5..551d3a87b46 100644 --- a/acceptance/bundle/resource_deps/missing_ingestion_definition/out.deploy.direct.txt +++ b/acceptance/bundle/resource_deps/missing_ingestion_definition/out.deploy.direct.txt @@ -1,7 +1,5 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... Error: cannot create resources.pipelines.bar: cannot resolve "${resources.pipelines.foo.ingestion_definition.connection_name}": ingestion_definition: cannot access nil value -Updating deployment state... Exit code: 1 diff --git a/acceptance/bundle/resource_deps/missing_map_key/out.deploy.direct.txt b/acceptance/bundle/resource_deps/missing_map_key/out.deploy.direct.txt index fce4ba9d5ab..b29e1695abf 100644 --- a/acceptance/bundle/resource_deps/missing_map_key/out.deploy.direct.txt +++ b/acceptance/bundle/resource_deps/missing_map_key/out.deploy.direct.txt @@ -1,5 +1,3 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/state/default/files... -Deploying resources... Error: cannot create resources.jobs.bar: cannot resolve "${resources.jobs.test.tasks[0].new_cluster.custom_tags.missing_tag}": tasks[0].new_cluster.custom_tags.missing_tag: key "missing_tag" not found in map -Updating deployment state... diff --git a/acceptance/bundle/resource_deps/missing_string_field/output.txt b/acceptance/bundle/resource_deps/missing_string_field/output.txt index 83bf6f7168d..e0642debca1 100644 --- a/acceptance/bundle/resource_deps/missing_string_field/output.txt +++ b/acceptance/bundle/resource_deps/missing_string_field/output.txt @@ -32,9 +32,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.bar +created pipelines.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //pipeline { diff --git a/acceptance/bundle/resource_deps/model_id_ref/output.txt b/acceptance/bundle/resource_deps/model_id_ref/output.txt index 3a6306babf8..b15f576507d 100644 --- a/acceptance/bundle/resource_deps/model_id_ref/output.txt +++ b/acceptance/bundle/resource_deps/model_id_ref/output.txt @@ -9,9 +9,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged === after deploy, registered_model_id is resolved to the model's numeric id >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.consumer +created models.my_model + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //mlflow/registered-models/create //jobs/create --sort { diff --git a/acceptance/bundle/resource_deps/permission_ref/output.txt b/acceptance/bundle/resource_deps/permission_ref/output.txt index f6c17f880b9..febc9573ff5 100644 --- a/acceptance/bundle/resource_deps/permission_ref/output.txt +++ b/acceptance/bundle/resource_deps/permission_ref/output.txt @@ -11,6 +11,9 @@ Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_a +created jobs.job_a.permissions +created jobs.job_b +created jobs.job_b.permissions + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resource_deps/pipelines_recreate/output.txt b/acceptance/bundle/resource_deps/pipelines_recreate/output.txt index b7eec30702b..aa72ef6c928 100644 --- a/acceptance/bundle/resource_deps/pipelines_recreate/output.txt +++ b/acceptance/bundle/resource_deps/pipelines_recreate/output.txt @@ -7,9 +7,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created pipelines.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs //pipelines @@ -33,9 +34,10 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them. Recreating restore the defined STs and MVs through full refresh. Note that recreation is necessary when pipeline properties such as the 'catalog' or 'storage' are changed: recreate resources.pipelines.foo -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.bar +recreated pipelines.foo + +Deploy: 1 created, 1 changed, 1 deleted, 0 unchanged. >>> print_requests.py //jobs //pipelines @@ -96,9 +98,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 2 unchanged. >>> print_requests.py //jobs //pipelines @@ -113,8 +113,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. >>> print_requests.py //jobs //pipelines { diff --git a/acceptance/bundle/resource_deps/remote_app_url/output.txt b/acceptance/bundle/resource_deps/remote_app_url/output.txt index 81b300ab11f..41e70596856 100644 --- a/acceptance/bundle/resource_deps/remote_app_url/output.txt +++ b/acceptance/bundle/resource_deps/remote_app_url/output.txt @@ -25,9 +25,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.myapp +created pipelines.mypipeline + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py ^//import-file/ { @@ -88,8 +89,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. >>> print_requests.py --sort ^//import-file/ { diff --git a/acceptance/bundle/resource_deps/remote_field_storage_location/out.deploy.direct.txt b/acceptance/bundle/resource_deps/remote_field_storage_location/out.deploy.direct.txt index 5a4539339c5..ce6323d02a5 100644 --- a/acceptance/bundle/resource_deps/remote_field_storage_location/out.deploy.direct.txt +++ b/acceptance/bundle/resource_deps/remote_field_storage_location/out.deploy.direct.txt @@ -1,6 +1,8 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.my +created volumes.bar +created volumes.foo + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resource_deps/remote_field_storage_location/out.deploy.terraform.txt b/acceptance/bundle/resource_deps/remote_field_storage_location/out.deploy.terraform.txt index ae9fe8af8ed..8febfabe888 100644 --- a/acceptance/bundle/resource_deps/remote_field_storage_location/out.deploy.terraform.txt +++ b/acceptance/bundle/resource_deps/remote_field_storage_location/out.deploy.terraform.txt @@ -1,7 +1,6 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default/files... -Deploying resources... Error: terraform apply: exit status 1 Error: Provider produced inconsistent final plan @@ -16,6 +15,5 @@ This is a bug in the provider, which should be reported in the provider's own issue tracker. -Updating deployment state... Exit code: 1 diff --git a/acceptance/bundle/resource_deps/remote_field_storage_location/out.destroy.direct.txt b/acceptance/bundle/resource_deps/remote_field_storage_location/out.destroy.direct.txt index b4d427d4853..8755d51343b 100644 --- a/acceptance/bundle/resource_deps/remote_field_storage_location/out.destroy.direct.txt +++ b/acceptance/bundle/resource_deps/remote_field_storage_location/out.destroy.direct.txt @@ -15,5 +15,4 @@ is removed from the catalog, but the underlying files are not deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resource_deps/remote_field_storage_location/out.destroy.terraform.txt b/acceptance/bundle/resource_deps/remote_field_storage_location/out.destroy.terraform.txt index 8f89cda64c2..57f6e9abda4 100644 --- a/acceptance/bundle/resource_deps/remote_field_storage_location/out.destroy.terraform.txt +++ b/acceptance/bundle/resource_deps/remote_field_storage_location/out.destroy.terraform.txt @@ -13,5 +13,4 @@ is removed from the catalog, but the underlying files are not deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resource_deps/remote_pipeline/output.txt b/acceptance/bundle/resource_deps/remote_pipeline/output.txt index 1f86775154e..5946155bbb7 100644 --- a/acceptance/bundle/resource_deps/remote_pipeline/output.txt +++ b/acceptance/bundle/resource_deps/remote_pipeline/output.txt @@ -1,9 +1,12 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo1 +created pipelines.foo2 +created pipelines.foo3 +created pipelines.foo4 + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests "foo1 name" diff --git a/acceptance/bundle/resource_deps/resources_var/out.deploy.txt b/acceptance/bundle/resource_deps/resources_var/out.deploy.txt index 6fc3bc4ae11..027be67fc3e 100644 --- a/acceptance/bundle/resource_deps/resources_var/out.deploy.txt +++ b/acceptance/bundle/resource_deps/resources_var/out.deploy.txt @@ -1,6 +1,8 @@ >>> errcode [CLI] bundle deploy -t dev Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.mypipeline +created volumes.bar +created volumes.foo + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resource_deps/resources_var_presets/output.txt b/acceptance/bundle/resource_deps/resources_var_presets/output.txt index 2b92bc9b097..3d02d182877 100644 --- a/acceptance/bundle/resource_deps/resources_var_presets/output.txt +++ b/acceptance/bundle/resource_deps/resources_var_presets/output.txt @@ -30,9 +30,11 @@ >>> [CLI] bundle deploy -t dev Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.mypipeline +created schemas.bar +created schemas.foo + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> jq -s .[] | select(.path=="/api/2.0/pipelines") | .body.name out.requests.txt "[dev [USERNAME]] pipeline for mycatalog.dev_[USERNAME]_dev_[USERNAME]_myschema" diff --git a/acceptance/bundle/resource_deps/resources_var_presets_implicit_deps/output.txt b/acceptance/bundle/resource_deps/resources_var_presets_implicit_deps/output.txt index 87533e080e7..a08f157c6e7 100644 --- a/acceptance/bundle/resource_deps/resources_var_presets_implicit_deps/output.txt +++ b/acceptance/bundle/resource_deps/resources_var_presets_implicit_deps/output.txt @@ -34,9 +34,11 @@ >>> [CLI] bundle deploy -t dev Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.mypipeline +created schemas.bar +created volumes.foo + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> jq -s .[] | select(.path=="/api/2.0/pipelines") | .body.name out.requests.txt "[dev [USERNAME]] pipeline for mycatalog.dev_[USERNAME]_myschema.myname" diff --git a/acceptance/bundle/resource_deps/tf_path_only_error/out.deploy.terraform.txt b/acceptance/bundle/resource_deps/tf_path_only_error/out.deploy.terraform.txt index 3b45e3f34c2..15170f1c3e7 100644 --- a/acceptance/bundle/resource_deps/tf_path_only_error/out.deploy.terraform.txt +++ b/acceptance/bundle/resource_deps/tf_path_only_error/out.deploy.terraform.txt @@ -2,6 +2,7 @@ Warning: "resources.jobs.src.always_running": Terraform-only field; this referen in databricks.yml:10:13 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.dst +created jobs.src + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resource_deps/tf_path_renames/output.txt b/acceptance/bundle/resource_deps/tf_path_renames/output.txt index fd94b123f3e..7b162300e24 100644 --- a/acceptance/bundle/resource_deps/tf_path_renames/output.txt +++ b/acceptance/bundle/resource_deps/tf_path_renames/output.txt @@ -3,9 +3,14 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.dst_git +created jobs.dst_pipeline +created jobs.dst_tasks +created jobs.src_git +created jobs.src_tasks +created pipelines.src_pipeline + +Deploy: 6 created, 0 changed, 0 deleted, 0 unchanged. /path/to/wheel.whl main mycluster diff --git a/acceptance/bundle/resource_deps/unicode_reference/output.txt b/acceptance/bundle/resource_deps/unicode_reference/output.txt index 45b14f0ddbb..521cffd15cc 100644 --- a/acceptance/bundle/resource_deps/unicode_reference/output.txt +++ b/acceptance/bundle/resource_deps/unicode_reference/output.txt @@ -17,9 +17,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.变量 + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle summary Name: test-bundle diff --git a/acceptance/bundle/resources/alerts/basic/output.txt b/acceptance/bundle/resources/alerts/basic/output.txt index 3a0c3cb7e37..4170c32f73f 100644 --- a/acceptance/bundle/resources/alerts/basic/output.txt +++ b/acceptance/bundle/resources/alerts/basic/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/alerts-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created alerts.myalert +created alerts.myalert.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] alerts-v2 get-alert [ALERT_ID] { @@ -58,8 +59,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/alerts-basic-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> [CLI] alerts-v2 get-alert [ALERT_ID] Error: Alert with ID '[ALERT_ID]' does not exist. diff --git a/acceptance/bundle/resources/alerts/with_file/output.txt b/acceptance/bundle/resources/alerts/with_file/output.txt index 18adbb6527d..343fed42744 100644 --- a/acceptance/bundle/resources/alerts/with_file/output.txt +++ b/acceptance/bundle/resources/alerts/with_file/output.txt @@ -33,9 +33,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/alerts-with-file-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created alerts.myalert + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] alerts-v2 get-alert [ALERT_ID] { @@ -96,5 +96,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/alerts-with-file-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/apps/config-drift/output.txt b/acceptance/bundle/resources/apps/config-drift/output.txt index 6ad4310b318..37e38b59637 100644 --- a/acceptance/bundle/resources/apps/config-drift/output.txt +++ b/acceptance/bundle/resources/apps/config-drift/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/config-drift-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.myapp + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Verify no drift after deploy >>> [CLI] bundle plan -o json @@ -20,9 +20,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged === Redeploy to fix drift >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/config-drift-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.myapp + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === Verify no drift after fix >>> [CLI] bundle plan -o json @@ -33,5 +33,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/config-drift-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/apps/create_already_exists/output.txt b/acceptance/bundle/resources/apps/create_already_exists/output.txt index 82deb4ab43a..e27757da7c0 100644 --- a/acceptance/bundle/resources/apps/create_already_exists/output.txt +++ b/acceptance/bundle/resources/apps/create_already_exists/output.txt @@ -29,7 +29,6 @@ >>> musterr [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-app-already-exists/default/files... -Deploying resources... Error: cannot create resources.apps.myapp: An app with the same name already exists: test-app-already-exists (409 RESOURCE_ALREADY_EXISTS) Endpoint: POST [DATABRICKS_URL]/api/2.0/apps?no_compute=true diff --git a/acceptance/bundle/resources/apps/default_description/output.txt b/acceptance/bundle/resources/apps/default_description/output.txt index 89859e46ee1..a5bdac9be1d 100644 --- a/acceptance/bundle/resources/apps/default_description/output.txt +++ b/acceptance/bundle/resources/apps/default_description/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.mykey + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //apps { diff --git a/acceptance/bundle/resources/apps/inline_config/output.txt b/acceptance/bundle/resources/apps/inline_config/output.txt index 3df45fb89c7..9acad87fa4d 100644 --- a/acceptance/bundle/resources/apps/inline_config/output.txt +++ b/acceptance/bundle/resources/apps/inline_config/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-inline-config-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.myapp + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] apps get-deployment [UNIQUE_NAME] [DEPLOYMENT_ID] { @@ -29,5 +29,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/app-inline-config-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/apps/lifecycle-started-omitted/output.txt b/acceptance/bundle/resources/apps/lifecycle-started-omitted/output.txt index 66fe33bfacd..073f57f150a 100644 --- a/acceptance/bundle/resources/apps/lifecycle-started-omitted/output.txt +++ b/acceptance/bundle/resources/apps/lifecycle-started-omitted/output.txt @@ -2,9 +2,9 @@ === (started omitted) -> deploy: app created with no_compute=true, no start/stop requests >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.mykey + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_app_requests { @@ -22,27 +22,23 @@ Deployment complete! === (started omitted) -> started: false -> deploy: no start/stop requests >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_app_requests === started: false -> (started omitted) -> deploy: no start/stop requests >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_app_requests === (started omitted) -> started: true -> deploy: app started >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.mykey + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_app_requests { @@ -62,9 +58,9 @@ Deployment complete! === started: true -> (started omitted) -> deploy: no start/stop requests (compute stays as-is) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.mykey + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_app_requests @@ -76,5 +72,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-omitted-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/apps/lifecycle-started-toggle/output.txt b/acceptance/bundle/resources/apps/lifecycle-started-toggle/output.txt index 2f7ea7c2a84..c7449c78ef0 100644 --- a/acceptance/bundle/resources/apps/lifecycle-started-toggle/output.txt +++ b/acceptance/bundle/resources/apps/lifecycle-started-toggle/output.txt @@ -2,9 +2,9 @@ === Deploy with started=false: app created without compute (no_compute=true) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-toggle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.mykey + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_app_requests { @@ -27,9 +27,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-toggle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.mykey + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_app_requests { @@ -54,9 +54,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-toggle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.mykey + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_app_requests { @@ -74,5 +74,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-toggle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/apps/lifecycle-started/output.txt b/acceptance/bundle/resources/apps/lifecycle-started/output.txt index cfe10a2d65e..1838b4c86e3 100644 --- a/acceptance/bundle/resources/apps/lifecycle-started/output.txt +++ b/acceptance/bundle/resources/apps/lifecycle-started/output.txt @@ -2,9 +2,9 @@ === Deploy with started=true: app created with compute running >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.myapp + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //apps { @@ -32,9 +32,9 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.myapp + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //deployments { @@ -58,9 +58,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged === Deploy fixes the drift: compute restarted >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.myapp + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === Stop app externally, then deploy with started=false: app stays stopped >>> errcode [CLI] apps stop [UNIQUE_NAME] @@ -72,9 +72,9 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.myapp + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //apps { @@ -104,9 +104,9 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.myapp + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //apps { @@ -143,5 +143,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/lifecycle-started-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/apps/resource-refs/output.txt b/acceptance/bundle/resources/apps/resource-refs/output.txt index c2af531b97c..8b3d6f18414 100644 --- a/acceptance/bundle/resources/apps/resource-refs/output.txt +++ b/acceptance/bundle/resources/apps/resource-refs/output.txt @@ -1,9 +1,11 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/resource-refs/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.data_app +created jobs.example_job +created schemas.example + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run data_app ✓ Getting the status of the app data-app diff --git a/acceptance/bundle/resources/apps/update/output.txt b/acceptance/bundle/resources/apps/update/output.txt index 021b10a9cdc..5cdf375fc64 100644 --- a/acceptance/bundle/resources/apps/update/output.txt +++ b/acceptance/bundle/resources/apps/update/output.txt @@ -6,9 +6,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.mykey + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests @@ -34,9 +34,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated apps.mykey + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests @@ -74,9 +74,9 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated apps.mykey + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests @@ -101,7 +101,6 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests diff --git a/acceptance/bundle/resources/catalogs/auto-approve/output.txt b/acceptance/bundle/resources/catalogs/auto-approve/output.txt index e0576f1b9e5..ebfbf64218b 100644 --- a/acceptance/bundle/resources/catalogs/auto-approve/output.txt +++ b/acceptance/bundle/resources/catalogs/auto-approve/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created catalogs.bar +created schemas.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Assert the catalog is created >>> [CLI] catalogs get test-catalog-[UNIQUE_NAME] @@ -53,8 +54,7 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. === Assert the catalog is deleted Exit code: 1 diff --git a/acceptance/bundle/resources/catalogs/basic/output.txt b/acceptance/bundle/resources/catalogs/basic/output.txt index 1e703092424..852578b9f6e 100644 --- a/acceptance/bundle/resources/catalogs/basic/output.txt +++ b/acceptance/bundle/resources/catalogs/basic/output.txt @@ -2,9 +2,9 @@ === Deploy bundle with catalog >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created catalogs.test_catalog + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Assert the catalog is created >>> [CLI] catalogs get test_catalog_[UNIQUE_NAME] @@ -20,9 +20,9 @@ Deployment complete! === Redeploy with updated comment >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated catalogs.test_catalog + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === Assert the catalog comment is updated >>> [CLI] catalogs get test_catalog_[UNIQUE_NAME] @@ -38,7 +38,6 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. === Assert the catalog is deleted \ No newline at end of file diff --git a/acceptance/bundle/resources/catalogs/with-schemas/output.txt b/acceptance/bundle/resources/catalogs/with-schemas/output.txt index 8034f5eb2fa..77463c947e6 100644 --- a/acceptance/bundle/resources/catalogs/with-schemas/output.txt +++ b/acceptance/bundle/resources/catalogs/with-schemas/output.txt @@ -2,9 +2,10 @@ === Deploy bundle with catalog and schema >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created catalogs.test_catalog +created schemas.test_schema + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Assert the catalog is created >>> [CLI] catalogs get test_catalog_[UNIQUE_NAME] @@ -29,9 +30,9 @@ Deployment complete! === Redeploy with updated catalog >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated catalogs.test_catalog + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. === Assert catalog comment is updated >>> [CLI] catalogs get test_catalog_[UNIQUE_NAME] @@ -57,8 +58,7 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. === Assert schema is deleted === Assert the catalog is deleted \ No newline at end of file diff --git a/acceptance/bundle/resources/clusters/deploy/data_security_mode/output.txt b/acceptance/bundle/resources/clusters/deploy/data_security_mode/output.txt index 9a6773a7548..2a6a152a55b 100644 --- a/acceptance/bundle/resources/clusters/deploy/data_security_mode/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/data_security_mode/output.txt @@ -1,18 +1,16 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.test_cluster + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -20,5 +18,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/clusters/deploy/instance_pool/output.txt b/acceptance/bundle/resources/clusters/deploy/instance_pool/output.txt index 40aff9189c0..6210adbfaf2 100644 --- a/acceptance/bundle/resources/clusters/deploy/instance_pool/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/instance_pool/output.txt @@ -1,9 +1,11 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-deploy-cluster-instance-pool/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.cluster1 +created clusters.cluster2 +created clusters.cluster3 + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters/create { diff --git a/acceptance/bundle/resources/clusters/deploy/instance_pool_and_node_type/output.txt b/acceptance/bundle/resources/clusters/deploy/instance_pool_and_node_type/output.txt index a1ddbdcf7db..a4dbb94cc55 100644 --- a/acceptance/bundle/resources/clusters/deploy/instance_pool_and_node_type/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/instance_pool_and_node_type/output.txt @@ -1,9 +1,9 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-deploy-cluster-instance-pool/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.cluster1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters/create { diff --git a/acceptance/bundle/resources/clusters/deploy/local_ssd_count/output.txt b/acceptance/bundle/resources/clusters/deploy/local_ssd_count/output.txt index 02285a52479..22894f5fc69 100644 --- a/acceptance/bundle/resources/clusters/deploy/local_ssd_count/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/local_ssd_count/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-ssd-count-0-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.test_cluster + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Cluster should exist after bundle deployment: @@ -13,5 +13,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-ssd-count-0-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/clusters/deploy/num_workers_absent/output.txt b/acceptance/bundle/resources/clusters/deploy/num_workers_absent/output.txt index 28a1183e6dc..ee07da98a13 100644 --- a/acceptance/bundle/resources/clusters/deploy/num_workers_absent/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/num_workers_absent/output.txt @@ -1,9 +1,10 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-deploy-cluster-num-workers-absent/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.cluster1 +created clusters.cluster2 + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters/create { diff --git a/acceptance/bundle/resources/clusters/deploy/simple/output.txt b/acceptance/bundle/resources/clusters/deploy/simple/output.txt index e1f1168c24d..fbeaa3ba7d7 100644 --- a/acceptance/bundle/resources/clusters/deploy/simple/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/simple/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.test_cluster +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Cluster should exist after bundle deployment: { @@ -18,5 +19,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/clusters/deploy/update-after-create/output.txt b/acceptance/bundle/resources/clusters/deploy/update-after-create/output.txt index fe0c9b0f9e1..482d6800553 100644 --- a/acceptance/bundle/resources/clusters/deploy/update-after-create/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/update-after-create/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.test_cluster + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Cluster should exist after bundle deployment: { @@ -20,9 +20,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated clusters.test_cluster + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -30,5 +30,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/clusters/deploy/update-and-resize-autoscale/output.txt b/acceptance/bundle/resources/clusters/deploy/update-and-resize-autoscale/output.txt index 2dd9f2084d3..1a05f95b54c 100644 --- a/acceptance/bundle/resources/clusters/deploy/update-and-resize-autoscale/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/update-and-resize-autoscale/output.txt @@ -1,9 +1,7 @@ ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Cluster should exist with num_workers after bundle deployment: { @@ -19,11 +17,9 @@ Deployment complete! === Adding autoscale section should call update API on stopped cluster ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> jq select(.method == "POST" and (.path | contains("/clusters/edit"))) | del(.body.aws_attributes, .body.driver_node_type_id, .body.data_security_mode, .body.enable_elastic_disk) out.requests.txt { @@ -54,11 +50,9 @@ Deployment complete! === Changing autoscale should call update API on stopped cluster ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> jq select(.method == "POST" and (.path | contains("/clusters/edit"))) | del(.body.aws_attributes, .body.driver_node_type_id, .body.data_security_mode, .body.enable_elastic_disk) out.requests.txt { @@ -109,11 +103,9 @@ Deployment complete! === Changing autoscale should call resize API on running cluster ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> jq select(.method == "POST" and (.path | contains("/clusters/resize"))) out.requests.txt { @@ -140,11 +132,9 @@ Deployment complete! === Removing autoscale section should call resize API ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> jq select(.method == "POST" and (.path | contains("/clusters/resize"))) out.requests.txt { @@ -169,5 +159,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/clusters/deploy/update-and-resize-autoscale/script b/acceptance/bundle/resources/clusters/deploy/update-and-resize-autoscale/script index 1370846fe4b..4103fd474a7 100755 --- a/acceptance/bundle/resources/clusters/deploy/update-and-resize-autoscale/script +++ b/acceptance/bundle/resources/clusters/deploy/update-and-resize-autoscale/script @@ -8,7 +8,7 @@ trap cleanup EXIT $CLI bundle plan > out.plan_.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json > out.plan_.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q title "Cluster should exist with num_workers after bundle deployment:\n" CLUSTER_ID=$($CLI bundle summary -o json | jq -r '.resources.clusters.test_cluster.id') @@ -24,7 +24,7 @@ update_file.py databricks.yml " num_workers: 2" " autoscale: max_workers: 4" $CLI bundle plan >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q trace jq 'select(.method == "POST" and (.path | contains("/clusters/edit"))) | del(.body.aws_attributes, .body.driver_node_type_id, .body.data_security_mode, .body.enable_elastic_disk)' out.requests.txt rm out.requests.txt @@ -36,7 +36,7 @@ update_file.py databricks.yml "min_workers: 2" "min_workers: 3" update_file.py databricks.yml "max_workers: 4" "max_workers: 5" $CLI bundle plan >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q trace jq 'select(.method == "POST" and (.path | contains("/clusters/edit"))) | del(.body.aws_attributes, .body.driver_node_type_id, .body.data_security_mode, .body.enable_elastic_disk)' out.requests.txt rm out.requests.txt @@ -51,7 +51,7 @@ update_file.py databricks.yml "min_workers: 3" "min_workers: 4" update_file.py databricks.yml "max_workers: 5" "max_workers: 6" $CLI bundle plan >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q trace jq 'select(.method == "POST" and (.path | contains("/clusters/resize")))' out.requests.txt rm out.requests.txt @@ -64,7 +64,7 @@ update_file.py databricks.yml " autoscale: max_workers: 6" " num_workers: 3" $CLI bundle plan >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q trace jq 'select(.method == "POST" and (.path | contains("/clusters/resize")))' out.requests.txt rm out.requests.txt diff --git a/acceptance/bundle/resources/clusters/deploy/update-and-resize/output.txt b/acceptance/bundle/resources/clusters/deploy/update-and-resize/output.txt index 45a1b0bc486..323a0e61ec5 100644 --- a/acceptance/bundle/resources/clusters/deploy/update-and-resize/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/update-and-resize/output.txt @@ -1,9 +1,7 @@ ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Cluster should exist after bundle deployment: { @@ -13,11 +11,9 @@ Deployment complete! === Changing num_workers should call update API on stopped cluster ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> jq select(.method == "POST" and (.path | contains("/clusters/edit"))) | del(.body.aws_attributes, .body.driver_node_type_id, .body.data_security_mode, .body.enable_elastic_disk) out.requests.txt @@ -48,11 +44,9 @@ Deployment complete! === Changing num_workers should call resize API on running cluster ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> jq select(.method == "POST" and (.path | contains("/clusters/resize"))) out.requests.txt { @@ -72,11 +66,9 @@ Deployment complete! === Changing num_workers and spark_conf should call update API ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> jq select(.method == "POST" and (.path | contains("/clusters/edit"))) | del(.body.aws_attributes, .body.driver_node_type_id, .body.data_security_mode, .body.enable_elastic_disk) out.requests.txt { @@ -110,5 +102,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/clusters/deploy/update-and-resize/script b/acceptance/bundle/resources/clusters/deploy/update-and-resize/script index f2d80d05de0..5ee29c61a39 100644 --- a/acceptance/bundle/resources/clusters/deploy/update-and-resize/script +++ b/acceptance/bundle/resources/clusters/deploy/update-and-resize/script @@ -8,7 +8,7 @@ trap cleanup EXIT $CLI bundle plan > out.plan_.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json > out.plan_.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q title "Cluster should exist after bundle deployment:\n" CLUSTER_ID=$($CLI bundle summary -o json | jq -r '.resources.clusters.test_cluster.id') @@ -19,7 +19,7 @@ title "Changing num_workers should call update API on stopped cluster\n" update_file.py databricks.yml "num_workers: 2" "num_workers: 3" $CLI bundle plan >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q trace jq 'select(.method == "POST" and (.path | contains("/clusters/edit"))) | del(.body.aws_attributes, .body.driver_node_type_id, .body.data_security_mode, .body.enable_elastic_disk)' out.requests.txt rm out.requests.txt @@ -33,7 +33,7 @@ title "Changing num_workers should call resize API on running cluster\n" update_file.py databricks.yml "num_workers: 3" "num_workers: 4" $CLI bundle plan >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q trace jq 'select(.method == "POST" and (.path | contains("/clusters/resize")))' out.requests.txt rm out.requests.txt @@ -45,7 +45,7 @@ update_file.py databricks.yml "num_workers: 4" "num_workers: 5" update_file.py databricks.yml '"spark.executor.memory": "2g"' '"spark.executor.memory": "4g"' $CLI bundle plan >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json >> out.plan_.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q trace jq 'select(.method == "POST" and (.path | contains("/clusters/edit"))) | del(.body.aws_attributes, .body.driver_node_type_id, .body.data_security_mode, .body.enable_elastic_disk)' out.requests.txt rm out.requests.txt diff --git a/acceptance/bundle/resources/clusters/deploy/workload_type/output.txt b/acceptance/bundle/resources/clusters/deploy/workload_type/output.txt index 10e8896fac8..0f4fc642c79 100644 --- a/acceptance/bundle/resources/clusters/deploy/workload_type/output.txt +++ b/acceptance/bundle/resources/clusters/deploy/workload_type/output.txt @@ -1,9 +1,9 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-deploy-cluster-workload-type/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.cluster1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters/create { diff --git a/acceptance/bundle/resources/clusters/lifecycle-started-toggle/output.txt b/acceptance/bundle/resources/clusters/lifecycle-started-toggle/output.txt index 23eb2e0c243..d6b6a786a9a 100644 --- a/acceptance/bundle/resources/clusters/lifecycle-started-toggle/output.txt +++ b/acceptance/bundle/resources/clusters/lifecycle-started-toggle/output.txt @@ -2,9 +2,9 @@ === Deploy with started=false: cluster created and then stopped >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.mycluster + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters { @@ -34,9 +34,9 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated clusters.mycluster + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters { @@ -55,9 +55,9 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated clusters.mycluster + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters { @@ -77,5 +77,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/clusters/lifecycle-started/output.txt b/acceptance/bundle/resources/clusters/lifecycle-started/output.txt index 18bf2cca857..a0a98af9714 100644 --- a/acceptance/bundle/resources/clusters/lifecycle-started/output.txt +++ b/acceptance/bundle/resources/clusters/lifecycle-started/output.txt @@ -2,9 +2,9 @@ === Deploy with started=true: cluster created and running >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.mycluster + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters { @@ -34,9 +34,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged === Deploy fixes the drift: cluster restarted >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated clusters.mycluster + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters { @@ -65,9 +65,7 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py //clusters { @@ -86,9 +84,9 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated clusters.mycluster + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters { @@ -108,5 +106,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/clusters/run/spark_python_task/output.txt b/acceptance/bundle/resources/clusters/run/spark_python_task/output.txt index 1d40fae8de9..e2617bc2767 100644 --- a/acceptance/bundle/resources/clusters/run/spark_python_task/output.txt +++ b/acceptance/bundle/resources/clusters/run/spark_python_task/output.txt @@ -5,9 +5,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.test_cluster +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run foo Run URL: [DATABRICKS_URL]/jobs/[FOO_ID]/runs/[NUMID]?o=[NUMID] @@ -23,5 +24,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/dashboards/change-embed-credentials/output.txt b/acceptance/bundle/resources/dashboards/change-embed-credentials/output.txt index 8b5d7dd6bf5..cdca350974c 100644 --- a/acceptance/bundle/resources/dashboards/change-embed-credentials/output.txt +++ b/acceptance/bundle/resources/dashboards/change-embed-credentials/output.txt @@ -6,9 +6,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/change-embed-credentials-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.my_dashboard + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -33,9 +33,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/change-embed-credentials-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated dashboards.my_dashboard + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -59,5 +59,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/change-embed-credentials-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/change-name/output.txt b/acceptance/bundle/resources/dashboards/change-name/output.txt index e2c01c32743..d46063bc8f0 100644 --- a/acceptance/bundle/resources/dashboards/change-name/output.txt +++ b/acceptance/bundle/resources/dashboards/change-name/output.txt @@ -6,9 +6,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/change-name-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.my_dashboard + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -27,9 +27,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/change-name-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated dashboards.my_dashboard + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -47,5 +47,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/change-name-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/change-parent-path/output.txt b/acceptance/bundle/resources/dashboards/change-parent-path/output.txt index a7b26e91c57..e267462ecfe 100644 --- a/acceptance/bundle/resources/dashboards/change-parent-path/output.txt +++ b/acceptance/bundle/resources/dashboards/change-parent-path/output.txt @@ -6,9 +6,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/change-parent-path-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.my_dashboard + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [ORIGINAL_DASHBOARD_ID] { @@ -31,9 +31,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/change-parent-path This action will result in the deletion or recreation of the following dashboards. This will result in changed IDs and permanent URLs of the dashboards that will be recreated: recreate resources.dashboards.my_dashboard -Deploying resources... -Updating deployment state... -Deployment complete! +recreated dashboards.my_dashboard + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> [CLI] lakeview get [NEW_DASHBOARD_ID] { @@ -51,5 +51,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/change-parent-path-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/change-serialized-dashboard/output.txt b/acceptance/bundle/resources/dashboards/change-serialized-dashboard/output.txt index 6b4f7051dca..06632cdb309 100644 --- a/acceptance/bundle/resources/dashboards/change-serialized-dashboard/output.txt +++ b/acceptance/bundle/resources/dashboards/change-serialized-dashboard/output.txt @@ -6,9 +6,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/change-serialized-dashboard-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.my_dashboard + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -33,9 +33,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/change-serialized-dashboard-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated dashboards.my_dashboard + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -59,5 +59,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/change-serialized-dashboard-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/dataset-catalog-schema/output.txt b/acceptance/bundle/resources/dashboards/dataset-catalog-schema/output.txt index 4c7aa9d4903..10ef288f51c 100644 --- a/acceptance/bundle/resources/dashboards/dataset-catalog-schema/output.txt +++ b/acceptance/bundle/resources/dashboards/dataset-catalog-schema/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-dataset-test-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -26,5 +26,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-dataset-test-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/delete-trashed-out-of-band/output.txt b/acceptance/bundle/resources/dashboards/delete-trashed-out-of-band/output.txt index 1511a1c1187..dacb727ed22 100644 --- a/acceptance/bundle/resources/dashboards/delete-trashed-out-of-band/output.txt +++ b/acceptance/bundle/resources/dashboards/delete-trashed-out-of-band/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/delete-trashed-out-of-band-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -23,5 +23,4 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/delete-trashed-out-of-band-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. diff --git a/acceptance/bundle/resources/dashboards/destroy/output.txt b/acceptance/bundle/resources/dashboards/destroy/output.txt index 8a8d8889a99..75e5f06c6da 100644 --- a/acceptance/bundle/resources/dashboards/destroy/output.txt +++ b/acceptance/bundle/resources/dashboards/destroy/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/destroy-dashboard-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -17,8 +17,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/destroy-dashboard-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> [CLI] lakeview get [DASHBOARD_ID] { diff --git a/acceptance/bundle/resources/dashboards/detect-change/output.txt b/acceptance/bundle/resources/dashboards/detect-change/output.txt index fe3f8962ec7..d960fd7fa5d 100644 --- a/acceptance/bundle/resources/dashboards/detect-change/output.txt +++ b/acceptance/bundle/resources/dashboards/detect-change/output.txt @@ -12,9 +12,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.file_reference + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Assert that the dashboard exists at the expected path and is, indeed, a dashboard: >>> [CLI] workspace get-status /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/resources/test-dashboard-[UNIQUE_NAME].lvdash.json @@ -102,9 +102,9 @@ Exit code: 1 === Redeploy the bundle with the --force flag and confirm that the out of band modification is ignored: >>> errcode [CLI] bundle deploy --force Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated dashboards.file_reference + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -112,5 +112,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/generate_inplace/output.txt b/acceptance/bundle/resources/dashboards/generate_inplace/output.txt index 1e38d3d5a1c..50e86d47d69 100644 --- a/acceptance/bundle/resources/dashboards/generate_inplace/output.txt +++ b/acceptance/bundle/resources/dashboards/generate_inplace/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dashboard-replace-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.already_exists + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Get current dashboard "{\n \"uiSettings\": {\n \"theme\": {\n \"widgetHeaderAlignment\": \"ALIGNMENT_UNSPECIFIED\"\n }\n }\n}\n" @@ -44,5 +44,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/dashboard-replace-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/nested-folders/output.txt b/acceptance/bundle/resources/dashboards/nested-folders/output.txt index c1c2a79eb0b..6e65d7b550d 100644 --- a/acceptance/bundle/resources/dashboards/nested-folders/output.txt +++ b/acceptance/bundle/resources/dashboards/nested-folders/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-nested-folders-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -27,5 +27,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-nested-folders-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/publish-failure-cleans-up-dashboard/out.deploy.direct.txt b/acceptance/bundle/resources/dashboards/publish-failure-cleans-up-dashboard/out.deploy.direct.txt index 705bd09cb32..a2279031c4d 100644 --- a/acceptance/bundle/resources/dashboards/publish-failure-cleans-up-dashboard/out.deploy.direct.txt +++ b/acceptance/bundle/resources/dashboards/publish-failure-cleans-up-dashboard/out.deploy.direct.txt @@ -1,7 +1,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/publish-failure-cleans-up-dashboard/default/files... -Deploying resources... Error: cannot create resources.dashboards.dashboard1: Warehouse doesnotexist does not exist (400 RESOURCE_DOES_NOT_EXIST) Endpoint: POST [DATABRICKS_URL]/api/2.0/lakeview/dashboards/[DASHBOARD_ID]/published diff --git a/acceptance/bundle/resources/dashboards/publish-failure-cleans-up-dashboard/out.deploy.terraform.txt b/acceptance/bundle/resources/dashboards/publish-failure-cleans-up-dashboard/out.deploy.terraform.txt index 874b077b1e3..f857b76cd7c 100644 --- a/acceptance/bundle/resources/dashboards/publish-failure-cleans-up-dashboard/out.deploy.terraform.txt +++ b/acceptance/bundle/resources/dashboards/publish-failure-cleans-up-dashboard/out.deploy.terraform.txt @@ -1,7 +1,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/publish-failure-cleans-up-dashboard/default/files... -Deploying resources... Error: terraform apply: exit status 1 Error: cannot create dashboard: Warehouse doesnotexist does not exist @@ -12,6 +11,5 @@ Error: cannot create dashboard: Warehouse doesnotexist does not exist -Updating deployment state... Exit code: 1 diff --git a/acceptance/bundle/resources/dashboards/publish-failure-stale-content/output.txt b/acceptance/bundle/resources/dashboards/publish-failure-stale-content/output.txt index 394da5bea52..e19e3c8f1a6 100644 --- a/acceptance/bundle/resources/dashboards/publish-failure-stale-content/output.txt +++ b/acceptance/bundle/resources/dashboards/publish-failure-stale-content/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-publish-failure-stale-content/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD1_ID] { @@ -27,7 +27,6 @@ json.plan.resources.dashboards.dashboard1.changes.serialized_dashboard.reason = >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-publish-failure-stale-content/default/files... -Deploying resources... Error: cannot update resources.dashboards.dashboard1: updating id=[DASHBOARD1_ID]: Fault injected by test. (400 INJECTED) Endpoint: POST [DATABRICKS_URL]/api/2.0/lakeview/dashboards/[DASHBOARD1_ID]/published @@ -35,7 +34,6 @@ HTTP Status: 400 Bad Request API error_code: INJECTED API message: Fault injected by test. -Updating deployment state... Exit code: 1 @@ -124,9 +122,9 @@ Exit code: 1 >>> [CLI] bundle deploy --force Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-publish-failure-stale-content/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated dashboards.dashboard1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //lakeview/dashboards { @@ -168,5 +166,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-publish-failure-stale-content/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/simple/output.txt b/acceptance/bundle/resources/dashboards/simple/output.txt index 7464a2e50f5..1e88ad62fcd 100644 --- a/acceptance/bundle/resources/dashboards/simple/output.txt +++ b/acceptance/bundle/resources/dashboards/simple/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-test-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -21,5 +21,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-test-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/simple_outside_bundle_root/output.txt b/acceptance/bundle/resources/dashboards/simple_outside_bundle_root/output.txt index 6e16fb6ef0b..aef6a107924 100644 --- a/acceptance/bundle/resources/dashboards/simple_outside_bundle_root/output.txt +++ b/acceptance/bundle/resources/dashboards/simple_outside_bundle_root/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-outside-bundle-root-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -19,5 +19,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-outside-bundle-root-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/simple_syncroot/output.txt b/acceptance/bundle/resources/dashboards/simple_syncroot/output.txt index 8bb6baeca54..3d778d62e0a 100644 --- a/acceptance/bundle/resources/dashboards/simple_syncroot/output.txt +++ b/acceptance/bundle/resources/dashboards/simple_syncroot/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-test-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.dashboard1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] lakeview get [DASHBOARD_ID] { @@ -19,5 +19,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-test-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/dashboards/unpublish-out-of-band/output.txt b/acceptance/bundle/resources/dashboards/unpublish-out-of-band/output.txt index d99c59e81be..2a587003103 100644 --- a/acceptance/bundle/resources/dashboards/unpublish-out-of-band/output.txt +++ b/acceptance/bundle/resources/dashboards/unpublish-out-of-band/output.txt @@ -1,11 +1,8 @@ >>> [CLI] bundle plan -o json ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/unpublish-out-of-band-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> print_state.py @@ -18,8 +15,5 @@ Deployment complete! >>> [CLI] bundle plan ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/unpublish-out-of-band-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! diff --git a/acceptance/bundle/resources/dashboards/unpublish-out-of-band/script b/acceptance/bundle/resources/dashboards/unpublish-out-of-band/script index 2dae2d0bf24..b795917d5bb 100644 --- a/acceptance/bundle/resources/dashboards/unpublish-out-of-band/script +++ b/acceptance/bundle/resources/dashboards/unpublish-out-of-band/script @@ -9,7 +9,7 @@ trap cleanup EXIT trace $CLI bundle plan -o json > out.plan_initial.$DATABRICKS_BUNDLE_ENGINE.json # Deploy the dashboard -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' DASHBOARD_ID=$(read_id.py dashboard1) add_repl.py "$($CLI lakeview get $DASHBOARD_ID | jq -r '.etag')" ETAG @@ -28,6 +28,6 @@ trace $CLI bundle plan > out.plan.$DATABRICKS_BUNDLE_ENGINE.txt $CLI bundle plan -o json > out.plan.$DATABRICKS_BUNDLE_ENGINE.json json_in_json_normalize.py out.plan.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace errcode $CLI lakeview get-published $DASHBOARD_ID &> out.get_published.$DATABRICKS_BUNDLE_ENGINE.txt diff --git a/acceptance/bundle/resources/database_catalogs/basic/output.txt b/acceptance/bundle/resources/database_catalogs/basic/output.txt index ce8eb0746eb..81157cc80e7 100644 --- a/acceptance/bundle/resources/database_catalogs/basic/output.txt +++ b/acceptance/bundle/resources/database_catalogs/basic/output.txt @@ -24,9 +24,10 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-catalog-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created database_catalogs.my_catalog +created database_instances.my_instance + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle summary Name: deploy-lakebase-catalog-[UNIQUE_NAME] @@ -53,5 +54,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-catalog-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/database_catalogs/recreate/output.txt b/acceptance/bundle/resources/database_catalogs/recreate/output.txt index e63cb50093d..7f4fccb462a 100644 --- a/acceptance/bundle/resources/database_catalogs/recreate/output.txt +++ b/acceptance/bundle/resources/database_catalogs/recreate/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-catalog-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created database_catalogs.my_catalog +created database_instances.my_instance + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Change an immutable catalog field: no update API, so the plan recreates it >>> [CLI] bundle plan @@ -13,9 +14,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 1 unchanged >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-catalog-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated database_catalogs.my_catalog + +Deploy: 1 created, 0 changed, 1 deleted, 1 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -28,5 +29,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-catalog-recreate-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/database_instances/recreate/output.txt b/acceptance/bundle/resources/database_instances/recreate/output.txt index 3d40bbc5b09..ddf06ba73f4 100644 --- a/acceptance/bundle/resources/database_instances/recreate/output.txt +++ b/acceptance/bundle/resources/database_instances/recreate/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created database_instances.my_database + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Rename the instance: name is immutable, so the plan recreates it >>> [CLI] bundle plan @@ -17,9 +17,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-re This action will result in the deletion or recreation of the following Lakebase database instances. All data stored in them will be permanently lost: recreate resources.database_instances.my_database -Deploying resources... -Updating deployment state... -Deployment complete! +recreated database_instances.my_database + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +31,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-recreate-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/database_instances/single-instance/output.txt b/acceptance/bundle/resources/database_instances/single-instance/output.txt index e6b8b506a71..0a6d42436a8 100644 --- a/acceptance/bundle/resources/database_instances/single-instance/output.txt +++ b/acceptance/bundle/resources/database_instances/single-instance/output.txt @@ -22,9 +22,9 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-single-instance-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created database_instances.my_database + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] database get-database-instance test-db-instance-single-[UNIQUE_NAME] { @@ -65,5 +65,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-single-instance-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/experiments/basic/output.txt b/acceptance/bundle/resources/experiments/basic/output.txt index 4b5fd591dfe..c8195159f49 100644 --- a/acceptance/bundle/resources/experiments/basic/output.txt +++ b/acceptance/bundle/resources/experiments/basic/output.txt @@ -11,11 +11,8 @@ create experiments.my_experiment Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/experiment-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] experiments get-experiment [NUMID] { @@ -59,11 +56,8 @@ update experiments.my_experiment Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/experiment-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] experiments get-experiment [NUMID] { @@ -107,11 +101,8 @@ recreate experiments.my_experiment Plan: 1 to add, 0 to change, 1 to delete, 0 unchanged ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/experiment-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] experiments get-experiment [NUMID] { @@ -150,11 +141,8 @@ Deployment complete! >>> [CLI] bundle plan ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/experiment-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] experiments get-experiment [NUMID] { @@ -194,5 +182,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/experiment-basic-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/experiments/basic/script b/acceptance/bundle/resources/experiments/basic/script index 6bb96db86db..4f83c3718ec 100755 --- a/acceptance/bundle/resources/experiments/basic/script +++ b/acceptance/bundle/resources/experiments/basic/script @@ -9,7 +9,7 @@ trace export EXPERIMENT_ARTIFACT_LOCATION="s3://original-${UNIQUE_NAME}" trace export EXPERIMENT_NAME_PREFIX="original" trace envsubst < templates/one_tag.tmpl > databricks.yml trace $CLI bundle plan -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' experiment_id=$($CLI bundle summary --output json | jq -r '.resources.experiments.my_experiment.id') trace $CLI experiments get-experiment $experiment_id | jq '.experiment | {name, artifact_location, tags}' @@ -17,7 +17,7 @@ title "update the name" trace export EXPERIMENT_NAME_PREFIX="new-name" trace envsubst < templates/one_tag.tmpl > databricks.yml trace $CLI bundle plan -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' experiment_id=$($CLI bundle summary --output json | jq -r '.resources.experiments.my_experiment.id') trace $CLI experiments get-experiment $experiment_id | jq '.experiment | {name, artifact_location, tags}' @@ -25,13 +25,13 @@ title "updating the artifact location should cause a recreation" trace export EXPERIMENT_ARTIFACT_LOCATION="s3://new-${UNIQUE_NAME}" trace envsubst < templates/one_tag.tmpl > databricks.yml trace $CLI bundle plan -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' experiment_id=$($CLI bundle summary --output json | jq -r '.resources.experiments.my_experiment.id') trace $CLI experiments get-experiment $experiment_id | jq '.experiment | {name, artifact_location, tags}' title "adding a new tag should be a no-op" trace envsubst < templates/two_tag.tmpl > databricks.yml trace $CLI bundle plan > out.plan.$DATABRICKS_BUNDLE_ENGINE.txt -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' experiment_id=$($CLI bundle summary --output json | jq -r '.resources.experiments.my_experiment.id') trace $CLI experiments get-experiment $experiment_id | jq '.experiment | {name, artifact_location, tags}' diff --git a/acceptance/bundle/resources/external_locations/output.txt b/acceptance/bundle/resources/external_locations/output.txt index c69c74e2c76..684ec03bc87 100644 --- a/acceptance/bundle/resources/external_locations/output.txt +++ b/acceptance/bundle/resources/external_locations/output.txt @@ -10,9 +10,12 @@ Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created catalogs.test_catalog +created catalogs.test_catalog.grants +created external_locations.test_location +created external_locations.test_location.grants + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. === Assert the catalog is created with grants >>> [CLI] catalogs get test_catalog_[UNIQUE_NAME] @@ -68,9 +71,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 3 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated external_locations.test_location + +Deploy: 0 created, 1 changed, 0 deleted, 3 unchanged. === Assert the external location comment is updated >>> [CLI] external-locations get test_ext_location_[UNIQUE_NAME] @@ -88,9 +91,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 3 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated catalogs.test_catalog + +Deploy: 0 created, 1 changed, 0 deleted, 3 unchanged. === Assert the catalog comment is updated >>> [CLI] catalogs get test_catalog_[UNIQUE_NAME] @@ -107,5 +110,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/genie_spaces/delete_warning/output.txt b/acceptance/bundle/resources/genie_spaces/delete_warning/output.txt index af06207c169..c3817f2cd56 100644 --- a/acceptance/bundle/resources/genie_spaces/delete_warning/output.txt +++ b/acceptance/bundle/resources/genie_spaces/delete_warning/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/genie-delete-warning-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.sales_analytics + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Deploying without the genie space warns before deleting it (chat history loss) >>> [CLI] bundle deploy --auto-approve @@ -12,12 +12,11 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/genie-delete-warni This action will result in the deletion or recreation of the following Genie spaces. The conversation history attached to a deleted space is permanently lost: delete resources.genie_spaces.sales_analytics -Deploying resources... -Updating deployment state... -Deployment complete! +deleted genie_spaces.sales_analytics + +Deploy: 0 created, 0 changed, 1 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/genie-delete-warning-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. diff --git a/acceptance/bundle/resources/genie_spaces/inline/output.txt b/acceptance/bundle/resources/genie_spaces/inline/output.txt index 3c0e8e9592d..dd336cc8dbb 100644 --- a/acceptance/bundle/resources/genie_spaces/inline/output.txt +++ b/acceptance/bundle/resources/genie_spaces/inline/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-genie-space-inline-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.sales_analytics + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -o json @@ -17,5 +17,4 @@ The conversation history attached to them is permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-genie-space-inline-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/genie_spaces/parent_path_update/output.txt b/acceptance/bundle/resources/genie_spaces/parent_path_update/output.txt index b299530f589..3c2b6926589 100644 --- a/acceptance/bundle/resources/genie_spaces/parent_path_update/output.txt +++ b/acceptance/bundle/resources/genie_spaces/parent_path_update/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-genie-space-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.update_target + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Plan after changing parent_path should show update >>> [CLI] bundle plan @@ -21,5 +21,4 @@ The conversation history attached to them is permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-genie-space-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/genie_spaces/recreate_when_gone/output.txt b/acceptance/bundle/resources/genie_spaces/recreate_when_gone/output.txt index aeaa5d7964d..a0db223e3b9 100644 --- a/acceptance/bundle/resources/genie_spaces/recreate_when_gone/output.txt +++ b/acceptance/bundle/resources/genie_spaces/recreate_when_gone/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/recreate-gone-genie-space-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.sales_analytics + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] genie trash-space [GENIE_SPACE_ID] @@ -16,5 +16,4 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/recreate-gone-genie-space-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. diff --git a/acceptance/bundle/resources/genie_spaces/serialized_space/output.txt b/acceptance/bundle/resources/genie_spaces/serialized_space/output.txt index ed1a5d8c214..86c4eeb9b21 100644 --- a/acceptance/bundle/resources/genie_spaces/serialized_space/output.txt +++ b/acceptance/bundle/resources/genie_spaces/serialized_space/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/genie-serialized-space-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.from_file +created genie_spaces.from_inline + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -17,5 +18,4 @@ The conversation history attached to them is permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/genie-serialized-space-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/genie_spaces/simple/output.txt b/acceptance/bundle/resources/genie_spaces/simple/output.txt index afc7e13a63c..07d14645024 100644 --- a/acceptance/bundle/resources/genie_spaces/simple/output.txt +++ b/acceptance/bundle/resources/genie_spaces/simple/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-genie-space-test-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.sales_analytics + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] genie get-space [GENIE_SPACE_ID] { @@ -25,5 +25,4 @@ The conversation history attached to them is permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-genie-space-test-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/genie_spaces/version_migration/output.txt b/acceptance/bundle/resources/genie_spaces/version_migration/output.txt index e554b79825c..35222a1d592 100644 --- a/acceptance/bundle/resources/genie_spaces/version_migration/output.txt +++ b/acceptance/bundle/resources/genie_spaces/version_migration/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/genie-version-migration-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Plan after deploy is drift-free despite the version 1 -> version 2 migration >>> [CLI] bundle plan @@ -26,5 +26,4 @@ The conversation history attached to them is permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/genie-version-migration-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/grants/catalogs/output.txt b/acceptance/bundle/resources/grants/catalogs/output.txt index 067bd10a705..f4b5b402a04 100644 --- a/acceptance/bundle/resources/grants/catalogs/output.txt +++ b/acceptance/bundle/resources/grants/catalogs/output.txt @@ -11,9 +11,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/catalog-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created catalogs.grants_catalog +created catalogs.grants_catalog.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //permissions @@ -51,9 +52,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/catalog-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated catalogs.grants_catalog.grants + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py //permissions @@ -76,7 +77,6 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/catalog-grants-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //permissions diff --git a/acceptance/bundle/resources/grants/registered_models/output.txt b/acceptance/bundle/resources/grants/registered_models/output.txt index cac10d76919..8d4d0843e70 100644 --- a/acceptance/bundle/resources/grants/registered_models/output.txt +++ b/acceptance/bundle/resources/grants/registered_models/output.txt @@ -5,9 +5,11 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created registered_models.my_registered_model +created registered_models.my_registered_model.grants +created schemas.my_schema + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //permissions @@ -33,7 +35,6 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. >>> print_requests.py //permissions diff --git a/acceptance/bundle/resources/grants/schemas/all_privileges/output.txt b/acceptance/bundle/resources/grants/schemas/all_privileges/output.txt index e88c30715f3..c842f74cfe0 100644 --- a/acceptance/bundle/resources/grants/schemas/all_privileges/output.txt +++ b/acceptance/bundle/resources/grants/schemas/all_privileges/output.txt @@ -1,7 +1,8 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-dup-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.apps_schema +created schemas.apps_schema.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -12,5 +13,4 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-dup-grants-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/grants/schemas/change_privilege/output.txt b/acceptance/bundle/resources/grants/schemas/change_privilege/output.txt index eb8ee21d641..f24c6258fad 100644 --- a/acceptance/bundle/resources/grants/schemas/change_privilege/output.txt +++ b/acceptance/bundle/resources/grants/schemas/change_privilege/output.txt @@ -11,9 +11,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.grants_schema +created schemas.grants_schema.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //permissions @@ -51,9 +52,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated schemas.grants_schema.grants + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py //permissions @@ -79,7 +80,6 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-grants-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //permissions diff --git a/acceptance/bundle/resources/grants/schemas/duplicate_principals/output.txt b/acceptance/bundle/resources/grants/schemas/duplicate_principals/output.txt index 3b1393adf5b..dac99dc3ba5 100644 --- a/acceptance/bundle/resources/grants/schemas/duplicate_principals/output.txt +++ b/acceptance/bundle/resources/grants/schemas/duplicate_principals/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-dup-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.apps_schema +created schemas.apps_schema.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -o json @@ -16,5 +17,4 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-dup-grants-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/grants/schemas/duplicate_privileges/output.txt b/acceptance/bundle/resources/grants/schemas/duplicate_privileges/output.txt index a537487dbd7..cfbb7117b9a 100644 --- a/acceptance/bundle/resources/grants/schemas/duplicate_privileges/output.txt +++ b/acceptance/bundle/resources/grants/schemas/duplicate_privileges/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-dup-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.apps_schema +created schemas.apps_schema.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -14,5 +15,4 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-dup-grants-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/grants/schemas/empty_array/out.deploy.direct.txt b/acceptance/bundle/resources/grants/schemas/empty_array/out.deploy.direct.txt index 6a435e4733d..3e92dd311d9 100644 --- a/acceptance/bundle/resources/grants/schemas/empty_array/out.deploy.direct.txt +++ b/acceptance/bundle/resources/grants/schemas/empty_array/out.deploy.direct.txt @@ -1,4 +1,5 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.grants_schema +created schemas.grants_schema.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/grants/schemas/out_of_band_principal/output.txt b/acceptance/bundle/resources/grants/schemas/out_of_band_principal/output.txt index 269907e2fd0..e8366dc6e72 100644 --- a/acceptance/bundle/resources/grants/schemas/out_of_band_principal/output.txt +++ b/acceptance/bundle/resources/grants/schemas/out_of_band_principal/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-out-of-band-principal-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.grants_schema +created schemas.grants_schema.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] grants update schema main.schema_out_of_band_principal_[UNIQUE_NAME] --json @update.json @@ -11,9 +12,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-out-of-band-principal-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated schemas.grants_schema.grants + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> [CLI] bundle plan -o json @@ -26,5 +27,4 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-grants-out-of-band-principal-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/grants/schemas/remove_principal/output.txt b/acceptance/bundle/resources/grants/schemas/remove_principal/output.txt index 83a506e161a..171bd851020 100644 --- a/acceptance/bundle/resources/grants/schemas/remove_principal/output.txt +++ b/acceptance/bundle/resources/grants/schemas/remove_principal/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-remove-principal-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.grants_schema +created schemas.grants_schema.grants + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] grants get schema main.schema_remove_principal_[UNIQUE_NAME] json.privilege_assignments[].principal = "[USERNAME]"; @@ -13,9 +14,9 @@ json.privilege_assignments[].privileges[] = "USE_SCHEMA"; >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-remove-principal-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated schemas.grants_schema.grants + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> [CLI] grants get schema main.schema_remove_principal_[UNIQUE_NAME] @@ -24,9 +25,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-remove-principal-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 2 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged @@ -40,5 +39,4 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-grants-remove-principal-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/grants/volumes/output.txt b/acceptance/bundle/resources/grants/volumes/output.txt index 4cd3f2f7495..56c1c09cb59 100644 --- a/acceptance/bundle/resources/grants/volumes/output.txt +++ b/acceptance/bundle/resources/grants/volumes/output.txt @@ -3,9 +3,11 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.grants_schema +created volumes.grants_volume +created volumes.grants_volume.grants + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //permissions @@ -26,9 +28,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/schema-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated volumes.grants_volume.grants + +Deploy: 0 created, 1 changed, 0 deleted, 2 unchanged. >>> print_requests.py //permissions @@ -61,7 +63,6 @@ is removed from the catalog, but the underlying files are not deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/schema-grants-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. >>> print_requests.py //permissions diff --git a/acceptance/bundle/resources/independent/output.txt b/acceptance/bundle/resources/independent/output.txt index 56e08e87b22..1e8d341ed80 100644 --- a/acceptance/bundle/resources/independent/output.txt +++ b/acceptance/bundle/resources/independent/output.txt @@ -1,4 +1,6 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created pipelines.my +created volumes.volume1 + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/jobs/alert-task/output.txt b/acceptance/bundle/resources/jobs/alert-task/output.txt index 569e0f98454..9029b7d1e6d 100644 --- a/acceptance/bundle/resources/jobs/alert-task/output.txt +++ b/acceptance/bundle/resources/jobs/alert-task/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/alert-task-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs get [JOB_ID] { @@ -17,5 +17,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/alert-task-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/jobs/big_id/output.txt b/acceptance/bundle/resources/jobs/big_id/output.txt index 82ec469ca83..b1fc0de77cf 100644 --- a/acceptance/bundle/resources/jobs/big_id/output.txt +++ b/acceptance/bundle/resources/jobs/big_id/output.txt @@ -3,9 +3,9 @@ >>> [CLI] bundle plan -o json Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs { @@ -67,8 +67,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/resources/jobs/check-metadata/output.txt b/acceptance/bundle/resources/jobs/check-metadata/output.txt index c73e8e6f326..4efa8c1c1e7 100644 --- a/acceptance/bundle/resources/jobs/check-metadata/output.txt +++ b/acceptance/bundle/resources/jobs/check-metadata/output.txt @@ -8,9 +8,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Second summary, should have id and modified status should be absent >>> [CLI] bundle summary -o json @@ -91,5 +92,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/jobs/create-error/output.txt b/acceptance/bundle/resources/jobs/create-error/output.txt index 4211f239d91..07531c4e6f4 100644 --- a/acceptance/bundle/resources/jobs/create-error/output.txt +++ b/acceptance/bundle/resources/jobs/create-error/output.txt @@ -1,7 +1,6 @@ >>> musterr [CLI] bundle deploy --force-lock Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... Error: cannot create resources.jobs.foo: Shared job cluster feature is only supported in multi-task jobs. (400 INVALID_PARAMETER_VALUE) Endpoint: POST [DATABRICKS_URL]/api/2.2/jobs/create diff --git a/acceptance/bundle/resources/jobs/delete_job/output.txt b/acceptance/bundle/resources/jobs/delete_job/output.txt index 0fc5fc36e61..12fa9a685cf 100644 --- a/acceptance/bundle/resources/jobs/delete_job/output.txt +++ b/acceptance/bundle/resources/jobs/delete_job/output.txt @@ -1,15 +1,15 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +deleted jobs.job + +Deploy: 0 created, 0 changed, 1 deleted, 0 unchanged. { "method": "POST", "path": "/api/2.2/jobs/create", diff --git a/acceptance/bundle/resources/jobs/delete_task/output.txt b/acceptance/bundle/resources/jobs/delete_task/output.txt index eebf003d74b..e25a3fb1269 100644 --- a/acceptance/bundle/resources/jobs/delete_task/output.txt +++ b/acceptance/bundle/resources/jobs/delete_task/output.txt @@ -1,7 +1,7 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> cat databricks.yml bundle: @@ -23,6 +23,6 @@ resources: libraries: - whl: /Workspace/Users/foo@bar.test/mywheel.whl Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.job + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/jobs/double-underscore-keys/output.txt b/acceptance/bundle/resources/jobs/double-underscore-keys/output.txt index 62f7afddc82..7aca581ed74 100644 --- a/acceptance/bundle/resources/jobs/double-underscore-keys/output.txt +++ b/acceptance/bundle/resources/jobs/double-underscore-keys/output.txt @@ -10,9 +10,10 @@ Validation OK! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-jobs-test-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.foo__bar + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -21,5 +22,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-jobs-test-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/jobs/fail-on-active-runs/output.txt b/acceptance/bundle/resources/jobs/fail-on-active-runs/output.txt index cb83417dd70..622b7d07707 100644 --- a/acceptance/bundle/resources/jobs/fail-on-active-runs/output.txt +++ b/acceptance/bundle/resources/jobs/fail-on-active-runs/output.txt @@ -11,17 +11,15 @@ Validation OK! === deploy empty bundle >>> [CLI] bundle deploy --fail-on-active-runs Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-jobs-active-runs-test-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Remove .databricks directory to simulate a fresh deployment === deploy empty bundle again >>> [CLI] bundle deploy --fail-on-active-runs Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-jobs-active-runs-test-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -29,5 +27,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-jobs-active-runs-test-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/jobs/instance_pool_and_node_type/output.txt b/acceptance/bundle/resources/jobs/instance_pool_and_node_type/output.txt index fb2387e9e72..3468fd984c5 100644 --- a/acceptance/bundle/resources/jobs/instance_pool_and_node_type/output.txt +++ b/acceptance/bundle/resources/jobs/instance_pool_and_node_type/output.txt @@ -43,9 +43,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.some_other_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.tasks out.requests.txt [ diff --git a/acceptance/bundle/resources/jobs/no-git-provider/out.deploy.direct.txt b/acceptance/bundle/resources/jobs/no-git-provider/out.deploy.direct.txt index eab8c861805..98a44c3a093 100644 --- a/acceptance/bundle/resources/jobs/no-git-provider/out.deploy.direct.txt +++ b/acceptance/bundle/resources/jobs/no-git-provider/out.deploy.direct.txt @@ -5,7 +5,6 @@ Warning: required field "git_provider" is not set in databricks.yml:12:9 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... Error: cannot create resources.jobs.foo: git_source.git_provider must be one of: github,gitlab,bitbucketcloud,gitlabenterpriseedition,bitbucketserver,azuredevopsservices,githubenterprise,awscodecommit (400 INVALID_PARAMETER_VALUE) Endpoint: POST [DATABRICKS_URL]/api/2.2/jobs/create diff --git a/acceptance/bundle/resources/jobs/no-git-provider/out.deploy.terraform.txt b/acceptance/bundle/resources/jobs/no-git-provider/out.deploy.terraform.txt index 852d5161eae..fdba7f810e8 100644 --- a/acceptance/bundle/resources/jobs/no-git-provider/out.deploy.terraform.txt +++ b/acceptance/bundle/resources/jobs/no-git-provider/out.deploy.terraform.txt @@ -5,6 +5,6 @@ Warning: required field "git_provider" is not set in databricks.yml:12:9 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/jobs/no-git-provider/out.destroy.direct.txt b/acceptance/bundle/resources/jobs/no-git-provider/out.destroy.direct.txt index ec2c1b08a3e..64f0fb14458 100644 --- a/acceptance/bundle/resources/jobs/no-git-provider/out.destroy.direct.txt +++ b/acceptance/bundle/resources/jobs/no-git-provider/out.destroy.direct.txt @@ -6,5 +6,4 @@ Warning: required field "git_provider" is not set All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 0 deleted. diff --git a/acceptance/bundle/resources/jobs/no-git-provider/out.destroy.terraform.txt b/acceptance/bundle/resources/jobs/no-git-provider/out.destroy.terraform.txt index cf938a19d2e..9ad7b8baea0 100644 --- a/acceptance/bundle/resources/jobs/no-git-provider/out.destroy.terraform.txt +++ b/acceptance/bundle/resources/jobs/no-git-provider/out.destroy.terraform.txt @@ -9,5 +9,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/jobs/num_workers/output.txt b/acceptance/bundle/resources/jobs/num_workers/output.txt index 16e4d600cd2..46fab6d950b 100644 --- a/acceptance/bundle/resources/jobs/num_workers/output.txt +++ b/acceptance/bundle/resources/jobs/num_workers/output.txt @@ -17,9 +17,9 @@ are correctly set in the cluster specification: Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/resources/jobs/on_failure_empty_slice/output.txt b/acceptance/bundle/resources/jobs/on_failure_empty_slice/output.txt index 35870e42c3e..08a91661aac 100644 --- a/acceptance/bundle/resources/jobs/on_failure_empty_slice/output.txt +++ b/acceptance/bundle/resources/jobs/on_failure_empty_slice/output.txt @@ -6,8 +6,8 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/usage_logs/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.refresh_usage_logs + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -o json diff --git a/acceptance/bundle/resources/jobs/remote_add_tag/output.txt b/acceptance/bundle/resources/jobs/remote_add_tag/output.txt index 545c3e6de38..b29d654df1e 100644 --- a/acceptance/bundle/resources/jobs/remote_add_tag/output.txt +++ b/acceptance/bundle/resources/jobs/remote_add_tag/output.txt @@ -3,9 +3,9 @@ create jobs.foo Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged Uploading hello.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. update jobs.foo Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged diff --git a/acceptance/bundle/resources/jobs/remote_delete/deploy/output.txt b/acceptance/bundle/resources/jobs/remote_delete/deploy/output.txt index 372a1c82f77..fb500a039e7 100644 --- a/acceptance/bundle/resources/jobs/remote_delete/deploy/output.txt +++ b/acceptance/bundle/resources/jobs/remote_delete/deploy/output.txt @@ -6,9 +6,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs delete [NUMID] @@ -17,6 +17,6 @@ create jobs.foo Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/jobs/remote_delete/destroy/out.destroy.direct.txt b/acceptance/bundle/resources/jobs/remote_delete/destroy/out.destroy.direct.txt index 1cea8f06419..8065c80cd87 100644 --- a/acceptance/bundle/resources/jobs/remote_delete/destroy/out.destroy.direct.txt +++ b/acceptance/bundle/resources/jobs/remote_delete/destroy/out.destroy.direct.txt @@ -2,5 +2,4 @@ >>> errcode [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. diff --git a/acceptance/bundle/resources/jobs/remote_delete/destroy/out.destroy.terraform.txt b/acceptance/bundle/resources/jobs/remote_delete/destroy/out.destroy.terraform.txt index 1cea8f06419..8065c80cd87 100644 --- a/acceptance/bundle/resources/jobs/remote_delete/destroy/out.destroy.terraform.txt +++ b/acceptance/bundle/resources/jobs/remote_delete/destroy/out.destroy.terraform.txt @@ -2,5 +2,4 @@ >>> errcode [CLI] bundle destroy --auto-approve All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. diff --git a/acceptance/bundle/resources/jobs/remote_delete/destroy/output.txt b/acceptance/bundle/resources/jobs/remote_delete/destroy/output.txt index 22db73b5b5b..5fc02df1f5f 100644 --- a/acceptance/bundle/resources/jobs/remote_delete/destroy/output.txt +++ b/acceptance/bundle/resources/jobs/remote_delete/destroy/output.txt @@ -6,8 +6,8 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] jobs delete [NUMID] diff --git a/acceptance/bundle/resources/jobs/remote_matches_config/output.txt b/acceptance/bundle/resources/jobs/remote_matches_config/output.txt index a067a141773..fded3e50b0e 100644 --- a/acceptance/bundle/resources/jobs/remote_matches_config/output.txt +++ b/acceptance/bundle/resources/jobs/remote_matches_config/output.txt @@ -4,9 +4,9 @@ create jobs.my_job Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged @@ -19,8 +19,6 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py //jobs diff --git a/acceptance/bundle/resources/jobs/shared-root-path/output.txt b/acceptance/bundle/resources/jobs/shared-root-path/output.txt index b485c092416..67bda4878f7 100644 --- a/acceptance/bundle/resources/jobs/shared-root-path/output.txt +++ b/acceptance/bundle/resources/jobs/shared-root-path/output.txt @@ -5,9 +5,9 @@ Warning: the bundle root path /Workspace/Shared/[USERNAME]/.bundle/[UNIQUE_NAME] The bundle is configured to use /Workspace/Shared, which will give read/write access to all users. If this is intentional, add CAN_MANAGE for 'group_name: users' permission to your bundle configuration. If the deployment should be restricted, move it to a restricted folder such as /Workspace/Users/. Uploading bundle files to /Workspace/Shared/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve Warning: the bundle root path /Workspace/Shared/[USERNAME]/.bundle/[UNIQUE_NAME] is writable by all workspace users @@ -19,5 +19,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Shared/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/jobs/tags_empty_map/output.txt b/acceptance/bundle/resources/jobs/tags_empty_map/output.txt index 8ad5b060216..86f68e3e66c 100644 --- a/acceptance/bundle/resources/jobs/tags_empty_map/output.txt +++ b/acceptance/bundle/resources/jobs/tags_empty_map/output.txt @@ -6,8 +6,8 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/tags_empty_map/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -o json diff --git a/acceptance/bundle/resources/jobs/task-source/output.txt b/acceptance/bundle/resources/jobs/task-source/output.txt index 1815edbc0eb..47548c75428 100644 --- a/acceptance/bundle/resources/jobs/task-source/output.txt +++ b/acceptance/bundle/resources/jobs/task-source/output.txt @@ -5,9 +5,10 @@ Warning: invalid value "github" for enum field. Valid values are [awsCodeCommit in databricks.yml:8:19 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/task-source/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.git_job +created jobs.workspace_job + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | select(.body.name=="git_job") | .body out.requests.txt @@ -20,9 +21,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/task-source/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.git_job + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> jq -s .[] | select(.path=="/api/2.2/jobs/reset") | select(.body.new_settings.name=="git_job") | .body out.requests.txt diff --git a/acceptance/bundle/resources/jobs/tasks-reorder-locally/output.txt b/acceptance/bundle/resources/jobs/tasks-reorder-locally/output.txt index 66ef56be745..f77cb65cdbf 100644 --- a/acceptance/bundle/resources/jobs/tasks-reorder-locally/output.txt +++ b/acceptance/bundle/resources/jobs/tasks-reorder-locally/output.txt @@ -6,9 +6,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged @@ -18,9 +18,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged diff --git a/acceptance/bundle/resources/jobs/unknown-terraform-field/output.txt b/acceptance/bundle/resources/jobs/unknown-terraform-field/output.txt index 518e459e07d..373c358307c 100644 --- a/acceptance/bundle/resources/jobs/unknown-terraform-field/output.txt +++ b/acceptance/bundle/resources/jobs/unknown-terraform-field/output.txt @@ -5,6 +5,6 @@ Warning: unknown field: autotermination_minutes at task[0].new_cluster in databricks.yml:14:13 -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/jobs/update/output.txt b/acceptance/bundle/resources/jobs/update/output.txt index eea83d272d5..e076e25cf8f 100644 --- a/acceptance/bundle/resources/jobs/update/output.txt +++ b/acceptance/bundle/resources/jobs/update/output.txt @@ -4,9 +4,9 @@ create jobs.foo Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs @@ -15,9 +15,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> [CLI] bundle plan -o json Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py //jobs @@ -29,9 +27,9 @@ update jobs.foo Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.foo + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs @@ -86,8 +84,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/resources/jobs/update_single_node/output.txt b/acceptance/bundle/resources/jobs/update_single_node/output.txt index aca783207f3..94b45291f69 100644 --- a/acceptance/bundle/resources/jobs/update_single_node/output.txt +++ b/acceptance/bundle/resources/jobs/update_single_node/output.txt @@ -6,9 +6,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs @@ -22,9 +22,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.foo + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs @@ -86,8 +86,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //jobs { diff --git a/acceptance/bundle/resources/model_serving_endpoints/basic/output.txt b/acceptance/bundle/resources/model_serving_endpoints/basic/output.txt index 0455fad681a..87b71f5bc9a 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/basic/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/basic/output.txt @@ -1,11 +1,8 @@ >>> [CLI] bundle plan -o json ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! === Print the GET endpoint details { @@ -15,11 +12,8 @@ Deployment complete! >>> [CLI] bundle plan -o json ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! === Print the GET endpoint details { @@ -33,5 +27,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/basic/script b/acceptance/bundle/resources/model_serving_endpoints/basic/script index 3ff3f64ab28..7ce0807eb9d 100755 --- a/acceptance/bundle/resources/model_serving_endpoints/basic/script +++ b/acceptance/bundle/resources/model_serving_endpoints/basic/script @@ -9,7 +9,7 @@ cleanup() { trap cleanup EXIT trace $CLI bundle plan -o json > out.first-plan.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' # Sort access_control_list: the terraform engine stores it as a set whose order # depends on the (unmasked) principal value, so it differs between the local fake # SP and the real cloud SP. Sorting makes the recorded request stable across both. @@ -28,7 +28,7 @@ echo "$get_output" | jq '{name, creator}' export ENDPOINT_NAME="test-endpoint-$UNIQUE_NAME-2" envsubst < databricks.yml.tmpl > databricks.yml trace $CLI bundle plan -o json > out.second-plan.$DATABRICKS_BUNDLE_ENGINE.json -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' print_requests.py //serving-endpoints | gron.py --sort-arrays access_control_list > out.second-requests.$DATABRICKS_BUNDLE_ENGINE.txt echo "$ENDPOINT_NAME:ENDPOINT_NAME_2" >> ACC_REPLS diff --git a/acceptance/bundle/resources/model_serving_endpoints/recreate/catalog-name/output.txt b/acceptance/bundle/resources/model_serving_endpoints/recreate/catalog-name/output.txt index 8193de57d94..88f168b0583 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/recreate/catalog-name/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/recreate/catalog-name/output.txt @@ -3,9 +3,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -45,9 +45,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -91,5 +91,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/recreate/name-change/output.txt b/acceptance/bundle/resources/model_serving_endpoints/recreate/name-change/output.txt index bb27a231f8d..315d4436d94 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/recreate/name-change/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/recreate/name-change/output.txt @@ -3,9 +3,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -40,9 +40,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -81,5 +81,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/recreate/route-optimized/output.txt b/acceptance/bundle/resources/model_serving_endpoints/recreate/route-optimized/output.txt index d9ede211b2b..2416299db08 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/recreate/route-optimized/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/recreate/route-optimized/output.txt @@ -3,9 +3,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] serving-endpoints get [ORIGINAL_ENDPOINT_ID] @@ -15,9 +15,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -77,5 +77,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/recreate/schema-name/output.txt b/acceptance/bundle/resources/model_serving_endpoints/recreate/schema-name/output.txt index a248664401e..c9299b5f6e9 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/recreate/schema-name/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/recreate/schema-name/output.txt @@ -3,9 +3,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -45,9 +45,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -91,5 +91,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/recreate/table-prefix/output.txt b/acceptance/bundle/resources/model_serving_endpoints/recreate/table-prefix/output.txt index ec4ac2934d6..c1603f3eb65 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/recreate/table-prefix/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/recreate/table-prefix/output.txt @@ -3,9 +3,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -45,9 +45,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -91,5 +91,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/running-endpoint/output.txt b/acceptance/bundle/resources/model_serving_endpoints/running-endpoint/output.txt index 470af7f02df..b4aa361ad8a 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/running-endpoint/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/running-endpoint/output.txt @@ -3,9 +3,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.my_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -43,5 +43,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/update/ai-gateway/output.txt b/acceptance/bundle/resources/model_serving_endpoints/update/ai-gateway/output.txt index a9be82769c7..7c4d9e23d40 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/update/ai-gateway/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/update/ai-gateway/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] serving-endpoints get [ENDPOINT_ID] { @@ -18,9 +18,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated model_serving_endpoints.test_endpoint + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -73,5 +73,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/update/both_gateway_and_tags/output.txt b/acceptance/bundle/resources/model_serving_endpoints/update/both_gateway_and_tags/output.txt index c4a7725fe9f..5d713c9ff68 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/update/both_gateway_and_tags/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/update/both_gateway_and_tags/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] serving-endpoints get [ENDPOINT_ID] { @@ -30,9 +30,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated model_serving_endpoints.test_endpoint + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -113,5 +113,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/update/config/output.txt b/acceptance/bundle/resources/model_serving_endpoints/update/config/output.txt index 156936aa5fb..698955673ff 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/update/config/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/update/config/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] serving-endpoints get [ENDPOINT_ID] { @@ -28,9 +28,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated model_serving_endpoints.test_endpoint + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -98,5 +98,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/update/email-notifications/output.txt b/acceptance/bundle/resources/model_serving_endpoints/update/email-notifications/output.txt index 1bb4647dc00..00792985cb4 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/update/email-notifications/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/update/email-notifications/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] serving-endpoints get [ENDPOINT_ID] { @@ -18,9 +18,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated model_serving_endpoints.test_endpoint + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === There a bug in TF where it does not actually update the email notifications for a serving endpoint. >>> print_requests.py //serving-endpoints @@ -33,5 +33,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/model_serving_endpoints/update/tags/output.txt b/acceptance/bundle/resources/model_serving_endpoints/update/tags/output.txt index c651dfa5cc4..7e93ab20bdc 100644 --- a/acceptance/bundle/resources/model_serving_endpoints/update/tags/output.txt +++ b/acceptance/bundle/resources/model_serving_endpoints/update/tags/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created model_serving_endpoints.test_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] serving-endpoints get [ENDPOINT_ID] [ @@ -19,9 +19,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated model_serving_endpoints.test_endpoint + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //serving-endpoints { @@ -79,5 +79,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/models/basic/output.txt b/acceptance/bundle/resources/models/basic/output.txt index 929a8a4cdfb..990d6ddb2f3 100644 --- a/acceptance/bundle/resources/models/basic/output.txt +++ b/acceptance/bundle/resources/models/basic/output.txt @@ -9,11 +9,8 @@ create models.my_model Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] model-registry get-model original-name-[UNIQUE_NAME] { @@ -35,11 +32,8 @@ update models.my_model Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] model-registry get-model original-name-[UNIQUE_NAME] { @@ -61,11 +55,8 @@ recreate models.my_model Plan: 1 to add, 0 to change, 1 to delete, 0 unchanged ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] model-registry get-model new-name-[UNIQUE_NAME] { @@ -82,11 +73,8 @@ Deployment complete! === add a new tag, this should be a no-op; terraform does make an update request but since update request has no tags in it, it does nothing; direct skips request completely >>> [CLI] bundle plan ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] model-registry get-model new-name-[UNIQUE_NAME] { @@ -106,5 +94,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-models-basic-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/models/basic/script b/acceptance/bundle/resources/models/basic/script index 175f546340a..9d06f4e13de 100644 --- a/acceptance/bundle/resources/models/basic/script +++ b/acceptance/bundle/resources/models/basic/script @@ -8,25 +8,25 @@ trace export MODEL_DESCRIPTION=original-description-$UNIQUE_NAME envsubst < templates/one_tag.tmpl > databricks.yml title "create a model" trace $CLI bundle plan -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace $CLI model-registry get-model $MODEL_NAME | jq '.registered_model_databricks | {name, description, tags}' trace export MODEL_DESCRIPTION=new-description-$UNIQUE_NAME envsubst < templates/one_tag.tmpl > databricks.yml title "update the description, this should update the description remotely as well" trace $CLI bundle plan -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace $CLI model-registry get-model $MODEL_NAME | jq '.registered_model_databricks | {name, description, tags}' trace export MODEL_NAME=new-name-$UNIQUE_NAME envsubst < templates/one_tag.tmpl > databricks.yml title "update the name, this should recreate the model with the new name" trace $CLI bundle plan -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace $CLI model-registry get-model $MODEL_NAME | jq '.registered_model_databricks | {name, description, tags}' title "add a new tag, this should be a no-op; terraform does make an update request but since update request has no tags in it, it does nothing; direct skips request completely" envsubst < templates/two_tag.tmpl > databricks.yml trace $CLI bundle plan > out.plan_update_tag.$DATABRICKS_BUNDLE_ENGINE.txt -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace $CLI model-registry get-model $MODEL_NAME | jq '.registered_model_databricks | {name, description, tags}' diff --git a/acceptance/bundle/resources/permissions/apps/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/apps/current_can_manage/output.txt index bb226ca3f90..a596156a899 100644 --- a/acceptance/bundle/resources/permissions/apps/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/apps/current_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.foo +created apps.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +32,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/apps/other_can_manage/output.txt b/acceptance/bundle/resources/permissions/apps/other_can_manage/output.txt index bb226ca3f90..a596156a899 100644 --- a/acceptance/bundle/resources/permissions/apps/other_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/apps/other_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created apps.foo +created apps.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +32,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/clusters/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/clusters/current_can_manage/output.txt index 09a0645407b..7d2823716e3 100644 --- a/acceptance/bundle/resources/permissions/clusters/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/clusters/current_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.foo +created clusters.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +32,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/clusters/target/output.txt b/acceptance/bundle/resources/permissions/clusters/target/output.txt index 66a79a8d830..085e79e8fa7 100644 --- a/acceptance/bundle/resources/permissions/clusters/target/output.txt +++ b/acceptance/bundle/resources/permissions/clusters/target/output.txt @@ -59,8 +59,9 @@ See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more in databricks.yml:9:7 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created clusters.cluster1 +created clusters.cluster1.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //clusters diff --git a/acceptance/bundle/resources/permissions/dashboards/create/output.txt b/acceptance/bundle/resources/permissions/dashboards/create/output.txt index a6765b13c6e..12e40052c20 100644 --- a/acceptance/bundle/resources/permissions/dashboards/create/output.txt +++ b/acceptance/bundle/resources/permissions/dashboards/create/output.txt @@ -13,9 +13,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/dashboard-perm-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created dashboards.foo +created dashboards.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -23,5 +24,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/dashboard-perm-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/database_instances/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/database_instances/current_can_manage/output.txt index 87a9a4f993c..b44a0437c6e 100644 --- a/acceptance/bundle/resources/permissions/database_instances/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/database_instances/current_can_manage/output.txt @@ -45,9 +45,10 @@ Warning: unknown field: instance_profile_arn in databricks.yml:9:7 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created database_instances.foo +created database_instances.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve Warning: unknown field: catalog_name @@ -67,5 +68,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/experiments/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/experiments/current_can_manage/output.txt index 02c1a3930fb..40838f73999 100644 --- a/acceptance/bundle/resources/permissions/experiments/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/experiments/current_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created experiments.foo +created experiments.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +32,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/factcheck/output.txt b/acceptance/bundle/resources/permissions/factcheck/output.txt index a3ffd49498f..3234dafbcf9 100644 --- a/acceptance/bundle/resources/permissions/factcheck/output.txt +++ b/acceptance/bundle/resources/permissions/factcheck/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test_bundle_[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job +created sql_warehouses.warehouse + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Permissions API simply takes the latest level in the request for a given principal jobs CAN_VIEW,CAN_MANAGE_RUN => CAN_MANAGE_RUN @@ -29,5 +30,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test_bundle_[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/permissions/genie_spaces/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/genie_spaces/current_can_manage/output.txt index 7929e68f7d7..4357a65683a 100644 --- a/acceptance/bundle/resources/permissions/genie_spaces/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/genie_spaces/current_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.foo +created genie_spaces.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -35,5 +36,4 @@ The conversation history attached to them is permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/genie_spaces/out_of_band_deletion/output.txt b/acceptance/bundle/resources/permissions/genie_spaces/out_of_band_deletion/output.txt index cb3d61398b8..144d9d449ff 100644 --- a/acceptance/bundle/resources/permissions/genie_spaces/out_of_band_deletion/output.txt +++ b/acceptance/bundle/resources/permissions/genie_spaces/out_of_band_deletion/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created genie_spaces.foo +created genie_spaces.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Permissions are set on the live space >>> [CLI] api get /api/2.0/permissions/genie/[GENIE_SPACE_ID] @@ -74,5 +75,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 0 deleted. diff --git a/acceptance/bundle/resources/permissions/jobs/added_remotely/output.txt b/acceptance/bundle/resources/permissions/jobs/added_remotely/output.txt index c55126ce725..662bc52333e 100644 --- a/acceptance/bundle/resources/permissions/jobs/added_remotely/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/added_remotely/output.txt @@ -7,9 +7,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_with_permissions +created jobs.job_with_permissions.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged @@ -113,9 +114,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.job_with_permissions.permissions + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged diff --git a/acceptance/bundle/resources/permissions/jobs/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/jobs/current_can_manage/output.txt index 8d21073e1c8..d2fc2b1f5d4 100644 --- a/acceptance/bundle/resources/permissions/jobs/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/current_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +32,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/jobs/current_can_manage_run/output.txt b/acceptance/bundle/resources/permissions/jobs/current_can_manage_run/output.txt index 91420fa9528..4c2eb9c7bb2 100644 --- a/acceptance/bundle/resources/permissions/jobs/current_can_manage_run/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/current_can_manage_run/output.txt @@ -26,9 +26,10 @@ >>> errcode [CLI] bundle deploy -t green Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/green/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.interim_gold_layer_job +created jobs.interim_gold_layer_job.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -o json -t green @@ -38,5 +39,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/green -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/jobs/current_is_owner/output.txt b/acceptance/bundle/resources/permissions/jobs/current_is_owner/output.txt index 1e0de881407..c5e3fb92e6f 100644 --- a/acceptance/bundle/resources/permissions/jobs/current_is_owner/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/current_is_owner/output.txt @@ -9,9 +9,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -19,5 +20,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/jobs/delete_one/output.txt b/acceptance/bundle/resources/permissions/jobs/delete_one/output.txt index 007d1a8c942..598399971e4 100644 --- a/acceptance/bundle/resources/permissions/jobs/delete_one/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/delete_one/output.txt @@ -3,9 +3,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_with_permissions +created jobs.job_with_permissions.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged @@ -14,9 +15,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.job_with_permissions.permissions + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> errcode [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -24,5 +25,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/jobs/deleted_remotely/output.txt b/acceptance/bundle/resources/permissions/jobs/deleted_remotely/output.txt index a9d817fec27..dbf31c1a25d 100644 --- a/acceptance/bundle/resources/permissions/jobs/deleted_remotely/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/deleted_remotely/output.txt @@ -3,9 +3,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/jobs-permissions-deleted-remotely/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_with_permissions +created jobs.job_with_permissions.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs/ @@ -107,9 +108,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/jobs-permissions-deleted-remotely/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.job_with_permissions.permissions + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py //jobs/ diff --git a/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/output.txt b/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/output.txt index 205ee91ea7c..a386b80ad1d 100644 --- a/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/output.txt @@ -13,6 +13,10 @@ No active deployment found to destroy! >>> as-test-sp [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[UUID]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... Deploying resources... +created jobs.foo +created jobs.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. Updating deployment state... Deployment complete! diff --git a/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/output.txt b/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/output.txt index 205ee91ea7c..16d5ac2c639 100644 --- a/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/output.txt @@ -13,6 +13,9 @@ No active deployment found to destroy! >>> as-test-sp [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[UUID]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... Deploying resources... +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. Updating deployment state... Deployment complete! diff --git a/acceptance/bundle/resources/permissions/jobs/empty_list/output.txt b/acceptance/bundle/resources/permissions/jobs/empty_list/output.txt index ec71aa04be9..3b8bd2c0b1d 100644 --- a/acceptance/bundle/resources/permissions/jobs/empty_list/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/empty_list/output.txt @@ -4,9 +4,9 @@ null >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -14,5 +14,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/jobs/other_can_manage/output.txt b/acceptance/bundle/resources/permissions/jobs/other_can_manage/output.txt index 8d21073e1c8..d2fc2b1f5d4 100644 --- a/acceptance/bundle/resources/permissions/jobs/other_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/other_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +32,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/jobs/other_can_manage_run/output.txt b/acceptance/bundle/resources/permissions/jobs/other_can_manage_run/output.txt index d4faa3048fe..5369f81e673 100644 --- a/acceptance/bundle/resources/permissions/jobs/other_can_manage_run/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/other_can_manage_run/output.txt @@ -30,9 +30,10 @@ >>> errcode [CLI] bundle deploy -t green Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/green/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.interim_gold_layer_job +created jobs.interim_gold_layer_job.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> errcode [CLI] bundle destroy -t green --auto-approve The following resources will be deleted: @@ -40,5 +41,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/green -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/jobs/other_is_owner/output.txt b/acceptance/bundle/resources/permissions/jobs/other_is_owner/output.txt index 3c6e9775156..46485385ee5 100644 --- a/acceptance/bundle/resources/permissions/jobs/other_is_owner/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/other_is_owner/output.txt @@ -13,9 +13,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -23,5 +24,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/jobs/reorder_locally/output.txt b/acceptance/bundle/resources/permissions/jobs/reorder_locally/output.txt index 73bedc7d337..2f4ee9126f6 100644 --- a/acceptance/bundle/resources/permissions/jobs/reorder_locally/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/reorder_locally/output.txt @@ -1,18 +1,17 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 2 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged diff --git a/acceptance/bundle/resources/permissions/jobs/reorder_remotely/output.txt b/acceptance/bundle/resources/permissions/jobs/reorder_remotely/output.txt index b6052360bf7..8d076737b47 100644 --- a/acceptance/bundle/resources/permissions/jobs/reorder_remotely/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/reorder_remotely/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged diff --git a/acceptance/bundle/resources/permissions/jobs/update/output.txt b/acceptance/bundle/resources/permissions/jobs/update/output.txt index 71e0e37f64d..1428916f415 100644 --- a/acceptance/bundle/resources/permissions/jobs/update/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/update/output.txt @@ -9,9 +9,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/jobs-permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_with_permissions +created jobs.job_with_permissions.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //jobs/ @@ -75,9 +76,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/jobs-permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.job_with_permissions.permissions + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py //jobs/ @@ -90,9 +91,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/jobs-permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated jobs.job_with_permissions.permissions + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py //jobs/ @@ -105,9 +106,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/jobs-permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +deleted jobs.job_with_permissions.permissions + +Deploy: 0 created, 0 changed, 1 deleted, 1 unchanged. >>> print_requests.py //jobs/ @@ -133,9 +134,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/jobs-permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_with_permissions.permissions + +Deploy: 1 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py //jobs/ @@ -156,9 +157,7 @@ Warning: unknown field: permissions in databricks.yml:18:11 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/jobs-permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 2 unchanged. >>> print_requests.py //jobs/ @@ -172,7 +171,6 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/jobs-permissions-test/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //jobs/ diff --git a/acceptance/bundle/resources/permissions/jobs/viewers/output.txt b/acceptance/bundle/resources/permissions/jobs/viewers/output.txt index a880e3e813c..59458c5180a 100644 --- a/acceptance/bundle/resources/permissions/jobs/viewers/output.txt +++ b/acceptance/bundle/resources/permissions/jobs/viewers/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +32,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/models/current_can_manage/out.deploy.txt b/acceptance/bundle/resources/permissions/models/current_can_manage/out.deploy.txt index 0fd05668156..98f81015e12 100644 --- a/acceptance/bundle/resources/permissions/models/current_can_manage/out.deploy.txt +++ b/acceptance/bundle/resources/permissions/models/current_can_manage/out.deploy.txt @@ -1,6 +1,7 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created models.foo +created models.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/permissions/models/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/models/current_can_manage/output.txt index fc2daa5fa4a..f76f8294a03 100644 --- a/acceptance/bundle/resources/permissions/models/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/models/current_can_manage/output.txt @@ -25,5 +25,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/pipelines/504/create/output.txt b/acceptance/bundle/resources/permissions/pipelines/504/create/output.txt index 72ac55e7006..b9d70ec5b4b 100644 --- a/acceptance/bundle/resources/permissions/pipelines/504/create/output.txt +++ b/acceptance/bundle/resources/permissions/pipelines/504/create/output.txt @@ -1,8 +1,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... Warn: deploying resources.pipelines.foo.permissions: retrying after 504 Gateway Timeout from PUT /api/2.0/permissions/pipelines/[UUID] -Updating deployment state... -Deployment complete! +created pipelines.foo +created pipelines.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //api/2.0/permissions/pipelines "PUT /api/2.0/permissions/pipelines/[UUID]" diff --git a/acceptance/bundle/resources/permissions/pipelines/504/plan/output.txt b/acceptance/bundle/resources/permissions/pipelines/504/plan/output.txt index 6588ab497c6..92c21a726f4 100644 --- a/acceptance/bundle/resources/permissions/pipelines/504/plan/output.txt +++ b/acceptance/bundle/resources/permissions/pipelines/504/plan/output.txt @@ -1,7 +1,8 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created pipelines.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Warn: planning resources.pipelines.foo.permissions: retrying after 504 Gateway Timeout from GET /api/2.0/permissions/pipelines/[UUID] diff --git a/acceptance/bundle/resources/permissions/pipelines/504/update/output.txt b/acceptance/bundle/resources/permissions/pipelines/504/update/output.txt index 5c4d07448f6..469b381fd41 100644 --- a/acceptance/bundle/resources/permissions/pipelines/504/update/output.txt +++ b/acceptance/bundle/resources/permissions/pipelines/504/update/output.txt @@ -1,16 +1,17 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created pipelines.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... Warn: deploying resources.pipelines.foo.permissions: retrying after 504 Gateway Timeout from PUT /api/2.0/permissions/pipelines/[UUID] -Updating deployment state... -Deployment complete! +updated pipelines.foo.permissions + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py //api/2.0/permissions/pipelines "PUT /api/2.0/permissions/pipelines/[UUID]" diff --git a/acceptance/bundle/resources/permissions/pipelines/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/pipelines/current_can_manage/output.txt index 2e15e6e4108..de74ea4f6af 100644 --- a/acceptance/bundle/resources/permissions/pipelines/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/pipelines/current_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created pipelines.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -35,5 +36,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/pipelines/current_is_owner/output.txt b/acceptance/bundle/resources/permissions/pipelines/current_is_owner/output.txt index 89f7921475b..d26b5e04f30 100644 --- a/acceptance/bundle/resources/permissions/pipelines/current_is_owner/output.txt +++ b/acceptance/bundle/resources/permissions/pipelines/current_is_owner/output.txt @@ -9,9 +9,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created pipelines.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -23,5 +24,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/pipelines/empty_list/output.txt b/acceptance/bundle/resources/permissions/pipelines/empty_list/output.txt index 2f3ce99457f..b6e5954c0d1 100644 --- a/acceptance/bundle/resources/permissions/pipelines/empty_list/output.txt +++ b/acceptance/bundle/resources/permissions/pipelines/empty_list/output.txt @@ -4,9 +4,9 @@ null >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -18,5 +18,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/pipelines/other_can_manage/output.txt b/acceptance/bundle/resources/permissions/pipelines/other_can_manage/output.txt index 2e15e6e4108..de74ea4f6af 100644 --- a/acceptance/bundle/resources/permissions/pipelines/other_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/pipelines/other_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created pipelines.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -35,5 +36,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/pipelines/other_is_owner/output.txt b/acceptance/bundle/resources/permissions/pipelines/other_is_owner/output.txt index 3b82b04aa94..2e15e338b15 100644 --- a/acceptance/bundle/resources/permissions/pipelines/other_is_owner/output.txt +++ b/acceptance/bundle/resources/permissions/pipelines/other_is_owner/output.txt @@ -13,9 +13,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created pipelines.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -27,5 +28,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/pipelines/update/output.txt b/acceptance/bundle/resources/permissions/pipelines/update/output.txt index e5395eeceea..10c65cc3a75 100644 --- a/acceptance/bundle/resources/permissions/pipelines/update/output.txt +++ b/acceptance/bundle/resources/permissions/pipelines/update/output.txt @@ -3,9 +3,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created pipelines.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //pipeline @@ -55,9 +56,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated pipelines.foo.permissions + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py //pipeline @@ -70,9 +71,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated pipelines.foo.permissions + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py //pipeline @@ -94,9 +95,9 @@ resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +deleted pipelines.foo.permissions + +Deploy: 0 created, 0 changed, 1 deleted, 1 unchanged. >>> print_requests.py //pipeline --sort @@ -109,9 +110,9 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/permissions-test/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo.permissions + +Deploy: 1 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py //pipeline @@ -128,5 +129,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/permissions-test/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/postgres_projects/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/postgres_projects/current_can_manage/output.txt index 876d077e601..30a5b5716b5 100644 --- a/acceptance/bundle/resources/permissions/postgres_projects/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/postgres_projects/current_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_projects.foo +created postgres_projects.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -35,5 +36,4 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/sql_warehouses/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/sql_warehouses/current_can_manage/output.txt index 1f057533795..97c6e9e8413 100644 --- a/acceptance/bundle/resources/permissions/sql_warehouses/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/sql_warehouses/current_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created sql_warehouses.foo +created sql_warehouses.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +32,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/target_permissions/output.txt b/acceptance/bundle/resources/permissions/target_permissions/output.txt index 05faf19c98e..db81d9ea158 100644 --- a/acceptance/bundle/resources/permissions/target_permissions/output.txt +++ b/acceptance/bundle/resources/permissions/target_permissions/output.txt @@ -7,9 +7,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/test-bundle/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created jobs.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -17,5 +18,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/test-bundle -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/permissions/vector_search_endpoints/current_can_manage/output.txt b/acceptance/bundle/resources/permissions/vector_search_endpoints/current_can_manage/output.txt index 4e848ac23e6..7ada4b8dc45 100644 --- a/acceptance/bundle/resources/permissions/vector_search_endpoints/current_can_manage/output.txt +++ b/acceptance/bundle/resources/permissions/vector_search_endpoints/current_can_manage/output.txt @@ -21,9 +21,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.foo +created vector_search_endpoints.foo.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -31,5 +32,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/pipelines/allow-duplicate-names/output.txt b/acceptance/bundle/resources/pipelines/allow-duplicate-names/output.txt index 8cea9634565..89b03a2c36f 100644 --- a/acceptance/bundle/resources/pipelines/allow-duplicate-names/output.txt +++ b/acceptance/bundle/resources/pipelines/allow-duplicate-names/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/acc-bundle-deploy-pipeline-duplicate-names-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.pipeline_one + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //pipelines { @@ -52,7 +52,6 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-bundle-deploy-pipeline-duplicate-names-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> [CLI] pipelines delete [UUID] diff --git a/acceptance/bundle/resources/pipelines/auto-approve/output.txt b/acceptance/bundle/resources/pipelines/auto-approve/output.txt index 3016a4c248d..a575f1458d3 100644 --- a/acceptance/bundle/resources/pipelines/auto-approve/output.txt +++ b/acceptance/bundle/resources/pipelines/auto-approve/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo +created pipelines.bar + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Assert the pipeline is created >>> [CLI] pipelines get [UUID] @@ -68,5 +69,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/pipelines/lakeflow-pipeline/output.txt b/acceptance/bundle/resources/pipelines/lakeflow-pipeline/output.txt index 04129e78ce1..156f0f238f9 100644 --- a/acceptance/bundle/resources/pipelines/lakeflow-pipeline/output.txt +++ b/acceptance/bundle/resources/pipelines/lakeflow-pipeline/output.txt @@ -10,9 +10,9 @@ Validation OK! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-lakeflow-pipeline-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> jq -s .[] | select(.path=="/api/2.0/pipelines" and .method == "POST") | .body out.requests.txt { @@ -48,5 +48,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-pipeline-lakeflow-pipeline-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/pipelines/num-workers-zero/out.deploy.direct.txt b/acceptance/bundle/resources/pipelines/num-workers-zero/out.deploy.direct.txt index a2a2a872e76..954fe362107 100644 --- a/acceptance/bundle/resources/pipelines/num-workers-zero/out.deploy.direct.txt +++ b/acceptance/bundle/resources/pipelines/num-workers-zero/out.deploy.direct.txt @@ -1,6 +1,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/num-workers-zero/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/pipelines/num-workers-zero/out.deploy.terraform.txt b/acceptance/bundle/resources/pipelines/num-workers-zero/out.deploy.terraform.txt index a2a2a872e76..954fe362107 100644 --- a/acceptance/bundle/resources/pipelines/num-workers-zero/out.deploy.terraform.txt +++ b/acceptance/bundle/resources/pipelines/num-workers-zero/out.deploy.terraform.txt @@ -1,6 +1,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/num-workers-zero/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/pipelines/photon-true/output.txt b/acceptance/bundle/resources/pipelines/photon-true/output.txt index dc771134389..4453dca5910 100644 --- a/acceptance/bundle/resources/pipelines/photon-true/output.txt +++ b/acceptance/bundle/resources/pipelines/photon-true/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/photon-true/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. { "method": "POST", "path": "/api/2.0/pipelines", diff --git a/acceptance/bundle/resources/pipelines/recreate-keys/change-ingestion-definition/output.txt b/acceptance/bundle/resources/pipelines/recreate-keys/change-ingestion-definition/output.txt index 77bfdc09d32..57a94e01c77 100644 --- a/acceptance/bundle/resources/pipelines/recreate-keys/change-ingestion-definition/output.txt +++ b/acceptance/bundle/resources/pipelines/recreate-keys/change-ingestion-definition/output.txt @@ -21,9 +21,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests { @@ -68,9 +68,9 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them. Recreating restore the defined STs and MVs through full refresh. Note that recreation is necessary when pipeline properties such as the 'catalog' or 'storage' are changed: recreate resources.pipelines.my -Deploying resources... -Updating deployment state... -Deployment complete! +recreated pipelines.my + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests { @@ -155,8 +155,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests { diff --git a/acceptance/bundle/resources/pipelines/recreate-keys/change-storage/output.txt b/acceptance/bundle/resources/pipelines/recreate-keys/change-storage/output.txt index 74943571027..8060b177c5e 100644 --- a/acceptance/bundle/resources/pipelines/recreate-keys/change-storage/output.txt +++ b/acceptance/bundle/resources/pipelines/recreate-keys/change-storage/output.txt @@ -21,9 +21,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests { @@ -63,9 +63,9 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them. Recreating restore the defined STs and MVs through full refresh. Note that recreation is necessary when pipeline properties such as the 'catalog' or 'storage' are changed: recreate resources.pipelines.my -Deploying resources... -Updating deployment state... -Deployment complete! +recreated pipelines.my + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests { @@ -139,8 +139,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests { diff --git a/acceptance/bundle/resources/pipelines/recreate/output.txt b/acceptance/bundle/resources/pipelines/recreate/output.txt index b6a280d38d5..42ea7300eb6 100644 --- a/acceptance/bundle/resources/pipelines/recreate/output.txt +++ b/acceptance/bundle/resources/pipelines/recreate/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created schemas.bar + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Assert the pipeline is created with catalog >>> [CLI] pipelines get [UUID] @@ -70,5 +71,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/pipelines/update/output.txt b/acceptance/bundle/resources/pipelines/update/output.txt index 213e8a0cc64..9fc8fc317f7 100644 --- a/acceptance/bundle/resources/pipelines/update/output.txt +++ b/acceptance/bundle/resources/pipelines/update/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests { @@ -32,9 +32,9 @@ pipelines my id='[MY_ID]' name='test-pipeline-[UNIQUE_NAME]' >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated pipelines.my + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === Fetch pipeline ID and verify remote state >>> [CLI] pipelines get [MY_ID] @@ -77,8 +77,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/acc-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests { diff --git a/acceptance/bundle/resources/pipelines/zero-value-fields/output.txt b/acceptance/bundle/resources/pipelines/zero-value-fields/output.txt index e6f9d14858a..6f5d73cbe43 100644 --- a/acceptance/bundle/resources/pipelines/zero-value-fields/output.txt +++ b/acceptance/bundle/resources/pipelines/zero-value-fields/output.txt @@ -1,6 +1,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/zero-value-fields/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/postgres_branches/basic/output.txt b/acceptance/bundle/resources/postgres_branches/basic/output.txt index 3dc758224fc..15cf4fc74cd 100644 --- a/acceptance/bundle/resources/postgres_branches/basic/output.txt +++ b/acceptance/bundle/resources/postgres_branches/basic/output.txt @@ -26,9 +26,10 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-branch-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_projects.my_project + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/main { @@ -81,5 +82,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-branch-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/postgres_branches/recreate/output.txt b/acceptance/bundle/resources/postgres_branches/recreate/output.txt index bcc1528946b..0744d40e07f 100644 --- a/acceptance/bundle/resources/postgres_branches/recreate/output.txt +++ b/acceptance/bundle/resources/postgres_branches/recreate/output.txt @@ -32,9 +32,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-branch-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_projects.my_project + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Change branch_id (should trigger recreation in direct, update in terraform) >>> cat databricks.yml @@ -68,9 +69,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-br This action will result in the deletion or recreation of the following Lakebase branches. All data stored in them will be permanently lost: recreate resources.postgres_branches.main -Deploying resources... -Updating deployment state... -Deployment complete! +recreated postgres_branches.main + +Deploy: 1 created, 0 changed, 1 deleted, 1 unchanged. === Fetch new branch ID === Destroy and verify cleanup @@ -89,8 +90,7 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-branch-recreate-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. >>> [CLI] bundle destroy --auto-approve No active deployment found to destroy! diff --git a/acceptance/bundle/resources/postgres_branches/replace_existing/out.destroy.direct.txt b/acceptance/bundle/resources/postgres_branches/replace_existing/out.destroy.direct.txt index 03109f9364d..48ee0adfadf 100644 --- a/acceptance/bundle/resources/postgres_branches/replace_existing/out.destroy.direct.txt +++ b/acceptance/bundle/resources/postgres_branches/replace_existing/out.destroy.direct.txt @@ -12,5 +12,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-replace-branch-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/postgres_branches/replace_existing/out.destroy.terraform.txt b/acceptance/bundle/resources/postgres_branches/replace_existing/out.destroy.terraform.txt index 03109f9364d..48ee0adfadf 100644 --- a/acceptance/bundle/resources/postgres_branches/replace_existing/out.destroy.terraform.txt +++ b/acceptance/bundle/resources/postgres_branches/replace_existing/out.destroy.terraform.txt @@ -12,5 +12,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-replace-branch-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/postgres_branches/replace_existing/output.txt b/acceptance/bundle/resources/postgres_branches/replace_existing/output.txt index 7f3f76ab3e3..bc13d6b93a1 100644 --- a/acceptance/bundle/resources/postgres_branches/replace_existing/output.txt +++ b/acceptance/bundle/resources/postgres_branches/replace_existing/output.txt @@ -10,9 +10,10 @@ Validation OK! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-replace-branch-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.production +created postgres_projects.my_project + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/production { diff --git a/acceptance/bundle/resources/postgres_branches/update_protected/output.txt b/acceptance/bundle/resources/postgres_branches/update_protected/output.txt index e14d52f3537..41b7610baeb 100644 --- a/acceptance/bundle/resources/postgres_branches/update_protected/output.txt +++ b/acceptance/bundle/resources/postgres_branches/update_protected/output.txt @@ -19,9 +19,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-branch-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.dev_branch +created postgres_projects.my_project + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -51,9 +52,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-branch-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 2 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -95,9 +94,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-branch-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_branches.dev_branch + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -131,9 +130,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-branch-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_branches.dev_branch + +Deploy: 0 created, 1 changed, 0 deleted, 1 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -170,5 +169,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-postgres-branch-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/postgres_branches/without_branch_id/out.deploy.direct.txt b/acceptance/bundle/resources/postgres_branches/without_branch_id/out.deploy.direct.txt index 44e75d1da0d..494e3cbdee5 100644 --- a/acceptance/bundle/resources/postgres_branches/without_branch_id/out.deploy.direct.txt +++ b/acceptance/bundle/resources/postgres_branches/without_branch_id/out.deploy.direct.txt @@ -3,7 +3,6 @@ Warning: required field "branch_id" is not set in databricks.yml:21:7 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-branch-no-id-[UNIQUE_NAME]/default/files... -Deploying resources... Error: cannot create resources.postgres_branches.main: Field 'branch_id' is required, expected non-default value (not "")! (400 INVALID_PARAMETER_VALUE) Endpoint: POST [DATABRICKS_URL]/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches @@ -11,4 +10,3 @@ HTTP Status: 400 Bad Request API error_code: INVALID_PARAMETER_VALUE API message: Field 'branch_id' is required, expected non-default value (not "")! -Updating deployment state... diff --git a/acceptance/bundle/resources/postgres_catalogs/basic/output.txt b/acceptance/bundle/resources/postgres_catalogs/basic/output.txt index c5eed407fe9..11246f9cc35 100644 --- a/acceptance/bundle/resources/postgres_catalogs/basic/output.txt +++ b/acceptance/bundle/resources/postgres_catalogs/basic/output.txt @@ -26,9 +26,10 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-catalog-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_catalogs.my_catalog +created postgres_projects.my_project + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-catalog catalogs/lakebase_test_[UNIQUE_NAME] { @@ -70,5 +71,4 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-catalog-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/postgres_catalogs/recreate/output.txt b/acceptance/bundle/resources/postgres_catalogs/recreate/output.txt index 1f6bb621987..62fa60b04f3 100644 --- a/acceptance/bundle/resources/postgres_catalogs/recreate/output.txt +++ b/acceptance/bundle/resources/postgres_catalogs/recreate/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/recreate-postgres-catalog-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_catalogs.my_catalog +created postgres_projects.my_project + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan recreate postgres_catalogs.my_catalog @@ -12,9 +13,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/recreate-postgres-catalog-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated postgres_catalogs.my_catalog + +Deploy: 1 created, 0 changed, 1 deleted, 1 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -27,5 +28,4 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/recreate-postgres-catalog-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/postgres_databases/basic/output.txt b/acceptance/bundle/resources/postgres_databases/basic/output.txt index c316a1c6c98..85d63d7f0e4 100644 --- a/acceptance/bundle/resources/postgres_databases/basic/output.txt +++ b/acceptance/bundle/resources/postgres_databases/basic/output.txt @@ -34,9 +34,12 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-database-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_databases.my_database +created postgres_projects.my_project +created postgres_roles.owner + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-database projects/test-pg-proj-[UNIQUE_NAME]/branches/main/databases/my-database { @@ -97,5 +100,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-database-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 4 deleted. diff --git a/acceptance/bundle/resources/postgres_databases/live_errors/bad_database_id/output.txt b/acceptance/bundle/resources/postgres_databases/live_errors/bad_database_id/output.txt index f4d984a0e12..d11c39adeb8 100644 --- a/acceptance/bundle/resources/postgres_databases/live_errors/bad_database_id/output.txt +++ b/acceptance/bundle/resources/postgres_databases/live_errors/bad_database_id/output.txt @@ -1,5 +1,4 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/bad-database-id-[UNIQUE_NAME]/default/files... -Deploying resources... Error: cannot create resources.postgres_databases.my_database: Field database_id must match pattern ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$, got 'Invalid_DB_ID'. (400 INVALID_PARAMETER_VALUE) Endpoint: POST [DATABRICKS_URL]/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main/databases?database_id=Invalid_DB_ID @@ -7,7 +6,6 @@ HTTP Status: 400 Bad Request API error_code: INVALID_PARAMETER_VALUE API message: Field database_id must match pattern ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$, got 'Invalid_DB_ID'. -Updating deployment state... >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -25,5 +23,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/bad-database-id-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/postgres_databases/live_errors/bad_role_ref/output.txt b/acceptance/bundle/resources/postgres_databases/live_errors/bad_role_ref/output.txt index 0b19de889b2..560462c0139 100644 --- a/acceptance/bundle/resources/postgres_databases/live_errors/bad_role_ref/output.txt +++ b/acceptance/bundle/resources/postgres_databases/live_errors/bad_role_ref/output.txt @@ -1,5 +1,4 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/bad-role-ref-[UNIQUE_NAME]/default/files... -Deploying resources... Error: cannot create resources.postgres_databases.my_database: role not found; role_id:"does-not-exist" [TraceId: [TRACE_ID]] (404 NOT_FOUND) Endpoint: POST [DATABRICKS_URL]/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main/databases?database_id=my-database @@ -7,7 +6,6 @@ HTTP Status: 404 Not Found API error_code: NOT_FOUND API message: role not found; role_id:"does-not-exist" [TraceId: [TRACE_ID]] -Updating deployment state... >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -24,5 +22,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/bad-role-ref-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/postgres_databases/live_errors/missing_role/output.txt b/acceptance/bundle/resources/postgres_databases/live_errors/missing_role/output.txt index 7e279281222..2987e61eb2d 100644 --- a/acceptance/bundle/resources/postgres_databases/live_errors/missing_role/output.txt +++ b/acceptance/bundle/resources/postgres_databases/live_errors/missing_role/output.txt @@ -1,5 +1,4 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/missing-role-[UNIQUE_NAME]/default/files... -Deploying resources... Error: cannot create resources.postgres_databases.my_database: Field 'spec.role' cannot be empty (400 INVALID_PARAMETER_VALUE) Endpoint: POST [DATABRICKS_URL]/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main/databases?database_id=my-database @@ -7,7 +6,6 @@ HTTP Status: 400 Bad Request API error_code: INVALID_PARAMETER_VALUE API message: Field 'spec.role' cannot be empty -Updating deployment state... >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -24,5 +22,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/missing-role-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/postgres_databases/recreate/output.txt b/acceptance/bundle/resources/postgres_databases/recreate/output.txt index 73034cb4931..b9dee7923d0 100644 --- a/acceptance/bundle/resources/postgres_databases/recreate/output.txt +++ b/acceptance/bundle/resources/postgres_databases/recreate/output.txt @@ -43,9 +43,12 @@ Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-database-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_databases.my_database +created postgres_projects.my_project +created postgres_roles.owner + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { @@ -157,9 +160,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-da This action will result in the deletion or recreation of the following Lakebase databases. All data stored in them will be permanently lost: recreate resources.postgres_databases.my_database -Deploying resources... -Updating deployment state... -Deployment complete! +recreated postgres_databases.my_database + +Deploy: 1 created, 0 changed, 1 deleted, 3 unchanged. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { @@ -215,8 +218,7 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-database-recreate-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 4 deleted. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { diff --git a/acceptance/bundle/resources/postgres_databases/update/output.txt b/acceptance/bundle/resources/postgres_databases/update/output.txt index b99033643a4..a0a522514e4 100644 --- a/acceptance/bundle/resources/postgres_databases/update/output.txt +++ b/acceptance/bundle/resources/postgres_databases/update/output.txt @@ -21,9 +21,12 @@ Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-database-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_databases.my_database +created postgres_projects.my_project +created postgres_roles.owner + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -47,9 +50,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-database-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 4 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -99,9 +100,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 3 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-database-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_databases.my_database + +Deploy: 0 created, 1 changed, 0 deleted, 3 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -129,9 +130,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 3 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-database-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_databases.my_database + +Deploy: 0 created, 1 changed, 0 deleted, 3 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -168,5 +169,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-postgres-database-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 4 deleted. diff --git a/acceptance/bundle/resources/postgres_endpoints/basic/output.txt b/acceptance/bundle/resources/postgres_endpoints/basic/output.txt index 4b41c6afc93..b55d4218c23 100644 --- a/acceptance/bundle/resources/postgres_endpoints/basic/output.txt +++ b/acceptance/bundle/resources/postgres_endpoints/basic/output.txt @@ -30,9 +30,11 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_endpoints.custom +created postgres_projects.my_project + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-endpoint projects/test-pg-proj-[UNIQUE_NAME]/branches/main/endpoints/custom { @@ -99,5 +101,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-endpoint-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/postgres_endpoints/recreate/output.txt b/acceptance/bundle/resources/postgres_endpoints/recreate/output.txt index 0c001d75449..e6b8d39bc94 100644 --- a/acceptance/bundle/resources/postgres_endpoints/recreate/output.txt +++ b/acceptance/bundle/resources/postgres_endpoints/recreate/output.txt @@ -41,9 +41,11 @@ Plan: 3 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-endpoint-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_endpoints.my_endpoint +created postgres_projects.my_project + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { @@ -132,9 +134,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 2 unchanged >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-endpoint-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated postgres_endpoints.my_endpoint + +Deploy: 1 created, 0 changed, 1 deleted, 2 unchanged. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { @@ -177,8 +179,7 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-endpoint-recreate-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { diff --git a/acceptance/bundle/resources/postgres_endpoints/replace_existing/out.destroy.direct.txt b/acceptance/bundle/resources/postgres_endpoints/replace_existing/out.destroy.direct.txt index 2ac6d613c05..35bf715ed1d 100644 --- a/acceptance/bundle/resources/postgres_endpoints/replace_existing/out.destroy.direct.txt +++ b/acceptance/bundle/resources/postgres_endpoints/replace_existing/out.destroy.direct.txt @@ -13,5 +13,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-replace-endpoint-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/postgres_endpoints/replace_existing/out.destroy.terraform.txt b/acceptance/bundle/resources/postgres_endpoints/replace_existing/out.destroy.terraform.txt index 2ac6d613c05..35bf715ed1d 100644 --- a/acceptance/bundle/resources/postgres_endpoints/replace_existing/out.destroy.terraform.txt +++ b/acceptance/bundle/resources/postgres_endpoints/replace_existing/out.destroy.terraform.txt @@ -13,5 +13,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-replace-endpoint-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/postgres_endpoints/replace_existing/output.txt b/acceptance/bundle/resources/postgres_endpoints/replace_existing/output.txt index 2b371c9d6d6..a1581a27886 100644 --- a/acceptance/bundle/resources/postgres_endpoints/replace_existing/output.txt +++ b/acceptance/bundle/resources/postgres_endpoints/replace_existing/output.txt @@ -10,9 +10,11 @@ Validation OK! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-replace-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.develop +created postgres_endpoints.primary +created postgres_projects.my_project + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-endpoint projects/test-pg-proj-[UNIQUE_NAME]/branches/develop/endpoints/primary { diff --git a/acceptance/bundle/resources/postgres_endpoints/update_autoscaling/output.txt b/acceptance/bundle/resources/postgres_endpoints/update_autoscaling/output.txt index 32bd27d65d5..ff387b0fd7e 100644 --- a/acceptance/bundle/resources/postgres_endpoints/update_autoscaling/output.txt +++ b/acceptance/bundle/resources/postgres_endpoints/update_autoscaling/output.txt @@ -20,9 +20,11 @@ Plan: 3 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_endpoints.my_endpoint +created postgres_projects.my_project + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -61,9 +63,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 3 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 3 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -109,9 +109,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_endpoints.my_endpoint + +Deploy: 0 created, 1 changed, 0 deleted, 2 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -154,9 +154,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_endpoints.my_endpoint + +Deploy: 0 created, 1 changed, 0 deleted, 2 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -203,5 +203,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-postgres-endpoint-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/postgres_endpoints/without_endpoint_id/out.deploy.direct.txt b/acceptance/bundle/resources/postgres_endpoints/without_endpoint_id/out.deploy.direct.txt index 615af8b12bb..eee17710fb2 100644 --- a/acceptance/bundle/resources/postgres_endpoints/without_endpoint_id/out.deploy.direct.txt +++ b/acceptance/bundle/resources/postgres_endpoints/without_endpoint_id/out.deploy.direct.txt @@ -3,7 +3,6 @@ Warning: required field "endpoint_id" is not set in databricks.yml:27:7 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-endpoint-no-id-[UNIQUE_NAME]/default/files... -Deploying resources... Error: cannot create resources.postgres_endpoints.primary: Field 'endpoint_id' is required, expected non-default value (not "")! (400 INVALID_PARAMETER_VALUE) Endpoint: POST [DATABRICKS_URL]/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main/endpoints @@ -11,4 +10,3 @@ HTTP Status: 400 Bad Request API error_code: INVALID_PARAMETER_VALUE API message: Field 'endpoint_id' is required, expected non-default value (not "")! -Updating deployment state... diff --git a/acceptance/bundle/resources/postgres_projects/basic/output.txt b/acceptance/bundle/resources/postgres_projects/basic/output.txt index 75db034d543..35da6fe6e3c 100644 --- a/acceptance/bundle/resources/postgres_projects/basic/output.txt +++ b/acceptance/bundle/resources/postgres_projects/basic/output.txt @@ -22,9 +22,9 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-single-project-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_projects.my_project + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-project projects/test-pg-proj-[UNIQUE_NAME] { @@ -73,5 +73,4 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-single-project-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/postgres_projects/purge_on_delete/out.destroy.txt b/acceptance/bundle/resources/postgres_projects/purge_on_delete/out.destroy.txt index 24950b29d98..75b0aca37fb 100644 --- a/acceptance/bundle/resources/postgres_projects/purge_on_delete/out.destroy.txt +++ b/acceptance/bundle/resources/postgres_projects/purge_on_delete/out.destroy.txt @@ -9,5 +9,4 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-purge-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/postgres_projects/purge_on_delete/output.txt b/acceptance/bundle/resources/postgres_projects/purge_on_delete/output.txt index 67152cf13cd..41b540f6cdc 100644 --- a/acceptance/bundle/resources/postgres_projects/purge_on_delete/output.txt +++ b/acceptance/bundle/resources/postgres_projects/purge_on_delete/output.txt @@ -10,9 +10,10 @@ Validation OK! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-purge-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_projects.hard_delete +created postgres_projects.soft_delete + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-project projects/test-pg-proj-hard-[UNIQUE_NAME] { diff --git a/acceptance/bundle/resources/postgres_projects/purge_on_delete_transitions/out.destroy.txt b/acceptance/bundle/resources/postgres_projects/purge_on_delete_transitions/out.destroy.txt index ca4b0f6893c..da8e135abcf 100644 --- a/acceptance/bundle/resources/postgres_projects/purge_on_delete_transitions/out.destroy.txt +++ b/acceptance/bundle/resources/postgres_projects/purge_on_delete_transitions/out.destroy.txt @@ -7,5 +7,4 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/pg-purge-transitions-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/postgres_projects/purge_on_delete_transitions/output.txt b/acceptance/bundle/resources/postgres_projects/purge_on_delete_transitions/output.txt index 825405222ef..bf39de01e33 100644 --- a/acceptance/bundle/resources/postgres_projects/purge_on_delete_transitions/output.txt +++ b/acceptance/bundle/resources/postgres_projects/purge_on_delete_transitions/output.txt @@ -2,9 +2,9 @@ === Step 1: deploy with purge_on_delete unset >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pg-purge-transitions-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_projects.proj + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> get_purge (unset) @@ -12,9 +12,9 @@ Deployment complete! === Step 2: set purge_on_delete: true >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pg-purge-transitions-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_projects.proj + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> get_purge json.state.resources.postgres_projects.proj.state.purge_on_delete = true; @@ -22,9 +22,9 @@ json.state.resources.postgres_projects.proj.state.purge_on_delete = true; === Step 3: flip to purge_on_delete: false >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pg-purge-transitions-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_projects.proj + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> get_purge json.state.resources.postgres_projects.proj.state.purge_on_delete = false; @@ -32,9 +32,7 @@ json.state.resources.postgres_projects.proj.state.purge_on_delete = false; === Step 4: remove the line again >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pg-purge-transitions-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> get_purge json.state.resources.postgres_projects.proj.state.purge_on_delete = false; diff --git a/acceptance/bundle/resources/postgres_projects/recreate/output.txt b/acceptance/bundle/resources/postgres_projects/recreate/output.txt index dad581aa51e..f50f5554d5d 100644 --- a/acceptance/bundle/resources/postgres_projects/recreate/output.txt +++ b/acceptance/bundle/resources/postgres_projects/recreate/output.txt @@ -25,9 +25,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_projects.my_project + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Change project_id (should trigger recreation in direct, update in terraform) >>> cat databricks.yml @@ -55,9 +55,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-re This action will result in the deletion or recreation of the following Lakebase projects along with all their branches, databases, and endpoints. All data stored in them will be permanently lost: recreate resources.postgres_projects.my_project -Deploying resources... -Updating deployment state... -Deployment complete! +recreated postgres_projects.my_project + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. === Fetch new project ID === Destroy and verify cleanup @@ -71,8 +71,7 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-recreate-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> [CLI] bundle destroy --auto-approve No active deployment found to destroy! diff --git a/acceptance/bundle/resources/postgres_projects/update_display_name/output.txt b/acceptance/bundle/resources/postgres_projects/update_display_name/output.txt index 2ff3ae1cb04..737aa0267bf 100644 --- a/acceptance/bundle/resources/postgres_projects/update_display_name/output.txt +++ b/acceptance/bundle/resources/postgres_projects/update_display_name/output.txt @@ -18,9 +18,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-project-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_projects.my_project + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -55,9 +55,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-project-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -92,9 +90,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-project-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_projects.my_project + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -133,9 +131,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-project-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_projects.my_project + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -172,5 +170,4 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-postgres-project-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/postgres_projects/without_project_id/out.deploy.direct.txt b/acceptance/bundle/resources/postgres_projects/without_project_id/out.deploy.direct.txt index 8103b944c46..ca42189a6c7 100644 --- a/acceptance/bundle/resources/postgres_projects/without_project_id/out.deploy.direct.txt +++ b/acceptance/bundle/resources/postgres_projects/without_project_id/out.deploy.direct.txt @@ -3,7 +3,6 @@ Warning: required field "project_id" is not set in databricks.yml:10:7 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-no-id-[UNIQUE_NAME]/default/files... -Deploying resources... Error: cannot create resources.postgres_projects.my_project: Field 'project_id' is required, expected non-default value (not "")! (400 INVALID_PARAMETER_VALUE) Endpoint: POST [DATABRICKS_URL]/api/2.0/postgres/projects diff --git a/acceptance/bundle/resources/postgres_roles/basic/output.txt b/acceptance/bundle/resources/postgres_roles/basic/output.txt index 4ec6544d2e3..a22fc5e0c11 100644 --- a/acceptance/bundle/resources/postgres_roles/basic/output.txt +++ b/acceptance/bundle/resources/postgres_roles/basic/output.txt @@ -30,9 +30,11 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-role-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_projects.my_project +created postgres_roles.my_role + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-role projects/test-pg-proj-[UNIQUE_NAME]/branches/main/roles/test-role { @@ -90,5 +92,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-role-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/postgres_roles/inherited-role-bind/output.txt b/acceptance/bundle/resources/postgres_roles/inherited-role-bind/output.txt index de5850234a1..741d9f88e7d 100644 --- a/acceptance/bundle/resources/postgres_roles/inherited-role-bind/output.txt +++ b/acceptance/bundle/resources/postgres_roles/inherited-role-bind/output.txt @@ -2,26 +2,24 @@ === Deploy project, branch, and role >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/inherited-role-bind-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_projects.my_project +created postgres_roles.my_role + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. === Unbind the role: it now exists on the branch but is untracked >>> [CLI] bundle deployment unbind my_role -Updating deployment state... === Bind the existing role to take explicit ownership of it >>> [CLI] bundle deployment bind my_role projects/test-pg-proj-[UNIQUE_NAME]/branches/main/roles/test-role --auto-approve -Updating deployment state... Successfully bound postgres_role with an id 'projects/test-pg-proj-[UNIQUE_NAME]/branches/main/roles/test-role' Run 'bundle deploy' to deploy changes to your workspace === Re-deploy now succeeds: the role is managed, not re-created >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/inherited-role-bind-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 3 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -39,5 +37,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/inherited-role-bind-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/postgres_roles/inherited-role-conflict/output.txt b/acceptance/bundle/resources/postgres_roles/inherited-role-conflict/output.txt index 7db7aa88af0..ea93a401b1f 100644 --- a/acceptance/bundle/resources/postgres_roles/inherited-role-conflict/output.txt +++ b/acceptance/bundle/resources/postgres_roles/inherited-role-conflict/output.txt @@ -2,13 +2,14 @@ === Deploy project, branch, and role >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/inherited-role-conflict-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_projects.my_project +created postgres_roles.my_role + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. === Unbind the role: it now exists on the branch but is no longer tracked by the bundle >>> [CLI] bundle deployment unbind my_role -Updating deployment state... === Plan after unbind: the bundle wants to (re-)create the role >>> [CLI] bundle plan @@ -19,7 +20,6 @@ Plan: 1 to add, 0 to change, 0 to delete, 2 unchanged === Re-deploy: creating the already-existing role fails >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/inherited-role-conflict-[UNIQUE_NAME]/default/files... -Deploying resources... Error: cannot create resources.postgres_roles.my_role: role with that name already exists (400 BAD_REQUEST) Endpoint: POST [DATABRICKS_URL]/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main/roles?role_id=test-role @@ -27,7 +27,6 @@ HTTP Status: 400 Bad Request API error_code: BAD_REQUEST API message: role with that name already exists -Updating deployment state... >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -44,7 +43,6 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/inherited-role-conflict-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. Exit code: 1 diff --git a/acceptance/bundle/resources/postgres_roles/recreate-postgres-role/output.txt b/acceptance/bundle/resources/postgres_roles/recreate-postgres-role/output.txt index c548dbd6361..f892e0e2010 100644 --- a/acceptance/bundle/resources/postgres_roles/recreate-postgres-role/output.txt +++ b/acceptance/bundle/resources/postgres_roles/recreate-postgres-role/output.txt @@ -35,9 +35,11 @@ Plan: 3 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-role-recreate-postgres-role-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_projects.my_project +created postgres_roles.my_role + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { @@ -113,9 +115,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 2 unchanged >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-role-recreate-postgres-role-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated postgres_roles.my_role + +Deploy: 1 created, 0 changed, 1 deleted, 2 unchanged. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { @@ -171,8 +173,7 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-role-recreate-postgres-role-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { diff --git a/acceptance/bundle/resources/postgres_roles/recreate/output.txt b/acceptance/bundle/resources/postgres_roles/recreate/output.txt index a9a964e0485..10e9a79f582 100644 --- a/acceptance/bundle/resources/postgres_roles/recreate/output.txt +++ b/acceptance/bundle/resources/postgres_roles/recreate/output.txt @@ -35,9 +35,11 @@ Plan: 3 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-role-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_projects.my_project +created postgres_roles.my_role + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { @@ -113,9 +115,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 2 unchanged >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-role-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated postgres_roles.my_role + +Deploy: 1 created, 0 changed, 1 deleted, 2 unchanged. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { @@ -171,8 +173,7 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-role-recreate-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. >>> print_requests.py --unique --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ { diff --git a/acceptance/bundle/resources/postgres_roles/update/output.txt b/acceptance/bundle/resources/postgres_roles/update/output.txt index 098d20ca766..9ae7b20c171 100644 --- a/acceptance/bundle/resources/postgres_roles/update/output.txt +++ b/acceptance/bundle/resources/postgres_roles/update/output.txt @@ -20,9 +20,11 @@ Plan: 3 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-role-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_branches.main +created postgres_projects.my_project +created postgres_roles.my_role + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -52,9 +54,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 3 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-role-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 3 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -99,9 +99,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-role-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_roles.my_role + +Deploy: 0 created, 1 changed, 0 deleted, 2 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -135,9 +135,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 2 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-postgres-role-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated postgres_roles.my_role + +Deploy: 0 created, 1 changed, 0 deleted, 2 unchanged. >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ @@ -175,5 +175,4 @@ All data stored in them will be permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-postgres-role-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/postgres_synced_tables/basic/output.txt b/acceptance/bundle/resources/postgres_synced_tables/basic/output.txt index 9eef01a742a..7576880765b 100644 --- a/acceptance/bundle/resources/postgres_synced_tables/basic/output.txt +++ b/acceptance/bundle/resources/postgres_synced_tables/basic/output.txt @@ -38,9 +38,12 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-synced-table-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_catalogs.my_catalog +created postgres_projects.my_project +created postgres_synced_tables.my_table +created schemas.pipeline_storage + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] postgres get-synced-table synced_tables/lakebase_test_[UNIQUE_NAME].public.trips_synced { @@ -90,6 +93,5 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-synced-table-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 4 deleted. Cleaning up temporary source table diff --git a/acceptance/bundle/resources/postgres_synced_tables/recreate/output.txt b/acceptance/bundle/resources/postgres_synced_tables/recreate/output.txt index 7e2924062df..2f2ff510c01 100644 --- a/acceptance/bundle/resources/postgres_synced_tables/recreate/output.txt +++ b/acceptance/bundle/resources/postgres_synced_tables/recreate/output.txt @@ -5,9 +5,12 @@ Creating temporary source table: main.source_[UNIQUE_NAME].trips_source >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/recreate-postgres-synced-table-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created postgres_catalogs.my_catalog +created postgres_projects.my_project +created postgres_synced_tables.my_table +created schemas.pipeline_storage + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan recreate postgres_synced_tables.my_table @@ -16,9 +19,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 3 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/recreate-postgres-synced-table-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated postgres_synced_tables.my_table + +Deploy: 1 created, 0 changed, 1 deleted, 3 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -36,6 +39,5 @@ all their branches, databases, and endpoints. All data stored in them will be pe All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/recreate-postgres-synced-table-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 4 deleted. Cleaning up temporary source table diff --git a/acceptance/bundle/resources/quality_monitors/change_assets_dir/out.deploy.direct.txt b/acceptance/bundle/resources/quality_monitors/change_assets_dir/out.deploy.direct.txt index 1268e736e17..3c05b391cd0 100644 --- a/acceptance/bundle/resources/quality_monitors/change_assets_dir/out.deploy.direct.txt +++ b/acceptance/bundle/resources/quality_monitors/change_assets_dir/out.deploy.direct.txt @@ -1,6 +1,6 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated quality_monitors.monitor1 + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/quality_monitors/change_assets_dir/out.deploy.terraform.txt b/acceptance/bundle/resources/quality_monitors/change_assets_dir/out.deploy.terraform.txt index 99c0d7d2d86..3314597c2e6 100644 --- a/acceptance/bundle/resources/quality_monitors/change_assets_dir/out.deploy.terraform.txt +++ b/acceptance/bundle/resources/quality_monitors/change_assets_dir/out.deploy.terraform.txt @@ -1,7 +1,6 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default/files... -Deploying resources... Error: terraform apply: exit status 1 Error: Provider produced inconsistent result after apply @@ -17,6 +16,5 @@ This is a bug in the provider, which should be reported in the provider's own issue tracker. -Updating deployment state... Exit code: 1 diff --git a/acceptance/bundle/resources/quality_monitors/change_assets_dir/output.txt b/acceptance/bundle/resources/quality_monitors/change_assets_dir/output.txt index 08f6c53ae17..fd9233a3a52 100644 --- a/acceptance/bundle/resources/quality_monitors/change_assets_dir/output.txt +++ b/acceptance/bundle/resources/quality_monitors/change_assets_dir/output.txt @@ -16,9 +16,9 @@ Table main.qm_test_[UNIQUE_NAME].test_table is now visible (catalog_name=main) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created quality_monitors.monitor1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged @@ -31,5 +31,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/quality_monitors/change_output_schema_name/output.txt b/acceptance/bundle/resources/quality_monitors/change_output_schema_name/output.txt index d67ee41975f..fb40130f25e 100644 --- a/acceptance/bundle/resources/quality_monitors/change_output_schema_name/output.txt +++ b/acceptance/bundle/resources/quality_monitors/change_output_schema_name/output.txt @@ -16,9 +16,9 @@ Table main.qm_test_[UNIQUE_NAME].test_table is now visible (catalog_name=main) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created quality_monitors.monitor1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged @@ -32,9 +32,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated quality_monitors.monitor1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py ^//import-file/ ^//workspace/ ^//telemetry-ext @@ -47,5 +47,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/quality_monitors/change_table_name/out.deploy.direct.txt b/acceptance/bundle/resources/quality_monitors/change_table_name/out.deploy.direct.txt index 1268e736e17..3c05b391cd0 100644 --- a/acceptance/bundle/resources/quality_monitors/change_table_name/out.deploy.direct.txt +++ b/acceptance/bundle/resources/quality_monitors/change_table_name/out.deploy.direct.txt @@ -1,6 +1,6 @@ >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated quality_monitors.monitor1 + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/quality_monitors/change_table_name/output.txt b/acceptance/bundle/resources/quality_monitors/change_table_name/output.txt index 879222aa8a4..1dd2aba81c4 100644 --- a/acceptance/bundle/resources/quality_monitors/change_table_name/output.txt +++ b/acceptance/bundle/resources/quality_monitors/change_table_name/output.txt @@ -16,9 +16,9 @@ Table main.qm_test_[UNIQUE_NAME].test_table_2 is now visible (catalog_name=main) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created quality_monitors.monitor1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged @@ -31,5 +31,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/quality_monitors/create/out.deploy.direct.txt b/acceptance/bundle/resources/quality_monitors/create/out.deploy.direct.txt index af5c31de3b1..a94a5cf3f63 100644 --- a/acceptance/bundle/resources/quality_monitors/create/out.deploy.direct.txt +++ b/acceptance/bundle/resources/quality_monitors/create/out.deploy.direct.txt @@ -1,6 +1,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created quality_monitors.monitor1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/quality_monitors/create/out.deploy.terraform.txt b/acceptance/bundle/resources/quality_monitors/create/out.deploy.terraform.txt index af5c31de3b1..a94a5cf3f63 100644 --- a/acceptance/bundle/resources/quality_monitors/create/out.deploy.terraform.txt +++ b/acceptance/bundle/resources/quality_monitors/create/out.deploy.terraform.txt @@ -1,6 +1,6 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created quality_monitors.monitor1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/resources/quality_monitors/create/output.txt b/acceptance/bundle/resources/quality_monitors/create/output.txt index 8037d5ec9cc..e3c356a724f 100644 --- a/acceptance/bundle/resources/quality_monitors/create/output.txt +++ b/acceptance/bundle/resources/quality_monitors/create/output.txt @@ -26,5 +26,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/quality-monitor-update-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/registered_models/basic/output.txt b/acceptance/bundle/resources/registered_models/basic/output.txt index 8ba7d5758bd..5b3493976e7 100644 --- a/acceptance/bundle/resources/registered_models/basic/output.txt +++ b/acceptance/bundle/resources/registered_models/basic/output.txt @@ -26,9 +26,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created registered_models.my_registered_model + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] registered-models get main.default.my-registered-model-[UNIQUE_NAME] { @@ -46,9 +46,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated registered_models.my_registered_model + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> [CLI] registered-models get main.default.my-registered-model-[UNIQUE_NAME] { @@ -66,9 +66,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated registered_models.my_registered_model + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> [CLI] registered-models get main.default.my-registered-model-updated-[UNIQUE_NAME] { @@ -86,9 +86,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated registered_models.my_registered_model + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> [CLI] registered-models get mycatalog-[UNIQUE_NAME].default.my-registered-model-updated-[UNIQUE_NAME] { @@ -106,9 +106,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated registered_models.my_registered_model + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> [CLI] registered-models get mycatalog-[UNIQUE_NAME].myschema-[UNIQUE_NAME].my-registered-model-updated-[UNIQUE_NAME] { @@ -124,8 +124,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-registered-models-basic-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> [CLI] schemas delete mycatalog-[UNIQUE_NAME].myschema-[UNIQUE_NAME] --force diff --git a/acceptance/bundle/resources/schemas/auto-approve/output.txt b/acceptance/bundle/resources/schemas/auto-approve/output.txt index 375c94fe652..4d7d8a04c17 100644 --- a/acceptance/bundle/resources/schemas/auto-approve/output.txt +++ b/acceptance/bundle/resources/schemas/auto-approve/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo +created schemas.bar + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Assert the schema is created >>> [CLI] schemas get main.test-schema-[UNIQUE_NAME] @@ -77,8 +78,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 2 deleted. === Assert the schema is deleted Exit code: 1 diff --git a/acceptance/bundle/resources/schemas/drift/managed_properties/output.txt b/acceptance/bundle/resources/schemas/drift/managed_properties/output.txt index 50274732725..4c60c44a730 100644 --- a/acceptance/bundle/resources/schemas/drift/managed_properties/output.txt +++ b/acceptance/bundle/resources/schemas/drift/managed_properties/output.txt @@ -2,9 +2,9 @@ === Initial deployment >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.schema1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Plan is a no-op despite UC auto-populating managed properties >>> [CLI] bundle plan @@ -26,9 +26,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged === Redeploy is a no-op (no UpdateSchema call) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py //unity json.method = "POST"; diff --git a/acceptance/bundle/resources/schemas/recreate/output.txt b/acceptance/bundle/resources/schemas/recreate/output.txt index 1b1e3a3f9cd..4c916e954a8 100644 --- a/acceptance/bundle/resources/schemas/recreate/output.txt +++ b/acceptance/bundle/resources/schemas/recreate/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.schema1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //unity { @@ -40,9 +40,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/defaul This action will result in the deletion or recreation of the following UC schemas. Any underlying data may be lost: recreate resources.schemas.schema1 -Deploying resources... -Updating deployment state... -Deployment complete! +recreated schemas.schema1 + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests.py //unity { diff --git a/acceptance/bundle/resources/schemas/update/output.txt b/acceptance/bundle/resources/schemas/update/output.txt index d8d35b6bf4a..20f90196d50 100644 --- a/acceptance/bundle/resources/schemas/update/output.txt +++ b/acceptance/bundle/resources/schemas/update/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.schema1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //unity { @@ -22,9 +22,9 @@ schemas schema1 id='main.myschema' name='myschema' catalog_name='main' comment=' >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated schemas.schema1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //unity json.method = "PATCH"; @@ -37,9 +37,9 @@ schemas schema1 id='main.myschema' name='myschema' catalog_name='main' comment=' >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated schemas.schema1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //unity json.method = "PATCH"; diff --git a/acceptance/bundle/resources/secret_scopes/backend-type/output.txt b/acceptance/bundle/resources/secret_scopes/backend-type/output.txt index 732a5db3602..7fa3e7205ae 100644 --- a/acceptance/bundle/resources/secret_scopes/backend-type/output.txt +++ b/acceptance/bundle/resources/secret_scopes/backend-type/output.txt @@ -1,9 +1,6 @@ ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-secret-scope-azure-backend/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> print_requests.py //secrets { diff --git a/acceptance/bundle/resources/secret_scopes/backend-type/script b/acceptance/bundle/resources/secret_scopes/backend-type/script index 571f95bc0c9..a81200b2b9f 100644 --- a/acceptance/bundle/resources/secret_scopes/backend-type/script +++ b/acceptance/bundle/resources/secret_scopes/backend-type/script @@ -1,2 +1,2 @@ -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace print_requests.py //secrets diff --git a/acceptance/bundle/resources/secret_scopes/basic/output.txt b/acceptance/bundle/resources/secret_scopes/basic/output.txt index 9b6f7f340a5..efadaacbfec 100644 --- a/acceptance/bundle/resources/secret_scopes/basic/output.txt +++ b/acceptance/bundle/resources/secret_scopes/basic/output.txt @@ -2,11 +2,8 @@ === create the secret scope >>> [CLI] bundle plan -o json ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/secret-scope-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] secrets list-scopes -o json { @@ -58,11 +55,8 @@ Deployment complete! === update the name of the scope (should recreate) >>> [CLI] bundle plan -o json ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/secret-scope-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> print_requests.py //secrets @@ -105,5 +99,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/secret-scope-basic-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/secret_scopes/basic/script b/acceptance/bundle/resources/secret_scopes/basic/script index ad967e1ba27..88545dacb54 100755 --- a/acceptance/bundle/resources/secret_scopes/basic/script +++ b/acceptance/bundle/resources/secret_scopes/basic/script @@ -10,7 +10,7 @@ trap cleanup EXIT title "create the secret scope" trace $CLI bundle plan -o json | gron.py --sort-arrays acls > out.plan1.$DATABRICKS_BUNDLE_ENGINE.txt -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' scope_name=$($CLI bundle summary --output json | jq -r '.resources.secret_scopes.my_scope.name') trace $CLI secrets list-scopes -o json | jq ".[] | select(.name == \"$scope_name\")" @@ -27,7 +27,7 @@ export SECRET_SCOPE_NAME="test-scope-$UNIQUE_NAME-2" envsubst < databricks.yml.tmpl > databricks.yml trace $CLI bundle plan -o json | gron.py --sort-arrays acls > out.plan2.$DATABRICKS_BUNDLE_ENGINE.txt -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' # Capture API requests for verification. Terraform cleans up ACLs before deleting the scope, but direct does not, hence the difference in requests. trace print_requests.py //secrets > out.recreate-requests.$DATABRICKS_BUNDLE_ENGINE.txt diff --git a/acceptance/bundle/resources/secret_scopes/delete_scope/output.txt b/acceptance/bundle/resources/secret_scopes/delete_scope/output.txt index 18025f0a0fd..fb191425af5 100644 --- a/acceptance/bundle/resources/secret_scopes/delete_scope/output.txt +++ b/acceptance/bundle/resources/secret_scopes/delete_scope/output.txt @@ -1,16 +1,10 @@ === create the secret scope ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/secret-scope-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/secret-scope-basic-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -18,5 +12,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/secret-scope-basic-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/secret_scopes/delete_scope/script b/acceptance/bundle/resources/secret_scopes/delete_scope/script index b12e98775a3..34b3e660c40 100755 --- a/acceptance/bundle/resources/secret_scopes/delete_scope/script +++ b/acceptance/bundle/resources/secret_scopes/delete_scope/script @@ -7,12 +7,12 @@ cleanup() { trap cleanup EXIT title "create the secret scope" -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' grep -v DELETE < databricks.yml > databricks.yml.tmp && mv databricks.yml.tmp databricks.yml trace $CLI bundle plan &> out.plan.$DATABRICKS_BUNDLE_ENGINE.txt rm out.requests.txt -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace print_requests.py '^//import-file/' '^//workspace/' '^//telemetry-ext' &> out.deploy.requests.txt diff --git a/acceptance/bundle/resources/secret_scopes/permissions-collapse/output.txt b/acceptance/bundle/resources/secret_scopes/permissions-collapse/output.txt index b487f27076f..b4972881147 100644 --- a/acceptance/bundle/resources/secret_scopes/permissions-collapse/output.txt +++ b/acceptance/bundle/resources/secret_scopes/permissions-collapse/output.txt @@ -4,9 +4,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/secret-scope-collapse-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created secret_scopes.my_scope +created secret_scopes.my_scope.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] secrets list-scopes -o json { @@ -26,5 +27,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/secret-scope-collapse-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/secret_scopes/permissions/output.txt b/acceptance/bundle/resources/secret_scopes/permissions/output.txt index 8ea0a7cfe8e..99680a96ecc 100644 --- a/acceptance/bundle/resources/secret_scopes/permissions/output.txt +++ b/acceptance/bundle/resources/secret_scopes/permissions/output.txt @@ -5,11 +5,8 @@ === create secret scope with permissions >>> [CLI] bundle plan ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/secret-scope-permissions-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] secrets list-scopes -o json { @@ -26,11 +23,8 @@ Deployment complete! === update permissions (remove sp, change permission for user, add users and remove deco-test-group) >>> [CLI] bundle plan ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/secret-scope-permissions-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] secrets list-acls test-scope-permissions-[UNIQUE_NAME] {"permission":"MANAGE","principal":"[USERNAME]"} @@ -40,11 +34,8 @@ Deployment complete! === change scope name (should recreate scope and update permissions) >>> [CLI] bundle plan ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/secret-scope-permissions-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] secrets list-scopes -o json { @@ -63,5 +54,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/secret-scope-permissions-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/secret_scopes/permissions/script b/acceptance/bundle/resources/secret_scopes/permissions/script index 2b866baa75b..68575414619 100755 --- a/acceptance/bundle/resources/secret_scopes/permissions/script +++ b/acceptance/bundle/resources/secret_scopes/permissions/script @@ -37,7 +37,7 @@ trap cleanup EXIT title "create secret scope with permissions" trace $CLI bundle plan > out.plan.create.txt -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' scope_name=$($CLI bundle summary --output json | jq -r '.resources.secret_scopes.my_scope.name') trace $CLI secrets list-scopes -o json | jq ".[] | select(.name == \"$scope_name\")" @@ -61,14 +61,14 @@ resources: EOF envsubst < databricks.yml.tmpl > databricks.yml trace $CLI bundle plan > out.plan.update.txt -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' trace $CLI secrets list-acls $scope_name | jq -c '.[]' | sort title "change scope name (should recreate scope and update permissions)" export SECRET_SCOPE_NAME="test-scope-permissions-$UNIQUE_NAME-2" envsubst < databricks.yml.tmpl > databricks.yml trace $CLI bundle plan > out.plan.recreate.$DATABRICKS_BUNDLE_ENGINE.txt -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' scope_name=$($CLI bundle summary --output json | jq -r '.resources.secret_scopes.my_scope.name') trace $CLI secrets list-scopes -o json | jq ".[] | select(.name == \"$scope_name\")" trace $CLI secrets list-acls $scope_name | jq -c '.[]' | sort diff --git a/acceptance/bundle/resources/sql_warehouses/lifecycle-started-toggle/output.txt b/acceptance/bundle/resources/sql_warehouses/lifecycle-started-toggle/output.txt index b4551a6ba04..22a456e495f 100644 --- a/acceptance/bundle/resources/sql_warehouses/lifecycle-started-toggle/output.txt +++ b/acceptance/bundle/resources/sql_warehouses/lifecycle-started-toggle/output.txt @@ -2,9 +2,9 @@ === Deploy with started=false: warehouse created and then stopped >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created sql_warehouses.mywarehouse + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //sql/warehouses { @@ -32,9 +32,9 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated sql_warehouses.mywarehouse + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //sql/warehouses { @@ -50,9 +50,9 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated sql_warehouses.mywarehouse + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //sql/warehouses { @@ -69,5 +69,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/sql_warehouses/lifecycle-started/output.txt b/acceptance/bundle/resources/sql_warehouses/lifecycle-started/output.txt index ee2c137c200..7984a8d37fe 100644 --- a/acceptance/bundle/resources/sql_warehouses/lifecycle-started/output.txt +++ b/acceptance/bundle/resources/sql_warehouses/lifecycle-started/output.txt @@ -2,9 +2,9 @@ === Deploy with started=true: warehouse created and running >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created sql_warehouses.mywarehouse + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //sql/warehouses { @@ -35,9 +35,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged === Deploy fixes the drift: warehouse restarted >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated sql_warehouses.mywarehouse + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //sql/warehouses { @@ -60,9 +60,7 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py //sql/warehouses { @@ -78,9 +76,9 @@ Deployment complete! >>> errcode [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated sql_warehouses.mywarehouse + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //sql/warehouses { @@ -97,5 +95,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/sql_warehouses/output.txt b/acceptance/bundle/resources/sql_warehouses/output.txt index b751bc3c0b0..e4fdb571690 100644 --- a/acceptance/bundle/resources/sql_warehouses/output.txt +++ b/acceptance/bundle/resources/sql_warehouses/output.txt @@ -36,9 +36,9 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test_sql_warehouse/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created sql_warehouses.test_sql_warehouse + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Verify the create request >>> jq select(.method == "POST" and (.path | contains("/sql/warehouses"))) out.requests.txt @@ -74,9 +74,9 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test_sql_warehouse/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated sql_warehouses.test_sql_warehouse + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. === Verify the update request >>> jq select(.method == "POST" and (.path | contains("/sql/warehouses")) and (.body."name" == "sql_warehouse_name_2")) | del(.body.creator_name, .body.warehouse_type) out.requests.txt @@ -114,8 +114,7 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test_sql_warehouse/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. === Verify the destroy request >>> jq select(.method == "DELETE" and (.path | contains("/sql/warehouses"))) out.requests.txt diff --git a/acceptance/bundle/resources/synced_database_tables/basic/output.txt b/acceptance/bundle/resources/synced_database_tables/basic/output.txt index b1fac3c7678..15c86ad6dd6 100644 --- a/acceptance/bundle/resources/synced_database_tables/basic/output.txt +++ b/acceptance/bundle/resources/synced_database_tables/basic/output.txt @@ -34,9 +34,11 @@ Validation OK! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-synced-table-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created database_catalogs.my_catalog +created database_instances.my_instance +created synced_database_tables.my_synced_table + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle summary @@ -60,6 +62,5 @@ The synced data in the destination database will be lost (the source table is pr All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-synced-table-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. Cleaning up temporary source table diff --git a/acceptance/bundle/resources/synced_database_tables/recreate/output.txt b/acceptance/bundle/resources/synced_database_tables/recreate/output.txt index 49b3db00e4e..ca7497cbfdd 100644 --- a/acceptance/bundle/resources/synced_database_tables/recreate/output.txt +++ b/acceptance/bundle/resources/synced_database_tables/recreate/output.txt @@ -1,9 +1,11 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-synced-recreate-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created database_catalogs.my_catalog +created database_instances.my_instance +created synced_database_tables.my_synced_table + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. === Change an immutable synced-table field: no update API, so the plan recreates it >>> [CLI] bundle plan @@ -17,9 +19,9 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-sy This action will result in the deletion or recreation of the following synced database tables. The synced data in the destination database will be lost (the source table is preserved): recreate resources.synced_database_tables.my_synced_table -Deploying resources... -Updating deployment state... -Deployment complete! +recreated synced_database_tables.my_synced_table + +Deploy: 1 created, 0 changed, 1 deleted, 2 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -37,5 +39,4 @@ The synced data in the destination database will be lost (the source table is pr All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-lakebase-synced-recreate-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/vector_search_endpoints/basic/output.txt b/acceptance/bundle/resources/vector_search_endpoints/basic/output.txt index e9f27f65eb5..a064fa4a99e 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/basic/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/basic/output.txt @@ -22,9 +22,9 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-vs-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] vector-search-endpoints get-endpoint vs-endpoint-[UNIQUE_NAME] { @@ -52,5 +52,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-vs-endpoint-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/vector_search_endpoints/drift/budget_policy/output.txt b/acceptance/bundle/resources/vector_search_endpoints/drift/budget_policy/output.txt index eab9faca1b0..8836bf96a7f 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/drift/budget_policy/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/drift/budget_policy/output.txt @@ -2,9 +2,9 @@ === Initial deployment (no budget_policy_id) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-budget-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Simulate remote drift: set budget_policy_id outside the bundle >>> [CLI] vector-search-endpoints update-endpoint-budget-policy vs-endpoint-[UNIQUE_NAME] remote-policy @@ -22,5 +22,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-budget-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/vector_search_endpoints/drift/recreated_same_name/output.txt b/acceptance/bundle/resources/vector_search_endpoints/drift/recreated_same_name/output.txt index dece842119f..4a36b4a67f0 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/drift/recreated_same_name/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/drift/recreated_same_name/output.txt @@ -2,9 +2,10 @@ === Initial deployment >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-recreated-same-name-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint +created vector_search_endpoints.my_endpoint.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] vector-search-endpoints get-endpoint vs-endpoint-[UNIQUE_NAME] { @@ -40,9 +41,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 1 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-recreated-same-name-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint.permissions + +Deploy: 1 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] vector-search-endpoints get-endpoint vs-endpoint-[UNIQUE_NAME] { @@ -61,5 +62,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-recreated-same-name-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/output.txt b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/output.txt index 61502f2d894..d73c6c88926 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/output.txt @@ -2,9 +2,9 @@ === Initial deployment >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-target-qps-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Simulate remote drift: change target_qps to 5 outside the bundle >>> [CLI] vector-search-endpoints patch-endpoint vs-endpoint-[UNIQUE_NAME] --target-qps 5 @@ -33,9 +33,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged === Deploy restores target_qps to 1 >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-target-qps-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated vector_search_endpoints.my_endpoint + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //vector-search/endpoints { @@ -58,5 +58,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-target-qps-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/vector_search_endpoints/recreate/create-fails/output.txt b/acceptance/bundle/resources/vector_search_endpoints/recreate/create-fails/output.txt index 67b3cb6182c..946ccc28ea3 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/recreate/create-fails/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/recreate/create-fails/output.txt @@ -2,9 +2,10 @@ === Initial deploy creates two endpoints with distinct names >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/recreate-create-fails-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.blocker_endpoint +created vector_search_endpoints.my_endpoint + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Edit my_endpoint: rename onto blocker_endpoint's name and switch endpoint_type to trigger Recreate >>> update_file.py databricks.yml vs-endpoint-a-[UNIQUE_NAME] vs-endpoint-b-[UNIQUE_NAME] @@ -14,7 +15,6 @@ Deployment complete! === Deploy: Recreate of my_endpoint runs Delete (ok) then Create (409, name taken by blocker) >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/recreate-create-fails-[UNIQUE_NAME]/default/files... -Deploying resources... Error: cannot recreate resources.vector_search_endpoints.my_endpoint: Vector search endpoint with name vs-endpoint-b-[UNIQUE_NAME] already exists (409 RESOURCE_ALREADY_EXISTS) Endpoint: POST [DATABRICKS_URL]/api/2.0/vector-search/endpoints @@ -22,7 +22,6 @@ HTTP Status: 409 Conflict API error_code: RESOURCE_ALREADY_EXISTS API message: Vector search endpoint with name vs-endpoint-b-[UNIQUE_NAME] already exists -Updating deployment state... Exit code: 1 @@ -38,5 +37,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/recreate-create-fails-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/vector_search_endpoints/recreate/endpoint_type/output.txt b/acceptance/bundle/resources/vector_search_endpoints/recreate/endpoint_type/output.txt index c86cd5a682b..6428a2686c2 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/recreate/endpoint_type/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/recreate/endpoint_type/output.txt @@ -2,9 +2,9 @@ === Initial deployment with STANDARD endpoint_type >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/recreate-vs-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --keep //vector-search/endpoints @@ -18,9 +18,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 0 unchanged >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/recreate-vs-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated vector_search_endpoints.my_endpoint + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests.py --keep //vector-search/endpoints @@ -36,5 +36,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/recreate-vs-endpoint-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/vector_search_endpoints/update/budget_policy/output.txt b/acceptance/bundle/resources/vector_search_endpoints/update/budget_policy/output.txt index 3b2bb7bf1cf..ef5c54b91d5 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/update/budget_policy/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/update/budget_policy/output.txt @@ -2,9 +2,9 @@ === Initial deployment (no budget policy) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-budget-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --keep //vector-search/endpoints @@ -19,9 +19,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-budget-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated vector_search_endpoints.my_endpoint + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py --keep //vector-search/endpoints @@ -31,5 +31,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-budget-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/output.txt b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/output.txt index 5402cefc3af..886ca7c0c82 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/output.txt @@ -2,9 +2,10 @@ === Initial deployment >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-target-qps-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint +created vector_search_endpoints.my_endpoint.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //vector-search/endpoints //permissions @@ -25,9 +26,10 @@ Plan: 0 to add, 2 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-target-qps-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated vector_search_endpoints.my_endpoint +updated vector_search_endpoints.my_endpoint.permissions + +Deploy: 0 created, 2 changed, 0 deleted, 0 unchanged. >>> print_requests.py //vector-search/endpoints //permissions @@ -43,5 +45,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-target-qps-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/bundle/resources/vector_search_indexes/basic/output.txt b/acceptance/bundle/resources/vector_search_indexes/basic/output.txt index 8edb3be964e..dfd20d123c7 100644 --- a/acceptance/bundle/resources/vector_search_indexes/basic/output.txt +++ b/acceptance/bundle/resources/vector_search_indexes/basic/output.txt @@ -26,9 +26,10 @@ Resources: >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint +created vector_search_indexes.my_index + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] vector-search-indexes get-index main.default.vs_index_[UNIQUE_NAME] { @@ -68,5 +69,4 @@ For Direct Access indexes, all upserted vectors are permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/vector_search_indexes/drift/deleted_remotely/output.txt b/acceptance/bundle/resources/vector_search_indexes/drift/deleted_remotely/output.txt index 9b3d7aab90b..53f9c440f51 100644 --- a/acceptance/bundle/resources/vector_search_indexes/drift/deleted_remotely/output.txt +++ b/acceptance/bundle/resources/vector_search_indexes/drift/deleted_remotely/output.txt @@ -2,9 +2,10 @@ === Initial deployment >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-index-deleted-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint +created vector_search_indexes.my_index + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Simulate remote deletion >>> [CLI] vector-search-indexes delete-index main.default.vs_index_[UNIQUE_NAME] @@ -18,9 +19,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 1 unchanged === Deploy recreates the index >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-index-deleted-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_indexes.my_index + +Deploy: 1 created, 0 changed, 0 deleted, 1 unchanged. >>> [CLI] vector-search-indexes get-index main.default.vs_index_[UNIQUE_NAME] { @@ -42,5 +43,4 @@ For Direct Access indexes, all upserted vectors are permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/drift-vs-index-deleted-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/vector_search_indexes/drift/orphaned_endpoint/output.txt b/acceptance/bundle/resources/vector_search_indexes/drift/orphaned_endpoint/output.txt index 7d865eb14ea..aa2d984b485 100644 --- a/acceptance/bundle/resources/vector_search_indexes/drift/orphaned_endpoint/output.txt +++ b/acceptance/bundle/resources/vector_search_indexes/drift/orphaned_endpoint/output.txt @@ -2,9 +2,10 @@ === Initial deployment >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-index-orphaned-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.vs_endpoint +created vector_search_indexes.my_index + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Simulate remote endpoint deletion (index is orphaned, still exists by name) >>> [CLI] vector-search-endpoints delete-endpoint vs-endpoint-[UNIQUE_NAME] @@ -24,9 +25,10 @@ This action will result in the deletion or recreation of the following Vector Se Recreating a Delta Sync index re-runs the full embedding pipeline; recreating a Direct Access index drops all upserted vectors. Both can be expensive to rebuild: recreate resources.vector_search_indexes.my_index -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.vs_endpoint +recreated vector_search_indexes.my_index + +Deploy: 2 created, 0 changed, 1 deleted, 0 unchanged. >>> [CLI] vector-search-indexes get-index main.default.vs_index_[UNIQUE_NAME] { @@ -48,5 +50,4 @@ For Direct Access indexes, all upserted vectors are permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/drift-vs-index-orphaned-endpoint-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/vector_search_indexes/grants/select/output.txt b/acceptance/bundle/resources/vector_search_indexes/grants/select/output.txt index a425110276d..0c9fbd4262e 100644 --- a/acceptance/bundle/resources/vector_search_indexes/grants/select/output.txt +++ b/acceptance/bundle/resources/vector_search_indexes/grants/select/output.txt @@ -8,9 +8,11 @@ Plan: 3 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/vs-index-grants-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint +created vector_search_indexes.my_index +created vector_search_indexes.my_index.grants + +Deploy: 3 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan Plan: 0 to add, 0 to change, 0 to delete, 3 unchanged @@ -41,5 +43,4 @@ For Direct Access indexes, all upserted vectors are permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/vs-index-grants-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/vector_search_indexes/recreate/embedding_dimension/output.txt b/acceptance/bundle/resources/vector_search_indexes/recreate/embedding_dimension/output.txt index ebc663c33e7..7afa71b6c3e 100644 --- a/acceptance/bundle/resources/vector_search_indexes/recreate/embedding_dimension/output.txt +++ b/acceptance/bundle/resources/vector_search_indexes/recreate/embedding_dimension/output.txt @@ -2,9 +2,10 @@ === Initial deployment >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint +created vector_search_indexes.my_index + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --get --unique //vector-search/indexes @@ -23,9 +24,9 @@ This action will result in the deletion or recreation of the following Vector Se Recreating a Delta Sync index re-runs the full embedding pipeline; recreating a Direct Access index drops all upserted vectors. Both can be expensive to rebuild: recreate resources.vector_search_indexes.my_index -Deploying resources... -Updating deployment state... -Deployment complete! +recreated vector_search_indexes.my_index + +Deploy: 1 created, 0 changed, 1 deleted, 1 unchanged. >>> print_requests.py --get --unique //vector-search/indexes @@ -49,5 +50,4 @@ For Direct Access indexes, all upserted vectors are permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/vector_search_indexes/recreate/with_endpoint/output.txt b/acceptance/bundle/resources/vector_search_indexes/recreate/with_endpoint/output.txt index 2337a5251de..dcdf3519b3d 100644 --- a/acceptance/bundle/resources/vector_search_indexes/recreate/with_endpoint/output.txt +++ b/acceptance/bundle/resources/vector_search_indexes/recreate/with_endpoint/output.txt @@ -2,9 +2,10 @@ === Initial deployment with STANDARD endpoint_type >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-with-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint +created vector_search_indexes.my_index + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. === Change endpoint_type (recreates endpoint; index recreate cascade is not yet implemented) >>> update_file.py databricks.yml endpoint_type: STANDARD endpoint_type: STORAGE_OPTIMIZED @@ -108,9 +109,9 @@ Plan: 1 to add, 0 to change, 1 to delete, 1 unchanged >>> [CLI] bundle deploy --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-with-endpoint-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +recreated vector_search_endpoints.my_endpoint + +Deploy: 1 created, 0 changed, 1 deleted, 1 unchanged. >>> [CLI] vector-search-endpoints get-endpoint vs-endpoint-[UNIQUE_NAME] { @@ -139,9 +140,9 @@ This action will result in the deletion or recreation of the following Vector Se Recreating a Delta Sync index re-runs the full embedding pipeline; recreating a Direct Access index drops all upserted vectors. Both can be expensive to rebuild: recreate resources.vector_search_indexes.my_index -Deploying resources... -Updating deployment state... -Deployment complete! +recreated vector_search_indexes.my_index + +Deploy: 1 created, 0 changed, 1 deleted, 1 unchanged. >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -155,5 +156,4 @@ For Direct Access indexes, all upserted vectors are permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-vs-index-with-endpoint-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/vector_search_indexes/schema_normalization/output.txt b/acceptance/bundle/resources/vector_search_indexes/schema_normalization/output.txt index 6e46bc6c8bf..c92d1cdce69 100644 --- a/acceptance/bundle/resources/vector_search_indexes/schema_normalization/output.txt +++ b/acceptance/bundle/resources/vector_search_indexes/schema_normalization/output.txt @@ -1,9 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/vs-index-schema-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created vector_search_endpoints.my_endpoint +created vector_search_indexes.my_index + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] vector-search-indexes get-index main.default.vs_index_[UNIQUE_NAME] {"count":"bigint","id":"int","label":"string","score":"float","small":"smallint","tags":"array","tiny":"tinyint","vector":"array"} @@ -23,5 +24,4 @@ For Direct Access indexes, all upserted vectors are permanently lost: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/vs-index-schema-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/resources/volumes/change-comment/output.txt b/acceptance/bundle/resources/volumes/change-comment/output.txt index aeba16f2f30..19ecf746d51 100644 --- a/acceptance/bundle/resources/volumes/change-comment/output.txt +++ b/acceptance/bundle/resources/volumes/change-comment/output.txt @@ -16,9 +16,9 @@ Error: Resource catalog.VolumeInfo not found: main.myschema.myvolume >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created volumes.volume1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //unity { @@ -70,9 +70,9 @@ Deployment complete! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated volumes.volume1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //unity { @@ -99,8 +99,7 @@ is removed from the catalog, but the underlying files are not deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //unity { diff --git a/acceptance/bundle/resources/volumes/change-name/output.txt b/acceptance/bundle/resources/volumes/change-name/output.txt index 3a920af70a3..8112af3f6ad 100644 --- a/acceptance/bundle/resources/volumes/change-name/output.txt +++ b/acceptance/bundle/resources/volumes/change-name/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created volumes.volume1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //unity { @@ -43,9 +43,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +updated volumes.volume1 + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. >>> print_requests.py //unity { diff --git a/acceptance/bundle/resources/volumes/change-schema-name/output.txt b/acceptance/bundle/resources/volumes/change-schema-name/output.txt index bd196b0fb7e..c098ffc1973 100644 --- a/acceptance/bundle/resources/volumes/change-schema-name/output.txt +++ b/acceptance/bundle/resources/volumes/change-schema-name/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created volumes.volume1 + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //unity { @@ -49,9 +49,9 @@ For managed volumes, the files stored in the volume are also deleted from your cloud tenant within 30 days. For external volumes, the metadata about the volume is removed from the catalog, but the underlying files are not deleted: recreate resources.volumes.volume1 -Deploying resources... -Updating deployment state... -Deployment complete! +recreated volumes.volume1 + +Deploy: 1 created, 0 changed, 1 deleted, 0 unchanged. >>> print_requests.py //unity { diff --git a/acceptance/bundle/resources/volumes/recreate/output.txt b/acceptance/bundle/resources/volumes/recreate/output.txt index 5714559a602..84eb5a480ce 100644 --- a/acceptance/bundle/resources/volumes/recreate/output.txt +++ b/acceptance/bundle/resources/volumes/recreate/output.txt @@ -8,11 +8,8 @@ Workspace: Validation OK! ->>> [CLI] bundle deploy +>>> [CLI] bundle deploy -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-uc-volumes-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! === Assert the volume is created successfully >>> [CLI] volumes read main.schema1-[UNIQUE_NAME].my_volume @@ -53,7 +50,7 @@ To proceed, use --auto-approve after reviewing the plan above. Exit code: 1 === Successfully recreate the volume with --auto-approve ->>> [CLI] bundle deploy --var=schema_name=${resources.schemas.schema2.name} --auto-approve +>>> [CLI] bundle deploy --var=schema_name=${resources.schemas.schema2.name} --auto-approve -q Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-uc-volumes-[UNIQUE_NAME]/default/files... This action will result in the deletion or recreation of the following volumes. @@ -61,9 +58,6 @@ For managed volumes, the files stored in the volume are also deleted from your cloud tenant within 30 days. For external volumes, the metadata about the volume is removed from the catalog, but the underlying files are not deleted: recreate resources.volumes.foo -Deploying resources... -Updating deployment state... -Deployment complete! >>> [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -83,5 +77,4 @@ is removed from the catalog, but the underlying files are not deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-uc-volumes-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/resources/volumes/recreate/script b/acceptance/bundle/resources/volumes/recreate/script index 79f51d7d49f..d04daec019d 100644 --- a/acceptance/bundle/resources/volumes/recreate/script +++ b/acceptance/bundle/resources/volumes/recreate/script @@ -6,7 +6,7 @@ cleanup() { trap cleanup EXIT trace $CLI bundle validate -trace $CLI bundle deploy +trace $CLI bundle deploy -q 2>&1 | grep -v '^Deploy:' title "Assert the volume is created successfully" CATALOG_NAME="main" @@ -22,4 +22,4 @@ title "Recreation of the volume without --auto-approve should fail since prompti trace errcode $CLI bundle deploy --var=schema_name='${resources.schemas.schema2.name}' title "Successfully recreate the volume with --auto-approve" -trace $CLI bundle deploy --var=schema_name='${resources.schemas.schema2.name}' --auto-approve +trace $CLI bundle deploy --var=schema_name='${resources.schemas.schema2.name}' --auto-approve -q 2>&1 | grep -v '^Deploy:' diff --git a/acceptance/bundle/resources/volumes/remote-change-name/output.txt b/acceptance/bundle/resources/volumes/remote-change-name/output.txt index fb8551f5bc4..c3f3eb592d3 100644 --- a/acceptance/bundle/resources/volumes/remote-change-name/output.txt +++ b/acceptance/bundle/resources/volumes/remote-change-name/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created volumes.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] volumes update mycatalog.myschema.myname --json {"new_name": "my_new_name"} { diff --git a/acceptance/bundle/resources/volumes/remote-delete/output.txt b/acceptance/bundle/resources/volumes/remote-delete/output.txt index 5758e143d18..e43714945c0 100644 --- a/acceptance/bundle/resources/volumes/remote-delete/output.txt +++ b/acceptance/bundle/resources/volumes/remote-delete/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created volumes.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] volumes delete mycatalog.myschema.myname diff --git a/acceptance/bundle/resources/volumes/set-storage-location/out.deploy.direct.txt b/acceptance/bundle/resources/volumes/set-storage-location/out.deploy.direct.txt index 00fd1cddacd..7d4135d8afa 100644 --- a/acceptance/bundle/resources/volumes/set-storage-location/out.deploy.direct.txt +++ b/acceptance/bundle/resources/volumes/set-storage-location/out.deploy.direct.txt @@ -1,7 +1,6 @@ >>> musterr [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default/files... -Deploying resources... Error: cannot create resources.volumes.volume1: CreateVolume storage_location can not be provided. (400 INVALID_PARAMETER_VALUE) Endpoint: POST [DATABRICKS_URL]/api/2.1/unity-catalog/volumes @@ -9,4 +8,3 @@ HTTP Status: 400 Bad Request API error_code: INVALID_PARAMETER_VALUE API message: CreateVolume storage_location can not be provided. -Updating deployment state... diff --git a/acceptance/bundle/resources/volumes/set-storage-location/out.deploy.terraform.txt b/acceptance/bundle/resources/volumes/set-storage-location/out.deploy.terraform.txt index c79e8d6843c..4701fe19982 100644 --- a/acceptance/bundle/resources/volumes/set-storage-location/out.deploy.terraform.txt +++ b/acceptance/bundle/resources/volumes/set-storage-location/out.deploy.terraform.txt @@ -1,7 +1,6 @@ >>> musterr [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default/files... -Deploying resources... Error: terraform apply: exit status 1 Error: cannot create volume: CreateVolume storage_location can not be provided. @@ -12,4 +11,3 @@ Error: cannot create volume: CreateVolume storage_location can not be provided. -Updating deployment state... diff --git a/acceptance/bundle/resources/volumes/set-storage-location/output.txt b/acceptance/bundle/resources/volumes/set-storage-location/output.txt index d9bfc92f065..1c59538dd76 100644 --- a/acceptance/bundle/resources/volumes/set-storage-location/output.txt +++ b/acceptance/bundle/resources/volumes/set-storage-location/output.txt @@ -38,8 +38,7 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/testbundle-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py //unity { diff --git a/acceptance/bundle/resources/volumes/uppercase-name/out.deploy.direct.txt b/acceptance/bundle/resources/volumes/uppercase-name/out.deploy.direct.txt index 3f9698ea13a..7a0c2adad8e 100644 --- a/acceptance/bundle/resources/volumes/uppercase-name/out.deploy.direct.txt +++ b/acceptance/bundle/resources/volumes/uppercase-name/out.deploy.direct.txt @@ -1,7 +1,8 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.schema1 +created volumes.vol1 + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. { "method": "POST", "path": "/api/2.1/unity-catalog/schemas", @@ -56,6 +57,4 @@ Deployment complete! ] === Redeploy without changes - should be a no-op Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 2 unchanged. diff --git a/acceptance/bundle/resources/volumes/uppercase-name/out.deploy.terraform.txt b/acceptance/bundle/resources/volumes/uppercase-name/out.deploy.terraform.txt index 6c056acd2cb..df6b337d420 100644 --- a/acceptance/bundle/resources/volumes/uppercase-name/out.deploy.terraform.txt +++ b/acceptance/bundle/resources/volumes/uppercase-name/out.deploy.terraform.txt @@ -1,5 +1,4 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... -Deploying resources... Error: terraform apply: exit status 1 Error: Provider produced inconsistent final plan @@ -14,7 +13,6 @@ This is a bug in the provider, which should be reported in the provider's own issue tracker. -Updating deployment state... Exit code: 1 { diff --git a/acceptance/bundle/run/app-with-job/output.txt b/acceptance/bundle/run/app-with-job/output.txt index 19594302a86..630ac5ed9ac 100644 --- a/acceptance/bundle/run/app-with-job/output.txt +++ b/acceptance/bundle/run/app-with-job/output.txt @@ -11,6 +11,10 @@ Validation OK! >>> [CLI] bundle deploy --force-lock --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-with-job-[UNIQUE_NAME]/files... Deploying resources... +created apps.test_app +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. Updating deployment state... Deployment complete! @@ -85,6 +89,7 @@ env: >>> [CLI] bundle deploy --force-lock --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/app-with-job-[UNIQUE_NAME]/files... Deploying resources... +Deploy: 0 created, 0 changed, 0 deleted, 2 unchanged. Updating deployment state... Deployment complete! diff --git a/acceptance/bundle/run/basic/output.txt b/acceptance/bundle/run/basic/output.txt index 77a6a923e1d..eb74b981e5e 100644 --- a/acceptance/bundle/run/basic/output.txt +++ b/acceptance/bundle/run/basic/output.txt @@ -8,9 +8,9 @@ Exit code: 1 === deploy and run resource >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/caterpillar/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run foo Run URL: [DATABRICKS_URL]/jobs/[NUMID]/runs/[NUMID]?o=[NUMID] diff --git a/acceptance/bundle/run/jobs/partial_run/output.txt b/acceptance/bundle/run/jobs/partial_run/output.txt index 169f0b58089..0cff0409af7 100644 --- a/acceptance/bundle/run/jobs/partial_run/output.txt +++ b/acceptance/bundle/run/jobs/partial_run/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/partial_run/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run my_job --only task_1 Run URL: [DATABRICKS_URL]/jobs/[NUMID]/runs/[NUMID]?o=[NUMID] diff --git a/acceptance/bundle/run/refresh-flags/output.txt b/acceptance/bundle/run/refresh-flags/output.txt index b2686733f3f..0b78a913e52 100644 --- a/acceptance/bundle/run/refresh-flags/output.txt +++ b/acceptance/bundle/run/refresh-flags/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-run-flags/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Running pipeline with --refresh flag and specific tables >>> [CLI] bundle run my_pipeline --refresh table1,table2 diff --git a/acceptance/bundle/run/state-wiped/output.txt b/acceptance/bundle/run/state-wiped/output.txt index ff2f702bf28..3672ced11f4 100644 --- a/acceptance/bundle/run/state-wiped/output.txt +++ b/acceptance/bundle/run/state-wiped/output.txt @@ -5,9 +5,9 @@ Error: resource not found or not yet deployed. Did you forget to run 'databricks >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/caterpillar/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle run foo Run URL: [DATABRICKS_URL]/jobs/[NUMID]/runs/[NUMID]?o=[NUMID] diff --git a/acceptance/bundle/run_as/job_default/output.txt b/acceptance/bundle/run_as/job_default/output.txt index 137a49cbd82..8544e44c130 100644 --- a/acceptance/bundle/run_as/job_default/output.txt +++ b/acceptance/bundle/run_as/job_default/output.txt @@ -3,6 +3,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as_job_default_[UNIQUE_NAME]/default/files... Deploying resources... +created jobs.job_with_run_as + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. Updating deployment state... Deployment complete! @@ -55,6 +58,9 @@ Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as_job_default_[UNIQUE_NAME]/default/files... Deploying resources... +updated jobs.job_with_run_as + +Deploy: 0 created, 1 changed, 0 deleted, 0 unchanged. Updating deployment state... Deployment complete! diff --git a/acceptance/bundle/run_as/pipelines/regular_user/output.txt b/acceptance/bundle/run_as/pipelines/regular_user/output.txt index 6baedcbb908..c19d3ab0c68 100644 --- a/acceptance/bundle/run_as/pipelines/regular_user/output.txt +++ b/acceptance/bundle/run_as/pipelines/regular_user/output.txt @@ -18,9 +18,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy -t t_user_name Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as/t_user_name/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.nyc_taxi_pipeline +created pipelines.nyc_taxi_pipeline.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. \nProcessing target: t_user_name_different >>> [CLI] bundle validate -t t_user_name_different @@ -40,9 +41,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy -t t_user_name_different Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as/t_user_name_different/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.nyc_taxi_pipeline +created pipelines.nyc_taxi_pipeline.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. \nProcessing target: t_service_principal_name >>> [CLI] bundle validate -t t_service_principal_name @@ -62,9 +64,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy -t t_service_principal_name Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as/t_service_principal_name/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.nyc_taxi_pipeline +created pipelines.nyc_taxi_pipeline.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. \nProcessing target: t_service_principal_name_different >>> [CLI] bundle validate -t t_service_principal_name_different @@ -84,6 +87,7 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy -t t_service_principal_name_different Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as/t_service_principal_name_different/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.nyc_taxi_pipeline +created pipelines.nyc_taxi_pipeline.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/run_as/pipelines/service_principal/output.txt b/acceptance/bundle/run_as/pipelines/service_principal/output.txt index 6baedcbb908..c19d3ab0c68 100644 --- a/acceptance/bundle/run_as/pipelines/service_principal/output.txt +++ b/acceptance/bundle/run_as/pipelines/service_principal/output.txt @@ -18,9 +18,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy -t t_user_name Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as/t_user_name/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.nyc_taxi_pipeline +created pipelines.nyc_taxi_pipeline.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. \nProcessing target: t_user_name_different >>> [CLI] bundle validate -t t_user_name_different @@ -40,9 +41,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy -t t_user_name_different Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as/t_user_name_different/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.nyc_taxi_pipeline +created pipelines.nyc_taxi_pipeline.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. \nProcessing target: t_service_principal_name >>> [CLI] bundle validate -t t_service_principal_name @@ -62,9 +64,10 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy -t t_service_principal_name Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as/t_service_principal_name/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.nyc_taxi_pipeline +created pipelines.nyc_taxi_pipeline.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. \nProcessing target: t_service_principal_name_different >>> [CLI] bundle validate -t t_service_principal_name_different @@ -84,6 +87,7 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy -t t_service_principal_name_different Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/run_as/t_service_principal_name_different/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.nyc_taxi_pipeline +created pipelines.nyc_taxi_pipeline.permissions + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/scripts/output.txt b/acceptance/bundle/scripts/output.txt index 68afb2feccb..d4fd322a9dc 100644 --- a/acceptance/bundle/scripts/output.txt +++ b/acceptance/bundle/scripts/output.txt @@ -43,8 +43,7 @@ Executing 'predeploy' script from myscript.py 0 predeploy: hello stdout! from myscript.py 0 predeploy: hello stderr! Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/scripts/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. Executing 'postdeploy' script from myscript.py 0 postdeploy: hello stdout! from myscript.py 0 postdeploy: hello stderr! diff --git a/acceptance/bundle/scripts/restricted-execution/output.txt b/acceptance/bundle/scripts/restricted-execution/output.txt index f377edba7cb..fa8760665d8 100644 --- a/acceptance/bundle/scripts/restricted-execution/output.txt +++ b/acceptance/bundle/scripts/restricted-execution/output.txt @@ -12,8 +12,7 @@ postbuild value_from_env Executing 'predeploy' script predeploy value_from_env Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/scripts_with_restricted_execution/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. Executing 'postdeploy' script postdeploy value_from_env diff --git a/acceptance/bundle/select/basic/output.txt b/acceptance/bundle/select/basic/output.txt index 56c20a404d4..f1c1810df1c 100644 --- a/acceptance/bundle/select/basic/output.txt +++ b/acceptance/bundle/select/basic/output.txt @@ -2,31 +2,32 @@ >>> [CLI] bundle plan --select bar create jobs.bar -Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged +Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged, 2 not selected >>> [CLI] bundle plan --select jobs.bar --select jobs.baz create jobs.bar create jobs.baz -Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged +Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged, 1 not selected >>> [CLI] bundle plan --select jobs.bar,jobs.baz create jobs.bar create jobs.baz -Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged +Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged, 1 not selected >>> [CLI] bundle plan --select jobs.foo create jobs.bar create jobs.foo -Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged +Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged, 1 not selected === bundle deploy --select jobs.foo Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/select-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.bar +created jobs.foo + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged, 1 not selected. === Telemetry: select_used true @@ -101,9 +102,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 2 unchanged === Full deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/select-[UNIQUE_NAME]/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.baz + +Deploy: 1 created, 0 changed, 0 deleted, 2 unchanged. >>> print_requests.py --sort //jobs { @@ -137,5 +138,4 @@ The following resources will be deleted: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/select-[UNIQUE_NAME]/default -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/bundle/state/basic/output.txt b/acceptance/bundle/state/basic/output.txt index ac13a7ba417..d78f265244f 100644 --- a/acceptance/bundle/state/basic/output.txt +++ b/acceptance/bundle/state/basic/output.txt @@ -1,12 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/state/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/state/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. diff --git a/acceptance/bundle/state/engine_default/output.txt b/acceptance/bundle/state/engine_default/output.txt index d9e53461c6d..6d1230b3795 100644 --- a/acceptance/bundle/state/engine_default/output.txt +++ b/acceptance/bundle/state/engine_default/output.txt @@ -3,9 +3,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-engine-default/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //api/2.1/unity-catalog/schemas "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" diff --git a/acceptance/bundle/state/force_pull_commands/output.txt b/acceptance/bundle/state/force_pull_commands/output.txt index b5ecce5e26a..cf6b01471f1 100644 --- a/acceptance/bundle/state/force_pull_commands/output.txt +++ b/acceptance/bundle/state/force_pull_commands/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/force-pull-commands/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Use a fake browser that just prints the URL it would have opened === bundle summary without --force-pull: no remote state read diff --git a/acceptance/bundle/state/permission_level_migration/output.txt b/acceptance/bundle/state/permission_level_migration/output.txt index f289e0bc42a..7c1bcdc7ed2 100644 --- a/acceptance/bundle/state/permission_level_migration/output.txt +++ b/acceptance/bundle/state/permission_level_migration/output.txt @@ -5,9 +5,10 @@ === Deploy (migrates state) >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job +updated jobs.my_job.permissions + +Deploy: 1 created, 1 changed, 0 deleted, 0 unchanged. === Print state after deploy >>> print_state.py diff --git a/acceptance/bundle/state/state_present/output.txt b/acceptance/bundle/state/state_present/output.txt index 60a8631859a..e00482a4f20 100644 --- a/acceptance/bundle/state/state_present/output.txt +++ b/acceptance/bundle/state/state_present/output.txt @@ -3,18 +3,16 @@ >>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //api/2.1/unity-catalog/schemas "databricks-tf-provider/1.118.0 databricks-sdk-go/[SDK_VERSION] go/1.25.8 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py --get //api/2.1/unity-catalog/schemas "databricks-tf-provider/1.118.0 databricks-sdk-go/[SDK_VERSION] go/1.25.8 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" @@ -43,9 +41,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle destroy --auto-approve The following resources will be deleted: @@ -56,14 +54,13 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py //api/2.1/unity-catalog/schemas "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" @@ -74,15 +71,11 @@ Deployment complete! >>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 1 unchanged. >>> print_requests.py --get //api/2.1/unity-catalog/schemas "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" diff --git a/acceptance/bundle/summary/modified_status/output.txt b/acceptance/bundle/summary/modified_status/output.txt index 92338e101c9..f0dc2adb4c9 100644 --- a/acceptance/bundle/summary/modified_status/output.txt +++ b/acceptance/bundle/summary/modified_status/output.txt @@ -69,9 +69,12 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created alerts.my_alert +created pipelines.my_pipeline +created schemas.my_schema +created sql_warehouses.my_sql_warehouse + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. === Post-deployment view of resources with id and without modified_status >>> [CLI] bundle summary -o json @@ -194,8 +197,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 4 deleted. >>> [CLI] bundle summary -o json {} diff --git a/acceptance/bundle/telemetry/config-remote-sync-recreate/output.txt b/acceptance/bundle/telemetry/config-remote-sync-recreate/output.txt index c002f652ed3..9dc81d27177 100644 --- a/acceptance/bundle/telemetry/config-remote-sync-recreate/output.txt +++ b/acceptance/bundle/telemetry/config-remote-sync-recreate/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/config-remote-sync-recreate/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle config-remote-sync Detected changes in 1 resource(s): diff --git a/acceptance/bundle/telemetry/config-remote-sync-save/output.txt b/acceptance/bundle/telemetry/config-remote-sync-save/output.txt index ccefb19ce1b..c001497177a 100644 --- a/acceptance/bundle/telemetry/config-remote-sync-save/output.txt +++ b/acceptance/bundle/telemetry/config-remote-sync-save/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/config-remote-sync-save/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle config-remote-sync --save Detected changes in 1 resource(s): diff --git a/acceptance/bundle/telemetry/config-remote-sync/output.txt b/acceptance/bundle/telemetry/config-remote-sync/output.txt index 8886bae291a..2a6b419c4a8 100644 --- a/acceptance/bundle/telemetry/config-remote-sync/output.txt +++ b/acceptance/bundle/telemetry/config-remote-sync/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/config-remote-sync-telemetry/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle config-remote-sync Detected changes in 1 resource(s): diff --git a/acceptance/bundle/telemetry/deploy-app-lifecycle-started/output.txt b/acceptance/bundle/telemetry/deploy-app-lifecycle-started/output.txt index 3663f140db9..25e5fef31e7 100644 --- a/acceptance/bundle/telemetry/deploy-app-lifecycle-started/output.txt +++ b/acceptance/bundle/telemetry/deploy-app-lifecycle-started/output.txt @@ -1,10 +1,10 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... ✓ Deployment succeeded -Updating deployment state... -Deployment complete! +created apps.myapp + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-artifact-path-type/output.txt b/acceptance/bundle/telemetry/deploy-artifact-path-type/output.txt index a03920c3fdc..7609d0942a9 100644 --- a/acceptance/bundle/telemetry/deploy-artifact-path-type/output.txt +++ b/acceptance/bundle/telemetry/deploy-artifact-path-type/output.txt @@ -1,13 +1,11 @@ >>> [CLI] bundle deploy -t one Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/one/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deploy -t two Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/two/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-artifacts-variables/output.txt b/acceptance/bundle/telemetry/deploy-artifacts-variables/output.txt index ec277538c50..3d01ba768b4 100644 --- a/acceptance/bundle/telemetry/deploy-artifacts-variables/output.txt +++ b/acceptance/bundle/telemetry/deploy-artifacts-variables/output.txt @@ -3,9 +3,9 @@ Building test_artifact... Uploading databricks.yml... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-artifacts-variables/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test-job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === No artifact metrics expected >>> cat out.requests.txt @@ -14,9 +14,9 @@ Deployment complete! Building test_artifact... Uploading databricks.yml... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-artifacts-variables/prod/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test-job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. === Artifact metrics expected >>> cat out.requests.txt diff --git a/acceptance/bundle/telemetry/deploy-compute-type/output.txt b/acceptance/bundle/telemetry/deploy-compute-type/output.txt index 9c59aba8e71..a0514ede919 100644 --- a/acceptance/bundle/telemetry/deploy-compute-type/output.txt +++ b/acceptance/bundle/telemetry/deploy-compute-type/output.txt @@ -1,15 +1,15 @@ >>> [CLI] bundle deploy -t one Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-compute-type/one/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deploy -t two Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-compute-type/two/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.my_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt [ diff --git a/acceptance/bundle/telemetry/deploy-config-file-count/output.txt b/acceptance/bundle/telemetry/deploy-config-file-count/output.txt index 909e8d6c705..d68c6883c7a 100644 --- a/acceptance/bundle/telemetry/deploy-config-file-count/output.txt +++ b/acceptance/bundle/telemetry/deploy-config-file-count/output.txt @@ -1,8 +1,7 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-experimental/output.txt b/acceptance/bundle/telemetry/deploy-experimental/output.txt index df24e19a74d..fafe1d8495f 100644 --- a/acceptance/bundle/telemetry/deploy-experimental/output.txt +++ b/acceptance/bundle/telemetry/deploy-experimental/output.txt @@ -5,9 +5,9 @@ Warning: You are using the legacy mode of run_as. The support for this mode is e in databricks.yml:5:22 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-mode/output.txt b/acceptance/bundle/telemetry/deploy-mode/output.txt index 99e7fbb699a..dd7fb39bbe3 100644 --- a/acceptance/bundle/telemetry/deploy-mode/output.txt +++ b/acceptance/bundle/telemetry/deploy-mode/output.txt @@ -1,8 +1,7 @@ >>> [CLI] bundle deploy -t dev Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deploy -t prod Recommendation: target with 'mode: production' should set 'workspace.root_path' to make sure only one copy is deployed @@ -12,8 +11,7 @@ A common practice is to use a username or principal name in this path, i.e. use root_path: /Workspace/Users/[USERNAME]/.bundle/${bundle.name}/${bundle.target} Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/prod/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-name-prefix/custom/output.txt b/acceptance/bundle/telemetry/deploy-name-prefix/custom/output.txt index f68b3f24975..4e0af751099 100644 --- a/acceptance/bundle/telemetry/deploy-name-prefix/custom/output.txt +++ b/acceptance/bundle/telemetry/deploy-name-prefix/custom/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/custom-prefix/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-name-prefix/mode-development/output.txt b/acceptance/bundle/telemetry/deploy-name-prefix/mode-development/output.txt index da51756db48..ec09ce4b058 100644 --- a/acceptance/bundle/telemetry/deploy-name-prefix/mode-development/output.txt +++ b/acceptance/bundle/telemetry/deploy-name-prefix/mode-development/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/development-prefix/development/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-no-uuid/output.txt b/acceptance/bundle/telemetry/deploy-no-uuid/output.txt index 7f14a3bdd74..ebb24e3f744 100644 --- a/acceptance/bundle/telemetry/deploy-no-uuid/output.txt +++ b/acceptance/bundle/telemetry/deploy-no-uuid/output.txt @@ -1,8 +1,8 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_one + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt diff --git a/acceptance/bundle/telemetry/deploy-run-as/output.txt b/acceptance/bundle/telemetry/deploy-run-as/output.txt index 9dc650550cc..fa77c68688e 100644 --- a/acceptance/bundle/telemetry/deploy-run-as/output.txt +++ b/acceptance/bundle/telemetry/deploy-run-as/output.txt @@ -1,9 +1,9 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.test_job + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt diff --git a/acceptance/bundle/telemetry/deploy-target-count/output.txt b/acceptance/bundle/telemetry/deploy-target-count/output.txt index 31581169f2c..0f469109e3b 100644 --- a/acceptance/bundle/telemetry/deploy-target-count/output.txt +++ b/acceptance/bundle/telemetry/deploy-target-count/output.txt @@ -1,8 +1,7 @@ >>> [CLI] bundle deploy -t one Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/one/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-variable-count/output.txt b/acceptance/bundle/telemetry/deploy-variable-count/output.txt index be4840e69ef..d7394bbe747 100644 --- a/acceptance/bundle/telemetry/deploy-variable-count/output.txt +++ b/acceptance/bundle/telemetry/deploy-variable-count/output.txt @@ -1,8 +1,7 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-whl-artifacts/output.txt b/acceptance/bundle/telemetry/deploy-whl-artifacts/output.txt index 7b8678cf5b7..1fad5678feb 100644 --- a/acceptance/bundle/telemetry/deploy-whl-artifacts/output.txt +++ b/acceptance/bundle/telemetry/deploy-whl-artifacts/output.txt @@ -3,15 +3,13 @@ Building test... Uploading my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/one/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle deploy -t two Building test... Uploading .databricks/bundle/two/patched_wheels/test_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/two/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt { diff --git a/acceptance/bundle/telemetry/deploy-workspace-folder-permissions/output.txt b/acceptance/bundle/telemetry/deploy-workspace-folder-permissions/output.txt index faeda1df1fd..b77d4151c8f 100644 --- a/acceptance/bundle/telemetry/deploy-workspace-folder-permissions/output.txt +++ b/acceptance/bundle/telemetry/deploy-workspace-folder-permissions/output.txt @@ -1,8 +1,7 @@ >>> [CLI] bundle deploy -t no_permissions Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/no_permissions/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> print_telemetry_bool_values dms_compat_auto true @@ -18,8 +17,7 @@ state_path_other false >>> [CLI] bundle deploy -t user_declared Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/user_declared/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> print_telemetry_bool_values dms_compat_auto true @@ -47,8 +45,7 @@ See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more in databricks.yml:23:7 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/user_not_declared/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> print_telemetry_bool_values dms_compat_only_self_undeclared true @@ -64,8 +61,7 @@ state_path_other false >>> [CLI] bundle deploy -t other_user_not_declared Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/other_user_not_declared/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> print_telemetry_bool_values dms_compat_not true @@ -81,8 +77,7 @@ state_path_other false >>> [CLI] bundle deploy -t workspace_other Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/workspace_other/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> print_telemetry_bool_values dms_compat_auto true @@ -110,8 +105,7 @@ See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more in databricks.yml:47:7 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/shared_users_can_manage/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> print_telemetry_bool_values dms_compat_auto true @@ -127,8 +121,7 @@ state_path_other false >>> [CLI] bundle deploy -t shared_not_declared Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/shared_not_declared/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> print_telemetry_bool_values dms_compat_not true diff --git a/acceptance/bundle/telemetry/deploy/output.txt b/acceptance/bundle/telemetry/deploy/output.txt index cf5dd1e434e..7b894546502 100644 --- a/acceptance/bundle/telemetry/deploy/output.txt +++ b/acceptance/bundle/telemetry/deploy/output.txt @@ -1,9 +1,13 @@ >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.job_one +created jobs.job_three +created jobs.job_two +created pipelines.pipeline_one +created pipelines.pipeline_two + +Deploy: 5 created, 0 changed, 0 deleted, 0 unchanged. >>> cat out.requests.txt diff --git a/acceptance/bundle/templates/default-python/classic/output.txt b/acceptance/bundle/templates/default-python/classic/output.txt index 2a301801d86..0d82d839a29 100644 --- a/acceptance/bundle/templates/default-python/classic/output.txt +++ b/acceptance/bundle/templates/default-python/classic/output.txt @@ -50,9 +50,10 @@ Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged Building python_artifact... Building python_artifact... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job +created pipelines.my_default_python_etl + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -t dev Building python_artifact... @@ -63,9 +64,12 @@ Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged >>> [CLI] bundle plan -t dev -o json Building python_artifact... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job +created jobs.sample_job.permissions +created pipelines.my_default_python_etl +created pipelines.my_default_python_etl.permissions + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -t prod Building python_artifact... diff --git a/acceptance/bundle/templates/default-python/combinations/classic/output.txt b/acceptance/bundle/templates/default-python/combinations/classic/output.txt index 634b857f961..705cf29df7f 100644 --- a/acceptance/bundle/templates/default-python/combinations/classic/output.txt +++ b/acceptance/bundle/templates/default-python/combinations/classic/output.txt @@ -34,12 +34,18 @@ Workspace: Validation OK! Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/X[UNIQUE_NAME]/dev/files... -Deploying resources... -Deployment complete! -Deleting files... -Destroy complete! +created jobs.sample_job +created pipelines.X[UNIQUE_NAME]_etl + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. + +Destroy: 2 deleted. Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/X[UNIQUE_NAME]/prod/files... -Deploying resources... -Deployment complete! -Deleting files... -Destroy complete! +created jobs.sample_job +created jobs.sample_job.permissions +created pipelines.X[UNIQUE_NAME]_etl +created pipelines.X[UNIQUE_NAME]_etl.permissions + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. + +Destroy: 2 deleted. diff --git a/acceptance/bundle/templates/default-python/combinations/serverless/output.txt b/acceptance/bundle/templates/default-python/combinations/serverless/output.txt index 634b857f961..705cf29df7f 100644 --- a/acceptance/bundle/templates/default-python/combinations/serverless/output.txt +++ b/acceptance/bundle/templates/default-python/combinations/serverless/output.txt @@ -34,12 +34,18 @@ Workspace: Validation OK! Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/X[UNIQUE_NAME]/dev/files... -Deploying resources... -Deployment complete! -Deleting files... -Destroy complete! +created jobs.sample_job +created pipelines.X[UNIQUE_NAME]_etl + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. + +Destroy: 2 deleted. Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/X[UNIQUE_NAME]/prod/files... -Deploying resources... -Deployment complete! -Deleting files... -Destroy complete! +created jobs.sample_job +created jobs.sample_job.permissions +created pipelines.X[UNIQUE_NAME]_etl +created pipelines.X[UNIQUE_NAME]_etl.permissions + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. + +Destroy: 2 deleted. diff --git a/acceptance/bundle/templates/default-python/integration_classic/output.txt b/acceptance/bundle/templates/default-python/integration_classic/output.txt index 2206b10cd25..6963ec3c403 100644 --- a/acceptance/bundle/templates/default-python/integration_classic/output.txt +++ b/acceptance/bundle/templates/default-python/integration_classic/output.txt @@ -32,9 +32,10 @@ Building python_artifact... Building python_artifact... Uploading .databricks/bundle/dev/patched_wheels/python_artifact_project_name_[UNIQUE_NAME]/project_name_[UNIQUE_NAME]-0.0.1+[NUMID]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job +created pipelines.project_name_[UNIQUE_NAME]_etl + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle summary -t dev Name: project_name_[UNIQUE_NAME] @@ -98,8 +99,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/dev -Deleting files... -Destroy complete! +Destroy: 2 deleted. >>> [CLI] bundle validate -t prod Name: project_name_[UNIQUE_NAME] @@ -290,9 +290,12 @@ Building python_artifact... Building python_artifact... Uploading dist/project_name_[UNIQUE_NAME]-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/prod/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job +created jobs.sample_job.permissions +created pipelines.project_name_[UNIQUE_NAME]_etl +created pipelines.project_name_[UNIQUE_NAME]_etl.permissions + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle summary -t prod Name: project_name_[UNIQUE_NAME] @@ -496,5 +499,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/project_name_[UNIQUE_NAME]/prod -Deleting files... -Destroy complete! +Destroy: 2 deleted. diff --git a/acceptance/bundle/templates/default-python/serverless/output.txt b/acceptance/bundle/templates/default-python/serverless/output.txt index 1b8abcf31ff..48fdda9f20a 100644 --- a/acceptance/bundle/templates/default-python/serverless/output.txt +++ b/acceptance/bundle/templates/default-python/serverless/output.txt @@ -54,9 +54,10 @@ Building python_artifact... Building python_artifact... Uploading dist/my_default_python-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_default_python/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job +created pipelines.my_default_python_etl + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -t dev Building python_artifact... @@ -69,9 +70,12 @@ Building python_artifact... Building python_artifact... Uploading dist/my_default_python-0.0.1-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_default_python/prod/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job +created jobs.sample_job.permissions +created pipelines.my_default_python_etl +created pipelines.my_default_python_etl.permissions + +Deploy: 4 created, 0 changed, 0 deleted, 0 unchanged. >>> [CLI] bundle plan -t prod Building python_artifact... diff --git a/acceptance/bundle/templates/pydabs/deploy-classic/output.txt b/acceptance/bundle/templates/pydabs/deploy-classic/output.txt index f79f8337c74..79537fc8864 100644 --- a/acceptance/bundle/templates/pydabs/deploy-classic/output.txt +++ b/acceptance/bundle/templates/pydabs/deploy-classic/output.txt @@ -20,6 +20,7 @@ To get started, refer to the project README.md file and the documentation at htt Building python_artifact... Uploading .databricks/bundle/dev/patched_wheels/python_artifact_my_pydabs/my_pydabs-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl... Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/my_pydabs/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job +created pipelines.my_pydabs_etl + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/bundle/user_agent/simple/output.txt b/acceptance/bundle/user_agent/simple/output.txt index 493c4f9f8f5..b3909b92249 100644 --- a/acceptance/bundle/user_agent/simple/output.txt +++ b/acceptance/bundle/user_agent/simple/output.txt @@ -33,9 +33,9 @@ Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created schemas.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. >>> print_requests.py --sort --get ^//telemetry-ext @@ -58,7 +58,6 @@ This action will result in the deletion of the following UC schemas. Any underly All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. >>> print_requests.py --sort --get diff --git a/acceptance/bundle/validate/sync_patterns/output.txt b/acceptance/bundle/validate/sync_patterns/output.txt index b35859d86a9..4890e4bba6e 100644 --- a/acceptance/bundle/validate/sync_patterns/output.txt +++ b/acceptance/bundle/validate/sync_patterns/output.txt @@ -23,5 +23,4 @@ Validation OK! >>> [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. diff --git a/acceptance/cache/simple/output.txt b/acceptance/cache/simple/output.txt index 2206ffdbc71..ae980cf6766 100644 --- a/acceptance/cache/simple/output.txt +++ b/acceptance/cache/simple/output.txt @@ -17,8 +17,7 @@ >>> [CLI] bundle deploy -p dogfood Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/exploratory-cache-test/default/files... -Deploying resources... -Deployment complete! +Deploy: 0 created, 0 changed, 0 deleted, 0 unchanged. >>> print_telemetry_bool_values local.cache.attempt true diff --git a/acceptance/pipelines/deploy/auto-approve/output.txt b/acceptance/pipelines/deploy/auto-approve/output.txt index a38e8d77d80..b859ffd28f8 100644 --- a/acceptance/pipelines/deploy/auto-approve/output.txt +++ b/acceptance/pipelines/deploy/auto-approve/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-auto-approve/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === Remove resources from configuration to test auto-approve @@ -34,6 +34,6 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them. Recreating restore the defined STs and MVs through full refresh. Note that recreation is necessary when pipeline properties such as the 'catalog' or 'storage' are changed: delete resources.pipelines.foo -Deploying resources... -Updating deployment state... -Deployment complete! +deleted pipelines.foo + +Deploy: 0 created, 0 changed, 1 deleted, 0 unchanged. diff --git a/acceptance/pipelines/deploy/create-pipeline/output.txt b/acceptance/pipelines/deploy/create-pipeline/output.txt index 6d873c67f2e..ceb6b2be27c 100644 --- a/acceptance/pipelines/deploy/create-pipeline/output.txt +++ b/acceptance/pipelines/deploy/create-pipeline/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-create-pipeline/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] >>> [CLI] pipelines get [UUID] diff --git a/acceptance/pipelines/deploy/fail-on-active-runs/output.txt b/acceptance/pipelines/deploy/fail-on-active-runs/output.txt index 14277d8c7fa..ac6543096fb 100644 --- a/acceptance/pipelines/deploy/fail-on-active-runs/output.txt +++ b/acceptance/pipelines/deploy/fail-on-active-runs/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pipeline-fail-on-active-runs/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] >>> [CLI] pipelines deploy --fail-on-active-runs diff --git a/acceptance/pipelines/deploy/force-lock/output.txt b/acceptance/pipelines/deploy/force-lock/output.txt index 392fa58954b..e7fc9f38668 100644 --- a/acceptance/pipelines/deploy/force-lock/output.txt +++ b/acceptance/pipelines/deploy/force-lock/output.txt @@ -17,7 +17,7 @@ Exit code: 1 === test deployment with force-lock (should succeed) >>> [CLI] pipelines deploy --force-lock Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-force-lock/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] diff --git a/acceptance/pipelines/deploy/render-diagnostics-warning/output.txt b/acceptance/pipelines/deploy/render-diagnostics-warning/output.txt index b1fdcf752a5..5d2057de3c4 100644 --- a/acceptance/pipelines/deploy/render-diagnostics-warning/output.txt +++ b/acceptance/pipelines/deploy/render-diagnostics-warning/output.txt @@ -5,8 +5,8 @@ Warning: unknown field: unknown_property in databricks.yml:8:7 Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/render-diagnostics-warning-pipeline/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.test-pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline test-pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] diff --git a/acceptance/pipelines/deploy/var-flag/output.txt b/acceptance/pipelines/deploy/var-flag/output.txt index 6fe3c7a3873..e562a226d70 100644 --- a/acceptance/pipelines/deploy/var-flag/output.txt +++ b/acceptance/pipelines/deploy/var-flag/output.txt @@ -2,9 +2,9 @@ === Test --var flag usage >>> [CLI] pipelines deploy --var=catalog=custom_catalog --var=schema=custom_schema --auto-approve Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-var-flag/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === Verify: Check that variables were substituted correctly diff --git a/acceptance/pipelines/destroy/auto-approve/output.txt b/acceptance/pipelines/destroy/auto-approve/output.txt index 76bf97b4e2f..9ec53ed0771 100644 --- a/acceptance/pipelines/destroy/auto-approve/output.txt +++ b/acceptance/pipelines/destroy/auto-approve/output.txt @@ -2,9 +2,9 @@ === Test auto-approve pipelines destroy >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-destroy/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] >>> errcode [CLI] pipelines destroy @@ -24,5 +24,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-pipeline-destroy/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/pipelines/destroy/destroy-pipeline/output.txt b/acceptance/pipelines/destroy/destroy-pipeline/output.txt index 4e5ab020852..fe47cbcd9ff 100644 --- a/acceptance/pipelines/destroy/destroy-pipeline/output.txt +++ b/acceptance/pipelines/destroy/destroy-pipeline/output.txt @@ -2,9 +2,9 @@ === Test basic pipelines destroy >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-destroy/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] >>> [CLI] pipelines destroy --auto-approve @@ -17,8 +17,7 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-pipeline-destroy/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. === Assert pipeline is deleted >>> errcode [CLI] pipelines get [UUID] diff --git a/acceptance/pipelines/destroy/force-lock/output.txt b/acceptance/pipelines/destroy/force-lock/output.txt index f253d542a91..a95fedfb336 100644 --- a/acceptance/pipelines/destroy/force-lock/output.txt +++ b/acceptance/pipelines/destroy/force-lock/output.txt @@ -1,9 +1,9 @@ >>> errcode [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-force-lock/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.foo + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline foo here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === upload lock file @@ -32,5 +32,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-pipeline-force-lock/default -Deleting files... -Destroy complete! +Destroy: 1 deleted. diff --git a/acceptance/pipelines/dry-run/dry-run-pipeline/output.txt b/acceptance/pipelines/dry-run/dry-run-pipeline/output.txt index c9799262bdd..2348a056349 100644 --- a/acceptance/pipelines/dry-run/dry-run-pipeline/output.txt +++ b/acceptance/pipelines/dry-run/dry-run-pipeline/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-run/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === Dry running pipeline, should have validate_only set to true diff --git a/acceptance/pipelines/dry-run/no-wait/output.txt b/acceptance/pipelines/dry-run/no-wait/output.txt index 853ee8f7b00..5464cd40748 100644 --- a/acceptance/pipelines/dry-run/no-wait/output.txt +++ b/acceptance/pipelines/dry-run/no-wait/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === Dry running pipeline with --no-wait flag diff --git a/acceptance/pipelines/dry-run/restart/output.txt b/acceptance/pipelines/dry-run/restart/output.txt index da3bae74a67..e9b7b8b1641 100644 --- a/acceptance/pipelines/dry-run/restart/output.txt +++ b/acceptance/pipelines/dry-run/restart/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === Dry running pipeline with --restart flag, should stop the current pipeline and start a new run diff --git a/acceptance/pipelines/e2e/output.txt b/acceptance/pipelines/e2e/output.txt index 8e029977b23..4b86b9f78c8 100644 --- a/acceptance/pipelines/e2e/output.txt +++ b/acceptance/pipelines/e2e/output.txt @@ -17,9 +17,10 @@ Please refer to the README.md file for "getting started" instructions. === Deploy pipeline >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lakeflow_project/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created jobs.sample_job +created pipelines.lakeflow_project_etl + +Deploy: 2 created, 0 changed, 0 deleted, 0 unchanged. View your job sample_job here: [DATABRICKS_URL]/jobs/[NUMID]?w=[NUMID] View your pipeline lakeflow_project_etl here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] @@ -41,9 +42,9 @@ Pipeline configurations for this update: === Edit project by creating and running a new second pipeline >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/lakeflow_project/dev/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.lakeflow_project_etl_2 + +Deploy: 1 created, 0 changed, 0 deleted, 2 unchanged. View your job sample_job here: [DATABRICKS_URL]/jobs/[NUMID]?w=[NUMID] View your pipeline lakeflow_project_etl here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] View your pipeline lakeflow_project_etl_2 here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] @@ -112,5 +113,4 @@ Streaming Tables (STs) and Materialized Views (MVs) managed by them: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/lakeflow_project/dev -Deleting files... -Destroy complete! +Destroy: 3 deleted. diff --git a/acceptance/pipelines/open/open-after-deployment/output.txt b/acceptance/pipelines/open/open-after-deployment/output.txt index ff6a660e626..80792ba4bc0 100644 --- a/acceptance/pipelines/open/open-after-deployment/output.txt +++ b/acceptance/pipelines/open/open-after-deployment/output.txt @@ -7,9 +7,9 @@ Exit code: 1 >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pipelines-open/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.test-pipelines-open + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline test-pipelines-open here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === Modify PATH so that real open is not run diff --git a/acceptance/pipelines/run/no-wait/output.txt b/acceptance/pipelines/run/no-wait/output.txt index 2ceb291d0dd..0c1c7ec2caa 100644 --- a/acceptance/pipelines/run/no-wait/output.txt +++ b/acceptance/pipelines/run/no-wait/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === test --no-wait flag diff --git a/acceptance/pipelines/run/refresh-flags/output.txt b/acceptance/pipelines/run/refresh-flags/output.txt index 04c585fe044..adbfc76165a 100644 --- a/acceptance/pipelines/run/refresh-flags/output.txt +++ b/acceptance/pipelines/run/refresh-flags/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === Running pipeline with --refresh flag and specific tables diff --git a/acceptance/pipelines/run/restart/output.txt b/acceptance/pipelines/run/restart/output.txt index ed36af4d67a..dde5bc68431 100644 --- a/acceptance/pipelines/run/restart/output.txt +++ b/acceptance/pipelines/run/restart/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-run-flags/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === Running pipeline with --restart flag diff --git a/acceptance/pipelines/run/run-info/output.txt b/acceptance/pipelines/run/run-info/output.txt index ddbbe6a9d6e..fbe09840c78 100644 --- a/acceptance/pipelines/run/run-info/output.txt +++ b/acceptance/pipelines/run/run-info/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-run/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] === Run pipeline and display pipeline configuration summary and events durations diff --git a/acceptance/pipelines/stop/output.txt b/acceptance/pipelines/stop/output.txt index 9c8cd6f57a6..eb6245a39a9 100644 --- a/acceptance/pipelines/stop/output.txt +++ b/acceptance/pipelines/stop/output.txt @@ -1,9 +1,9 @@ >>> [CLI] pipelines deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-pipeline-stop/default/files... -Deploying resources... -Updating deployment state... -Deployment complete! +created pipelines.my_pipeline + +Deploy: 1 created, 0 changed, 0 deleted, 0 unchanged. View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[NUMID] >>> [CLI] pipelines run diff --git a/bundle/bundle.go b/bundle/bundle.go index a471a5b9b2e..d53b1e452dc 100644 --- a/bundle/bundle.go +++ b/bundle/bundle.go @@ -156,6 +156,10 @@ type Bundle struct { // When non-empty, only the specified resources are included in deployment. Select []string + // Quiet suppresses the per-resource lines in plan/deploy output, leaving + // only the summary line. Set via the --quiet flag. + Quiet bool + // SkipLocalFileValidation makes path translation tolerant of missing local files. // When set, TranslatePaths computes workspace paths without verifying files exist. // Used by config-remote-sync: a user may modify resource paths remotely (e.g., diff --git a/bundle/deploy/files/delete.go b/bundle/deploy/files/delete.go index aab6cca9acc..562437e5432 100644 --- a/bundle/deploy/files/delete.go +++ b/bundle/deploy/files/delete.go @@ -8,7 +8,6 @@ import ( "os" "github.com/databricks/cli/bundle" - "github.com/databricks/cli/libs/cmdio" "github.com/databricks/cli/libs/diag" "github.com/databricks/cli/libs/sync" "github.com/databricks/databricks-sdk-go/service/workspace" @@ -21,8 +20,6 @@ func (m *delete) Name() string { } func (m *delete) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnostics { - cmdio.LogString(ctx, "Deleting files...") - err := b.WorkspaceClient(ctx).Workspace.Delete(ctx, workspace.Delete{ Path: b.Config.Workspace.RootPath, Recursive: true, diff --git a/bundle/deployplan/plan.go b/bundle/deployplan/plan.go index c7fe8a3c989..c8f9da7ef19 100644 --- a/bundle/deployplan/plan.go +++ b/bundle/deployplan/plan.go @@ -22,10 +22,46 @@ type Plan struct { Serial int `json:"serial,omitempty"` Plan map[string]*PlanEntry `json:"plan,omitzero"` + // NotSelected is the number of resources removed by FilterToSelected via the + // --select flag. Serialized so the summary survives a deploy from a plan file + // (--plan); used only for summary reporting. + NotSelected int `json:"not_selected,omitempty"` + mutex sync.Mutex `json:"-"` lockmap lockmap `json:"-"` } +// ActionCounts summarizes a plan's actions by category. A recreate counts as +// both a create and a delete, matching how plan and deploy report changes. +type ActionCounts struct { + Create int + Change int + Delete int + Unchanged int +} + +// CountActions tallies the plan's actions by category. +func (p *Plan) CountActions() ActionCounts { + var c ActionCounts + for _, action := range p.GetActions() { + switch action.ActionType { + case Create: + c.Create++ + case Update, UpdateWithID, Resize: + c.Change++ + case Delete: + c.Delete++ + case Recreate: + // A recreate counts as both a delete and a create. + c.Delete++ + c.Create++ + case Skip, Undefined: + c.Unchanged++ + } + } + return c +} + // NewPlanDirect creates a new Plan for direct engine with plan_version set. func NewPlanDirect() *Plan { return &Plan{ @@ -208,6 +244,8 @@ func (p *Plan) RemoveEntry(resourceKey string) { // e.g. "jobs.my_job") plus their transitive dependencies as recorded in each // entry's DependsOn field. Nodes not reachable from the selected set are removed. func (p *Plan) FilterToSelected(selected []string) { + before := len(p.Plan) + // Convert "type.name" → "resources.type.name" (plan key format). queue := make([]string, 0, len(selected)) reachable := make(map[string]struct{}, len(selected)) @@ -238,6 +276,8 @@ func (p *Plan) FilterToSelected(selected []string) { delete(p.Plan, key) } } + + p.NotSelected = before - len(p.Plan) } type lockmap struct { diff --git a/bundle/deployplan/plan_filter_test.go b/bundle/deployplan/plan_filter_test.go index b16d78eb43d..356b0afaf56 100644 --- a/bundle/deployplan/plan_filter_test.go +++ b/bundle/deployplan/plan_filter_test.go @@ -27,6 +27,7 @@ func TestFilterToSelected_Direct(t *testing.T) { assert.Contains(t, p.Plan, "resources.jobs.bar") assert.Contains(t, p.Plan, "resources.jobs.baz") assert.NotContains(t, p.Plan, "resources.jobs.independent") + assert.Equal(t, 1, p.NotSelected) } func TestFilterToSelected_NoDeps(t *testing.T) { @@ -36,6 +37,7 @@ func TestFilterToSelected_NoDeps(t *testing.T) { assert.NotContains(t, p.Plan, "resources.jobs.foo") assert.NotContains(t, p.Plan, "resources.jobs.bar") assert.NotContains(t, p.Plan, "resources.jobs.independent") + assert.Equal(t, 3, p.NotSelected) } func TestFilterToSelected_Multiple(t *testing.T) { @@ -45,4 +47,5 @@ func TestFilterToSelected_Multiple(t *testing.T) { assert.Contains(t, p.Plan, "resources.jobs.independent") assert.NotContains(t, p.Plan, "resources.jobs.foo") assert.NotContains(t, p.Plan, "resources.jobs.bar") + assert.Equal(t, 2, p.NotSelected) } diff --git a/bundle/phases/deploy.go b/bundle/phases/deploy.go index 840c7d821f1..0856a0594b4 100644 --- a/bundle/phases/deploy.go +++ b/bundle/phases/deploy.go @@ -3,6 +3,8 @@ package phases import ( "context" "errors" + "fmt" + "strings" "github.com/databricks/cli/bundle" "github.com/databricks/cli/bundle/artifacts" @@ -69,10 +71,6 @@ func approvalForDeploy(ctx context.Context, b *bundle.Bundle, plan *deployplan.P } func deployCore(ctx context.Context, b *bundle.Bundle, plan *deployplan.Plan, targetEngine engine.EngineType) { - // Core mutators that CRUD resources and modify deployment state. These - // mutators need informed consent if they are potentially destructive. - cmdio.LogString(ctx, "Deploying resources...") - // Apply resources and capture post-apply state. // For direct: Finalize flushes the WAL to disk and returns the state; // called even if Apply failed so partial progress is saved. @@ -96,6 +94,12 @@ func deployCore(ctx context.Context, b *bundle.Bundle, plan *deployplan.Plan, ta logdiag.LogError(ctx, err) } + // Report what was deployed only on success, so the summary reflects the plan + // that was actually applied (a partial failure returns below before this). + if !logdiag.HasError(ctx) { + logDeploySummary(ctx, b, plan) + } + // Even if deployment failed, there might be updates in states that we need to upload statemgmt.PushResourcesState(ctx, b, targetEngine) if logdiag.HasError(ctx) { @@ -108,10 +112,33 @@ func deployCore(ctx context.Context, b *bundle.Bundle, plan *deployplan.Plan, ta metadata.Upload(), statemgmt.UploadStateForYamlSync(targetEngine), ) +} - if !logdiag.HasError(ctx) { - cmdio.LogString(ctx, "Deployment complete!") +// logDeploySummary prints the per-resource actions that were applied followed by +// a summary line, mirroring the output of "bundle plan". Per-resource lines are +// suppressed by --quiet. The past-tense verb is the short action name plus "d" +// (create→created, delete→deleted, ...). +func logDeploySummary(ctx context.Context, b *bundle.Bundle, plan *deployplan.Plan) { + printed := false + if !b.Quiet { + for _, action := range plan.GetActions() { + if action.ActionType == deployplan.Skip || action.ActionType == deployplan.Undefined { + continue + } + cmdio.LogString(ctx, action.ActionType.StringShort()+"d "+strings.TrimPrefix(action.ResourceKey, "resources.")) + printed = true + } + } + if printed { + cmdio.LogString(ctx, "") + } + + counts := plan.CountActions() + summary := fmt.Sprintf("Deploy: %d created, %d changed, %d deleted, %d unchanged", counts.Create, counts.Change, counts.Delete, counts.Unchanged) + if len(b.Select) > 0 { + summary += fmt.Sprintf(", %d not selected", plan.NotSelected) } + cmdio.LogString(ctx, summary+".") } // uploadLibraries uploads libraries to the workspace. diff --git a/bundle/phases/destroy.go b/bundle/phases/destroy.go index fd580f5e971..5e6b46c7282 100644 --- a/bundle/phases/destroy.go +++ b/bundle/phases/destroy.go @@ -3,6 +3,7 @@ package phases import ( "context" "errors" + "fmt" "net/http" "github.com/databricks/cli/bundle" @@ -102,7 +103,15 @@ func destroyCore(ctx context.Context, b *bundle.Bundle, plan *deployplan.Plan, e bundle.ApplyContext(ctx, b, files.Delete()) if !logdiag.HasError(ctx) { - cmdio.LogString(ctx, "Destroy complete!") + // Count top-level resources only, matching the approval list above (which + // skips children); this also keeps the count stable across engines. + deleted := 0 + for _, a := range plan.GetActions() { + if a.ActionType == deployplan.Delete && !a.IsChildResource() { + deleted++ + } + } + cmdio.LogString(ctx, fmt.Sprintf("Destroy: %d deleted.", deleted)) } } diff --git a/bundle/statemgmt/state_push.go b/bundle/statemgmt/state_push.go index f098e8a07cc..b2af1e67517 100644 --- a/bundle/statemgmt/state_push.go +++ b/bundle/statemgmt/state_push.go @@ -9,7 +9,6 @@ import ( "github.com/databricks/cli/bundle" "github.com/databricks/cli/bundle/config/engine" "github.com/databricks/cli/bundle/deploy" - "github.com/databricks/cli/libs/cmdio" "github.com/databricks/cli/libs/filer" "github.com/databricks/cli/libs/log" "github.com/databricks/cli/libs/logdiag" @@ -45,7 +44,6 @@ func PushResourcesState(ctx context.Context, b *bundle.Bundle, engine engine.Eng defer local.Close() // Upload state file from local cache directory to filer. - cmdio.LogString(ctx, "Updating deployment state...") err = f.Write(ctx, remotePath, local, filer.CreateParentDirectories, filer.OverwriteIfExists) if err != nil { logdiag.LogError(ctx, err) diff --git a/cmd/bundle/deploy.go b/cmd/bundle/deploy.go index 95776eb25f4..39274ac2717 100644 --- a/cmd/bundle/deploy.go +++ b/cmd/bundle/deploy.go @@ -30,6 +30,7 @@ See https://docs.databricks.com/en/dev-tools/bundles/index.html for more informa var clusterId string var autoApprove bool var verbose bool + var quiet bool var readPlanPath string var selectResources []string cmd.Flags().BoolVar(&force, "force", false, "Force-override Git branch validation.") @@ -40,6 +41,7 @@ See https://docs.databricks.com/en/dev-tools/bundles/index.html for more informa cmd.Flags().BoolVar(&autoApprove, "auto-approve", false, "Skip interactive approvals that might be required for deployment.") cmd.Flags().MarkDeprecated("compute-id", "use --cluster-id instead") cmd.Flags().BoolVar(&verbose, "verbose", false, "Enable verbose output.") + cmd.Flags().BoolVarP(&quiet, "quiet", "q", false, "Only print the summary line, not the per-resource actions.") cmd.Flags().StringVar(&readPlanPath, "plan", "", "Path to a JSON plan file to apply instead of planning (direct engine only).") cmd.Flags().StringSliceVar(&selectResources, "select", nil, "Deploy only the specified resource (e.g. 'my_job' or 'jobs.my_job'). Can be repeated or comma-separated.") // Verbose flag currently only affects file sync output, it's used by the vscode extension @@ -52,6 +54,7 @@ See https://docs.databricks.com/en/dev-tools/bundles/index.html for more informa b.Config.Bundle.Deployment.Lock.Force = forceLock b.AutoApprove = autoApprove b.Select = selectResources + b.Quiet = quiet if cmd.Flag("compute-id").Changed { b.Config.Bundle.ClusterId = clusterId diff --git a/cmd/bundle/plan.go b/cmd/bundle/plan.go index 20df8cb5f0f..40d56aea081 100644 --- a/cmd/bundle/plan.go +++ b/cmd/bundle/plan.go @@ -27,9 +27,11 @@ It is useful for previewing changes before running 'bundle deploy'.`, } var force bool + var quiet bool var clusterId string var selectResources []string cmd.Flags().BoolVar(&force, "force", false, "Force-override Git branch validation.") + cmd.Flags().BoolVarP(&quiet, "quiet", "q", false, "Only print the summary line, not the per-resource actions.") cmd.Flags().StringVar(&clusterId, "compute-id", "", "Override cluster in the deployment with the given compute ID.") cmd.Flags().StringVarP(&clusterId, "cluster-id", "c", "", "Override cluster in the deployment with the given cluster ID.") cmd.Flags().MarkDeprecated("compute-id", "use --cluster-id instead") @@ -66,36 +68,15 @@ It is useful for previewing changes before running 'bundle deploy'.`, return root.ErrAlreadyPrinted } - // Count actions by type and collect formatted actions - createCount := 0 - updateCount := 0 - deleteCount := 0 - unchangedCount := 0 - - for _, change := range plan.GetActions() { - switch change.ActionType { - case deployplan.Create: - createCount++ - case deployplan.Update, deployplan.UpdateWithID, deployplan.Resize: - updateCount++ - case deployplan.Delete: - deleteCount++ - case deployplan.Recreate: - // A recreate counts as both a delete and a create - deleteCount++ - createCount++ - case deployplan.Skip, deployplan.Undefined: - unchangedCount++ - } - } + counts := plan.CountActions() out := cmd.OutOrStdout() switch root.OutputType(cmd) { case flags.OutputText: // Print summary line and actions to stdout - totalChanges := createCount + updateCount + deleteCount - if totalChanges > 0 { + totalChanges := counts.Create + counts.Change + counts.Delete + if totalChanges > 0 && !quiet { // Print all actions in the order they were processed for _, action := range plan.GetActions() { if action.ActionType == deployplan.Skip { @@ -107,7 +88,11 @@ It is useful for previewing changes before running 'bundle deploy'.`, fmt.Fprintln(out) } // Note, this string should not be changed, "bundle deployment migrate" depends on this format: - fmt.Fprintf(out, "Plan: %d to add, %d to change, %d to delete, %d unchanged\n", createCount, updateCount, deleteCount, unchangedCount) + fmt.Fprintf(out, "Plan: %d to add, %d to change, %d to delete, %d unchanged", counts.Create, counts.Change, counts.Delete, counts.Unchanged) + if len(selectResources) > 0 { + fmt.Fprintf(out, ", %d not selected", plan.NotSelected) + } + fmt.Fprintln(out) case flags.OutputJSON: buf, err := json.MarshalIndent(plan, "", " ") if err != nil { diff --git a/cmd/pipelines/deploy.go b/cmd/pipelines/deploy.go index 2c8d27de140..4ecda4448da 100644 --- a/cmd/pipelines/deploy.go +++ b/cmd/pipelines/deploy.go @@ -28,10 +28,12 @@ func deployCommand() *cobra.Command { var failOnActiveRuns bool var autoApprove bool var verbose bool + var quiet bool cmd.Flags().BoolVar(&forceLock, "force-lock", false, "Force acquisition of deployment lock.") cmd.Flags().BoolVar(&failOnActiveRuns, "fail-on-active-runs", false, "Fail if there are running pipelines in the deployment.") cmd.Flags().BoolVar(&autoApprove, "auto-approve", false, "Skip interactive approvals that might be required for deployment.") cmd.Flags().BoolVar(&verbose, "verbose", false, "Enable verbose output.") + cmd.Flags().BoolVarP(&quiet, "quiet", "q", false, "Only print the summary line, not the per-resource actions.") // Verbose flag currently only affects file sync output, it's used by the vscode extension cmd.Flags().MarkHidden("verbose") @@ -40,6 +42,7 @@ func deployCommand() *cobra.Command { InitFunc: func(b *bundle.Bundle) { b.Config.Bundle.Deployment.Lock.Force = forceLock b.AutoApprove = autoApprove + b.Quiet = quiet if cmd.Flag("fail-on-active-runs").Changed { b.Config.Bundle.Deployment.FailOnActiveRuns = failOnActiveRuns