Fix pytest CI failure: upgrade Flask and dependencies to resolve Jinja2 3.x incompatibility#111
Merged
DaTiC0 merged 2 commits intoalert-autofix-19from Mar 13, 2026
Merged
Conversation
…a2 3.x incompatibility Co-authored-by: DaTiC0 <13198638+DaTiC0@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
[WIP] [19] Fix workflow permissions for code scanning
Fix pytest CI failure: upgrade Flask and dependencies to resolve Jinja2 3.x incompatibility
Mar 13, 2026
Copilot stopped work on behalf of
DaTiC0 due to an error
March 13, 2026 08:43
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.
Flask==1.1.2importsjinja2.escapewhich was removed in Jinja2 3.0. Sincerequirements.txtalready pinsJinja2>=3.0.0, the test suite failed at import time withImportError: cannot import name 'escape' from 'jinja2'.Summary
requirements.txtto versions compatible with Jinja2 3.x and each other.jinja2.escape(removed in Jinja2 3.0); Flask 2.x usesmarkupsafe.escapeand is fully compatible with the already-required Jinja2 3.x.Flask==1.1.2>=2.0.3,<3.0.0Flask-SQLAlchemy==2.5.1>=3.0.0,<4.0.0Flask-Login==0.4.1>=0.6.0,<1.0.0SQLAlchemy==1.4.47>=1.4.18,<3.0.0Werkzeug>=2.0.0,<2.4.0>=2.3.7,<3.0.0Flask-SQLAlchemy 3.x and Flask-Login 0.6.x are the minimum versions that support Flask 2.x. Flask 2.3 requires Werkzeug ≥ 2.3.7. All 10 existing tests pass locally.
Validation
make test)make health)AI-Assisted Review (if applicable)
Risk & Rollback
requirements.txtto the previous pinned versions.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.