`bundle plan` always plans an App update for `config.env` values, because the Apps API does not return them
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Go
- Estrelas
- 424
- Forks
- 261
- Merge médio
- 1d 16h
- PRs com merge (30d)
- 224
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de databricks/cli
-
Apps commands only accept relative path to app.ymlTalvez já em andamento @yuri-rod assumiu há 30 dias. AbertaCLI
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
databricks/cli#6910 ·
Mantenedores costumam responder em até 1 dia
-
DABs
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
databricks/cli#6670 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Direct engine: bundle deployment bind fails when experimental.immutable_folder is trueTalvez já em andamento @andrewnester assumiu hoje. AbertaBug DABs
databricks/cli#7306 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
DABs Enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
databricks/cli#7256 ·
Mantenedores costumam responder em até 1 dia
-
bundle validate does not catch missing trigger.table_update.condition with multiple tablesTalvez já em andamento @yuri-rod assumiu há 15 dias. AbertaDABs Enhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
databricks/cli#7101 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de databricks/cli
Issues semelhantes
-
Routing rule or circuit breaker trip expression with an unknown CEL function hangs daprdTalvez já em andamento @RaphaelFakhri assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
[falco-talon] Setting `podAnnotations` makes the chart fail to renderTalvez já em andamento @RaphaelFakhri assumiu hoje. Abertaneeds-kind
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
falcosecurity/charts#1084 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
DataDog/terraform-provider-datadog#4479 ·
Mantenedores costumam responder em até 2 dias
-
component/tests needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
NVIDIA/nodewright#967 ·
Mantenedores costumam responder em até 1 dia