Uh oh!
There was an error while loading. Please reload this page.
Give more time for trigger logs to propagate in tests - #31470
Conversation
After apache#29482 triggerer logs are not printed directly to the stdout, but they are queued in memory and written by a separate thread. This causes a slight flakiness in case of CI tests for test_trigger_job - especially on MSSQL. This simple workaround should give more time to the logs to propgate during the test
potiuk
commented
May 23, 2023
Example flaky test: https://github.com/apache/airflow/actions/runs/5054738339/jobs/9070519469?pr=31469 |
hussein-awala
left a comment
There was a problem hiding this comment.
Is it enough to ensure the success of the test?
potiuk
commented
May 23, 2023
It's magic number. In case you have REALLY busy system when the writing thread gets starved, I guess it might still happen. We could likely implement some "complete" solution that would not have to wait for it, but it would take quite some time to figure out how to tap into the in-memory queue of the writing thread. Adding 0.5 s will of course increase time of running for the tests, and it will also likely decrease the probability of such event to a REALLY LOW one. And it's one line.
|
After #29482 triggerer logs are not printed directly to the stdout, but they are queued in memory and written by a separate thread. This causes a slight flakiness in case of CI tests for test_trigger_job - especially on MSSQL.
This simple workaround should give more time to the logs to propgate during the test
^ 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.rstor{issue_number}.significant.rst, in newsfragments.