databricks-cli/bundle/deploy
Andrew Nester 1b0ac61093
Added deployment state for bundles (#1267)
## Changes
This PR introduces new structure (and a file) being used locally and
synced remotely to Databricks workspace to track bundle deployment
related metadata.

The state is pulled from remote, updated and pushed back remotely as
part of `bundle deploy` command.

This state can be used for deployment sequencing as it's `Version` field
is monotonically increasing on each deployment.

Currently, it only tracks files being synced as part of the deployment.

This helps fix the issue with files not being removed during deployments
on CI/CD as sync snapshot was never present there.

Fixes #943 

## Tests
Added E2E (regression) test for files removal on CI/CD

---------

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
2024-03-18 14:41:58 +00:00
..
files Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
lock Added `bundle deployment bind` and `unbind` command (#1131) 2024-02-14 18:04:45 +00:00
metadata Use dynamic configuration model in bundles (#1098) 2024-02-16 19:41:58 +00:00
terraform Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
check_running_resources.go Added warning when trying to deploy bundle with `--fail-if-running` and running resources (#1163) 2024-02-07 11:17:17 +00:00
check_running_resources_test.go Added warning when trying to deploy bundle with `--fail-if-running` and running resources (#1163) 2024-02-07 11:17:17 +00:00
filer.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state_pull.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state_pull_test.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state_push.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state_push_test.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state_test.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state_update.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state_update_test.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00