github-actions[bot] opened a new pull request, #45826:
URL: https://github.com/apache/airflow/pull/45826
The DAG serialization tests load all of the example and system test DAGs, and
there were two places that these tests opened connections at parse time
resulting in loads of extra of test time.
- The SystemTestContextBuilder was trying to fetch things from SSM. This was
addressed by adding a functools.cache on the function
- The Bedrock example dag was setting/caching the underlying conn object
globally. This was addressed by making the Airflow connection a global,
rather than the Bedrock conn. This fix is not _great_, but it does
massively
help
Before:
> 111 passed, 1 warning in 439.37s (0:07:19)
After:
> 111 passed, 1 warning in 71.76s (0:01:11)
(cherry picked from commit 102e853)
Co-authored-by: Ash Berlin-Taylor <[email protected]>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]