databricks-cli/libs/sync
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
..
testdata/sync-fileset Refactor change computation for sync (#785) 2023-10-03 13:47:46 +00:00
diff.go Refactor change computation for sync (#785) 2023-10-03 13:47:46 +00:00
diff_test.go Refactor change computation for sync (#785) 2023-10-03 13:47:46 +00:00
dirset.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
dirset_test.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
event.go Drain sync event channel before returning (#253) 2023-03-16 17:48:17 +01:00
event_test.go Add optional JSON output for sync command (#230) 2023-03-08 10:27:19 +01:00
path.go Extend deployment mode support (#577) 2023-07-30 07:19:49 +00:00
path_test.go Remove base path checks during sync (#576) 2023-07-14 11:43:20 +02:00
snapshot.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
snapshot_state.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
snapshot_state_test.go Refactor change computation for sync (#785) 2023-10-03 13:47:46 +00:00
snapshot_test.go Refactor change computation for sync (#785) 2023-10-03 13:47:46 +00:00
sync.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
sync_test.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
watchdog.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00