From 0d9c9504bd8ce84f74837292b6bb342f30cb1517 Mon Sep 17 00:00:00 2001 From: "denis.bilenko" Date: Thu, 19 Nov 2026 09:51:19 +0000 Subject: [PATCH] acc: quote cluster policy ids substituted into databricks.yml Cluster policy ids are 16 hex characters. Substituted unquoted into YAML, an id made of digits with a leading zero parses as an integer (0012345678901234 -> 12345678901234) and digits around a single E parse as a float (12345678901E0042 -> 1.2345678901e52), so jobs/create gets an invalid policy id. cloud: TestAccept/bundle/config-remote-sync/external_cluster_policy_cross_target Co-authored-by: Isaac --- .../cluster_policy_replaces_array/databricks.yml.tmpl | 2 +- .../databricks.yml.tmpl | 4 ++-- .../missing_cluster_policy/databricks.yml.tmpl | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/acceptance/bundle/config-remote-sync/cluster_policy_replaces_array/databricks.yml.tmpl b/acceptance/bundle/config-remote-sync/cluster_policy_replaces_array/databricks.yml.tmpl index 70c90e5c246..62c6f7e927d 100644 --- a/acceptance/bundle/config-remote-sync/cluster_policy_replaces_array/databricks.yml.tmpl +++ b/acceptance/bundle/config-remote-sync/cluster_policy_replaces_array/databricks.yml.tmpl @@ -11,7 +11,7 @@ resources: tasks: - task_key: main new_cluster: - policy_id: $POLICY_ID + policy_id: "$POLICY_ID" spark_version: $DEFAULT_SPARK_VERSION node_type_id: $NODE_TYPE_ID num_workers: 1 diff --git a/acceptance/bundle/config-remote-sync/external_cluster_policy_cross_target/databricks.yml.tmpl b/acceptance/bundle/config-remote-sync/external_cluster_policy_cross_target/databricks.yml.tmpl index 038d9fabebb..b2781c18bd2 100644 --- a/acceptance/bundle/config-remote-sync/external_cluster_policy_cross_target/databricks.yml.tmpl +++ b/acceptance/bundle/config-remote-sync/external_cluster_policy_cross_target/databricks.yml.tmpl @@ -32,7 +32,7 @@ targets: dev: default: true variables: - policy_id: $DEV_POLICY_ID + policy_id: "$DEV_POLICY_ID" prod: variables: - policy_id: $PROD_POLICY_ID + policy_id: "$PROD_POLICY_ID" diff --git a/acceptance/bundle/config-remote-sync/missing_cluster_policy/databricks.yml.tmpl b/acceptance/bundle/config-remote-sync/missing_cluster_policy/databricks.yml.tmpl index c0b88dcf2ed..3c6448f8eb5 100644 --- a/acceptance/bundle/config-remote-sync/missing_cluster_policy/databricks.yml.tmpl +++ b/acceptance/bundle/config-remote-sync/missing_cluster_policy/databricks.yml.tmpl @@ -12,7 +12,7 @@ resources: tasks: - task_key: main new_cluster: - policy_id: $POLICY_ID + policy_id: "$POLICY_ID" spark_version: $DEFAULT_SPARK_VERSION node_type_id: $NODE_TYPE_ID num_workers: 1 @@ -29,7 +29,7 @@ resources: tasks: - task_key: main new_cluster: - policy_id: $POLICY_ID + policy_id: "$POLICY_ID" spark_version: $DEFAULT_SPARK_VERSION node_type_id: $NODE_TYPE_ID num_workers: 1 @@ -44,7 +44,7 @@ resources: tasks: - task_key: main new_cluster: - policy_id: $POLICY_ID + policy_id: "$POLICY_ID" spark_version: $DEFAULT_SPARK_VERSION node_type_id: $NODE_TYPE_ID num_workers: 1 @@ -56,7 +56,7 @@ resources: tasks: - task_key: main new_cluster: - policy_id: $POLICY_ID + policy_id: "$POLICY_ID" spark_version: $DEFAULT_SPARK_VERSION node_type_id: $NODE_TYPE_ID autoscale: