Taragolis commented on PR #29519:
URL: https://github.com/apache/airflow/pull/29519#issuecomment-1430536171
New test for collection of flaky tests:
`TestDbtCloudRunJobOperator.test_execute_wait_for_termination[default_account-3-timeout]`.
I can't say that failure of this test happens on the regular basis but this is
not a first time when I notice that
```console
if job_run_status in
DbtCloudJobRunStatus.TERMINAL_STATUSES.value:
assert mock_get_job_run.call_count == 1
else:
# When the job run status is not in a terminal status or
"Success", the operator will
# continue to call ``get_job_run()`` until a ``timeout``
number of seconds has passed
# (3 seconds for this test). Therefore, there should be 4
calls of this function: one
# initially and 3 for each check done at a 1 second interval.
> assert mock_get_job_run.call_count == 4
E AssertionError: assert 2 == 4
E + where 2 = <MagicMock name='get_job_run'
id='140182627981488'>.call_count
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]