Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kyle-kent opened this issue Dec 6, 2024 · 0 comments
Open

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

kyle-kent opened this issue Dec 6, 2024 · 0 comments
Labels
Bug Something isn't working DABs DABs related issues

Comments

@kyle-kent
Copy link

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

@kyle-kent kyle-kent added the DABs DABs related issues label Dec 6, 2024
@andrewnester andrewnester added the Bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working DABs DABs related issues
Projects
None yet
Development

No branches or pull requests

2 participants