`bundle plan` always plans an App update for `config.env` values, because the Apps API does not return them
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Reproduce with the small bundle in the issue: run databricks bundle deploy -t dev, then databricks bundle plan -t dev -o json, and compare changes for resources.apps.repro against remote_state.config.env. The payload does not name the Go source files involved, so locate the Apps diff logic from there. Done when a plan with unchanged config.env values (plain value and value_from) reports skip, and a real env change still plans an update.
索引モデルが issue の本文から書いたものです。
説明
Describe the issue
For an App with config.env entries, databricks bundle plan plans an update of every config.env[N].value and config.env[N].value_from on every run, with identical old and new values, even immediately after a successful deploy with nothing changed. The live App returned by the Apps API lists each env entry with its name only, so the comparison against the remote state never matches.
Consequences:
- A bundle containing such an App can never plan clean, so CI checks that gate on "no changes" (or drift detection) always flag it.
- Every
bundle deployof the plan redeploys and restarts the App, even when nothing changed.
Configuration
bundle:
name: env-diff-repro
targets:
dev:
mode: production
default: true
resources:
apps:
repro:
name: env-diff-repro
source_code_path: ./app
config:
command: [python, app.py]
env:
- name: GREETING
value: hello
app/app.py is any App that starts, for example a stdlib http.server listening on DATABRICKS_APP_PORT. The same happens with value_from bound to an App resource (we saw it with a postgres resource).
Steps to reproduce
databricks bundle deploy -t devdatabricks bundle plan -t dev -o json, with nothing changed.
Expected behavior
resources.apps.repro plans skip.
Actual behavior
"resources.apps.repro": {
"action": "update",
"changes": {
"config.env[0].value": {"action": "update", "old": "hello", "new": "hello"}
}
}
and remote_state.config.env is [{"name": "GREETING"}]. Removing env makes the plan clean (skip). Deploying the plan redeploys the App each time.
OS and CLI version
- Databricks CLI v1.21.0 and v1.23.0 (both reproduce)
- macOS (arm64);
bundle plan -o jsonwritesplan_version2
Is this a regression?
Unknown.
Debug Logs
Can attach on request.
- 主要言語
- Go
- スター
- 424
- フォーク
- 261
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 224
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
databricks/cli のほかの issue
-
Apps commands only accept relative path to app.yml対応中かも @yuri-rod が 30 日前に担当しました。 オープンCLI
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
databricks/cli#6910 ·
メンテナーはふだん 1 日以内に返信
-
DABs
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
databricks/cli#6670 · リアクション 1 件 ·
メンテナーはふだん 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 日以内に返信
-
bundle validate does not catch missing trigger.table_update.condition with multiple tables対応中かも @yuri-rod が 16 日前に担当しました。 オープンDABs Enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
databricks/cli#7101 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
ai-driven-fuzzing bug Minor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
linagora/cozy-stack#5162 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
prometheus/prometheus-mcp#213 ·
メンテナーはふだん 3 日以内に返信
-
Deleting a client-role keycloak_generic_role_mapper removes all roles of that client from the scope mapping対応中かも @albarkauss が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
keycloak/terraform-provider-keycloak#1786 ·
メンテナーはふだん 5 日以内に返信
-
mqtt_paho: transformer.DeleteExtension and DeleteAttribute make WritePubMessage fail対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
cloudevents/sdk-go#1349 ·
-
getChaosHub always returns totalFaults "0"対応中かも @Aryanbhargava18 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
litmuschaos/litmus#5710 ·
メンテナーはふだん 3 日以内に返信