Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* direct: Fix spurious update when `apply_policy_default_values: true` is set on job task, for-each-task, or job cluster new_cluster ([#5731](https://github.com/databricks/cli/pull/5731)). Also fix spurious updates for for-each-task clusters due to missing backend defaults for `data_security_mode`, `node_type_id`, `driver_node_type_id`, `driver_instance_pool_id`, `enable_elastic_disk`, and `enable_local_disk_encryption`.
* direct: Cluster resize now falls back to regular update if resize fails due to `INVALID_STATE` ([#5716](https://github.com/databricks/cli/pull/5716)).
* Fixed `bundle deployment migrate` failing on `model_serving_endpoints`/`database_instances` with permissions (regression since v1.5.0) ([#5775](https://github.com/databricks/cli/pull/5775)).
* After a terraform deploy, the CLI now dry-runs an in-memory migration to the direct engine (writing nothing locally or remotely) and reports the outcome via telemetry, warning if the migration could not be completed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
* After a terraform deploy, the CLI now dry-runs an in-memory migration to the direct engine (writing nothing locally or remotely) and reports the outcome via telemetry, warning if the migration could not be completed.
* After a terraform deploy, the CLI now dry-runs an in-memory migration to the direct engine (writing nothing locally or remotely) and reports the outcome via telemetry, warning if the migration could not be completed ([#5797](https://github.com/databricks/cli/pull/5797)).


### Dependency updates

Expand Down
2 changes: 2 additions & 0 deletions acceptance/bundle/bundle_tag/url_ref/out.deploy.terraform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/defaul
Deploying resources...
Updating deployment state...
Deployment complete!
Warn: post-deploy dry-run migration to direct: resource jobs.bar field url: method A value "[DATABRICKS_URL]/#job/[NUMID]" and method B value "[DATABRICKS_URL]/#job/[NUMID]" disagree; using longer (method A)
Warn: post-deploy dry-run migration to direct: resources.jobs.bar: cannot set resolved value for field "url": field "url" not found in jobs.JobSettings
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
direct_drymigrate_success true
direct_drymigrate_warnings false
dms_compat_auto true
dms_undeclared_deploying_user false
dms_undeclared_group false
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
dms_compat_auto true
dms_undeclared_deploying_user false
dms_undeclared_group false
dms_undeclared_other_user false
dms_undeclared_service_principal false
experimental.use_legacy_run_as false
has_classic_interactive_compute false
has_classic_job_compute false
has_serverless_compute false
local.cache.attempt true
local.cache.hit true
permissions_section_set false
presets_name_prefix_is_set true
python_wheel_wrapper_is_set false
run_as_set false
skip_artifact_cleanup false
state_path_in_deployer_home true
state_path_in_other_user_home false
state_path_is_shared false
state_path_other false
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
direct_drymigrate_success true
direct_drymigrate_warnings false
dms_compat_auto true
dms_undeclared_deploying_user false
dms_undeclared_group false
dms_undeclared_other_user false
dms_undeclared_service_principal false
experimental.use_legacy_run_as false
has_classic_interactive_compute false
has_classic_job_compute false
has_serverless_compute false
local.cache.attempt true
local.cache.hit true
permissions_section_set false
presets_name_prefix_is_set true
python_wheel_wrapper_is_set false
run_as_set false
skip_artifact_cleanup false
state_path_in_deployer_home true
state_path_in_other_user_home false
state_path_is_shared false
state_path_other false
22 changes: 0 additions & 22 deletions acceptance/bundle/resource_deps/resources_var/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,3 @@

>>> jq -s .[] | select(.path=="/api/2.0/pipelines") | .body.name out.requests.txt
"[dev [USERNAME]] pipeline for mycatalog.myschema.myname"

>>> print_telemetry_bool_values
dms_compat_auto true
dms_undeclared_deploying_user false
dms_undeclared_group false
dms_undeclared_other_user false
dms_undeclared_service_principal false
experimental.use_legacy_run_as false
has_classic_interactive_compute false
has_classic_job_compute false
has_serverless_compute false
local.cache.attempt true
local.cache.hit true
permissions_section_set false
presets_name_prefix_is_set true
python_wheel_wrapper_is_set false
run_as_set false
skip_artifact_cleanup false
state_path_in_deployer_home true
state_path_in_other_user_home false
state_path_is_shared false
state_path_other false
2 changes: 1 addition & 1 deletion acceptance/bundle/resource_deps/resources_var/script
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ trace $CLI bundle validate -t dev -o json | jq .resources
$CLI bundle plan -o json > out.plan.$DATABRICKS_BUNDLE_ENGINE.json
trace errcode $CLI bundle deploy -t dev &> out.deploy.txt
trace jq -s '.[] | select(.path=="/api/2.0/pipelines") | .body.name' out.requests.txt
trace print_telemetry_bool_values
print_telemetry_bool_values > out.telemetry.$DATABRICKS_BUNDLE_ENGINE.txt
rm out.requests.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
direct_drymigrate_success true
direct_drymigrate_warnings false
dms_compat_auto true
dms_undeclared_deploying_user false
dms_undeclared_group false
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
[
{
"key": "local.cache.attempt",
"value": true
},
{
"key": "local.cache.miss",
"value": true
},
{
"key": "experimental.use_legacy_run_as",
"value": false
},
{
"key": "run_as_set",
"value": false
},
{
"key": "presets_name_prefix_is_set",
"value": false
},
{
"key": "python_wheel_wrapper_is_set",
"value": false
},
{
"key": "skip_artifact_cleanup",
"value": false
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "permissions_section_set",
"value": false
},
{
"key": "state_path_in_deployer_home",
"value": true
},
{
"key": "state_path_in_other_user_home",
"value": false
},
{
"key": "state_path_other",
"value": false
},
{
"key": "dms_undeclared_deploying_user",
"value": false
},
{
"key": "dms_undeclared_other_user",
"value": false
},
{
"key": "dms_undeclared_service_principal",
"value": false
},
{
"key": "dms_undeclared_group",
"value": false
},
{
"key": "dms_compat_auto",
"value": true
},
{
"key": "has_serverless_compute",
"value": true
},
{
"key": "has_classic_job_compute",
"value": true
},
{
"key": "has_classic_interactive_compute",
"value": true
}
]
[
{
"key": "local.cache.attempt",
"value": true
},
{
"key": "local.cache.hit",
"value": true
},
{
"key": "experimental.use_legacy_run_as",
"value": false
},
{
"key": "run_as_set",
"value": false
},
{
"key": "presets_name_prefix_is_set",
"value": false
},
{
"key": "python_wheel_wrapper_is_set",
"value": false
},
{
"key": "skip_artifact_cleanup",
"value": false
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "permissions_section_set",
"value": false
},
{
"key": "state_path_in_deployer_home",
"value": true
},
{
"key": "state_path_in_other_user_home",
"value": false
},
{
"key": "state_path_other",
"value": false
},
{
"key": "dms_undeclared_deploying_user",
"value": false
},
{
"key": "dms_undeclared_other_user",
"value": false
},
{
"key": "dms_undeclared_service_principal",
"value": false
},
{
"key": "dms_undeclared_group",
"value": false
},
{
"key": "dms_compat_auto",
"value": true
},
{
"key": "has_serverless_compute",
"value": true
},
{
"key": "has_classic_job_compute",
"value": false
},
{
"key": "has_classic_interactive_compute",
"value": false
}
]
Loading
Loading