immutable_folder cannot be used with a mode: development target
維護者通常 1 天內回覆
評估
研究方向
Start by tracing how experimental.immutable_folder is parsed and resolved, then inspect the development-mode uniqueness validation that rejects the snapshot file_path; the issue names no source files or tests. Reproduce with the supplied configuration using databricks bundle validate -t dev and -t prod. Done means the supported behavior is implemented and validation handles the dev and production targets as expected.
由索引模型根據 Issue 內容生成。
描述
Describe the issue
experimental.immutable_folder: true cannot be used in a bundle that has a target with mode: development.
- A
mode: developmenttarget fails validation. The development-mode uniqueness check rejects the snapshotfile_path. - A target cannot set
experimental, so the flag cannot be turned off for the development target only. - The flag ignores a bundle variable.
immutable_folder: ${var.immutable}stays off when the variable istrue.
So a bundle with a development target and a shared production target cannot use the feature. Together with #6960, which blocks bundle validate when a top-level permissions block is present, the usual dev and prod bundle layout cannot adopt immutable_folder.
Configuration
bundle:
name: immutable-dev-repro
engine: direct
experimental:
immutable_folder: true
resources:
jobs:
hello:
name: hello
tasks:
- task_key: hello
environment_key: default
spark_python_task:
python_file: ./src/hello.py
environments:
- environment_key: default
spec:
environment_version: "2"
targets:
dev:
mode: development
default: true
prod:
mode: production
workspace:
root_path: /Workspace/Shared/immutable-dev-repro/prod
Steps to reproduce the behavior
- Run
databricks bundle validate -t dev. Result:Error: file_path must start with '~/' or contain the current username to ensure uniqueness when using 'mode: development' - Move the flag under the
prodtarget (targets.prod.experimental.immutable_folder: true) and rundatabricks bundle validate -t prod. Result:Warning: unknown field: experimental. The flag has no effect. - Set
experimental.immutable_folder: ${var.immutable}withdefault: false, and setimmutable: trueintargets.prod.variables. Rundatabricks bundle validate -t prod -o json. Result:workspace.file_pathis/Workspace/Shared/immutable-dev-repro/prod/files, not a snapshot path. The flag stays off.
Expected Behavior
One of these:
- The development-mode check accepts the snapshot
file_path, because each snapshot is already unique. - A target can set
experimental.immutable_folder, so development can keep it off. - The flag resolves a bundle variable.
Actual Behavior
The development target fails validation, and there is no supported way to turn the flag on only for non-development targets.
OS and CLI version
Databricks CLI v1.18.0, macOS. The 1.19.0 release notes do not mention immutable_folder.
Is this a regression?
No. immutable_folder is new.
Debug Logs
The validation error in step 1 is the only output. I can attach --log-level=debug output on request.
- 主要語言
- Go
- 星號
- 424
- 分支
- 261
- 平均合併
- 1 天 19 小時
- 30 天內合併 PR
- 218
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
databricks/cli 的其他 Issue
-
Apps commands only accept relative path to app.yml可能已有人在做 @yuri-rod 於 31 天前認領。 未關閉CLI
難度 2/5 1-3 小時 新手友好度 82/100
databricks/cli#6910 ·
維護者通常 1 天內回覆
-
DABs
難度 2/5 1-3 小時 新手友好度 68/100
databricks/cli#6670 · 1 個 reaction ·
維護者通常 1 天內回覆
-
DABs
難度 3/5 1-2 天 新手友好度 65/100
databricks/cli#7359 · 1 個 reaction ·
維護者通常 1 天內回覆
-
Direct engine: bundle deployment bind fails when experimental.immutable_folder is true可能已有人在做 @andrewnester 於 1 天前認領。 未關閉Bug DABs
databricks/cli#7306 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
DABs Enhancement
難度 4/5 3-5 天 新手友好度 55/100
databricks/cli#7256 ·
維護者通常 1 天內回覆
相似的 Issue
-
needs-triage
難度 2/5 1-3 小時 新手友好度 72/100
stacklok/toolhive-catalog#1890 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
integrations/terraform-provider-github#3719 · 1 則留言 ·
維護者通常 1 天內回覆
-
Wayfinder sample agents don't reach the Data Plane on the quickstart pack可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉Type/Bug
難度 2/5 1-3 小時 新手友好度 82/100
thunder-id/thunderid#6402 ·
維護者通常 1 天內回覆
-
GoStratumEngine未關閉addition
難度 1/5 1 小時以內 新手友好度 72/100
awesome-selfhosted/awesome-selfhosted-data#3290 ·
維護者通常 1 天內回覆
-
log4j2.xml from orchestration.extraConfiguration is rendered twice, and the install fails when orchestration.log4j2 is also set可能已有人在做 @irisfield 今天認領。 未關閉platform/local
難度 2/5 1-3 小時 新手友好度 78/100
camunda/camunda-platform-helm#7854 ·
維護者通常 1 天內回覆