databricks-cli/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
..
artifacts Support relative paths in artifact files source section and always upload all artifact files (#1247) 2024-03-04 20:28:15 +00:00
config Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
deploy Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
deployer Fix locker unlock for destroy (#492) 2023-06-19 15:57:25 +02:00
env Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
internal Upgrade Terraform provider to 1.37.0 (#1235) 2024-02-23 10:41:42 +00:00
libraries Refactor library to artifact matching to not use pointers (#1172) 2024-02-05 15:29:45 +00:00
metadata Make `file_path` and `artifact_path` fields consistent with json tag (#987) 2023-11-15 13:37:26 +00:00
permissions Filter current user from resource permissions (#1262) 2024-03-11 15:05:15 +00:00
phases Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
python Only transform wheel libraries when using trampoline (#1248) 2024-03-04 12:34:03 +00:00
run Add `--validate-only` flag to run validate-only pipeline update (#1251) 2024-03-04 08:38:32 +00:00
schema Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
scripts Added test to verify scripts.Execute mutator works correctly (#1237) 2024-02-26 10:08:03 +00:00
tests Use dynamic configuration model in bundles (#1098) 2024-02-16 19:41:58 +00:00
bundle.go Move folders package into libs (#1184) 2024-02-07 16:33:18 +00:00
bundle_test.go Add integration test for mlops-stacks initialization (#1155) 2024-03-12 14:15:54 +00:00
context.go Rename variable `bundle -> b` (#989) 2023-11-15 14:03:36 +00:00
context_test.go Add command that writes the materialized bundle configuration to stdout (#95) 2022-11-21 15:39:53 +01:00
deferred.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
deferred_test.go Rename variable `bundle -> b` (#989) 2023-11-15 14:03:36 +00:00
log_string.go Tune output of bundle deploy command (#1047) 2023-12-21 08:00:37 +00:00
mutator.go Use dynamic configuration model in bundles (#1098) 2024-02-16 19:41:58 +00:00
mutator_test.go Rename variable `bundle -> b` (#989) 2023-11-15 14:03:36 +00:00
root.go Move folders package into libs (#1184) 2024-02-07 16:33:18 +00:00
root_test.go Add integration test for mlops-stacks initialization (#1155) 2024-03-12 14:15:54 +00:00
seq.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
seq_test.go Rename variable `bundle -> b` (#989) 2023-11-15 14:03:36 +00:00