mirror of https://github.com/databricks/cli.git
c3a7d17d1d
## Changes This changes `databricks bundle deploy` so that it skips the lock acquisition/release step for a `mode: development` target: * This saves about 2 seconds (measured over 100 runs on a quiet/busy workspace). * This helps avoid the `deploy lock acquired by lennart@company.com at 2024-02-28 15:48:38.40603 +0100 CET. Use --force-lock to override` error * Risk: this may cause deployment conflicts, but since dev mode deployments are always scoped to a user, that risk should be minimal Update after discussion: * This behavior can now be disabled via a setting. * Docs PR: https://github.com/databricks/docs/pull/15873 ## Measurements ### 100 deployments of the "python_default" project to an empty workspace _Before this branch:_ p50 time: 11.479 seconds p90 time: 11.757 seconds _After this branch:_ p50 time: 9.386 seconds p90 time: 9.599 seconds ### 100 deployments of the "python_default" project to a busy (staging) workspace _Before this branch:_ * p50 time: 13.335 seconds * p90 time: 15.295 seconds _After this branch:_ * p50 time: 11.397 seconds * p90 time: 11.743 seconds ### Typical duration of deployment steps * Acquiring Deployment Lock: 1.096 seconds * Deployment Preparations and Operations: 1.477 seconds * Uploading Artifacts: 1.26 seconds * Finalizing Deployment: 9.699 seconds * Releasing Deployment Lock: 1.198 seconds --------- Co-authored-by: Pieter Noordhuis <pcnoordhuis@gmail.com> Co-authored-by: Andrew Nester <andrew.nester.dev@gmail.com> |
||
---|---|---|
.. | ||
default_target.go | ||
default_target_test.go | ||
default_workspace_paths.go | ||
default_workspace_paths_test.go | ||
default_workspace_root.go | ||
default_workspace_root_test.go | ||
environments_compat.go | ||
environments_compat_test.go | ||
expand_pipeline_glob_paths.go | ||
expand_pipeline_glob_paths_test.go | ||
expand_workspace_root.go | ||
expand_workspace_root_test.go | ||
if.go | ||
initialize_variables.go | ||
initialize_variables_test.go | ||
initialize_workspace_client.go | ||
load_git_details.go | ||
merge_job_clusters.go | ||
merge_job_clusters_test.go | ||
merge_job_tasks.go | ||
merge_job_tasks_test.go | ||
merge_pipeline_clusters.go | ||
merge_pipeline_clusters_test.go | ||
mutator.go | ||
noop.go | ||
override_compute.go | ||
override_compute_test.go | ||
populate_current_user.go | ||
populate_current_user_test.go | ||
process_target_mode.go | ||
process_target_mode_test.go | ||
resolve_resource_references.go | ||
resolve_resource_references_test.go | ||
resolve_variable_references.go | ||
resolve_variable_references_test.go | ||
rewrite_sync_paths.go | ||
rewrite_sync_paths_test.go | ||
run_as.go | ||
run_as_test.go | ||
select_default_target.go | ||
select_default_target_test.go | ||
select_target.go | ||
select_target_test.go | ||
set_variables.go | ||
set_variables_test.go | ||
trampoline.go | ||
trampoline_test.go | ||
translate_paths.go | ||
translate_paths_artifacts.go | ||
translate_paths_jobs.go | ||
translate_paths_pipelines.go | ||
translate_paths_test.go | ||
validate_git_details.go | ||
validate_git_details_test.go | ||
verify_cli_version.go | ||
verify_cli_version_test.go |