cli icon indicating copy to clipboard operation
cli copied to clipboard

Fix permissions for 'models'

Open denik opened this issue 2 months ago β€’ 2 comments

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:       }

denik avatar Oct 20 '25 12:10 denik

Run: 18651990631

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

eng-dev-ecosystem-bot avatar Oct 20 '25 12:10 eng-dev-ecosystem-bot

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.

denik avatar Oct 20 '25 12:10 denik