databricks-cli/internal/bundle/bundles
shreyas-goenka a27c24a397
Add prompt when a pipeline recreation happens (#1672)
## Changes
DLT pipeline recreations are destructive. They can lead to lost history
of previous updates, outage of the tables temporarily and are
potentially computationally expensive. Thus we make a breaking change
where a prompt is shown to the user if there configuration changes will
lead to a DLT recreation.

Users can skip the prompt by specifying  the `--auto-approve` flag.

This PR also fixes an issue with our test runner where logs from the
cmdio.Logger would not get propagated to the reader returned by our
cobra test runner.

## Tests
Manually, and new unit and integration tests.

```
➜  bundle-playground-3 cli bundle deploy
Uploading bundle files to /Users/63ec021d-b0c6-49c0-93a0-5123953a1cb2/.bundle/test/development/files...
The following DLT pipelines will be recreated. Underlying tables will be unavailable for a transient period until the newly recreated pipelines are run once successfully. History of previous pipeline update runs will be lost because of recreation:
  recreate pipeline foo

Would you like to proceed? [y/n]: n
Deployment cancelled!
```
2024-09-04 11:11:47 +00:00
..
basic Correctly overwrite local state if remote state is newer (#1008) 2023-11-24 11:15:46 +00:00
deploy_then_remove_resources Don't merge-in remote resources during depolyments (#1432) 2024-05-15 12:41:44 +00:00
empty_bundle Make bundle deploy work if no resources are defined (#767) 2023-09-13 22:50:37 +00:00
job_metadata Persist deployment metadata in WSFS (#845) 2023-10-27 12:55:43 +00:00
python_wheel_task Fix python wheel task integration tests (#1648) 2024-08-01 13:55:22 +00:00
python_wheel_task_with_environments Added support for job environments (#1379) 2024-04-22 11:44:34 +00:00
recreate_pipeline Add prompt when a pipeline recreation happens (#1672) 2024-09-04 11:11:47 +00:00
spark_jar_task Run Spark JAR task test on multiple DBR versions (#1665) 2024-08-09 15:13:31 +00:00
uc_schema Add resource for UC schemas to DABs (#1413) 2024-07-31 12:16:28 +00:00
with_includes Added `bundle deployment bind` and `unbind` command (#1131) 2024-02-14 18:04:45 +00:00