Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{CI} Pin Jinja2 to 3.0.3 #21798

Merged
merged 1 commit into from
Mar 25, 2022
Merged

{CI} Pin Jinja2 to 3.0.3 #21798

merged 1 commit into from
Mar 25, 2022

Conversation

jiasli
Copy link
Member

@jiasli jiasli commented Mar 25, 2022

Description

CI failed:

https://dev.azure.com/azure-sdk/public/_build/results?buildId=1459759&view=logs&j=715ff7e7-0433-5a80-bbc9-ca9609d2bc48&t=7f464a6b-d59f-566f-20bd-0d339d7433d8&l=831

2022-03-25T03:56:05.2026491Z Extension error:
2022-03-25T03:56:05.2028477Z Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/opt/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/jinja2/__init__.py))

This is because Jinja2 released a new version yesterday which introduced breaking changes, but sphinx doesn't have version limits on Jinja2, causing the latest Jinja2 being installed.

TODO

This PR is only a workaround, the final solution would be to update sphinx to newer versions.

References

@ghost ghost added Auto-Assign Auto assign by bot CI CI labels Mar 25, 2022
@ghost ghost requested a review from yonzhan March 25, 2022 06:34
@ghost ghost assigned wangzelin007 Mar 25, 2022
@ghost ghost added this to the Mar 2022 (2022-04-06) milestone Mar 25, 2022
@@ -14,12 +14,11 @@ pip install -e ./tools
[ -d privates ] && pip install -qqq privates/*.whl
pip install $ALL_MODULES

pip install "sphinx==1.6.7" -q
pip install sphinx==1.6.7 Jinja2==3.0.3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should never use -q (quite) in pip install, as this will hide the dependency details.

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 25, 2022

CI

@jiasli jiasli merged commit 75f7048 into Azure:dev Mar 25, 2022
@jiasli jiasli deleted the jinja branch March 25, 2022 07:59
@kairu-ms kairu-ms mentioned this pull request May 25, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot CI CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants