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

TestDbApiHook::test_run_no_log randomly fails #45774

Open
potiuk opened this issue Jan 18, 2025 · 0 comments
Open

TestDbApiHook::test_run_no_log randomly fails #45774

potiuk opened this issue Jan 18, 2025 · 0 comments

Comments

@potiuk
Copy link
Member

potiuk commented Jan 18, 2025

Sometimes TestDbApiHook::test_run_no_log randomly fails (another caplog case) - usually in compat tests:

________________________ TestDbApiHook.test_run_no_log _________________________
providers/tests/common/sql/hooks/test_dbapi.py:516: in test_run_no_log
    assert len(caplog.messages) == 1
E   assert 2 == 1
E    +  where 2 = len(['Rows affected: 0', "Task was destroyed but it is pending!\ntask: <Task pending name='Task-113' coro=<<async_generator_asend without __name__>()> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f8d90c493a0>()]>>"])
E    +    where ['Rows affected: 0', "Task was destroyed but it is pending!\ntask: <Task pending name='Task-113' coro=<<async_generator_asend without __name__>()> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f8d90c493a0>()]>>"] = <_pytest.logging.LogCaptureFixture object at 0x7f8d72fc7cd0>.messages
----------------------------- Captured stdout call -----------------------------

For example : https://github.com/apache/airflow/actions/runs/12835627081/job/35795783211#step:11:2417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Flaky stuff
Development

No branches or pull requests

1 participant