Skip to content

Commit 933292e

Browse files
authored
fix codecov flakiness (#1666)
## Changes - Codecov flakiness comes from `installer/workflows.py`, in particular this line https://github.com/databrickslabs/ucx/blob/9c67520c3a32e105b1acd85210cc1254a7de262a/src/databricks/labs/ucx/installer/workflows.py#L331-L333 ### Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] manually tested - [x] verified on staging environment (screenshot attached)
1 parent 9c67520 commit 933292e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/test_install.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import io
22
import json
3+
import logging
34
from datetime import datetime, timedelta
45
from unittest.mock import MagicMock, create_autospec, patch
56

@@ -301,6 +302,8 @@ def result():
301302
ws.jobs.wait_get_run_job_terminated_or_skipped.side_effect = OperationFailed("does not compute")
302303
install_state = InstallState.from_installation(mock_installation_with_jobs)
303304
installer = DeployedWorkflows(ws, install_state, timedelta(seconds=1))
305+
logger = logging.getLogger("databricks.labs.ucx.installer.workflows")
306+
logger.setLevel(logging.DEBUG)
304307
with pytest.raises(Unknown) as failure:
305308
installer.run_workflow("assessment")
306309

0 commit comments

Comments
 (0)