cli
cli copied to clipboard
Fix permissions for 'models'
Tests
New regression tests. Without this PR they fail at 'bundle deploy' with:
Error: terraform apply: exit status 1
Error: cannot create permissions: at least one type of resource identifier must be set; allowed fields: alert_v2_id, app_name, authorization, cluster_id, cluster_policy_id, dashboard_id, database_instance_name, directory_id, directory_path, experiment_id, instance_pool_id, job_id, notebook_id, notebook_path, pipeline_id, registered_model_id, repo_id, repo_path, serving_endpoint_id, sql_alert_id, sql_dashboard_id, sql_endpoint_id, sql_query_id, vector_search_endpoint_id, workspace_file_id, workspace_file_path
+ with databricks_permissions.mlflow_model_foo,
+ on bundle.tf.json line 40, in resource.databricks_permissions.mlflow_model_foo:
+ 40: }
| Env | πͺ²βBUG | ββFAIL | π¨βKNOWN | πβflaky | πβSKIP | β βpass | πβskip | |
|---|---|---|---|---|---|---|---|---|
| πͺ²β | aws linux | 2 | 1 | 1 | 319 | 563 | ||
| πͺ²β | aws windows | 2 | 1 | 1 | 320 | 562 | ||
| πͺ²β | aws-ucws linux | 2 | 1 | 1 | 435 | 459 | ||
| πͺ²β | aws-ucws windows | 2 | 1 | 1 | 1 | 435 | 458 | |
| πͺ²β | azure linux | 2 | 1 | 2 | 1 | 317 | 562 | |
| πͺ²β | azure windows | 2 | 1 | 2 | 1 | 318 | 561 | |
| πͺ²β | azure-ucws linux | 2 | 1 | 1 | 435 | 458 | ||
| πͺ²β | azure-ucws windows | 2 | 1 | 1 | 436 | 457 | ||
| πͺ²β | gcp linux | 2 | 1 | 2 | 1 | 316 | 564 | |
| πͺ²β | gcp windows | 2 | 1 | 1 | 319 | 563 |
10 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 | π¨βK | π¨βK | π¨βK | π¨βK | π¨βK |
| TestAccept/bundle/deploy/mlops-stacks | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB |
| TestAccept/bundle/deploy/mlops-stacks/DATABRICKS_BUNDLE_ENGINE=terraform | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB | πͺ²βB |
| TestAccept/bundle/resources/synced_database_tables/basic | πβs | πβs | β βp | ββF | πβs | πβs | β βp | β βp | πβs | πβs |
| TestAccept/bundle/run/app-with-job | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS | πβS |
| TestAccept/bundle/templates/default-python/combinations/classic | β βp | β βp | β βp | β βp | πβf | β βp | β βp | β βp | β βp | β βp |
| TestAccept/bundle/templates/default-python/combinations/classic/DATABRICKS_BUNDLE_ENGINE=terraform/DLT=no/NBOOK=yes/PY=no | β βp | β βp | β βp | β βp | πβf | β βp | β βp | β βp | β βp | β βp |
| TestAccept/bundle/templates/default-python/integration_classic | β βp | β βp | β βp | β βp | β βp | πβf | β βp | β βp | πβf | β βp |
| TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=direct-exp/UV_PYTHON=3.12 | β βp | β βp | β βp | β βp | β βp | β βp | β βp | β βp | πβf | β βp |
| TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=terraform/UV_PYTHON=3.12 | β βp | β βp | β βp | β βp | β βp | πβf | β βp | β βp | β βp | β βp |
TestAccept/bundle/deploy/mlops-stacks/DATABRICKS_BUNDLE_ENGINE=terraform fails with
Error: cannot create permissions: '[dev [USERNAME]] dev-project_name_[UNIQUE_NAME]-model' is not a valid registered model ID.