Skip to content

Conversation

@Taragolis
Copy link
Contributor

Recently was released new version of Jinja2 (3.1.3) which seems like change some internal mechanism of load templates in jinja2.FileSystemLoader so our current mocking approach doesn't work anymore. This PR create templates files in temporary directory and add this directory to search path

Related to: #36728 (comment)


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@eladkal eladkal added this to the Airflow 2.8.1 milestone Jan 11, 2024
@eladkal eladkal added the type:misc/internal Changelog: Misc changes that should appear in change log label Jan 11, 2024
@Taragolis Taragolis merged commit 8b33e25 into apache:main Jan 11, 2024
@Taragolis Taragolis deleted the fix-test-jinja2-templates-files branch January 11, 2024 09:52
@potiuk
Copy link
Member

potiuk commented Jan 11, 2024

Nice!

@potiuk
Copy link
Member

potiuk commented Jan 11, 2024

Not only fixed but future-proof. Good job on it @Taragolis

potiuk pushed a commit that referenced this pull request Jan 13, 2024
ephraimbuddy pushed a commit that referenced this pull request Jan 15, 2024
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 16, 2024
Cherry-pick changes from apache/airflow#36731

Change-Id: Idbefea8ad262c380025c81267210682d7c98eeb0
GitOrigin-RevId: 231654c0bb200f8a277324e884a66d723d94c709
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants