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

Type-annotate tools/generate_torch_version #51637

Conversation

malfet
Copy link
Contributor

@malfet malfet commented Feb 3, 2021

And add it to mypy.ini

@malfet malfet added module: typing Related to mypy type annotations triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Feb 3, 2021
@malfet malfet requested a review from a team February 3, 2021 15:44
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Feb 3, 2021

💊 CI failures summary and remediations

As of commit 66be25d (more details on the Dr. CI page):


  • 2/2 failures introduced in this PR

🕵️ 1 new failure recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_linux_xenial_py3_clang5_asan_test1 (1/1)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Feb 03 16:19:48 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/lib/jenkins/workspace/aten/src/ATen/Utils.cpp:15:3 in
Feb 03 16:19:48     #7 0x561e48d8670b in PyEval_EvalCode /tmp/build/80754af9/python_1599604603603/work/Python/ceval.c:731
Feb 03 16:19:48     #8 0x561e48e06573 in run_mod /tmp/build/80754af9/python_1599604603603/work/Python/pythonrun.c:1025
Feb 03 16:19:48     #9 0x561e48e0660c in PyRun_StringFlags /tmp/build/80754af9/python_1599604603603/work/Python/pythonrun.c:949
Feb 03 16:19:48     #10 0x561e48e0666e in PyRun_SimpleStringFlags /tmp/build/80754af9/python_1599604603603/work/Python/pythonrun.c:445
Feb 03 16:19:48     #11 0x561e48e0a472 in run_command /tmp/build/80754af9/python_1599604603603/work/Modules/main.c:301
Feb 03 16:19:48     #12 0x561e48e0a472 in Py_Main /tmp/build/80754af9/python_1599604603603/work/Modules/main.c:749
Feb 03 16:19:48     #13 0x561e48cd443d in main /tmp/build/80754af9/python_1599604603603/work/Programs/python.c:69
Feb 03 16:19:48     #14 0x7fbbea28383f in __libc_start_main /build/glibc-e6zv40/glibc-2.23/csu/../csu/libc-start.c:291
Feb 03 16:19:48     #15 0x561e48db3d0a in _start /home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/src/glibc-2.12.2/csu/../sysdeps/x86_64/elf/start.S:103
Feb 03 16:19:48 
Feb 03 16:19:48 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/lib/jenkins/workspace/aten/src/ATen/Utils.cpp:15:3 in 
Feb 03 16:19:48 + retcode=1
Feb 03 16:19:48 + set -e
Feb 03 16:19:48 + return 1
Feb 03 16:19:48 + [[ pytorch-linux-xenial-py3-clang5-asan-test1 == *-NO_AVX-* ]]
Feb 03 16:19:48 + [[ pytorch-linux-xenial-py3-clang5-asan-test1 == *-NO_AVX2-* ]]
Feb 03 16:19:48 + '[' -n https://github.com/pytorch/pytorch/pull/51637 ']'
Feb 03 16:19:48 + [[ pytorch-linux-xenial-py3-clang5-asan-test1 != *coverage* ]]
Feb 03 16:19:48 ++ mktemp
Feb 03 16:19:48 + DETERMINE_FROM=/tmp/tmp.JKf8vmpf9B
Feb 03 16:19:48 + file_diff_from_base /tmp/tmp.JKf8vmpf9B

1 failure not recognized by patterns:

Job Step Action
CircleCI pytorch_linux_xenial_cuda10_2_cudnn7_py3_gcc7_test2 Run tests 🔁 rerun

1 job timed out:

  • pytorch_linux_xenial_py3_clang5_asan_test1

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Copy link
Contributor

@janeyx99 janeyx99 left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -90,7 +90,7 @@ def get_and_check_clang_format(verbose=False):
# If the directory doesn't exist, try to create it.
try:
os.mkdir(CLANG_FORMAT_DIR)
except os.OSError as e:
except OSError as e:
Copy link
Contributor

Choose a reason for hiding this comment

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

why did this have the os. prefix before? I don't see a from os import OSError in the file currently so I'm a bit confused

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know, found those while running mypy on the file.

@facebook-github-bot
Copy link
Contributor

@malfet merged this pull request in 627ec8b.

@malfet malfet deleted the malfet/add-type-annotatations-to-generate_torch_version.py branch February 4, 2021 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged module: typing Related to mypy type annotations triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants