databricks-cli/cmd/bundle
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
..
deployment Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
generate Generate correct YAML if custom_tags or spark_conf is used for pipeline or job cluster configuration (#1210) 2024-02-15 15:03:19 +00:00
utils Use dynamic configuration model in bundles (#1098) 2024-02-16 19:41:58 +00:00
bundle.go Added `bundle deployment bind` and `unbind` command (#1131) 2024-02-14 18:04:45 +00:00
deploy.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
destroy.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
generate.go Added `bundle deployment bind` and `unbind` command (#1131) 2024-02-14 18:04:45 +00:00
init.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
init_test.go Improve experience for multiple builtin templates (#1052) 2023-12-27 12:03:08 +00:00
launch.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
run.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
schema.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
summary.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
sync.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
test.go Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
validate.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
variables.go Added `bundle deployment bind` and `unbind` command (#1131) 2024-02-14 18:04:45 +00:00