pytest
pytest copied to clipboard
Pytest Recursive Logging Redirection within Airflow Task
Hi team, I am trying to run Pytest inside of an Airflow task. Doing so causes a recursive logging scenario. As I understand it based on https://github.com/apache/airflow/discussions/30107#discussioncomment-5314709, Airflow tasks redirects logs back to stdout and then Pytest redirects the same, thus causing the recursion. I searched your documentation and tried all the various log capture parameters (-s, --capture=fs, etc), but nothing seems to do the trick. Apologies for the misunderstanding, but is there a way I can tell Pytest not to perform whichever redirection is causing the behavior described in the Airflow comment?
A proper integration seems to be necessary
Im under the impression that both stdio capture and log capture have to be disable in airflow
pytest -p no:logging to disable pytest's logging plugin entirely?
This issue is stale because it has been open for 14 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.