-
Notifications
You must be signed in to change notification settings - Fork 24.6k
Use python3.6 compatible APIs in clang_tidy.py #60659
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
Conversation
💊 CI failures summary and remediationsAs of commit 48b5f9e (more details on the Dr. CI page and at hud.pytorch.org/pr/60659):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, but would there be a downside to upgrading the docker image's python?
@janeyx99 There's no major downside in upgrading the Docker image's python version. The image takes quite some time to build. I thought updating the script itself would be faster. The modified script can also run with python >= 3.8, so changing the docker python version should not affect it. |
Later on down the road maybe this should change since clang-tidy does take a while compared to other lint jobs, we just have to be careful about making sure the output streams don’t get interleaved. |
0d8e7a9
to
48b5f9e
Compare
@1ntEgr8 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: This PR make `tools/clang_tidy.py` use python 3.6 APIs for `asyncio` and `shlex`. I ran into some issues when running this script with the `-j` flag inside of the clang-tidy docker image (which uses python 3.6). Specifically, the functions `asycnio.run` and `shlex.join` are available in python >= 3.8. This change does not affect CI because we do not run the clang-tidy job in parallel. Pull Request resolved: pytorch#60659 Reviewed By: albanD Differential Revision: D29377851 Pulled By: 1ntEgr8 fbshipit-source-id: 92ab7ee6782b78d40ffccd03f1718ede4204d948
Summary: This PR make `tools/clang_tidy.py` use python 3.6 APIs for `asyncio` and `shlex`. I ran into some issues when running this script with the `-j` flag inside of the clang-tidy docker image (which uses python 3.6). Specifically, the functions `asycnio.run` and `shlex.join` are available in python >= 3.8. This change does not affect CI because we do not run the clang-tidy job in parallel. Pull Request resolved: #60659 Reviewed By: albanD Differential Revision: D29377851 Pulled By: 1ntEgr8 fbshipit-source-id: 92ab7ee6782b78d40ffccd03f1718ede4204d948
This PR make
tools/clang_tidy.py
use python 3.6 APIs forasyncio
andshlex
.I ran into some issues when running this script with the
-j
flag inside of the clang-tidy docker image (which uses python 3.6). Specifically, the functionsasycnio.run
andshlex.join
are available in python >= 3.8.This change does not affect CI because we do not run the clang-tidy job in parallel.