Notebooks deployed through Asset Bundles do not use the default base environment

Offen
#3,887 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
go
Bereich
cli

Rechercherichtung

Beginne damit, das Problem über den Einstiegspunkt databricks bundle deploy ... mit einer konfigurierten standardmäßigen Basisumgebung und einer Notebook-Aufgabe zu reproduzieren. Verfolge den Bereitstellungspfad von Asset Bundle, um zu ermitteln, warum neue Notebooks den Standardwert nicht übernehmen und geänderte Notebooks ihre Auswahl verlieren. Als erledigt gilt die Aufgabe, wenn beide erwarteten Verhaltensweisen bei den gemeldeten Bereitstellungsschritten gegeben sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

DABs
Describe the issue

When creating a new notebook, the default base environment is correctly applied. However, when deploying a Asset Bundle, the notebooks do not have the base environment applied. Additionally, having manually applied the base environment directly, the next deploy will overwrite the selection.

Configuration
  • Have a base environment configured and set as default
  • Have a job with a notebook task
Steps to reproduce the behavior
  1. Apply base environment to notebook referenced by a job
  2. Make a small change to the notebook inside the bundle
  3. Run databricks bundle deploy ...
  4. Check that the environment selection has been reset
Expected Behavior

For new notebooks deployed, the default base environment should be applied.
When deploying changed notebooks, the selected base environment will not be reset.

Actual Behavior

Every deploy resets the selected base environment

OS and CLI version

VS Code extension 2.10.3 (Databricks CLI 0.266.0)
Tested on both Windows 11, and macOS 15.7.2

Is this a regression?

To my knowledge, this has never worked.

Vorherrschende Sprache
Go
Sterne
427
Forks
267
Ø Merge
2 T. 1 Std.
Gemergte PRs (30 T.)
233

Entwicklungsumgebung

  • Enthält ein Dockerfile oder eine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus databricks/cli

Alle Issues in databricks/cli

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.