Skip to content

Commit

Permalink
Fixed OSError: [Errno 95] bug in assess_workflows task by skippin…
Browse files Browse the repository at this point in the history
…g GIT-sourced workflows from static code analysis

Fix #2888
  • Loading branch information
nfx committed Oct 10, 2024
1 parent 9b8777a commit a81eed6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/databricks/labs/ucx/source_code/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from databricks.sdk import WorkspaceClient
from databricks.sdk.errors import NotFound, ResourceDoesNotExist
from databricks.sdk.service import compute, jobs
from databricks.sdk.service.jobs import Source
from databricks.sdk.service.workspace import Language

from databricks.labs.ucx.assessment.crawlers import runtime_version_tuple
Expand Down Expand Up @@ -213,6 +214,10 @@ def _register_egg(self, graph, library):
def _register_notebook(self, graph: DependencyGraph) -> Iterable[DependencyProblem]:
if not self._task.notebook_task:
return []
if self._task.notebook_task.source == Source.GIT:
# see https://github.com/databrickslabs/ucx/issues/2888
message = 'Notebooks are in GIT. Use "databricks labs ucx lint-local-code" CLI command to discover problems'
return [DependencyProblem("not-supported", message)]
self._named_parameters = self._task.notebook_task.base_parameters
notebook_path = self._task.notebook_task.notebook_path
logger.info(f'Discovering {self._task.task_key} entrypoint: {notebook_path}')
Expand Down

0 comments on commit a81eed6

Please sign in to comment.