Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flakey test in DAG serialization (apache#44480)
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: 1. `pytest tests/serialization/test_dag_serialization.py::TestStringifiedDAGs::test_deserialization_with_dag_context` -> greeen 2. `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.)
- Loading branch information