cli
cli copied to clipboard
Pass template name to README for templates that inherit from 'default'
Changes
The default, default-python, pydabs, and lakeflow-pipelines templates now correctly display their template name in the generated README instead of always saying 'default template'.
Why
Showing the actual template name to customers seems helpful, even if it comes at the cost of a bit of extra code in the template.
Tests
Standard template acceptance tests
| Env | π¨βKNOWN | πβRECOVERED | πβSKIP | β βpass | πβskip | Time | |
|---|---|---|---|---|---|---|---|
| π¨β | aws linux | 7 | 2 | 360 | 613 | 17:28 | |
| π¨β | aws windows | 7 | 2 | 361 | 612 | 18:13 | |
| πβ | aws-ucws linux | 7 | 2 | 498 | 503 | 21:22 | |
| πβ | aws-ucws windows | 7 | 2 | 499 | 502 | 20:40 | |
| πβ | azure linux | 1 | 4 | 360 | 612 | 20:56 | |
| πβ | azure windows | 1 | 4 | 361 | 611 | 19:45 | |
| πβ | azure-ucws linux | 1 | 4 | 494 | 502 | 20:52 | |
| πβ | azure-ucws windows | 1 | 4 | 495 | 501 | 20:55 | |
| πβ | gcp linux | 1 | 4 | 356 | 615 | 18:23 | |
| πβ | gcp windows | 1 | 4 | 357 | 614 | 16:27 |
9 failing tests:
| Test Name | aws linux | aws windows | aws-ucws linux | aws-ucws windows | azure linux | azure windows | azure-ucws linux | azure-ucws windows | gcp linux | gcp windows |
|---|---|---|---|---|---|---|---|---|---|---|
| TestAccept | π¨βK | π¨βK | πβR | πβR | πβR | πβR | πβR | πβR | πβR | πβR |
| TestAccept/bundle/resources/permissions | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS |
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions | π¨βK | π¨βK | πβR | πβR | πβS | πβS | πβS | πβS | πβS | πβS |
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=direct | π¨βK | π¨βK | πβR | πβR | ||||||
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=terraform | π¨βK | π¨βK | πβR | πβR | ||||||
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions | π¨βK | π¨βK | πβR | πβR | πβS | πβS | πβS | πβS | πβS | πβS |
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=direct | π¨βK | π¨βK | πβR | πβR | ||||||
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=terraform | π¨βK | π¨βK | πβR | πβR | ||||||
| TestAccept/bundle/run/app-with-job | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS |
Top 50 slowest tests (at least 2 minutes):
| duration | env | testname |
|---|---|---|
| 5:43 | aws windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 5:37 | gcp windows | TestAccept/ssh/connection |
| 5:34 | aws-ucws linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 5:33 | gcp windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 5:30 | aws-ucws windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 5:26 | aws-ucws linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 5:25 | aws windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 5:25 | gcp linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 5:24 | aws-ucws linux | TestAccept/ssh/connection |
| 5:18 | aws linux | TestAccept/ssh/connection |
| 5:17 | gcp windows | TestSecretsPutSecretStringValue |
| 5:14 | gcp linux | TestAccept/bundle/resources/clusters/deploy/data_security_mode/DATABRICKS_BUNDLE_ENGINE=direct |
| 5:13 | azure linux | TestAccept/ssh/connection |
| 5:12 | aws-ucws linux | TestAccept/bundle/resources/clusters/deploy/data_security_mode/DATABRICKS_BUNDLE_ENGINE=direct |
| 5:09 | aws-ucws windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 5:04 | gcp windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 5:02 | aws-ucws windows | TestAccept/bundle/resources/clusters/deploy/data_security_mode/DATABRICKS_BUNDLE_ENGINE=direct |
| 5:02 | azure windows | TestSecretsPutSecretStringValue |
| 5:01 | gcp linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 4:55 | aws windows | TestSecretsPutSecretStringValue |
| 4:47 | azure-ucws windows | TestAccept/ssh/connection |
| 4:47 | aws windows | TestAccept/bundle/resources/clusters/deploy/data_security_mode/DATABRICKS_BUNDLE_ENGINE=direct |
| 4:38 | gcp linux | TestAccept/ssh/connection |
| 4:31 | azure-ucws linux | TestAccept/ssh/connection |
| 4:30 | azure-ucws windows | TestSecretsPutSecretStringValue |
| 4:27 | aws windows | TestAccept/ssh/connection |
| 4:24 | gcp windows | TestAccept/bundle/resources/clusters/deploy/data_security_mode/DATABRICKS_BUNDLE_ENGINE=direct |
| 4:24 | azure windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 4:21 | azure linux | TestAccept/bundle/resources/clusters/deploy/data_security_mode/DATABRICKS_BUNDLE_ENGINE=direct |
| 4:14 | azure windows | TestAccept/bundle/resources/clusters/deploy/data_security_mode/DATABRICKS_BUNDLE_ENGINE=direct |
| 4:12 | azure-ucws linux | TestAccept/bundle/resources/clusters/deploy/data_security_mode/DATABRICKS_BUNDLE_ENGINE=direct |
| 4:05 | azure linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 4:00 | azure-ucws windows | TestAccept/bundle/resources/clusters/deploy/data_security_mode/DATABRICKS_BUNDLE_ENGINE=direct |
| 3:58 | azure-ucws linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 3:57 | azure linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 3:50 | azure linux | TestSecretsPutSecretStringValue |
| 3:41 | azure windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 3:41 | azure-ucws windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 3:38 | azure-ucws windows | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 3:35 | azure-ucws linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 3:07 | aws-ucws windows | TestAccept/ssh/connection |
| 3:06 | aws linux | TestSecretsPutSecretStringValue |
| 3:05 | azure-ucws windows | TestAccept/bundle/resources/synced_database_tables/basic |
| 3:03 | azure-ucws linux | TestAccept/bundle/resources/synced_database_tables/basic |
| 3:02 | azure windows | TestAccept/ssh/connection |
| 2:38 | azure-ucws linux | TestSecretsPutSecretStringValue |
| 2:30 | aws linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=terraform |
| 2:29 | aws linux | TestAccept/bundle/resources/clusters/deploy/update-after-create/DATABRICKS_BUNDLE_ENGINE=direct |
| 2:22 | azure-ucws linux | TestAccept |
| 2:20 | aws-ucws linux | TestAccept |
Commit: https://github.com/databricks/cli/commit/079891f7667bc2c4cea13f98da952f358eefa1b7
| Env | π¨βKNOWN | πβflaky | πβRECOVERED | πβSKIP | β βpass | πβskip | Time | |
|---|---|---|---|---|---|---|---|---|
| π¨β | aws linux | 7 | 2 | 1 | 1 | 396 | 600 | 60:08 |
| π¨β | aws windows | 10 | 1 | 397 | 599 | 51:15 | ||
| π¨β | aws-ucws linux | 3 | 7 | 1 | 552 | 484 | 63:19 | |
| π¨β | aws-ucws windows | 3 | 7 | 1 | 553 | 483 | 62:13 | |
| π¨β | azure linux | 4 | 2 | 3 | 394 | 599 | 65:29 | |
| π¨β | azure windows | 1 | 3 | 3 | 397 | 598 | 52:07 | |
| π¨β | azure-ucws linux | 4 | 3 | 548 | 483 | 68:30 | ||
| π¨β | azure-ucws windows | 3 | 2 | 1 | 3 | 547 | 482 | 68:11 |
| π¨β | gcp linux | 4 | 3 | 383 | 605 | 53:40 | ||
| π¨β | gcp windows | 4 | 3 | 384 | 604 | 55:12 |
13 failing tests:
| Test Name | aws linux | aws windows | aws-ucws linux | aws-ucws windows | azure linux | azure windows | azure-ucws linux | azure-ucws windows | gcp linux | gcp windows |
|---|---|---|---|---|---|---|---|---|---|---|
| TestAccept | π¨βK | π¨βK | π¨βK | π¨βK | π¨βK | πβf | π¨βK | π¨βK | π¨βK | π¨βK |
| TestAccept/bundle/resources/permissions | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS |
| TestAccept/bundle/resources/permissions/factcheck | β βp | β βp | β βp | β βp | πβf | β βp | β βp | πβf | πβs | πβs |
| TestAccept/bundle/resources/permissions/factcheck/DATABRICKS_BUNDLE_ENGINE=terraform | β βp | β βp | β βp | β βp | πβf | β βp | β βp | πβf | ||
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions | π¨βK | π¨βK | πβR | πβR | πβS | πβS | πβS | πβS | πβS | πβS |
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=direct | π¨βK | π¨βK | πβR | πβR | ||||||
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=terraform | π¨βK | π¨βK | πβR | πβR | ||||||
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions | π¨βK | π¨βK | πβR | πβR | πβS | πβS | πβS | πβS | πβS | πβS |
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=direct | π¨βK | π¨βK | πβR | πβR | ||||||
| TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=terraform | π¨βK | π¨βK | πβR | πβR | ||||||
| TestAccept/bundle/run/app-with-job | πβR | π¨βK | π¨βK | π¨βK | π¨βK | πβf | π¨βK | π¨βK | π¨βK | π¨βK |
| TestAccept/bundle/run/app-with-job/DATABRICKS_BUNDLE_ENGINE=direct | πβf | π¨βK | πβR | π¨βK | π¨βK | πβf | π¨βK | πβR | π¨βK | π¨βK |
| TestAccept/bundle/run/app-with-job/DATABRICKS_BUNDLE_ENGINE=terraform | πβf | π¨βK | π¨βK | πβR | π¨βK | π¨βK | π¨βK | π¨βK | π¨βK | π¨βK |
Top 50 slowest tests (at least 2 minutes):
| duration | env | testname |
|---|---|---|
| 13:26 | gcp windows | TestAccept/bundle/integration_whl/interactive_single_user/DATABRICKS_BUNDLE_ENGINE=terraform |
| 12:46 | aws-ucws windows | TestAccept/bundle/integration_whl/interactive_single_user/DATABRICKS_BUNDLE_ENGINE=terraform |
| 12:45 | azure windows | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=direct |
| 12:39 | azure-ucws linux | TestAccept/bundle/resources/permissions/factcheck/DATABRICKS_BUNDLE_ENGINE=terraform |
| 12:06 | aws windows | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=direct |
| 11:10 | aws-ucws linux | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=terraform/DATA_SECURITY_MODE=SINGLE_USER |
| 10:52 | azure-ucws windows | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=direct |
| 10:51 | aws-ucws linux | TestAccept/bundle/resources/model_serving_endpoints/running-endpoint/DATABRICKS_BUNDLE_ENGINE=terraform |
| 10:40 | aws-ucws linux | TestAccept/bundle/resources/model_serving_endpoints/running-endpoint/DATABRICKS_BUNDLE_ENGINE=direct |
| 9:57 | azure-ucws linux | TestSparkJarTaskDeployAndRunOnVolumes/Databricks_Runtime_15.4_LTS |
| 9:30 | gcp linux | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=terraform/DATA_SECURITY_MODE=SINGLE_USER |
| 9:24 | azure linux | TestAccept/bundle/integration_whl/wrapper/DATABRICKS_BUNDLE_ENGINE=direct |
| 8:54 | aws-ucws linux | TestAccept/bundle/integration_whl/custom_params/DATABRICKS_BUNDLE_ENGINE=direct |
| 8:42 | azure-ucws windows | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=terraform |
| 8:36 | azure windows | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=terraform |
| 8:27 | azure linux | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=direct |
| 8:12 | aws-ucws windows | TestAccept/bundle/integration_whl/custom_params/DATABRICKS_BUNDLE_ENGINE=direct |
| 8:12 | azure-ucws linux | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=direct |
| 8:12 | aws linux | TestAccept/bundle/resources/clusters/run/spark_python_task/DATABRICKS_BUNDLE_ENGINE=direct |
| 8:09 | azure-ucws linux | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=terraform |
| 8:07 | aws windows | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=terraform |
| 8:00 | aws-ucws windows | TestAccept/bundle/integration_whl/custom_params/DATABRICKS_BUNDLE_ENGINE=terraform |
| 8:00 | aws-ucws windows | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=terraform/DATA_SECURITY_MODE=USER_ISOLATION |
| 7:55 | aws windows | TestSparkJarTaskDeployAndRunOnWorkspace/Databricks_Runtime_15.4_LTS |
| 7:54 | azure-ucws linux | TestSparkJarTaskDeployAndRunOnVolumes/Databricks_Runtime_13.3_LTS |
| 7:48 | aws-ucws windows | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=direct/DATA_SECURITY_MODE=USER_ISOLATION |
| 7:48 | aws linux | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=terraform/DATA_SECURITY_MODE=USER_ISOLATION |
| 7:47 | aws-ucws windows | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:38 | aws windows | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=terraform/DATA_SECURITY_MODE=USER_ISOLATION |
| 7:35 | gcp windows | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=direct |
| 7:32 | azure linux | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:32 | aws-ucws linux | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=terraform/DATA_SECURITY_MODE=USER_ISOLATION |
| 7:31 | gcp linux | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:31 | gcp windows | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=direct/DATA_SECURITY_MODE=USER_ISOLATION |
| 7:29 | gcp linux | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=direct |
| 7:29 | gcp linux | TestAccept/bundle/integration_whl/interactive_single_user/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:29 | gcp linux | TestAccept/bundle/integration_whl/interactive_single_user/DATABRICKS_BUNDLE_ENGINE=direct |
| 7:27 | aws-ucws windows | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=terraform/DATA_SECURITY_MODE=SINGLE_USER |
| 7:22 | azure windows | TestAccept/bundle/integration_whl/interactive_single_user/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:21 | gcp windows | TestAccept/bundle/integration_whl/interactive_cluster/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:20 | aws-ucws linux | TestAccept/bundle/integration_whl/interactive_cluster/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:19 | azure-ucws linux | TestAccept/bundle/resources/model_serving_endpoints/running-endpoint/DATABRICKS_BUNDLE_ENGINE=direct |
| 7:18 | aws windows | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=direct/DATA_SECURITY_MODE=USER_ISOLATION |
| 7:13 | gcp windows | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:10 | azure-ucws windows | TestAccept/bundle/integration_whl/interactive_single_user/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:09 | aws-ucws linux | TestSparkJarTaskDeployAndRunOnWorkspace/Databricks_Runtime_14.3_LTS |
| 7:09 | aws-ucws windows | TestAccept/bundle/integration_whl/interactive_cluster/DATABRICKS_BUNDLE_ENGINE=terraform |
| 7:07 | aws linux | TestAccept/bundle/integration_whl/base/DATABRICKS_BUNDLE_ENGINE=direct |
| 6:59 | aws windows | TestAccept/bundle/integration_whl/interactive_cluster_dynamic_version/DATABRICKS_BUNDLE_ENGINE=terraform/DATA_SECURITY_MODE=SINGLE_USER |
| 6:55 | aws linux | TestAccept/bundle/integration_whl/interactive_single_user/DATABRICKS_BUNDLE_ENGINE=terraform |