Skip to content

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

@Halpph

Description

@Halpph

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions