Skip to content

Bundles don't deploy correctly if remote was deleted #1976

@kyle-kent

Description

@kyle-kent

Describe the issue

A clear and concise description of what the issue is

Bundles do not deploy correctly if they've been deleted from the UI. Removing the .databricks/bundle/<target>/sync-snapshots/* files fixes the problem. Clearly there is an issue with the snapshot aspect of the deployment.

Configuration

Use default init project. See below.

Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Run databricks bundle init
  2. Pick the python notebook bundle type
  3. deploy it databricks bundle deploy
  4. Go to the default root path using the ui (/Workspace/Users/<email>/.bundle/${bundle.name}/${bundle.target})
  5. Delete the bundle (which is equivalent to ${bundle.name} above.
  6. deploy it again databricks bundle deploy
  7. Nothing will be under the .bundle/${bundle.name}/${bundle.target}/files/ dir.

Expected Behavior

The program should check that all the expected files exist when writing.

Actual Behavior

The snapshot of the project assumes, incorrectly, that all files already exist on databricks.

OS and CLI version

Databricks CLI v0.234.0

Is this a regression?

i dont know.

Debug Logs

Output logs if you run the command with debug logs enabled. Example: databricks bundle deploy --log-level=debug. Redact if needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingDABsDABs related issuesNo Autoclose

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions