-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Revert "Remove remaining Airflow 2.5 backcompat code from Google Prov… #36440
Conversation
…ider (apache#36366)" This reverts commit 2c2763f.
I think (though I have no idea how) this one triggered the (pretty repeatable) failure: https://github.com/apache/airflow/actions/runs/7331844040/job/19966037471 :
I don't think this is a direct cause - the error looks like a side-effect of some asyncio test - i just want to see if reverting it will bring the green status again (seems that it started to happen after this one was merged). |
It's a very strange one -- very consistently happening for Postgres 14 + Pyhon 3.10 (and only for that combination (!??!)... If that one will not fail, I plan to merge it and then we can try to start looking for the reason. |
Yep. Looks like reverting this change brings bavck "green" status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I will take a look once this one is merged.
I believe this error is manifestation of this pytest-asyncIo issue: pytest-dev/pytest-asyncio#200 It looks like the way how pytest-asyncio implements their pytest fixtures is that it (sometimes) creates a new event loop to handle tests and when there are some pending tasks those tests are not cleaned immediately when the fixture event loop is leaving the test scope. So seems that the change in airflow/providers/google/cloud/log/stackdriver_task_handler.py (this is where asyncio code is used) is triggering a condition where stackdriver's test is leaving an asyncio task behind and that task only gets cancelled much later - and accidentally it produces a log entry in the same logger that is then verified in |
Added #36442 to test the hypothesis |
…ider (#36366)"
This reverts commit 2c2763f.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.