Closed shreyas-goenka closed 2 months ago
Triggered a round of nightlies on this PR.
Waiting for the nightlies to pass before merging.
The test for deploying empty bundles failed. This is because we used to always run terraform apply,
which generated a barebones tfstate, but now we do not run terraform apply
if the plan is empty.
Fixed by handing the case of state file missing in the terraform.StatePush
mutator.
Triggering another round of the nightlies.
The night are green now.
Changes
With https://github.com/databricks/cli/pull/1413 we started to compute and partially print the plan if it contained deletion of UC schemas. This PR uses the precomputed plan to avoid double planning when actually doing the terraform plan.
This fixes a performance regression introduced in https://github.com/databricks/cli/pull/1413.
Tests
Tested manually.