-
We are currently on airflow 2.4.3 (where this test has worked). In testing what its going to take to update to higher versions, starting with 2.5.0, we hit Using pytest and following test
We use the following helper function to create the task and context to run with
The task The official error is
In looking in the release notes for 2.5.0, this seems to be the cause #27771 In debugging through the code, its pushing the whole context into the Then when it goes through XcomArg recursion it just endlessly loops through itself. Any ideas on how to better setup this test? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The dag itself runs fine, its just the unittest that struggles |
Beta Was this translation helpful? Give feedback.
-
Guess this was a case of the rubber duck. I had read over https://airflow.apache.org/docs/apache-airflow/stable/best-practices.html#unit-tests previously, and tried the suggestion of testing a custom operator. However I realized I tried The following changes got the test working again all the way up to 2.10.4
And in the test
|
Beta Was this translation helpful? Give feedback.
Guess this was a case of the rubber duck. I had read over https://airflow.apache.org/docs/apache-airflow/stable/best-practices.html#unit-tests previously, and tried the suggestion of testing a custom operator. However I realized I tried
task.run()
and notti.run()
The following changes got the test working again all the way up to 2.10.4