mirror of https://github.com/databricks/cli.git
4e8e027380
## Changes Sort the tasks in the resultant `bundle.tf.json`. This is important because configuration from one task can leak into another if the tasks are not sorted. For more details see: 1. https://github.com/databricks/terraform-provider-databricks/issues/3951 2. https://github.com/databricks/terraform-provider-databricks/issues/4011 ## Tests Unit test and manually. For manual testing I used the following configuration: ``` resources: jobs: foo: tasks: - task_key: task-Z notebook_task: notebook_path: nb.py source: GIT existing_cluster_id: 0715-133738-ju0ma84z - task_key: task-1 notebook_task: notebook_path: ${workspace.file_path}/local.py source: WORKSPACE existing_cluster_id: 0715-133738-ju0ma84z depends_on: - task_key: task-Z git_source: git_provider: gitHub git_url: https://github.com/shreyas-goenka/job-source-tmp.git git_branch: main ``` Steps (1): 1. Deploy this bundle. 2. Comment out "source: GIT" 3. Deploy again Before: Deploying this bundle twice would fail. This is because the "source: GIT" would carry over to the next deployment. After: There was no error on the subsequent deployment. Steps (2): 1. Deploy once 2. Deploy again Before: Works correctly but leads to a update API call every time. After: No diff is detected by terraform. |
||
---|---|---|
.. | ||
convert.go | ||
convert_cluster.go | ||
convert_cluster_test.go | ||
convert_experiment.go | ||
convert_experiment_test.go | ||
convert_grants.go | ||
convert_grants_test.go | ||
convert_job.go | ||
convert_job_test.go | ||
convert_model.go | ||
convert_model_serving_endpoint.go | ||
convert_model_serving_endpoint_test.go | ||
convert_model_test.go | ||
convert_permissions.go | ||
convert_permissions_test.go | ||
convert_pipeline.go | ||
convert_pipeline_test.go | ||
convert_quality_monitor.go | ||
convert_quality_monitor_test.go | ||
convert_registered_model.go | ||
convert_registered_model_test.go | ||
convert_schema.go | ||
convert_schema_test.go | ||
rename_keys.go |