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

Databricks workspace import_dir command fails without raising an exception in Azure CI/CD #658

Open
Halpph opened this issue Jul 4, 2023 · 0 comments

Comments

@Halpph
Copy link

Halpph commented Jul 4, 2023

When running the Databricks CLI Python library in Azure CI/CD using the following command:

`databricks workspace import_dir ./PowerBI /PowerBI

The command fails with an error message:
AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'.

The critical issue is that despite this error, an exception is not being raised, which results in the Azure CI/CD pipeline reporting a successful (green) status. Due to this, the error went unnoticed for one month.

Expected Behavior:
The pipeline should fail, and an exception should be raised when encountering this error.

Actual Behavior:
The pipeline does not fail and no exception is thrown despite the error, which leads to a misleading successful pipeline status.

Steps to Reproduce:
Run the following command in Azure CI/CD pipeline with Databricks CLI Python library:
Copy code
databricks workspace import_dir ./PowerBI /PowerBI

Additional Information:
Databricks CLI version: (0.17.4)
Python version: (3.10.4)
I am not sure if this is related to the configuration of the Databricks CLI or the Azure pipeline. Any help would be greatly appreciated. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant