databricks-cli/cmd
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
..
account Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
api Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
auth Ignore environment variables for `auth profiles` (#1189) 2024-02-08 12:25:51 +00:00
bundle Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
configure Filter out system clusters for `--configure-cluster` (#1031) 2023-11-30 09:59:11 +00:00
fs Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
labs Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
root Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
sync Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
version Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
workspace Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
cmd.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00