Ensure back-supported jinja2 deprecations warn about removal in Cylc 8.8 - #7436
Merged
Conversation
* Back support Jinja2 interfaces deprecated at 3.0 and removed at 3.1. * Jinja2 renamed a bunch of functions and deprecated their old names. * Our users didn't spot this as Python warnings are not visible to them. * As of cylc#7365 (8.6.6) Python warnings originating from Jinja2 will be turned into Cylc warnings. * To provide a migration window, the old function names will be supported in Cylc 8.7.x and removed in 8.8.0.
This was
linked to
issues
Sep 1, 2026
Closed
oliver-sanders
approved these changes
Sep 2, 2026
oliver-sanders
left a comment
Member
There was a problem hiding this comment.
Think this makes sense, managed to create a right tangle of changes there!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7376
Follow-up to #7365 which made sure any Jinja deprecation warnings are displayed to users. These include a bunch of functions removed in Jinja 3.1, which currently we warn will break in Cylc 8.7.0.
Follow-up to #7325 which provided extended support for some of these functions on master, meaning that the warnings for these should now read 8.8.0.
The solution is simply cherry-picking the extended support from #7325.
Check List
CONTRIBUTING.mdand added my name as a Code Contributor.?.?.xbranch.