The GitHub Actions job "Tests" on airflow.git has succeeded.
Run started by GitHub user ashb (triggered by ashb).

Head commit for run:
8cdb700a683ab5963227125849bb30ec052ba615 / Ash Berlin-Taylor <[email protected]>
Fix flakey test in DAG serialization

This behaviour is very odd, and is not in anyway clear _why_ it's happening,
but the fix is to not construct a DAG object, but to use attrs to tell us what
the fields are -- which is better behaviour anyway.

To reproduce the issue before this change:

`pytest 
tests/serialization/test_dag_serialization.py::TestStringifiedDAGs::test_deserialization_with_dag_context`
 -> greeen
`pytest 
tests/serialization/test_dag_serialization.py::TestStringifiedDAGs::test_deserialization_with_dag_context`
 -> boom

(So by dag objects existing in the DB it somehow "poluted" the
DagContextManager/TaskContextManager stack. I haven't dug into exactly how
that might be happening.)

Report URL: https://github.com/apache/airflow/actions/runs/12087205981

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to