Skip to content

Refactor six#45254

Closed
bugra wants to merge 1 commit intopytorch:masterfrom
bugra:bugra/refactor-six-usage
Closed

Refactor six#45254
bugra wants to merge 1 commit intopytorch:masterfrom
bugra:bugra/refactor-six-usage

Conversation

@bugra
Copy link
Copy Markdown
Contributor

@bugra bugra commented Sep 24, 2020

Partially Fixes #42919.

We are using six for mainly Python2/Python3 compatibility. This is no longer needed. We also have if PY3 checks which is also no longer needed. This PR also addresses metaclass, functools and other type of refactoring.

@bugra bugra requested a review from apaszke as a code owner September 24, 2020 01:25
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Sep 24, 2020
@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Sep 24, 2020

💊 CI failures summary and remediations

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


  • 23/23 failures possibly* introduced in this PR
    • 3/23 non-CircleCI failure(s)

🕵️ 20 new failures recognized by patterns

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

See CircleCI build pytorch_linux_bionic_py3_8_gcc9_coverage_test (1/20)

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

Sep 24 03:01:09 ERROR:sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "/var/lib/jenkins/.cache/torch_extensions/test_compilation_error_formatting/main.cpp: In function ‘int main()’:\n/var/lib/jenkins/.cache/torch_extensions/test_compilation_error_formatting/main.cpp:2:22: error: expected ‘;’ before ‘}’ token\n 2 | int main() { return 0 }\n | ^~\n | ;\n" }
Sep 24 03:01:09     raise RuntimeError(err_message) 
Sep 24 03:01:09 RuntimeError: test_type_hints failed! 
Sep 24 03:01:09  
Sep 24 03:01:09 real	50m18.339s 
Sep 24 03:01:09 user	60m57.727s 
Sep 24 03:01:09 sys	3m59.551s 
Sep 24 03:01:09 + cleanup 
Sep 24 03:01:09 + retcode=1 
Sep 24 03:01:09 + set +x 
Sep 24 03:01:09 =================== sccache compilation log =================== 
Sep 24 03:01:09 ERROR:sccache::server: Compilation failed: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "/var/lib/jenkins/.cache/torch_extensions/test_compilation_error_formatting/main.cpp: In function ‘int main()’:\n/var/lib/jenkins/.cache/torch_extensions/test_compilation_error_formatting/main.cpp:2:22: error: expected ‘;’ before ‘}’ token\n    2 | int main() { return 0 }\n      |                      ^~\n      |                      ;\n" } 
Sep 24 03:01:09  
Sep 24 03:01:09 =========== If your build fails, please take a look at the log above for possible reasons =========== 
Sep 24 03:01:09 Compile requests                 0 
Sep 24 03:01:09 Compile requests executed        0 
Sep 24 03:01:09 Cache hits                       0 
Sep 24 03:01:09 Cache misses                     0 
Sep 24 03:01:09 Cache timeouts                   0 
Sep 24 03:01:09 Cache read errors                0 
Sep 24 03:01:09 Forced recaches                  0 
Sep 24 03:01:09 Cache write errors               0 

See CircleCI build pytorch_windows_vs2019_py36_cuda10.1_test2 (2/20)

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

ls: cannot access '/c/Users/circleci/project/build/win_tmp/ci_scripts/*': No such file or directory
+ TMP_DIR_WIN='C:\Users\circleci\project\build\win_tmp'
+ export PYTORCH_FINAL_PACKAGE_DIR=/c/users/circleci/workspace/build-results
+ PYTORCH_FINAL_PACKAGE_DIR=/c/users/circleci/workspace/build-results
++ cygpath -w /c/users/circleci/workspace/build-results
+ export 'PYTORCH_FINAL_PACKAGE_DIR_WIN=C:\users\circleci\workspace\build-results'
+ PYTORCH_FINAL_PACKAGE_DIR_WIN='C:\users\circleci\workspace\build-results'
+ mkdir -p /c/Users/circleci/project/build/win_tmp/build/torch
+ CI_SCRIPTS_DIR=/c/Users/circleci/project/build/win_tmp/ci_scripts
+ mkdir -p /c/Users/circleci/project/build/win_tmp/ci_scripts
++ ls '/c/Users/circleci/project/build/win_tmp/ci_scripts/*'
ls: cannot access '/c/Users/circleci/project/build/win_tmp/ci_scripts/*': No such file or directory
+ '[' -n '' ']'
+ export SCRIPT_HELPERS_DIR=/c/Users/circleci/project/.jenkins/pytorch/win-test-helpers
+ SCRIPT_HELPERS_DIR=/c/Users/circleci/project/.jenkins/pytorch/win-test-helpers
+ '[' -n https://github.com/pytorch/pytorch/pull/45254 ']'
+ DETERMINE_FROM=/c/Users/circleci/project/build/win_tmp/determine_from
+ file_diff_from_base /c/Users/circleci/project/build/win_tmp/determine_from
+ set +e
+ git fetch origin master --quiet
load pubkey "/c/Users/circleci/.ssh/id_rsa": invalid format 
+ set -e

See CircleCI build pytorch_linux_xenial_py3_clang7_onnx_ort_test2 (3/20)

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

Sep 24 01:55:38 E AttributeError: module 'math' has no attribute 'remainder'
Sep 24 01:55:38 /opt/conda/lib/python3.6/site-packages/torch/_ops.py:9: in <module> 
Sep 24 01:55:38     import torch.jit 
Sep 24 01:55:38 /opt/conda/lib/python3.6/site-packages/torch/jit/__init__.py:16: in <module> 
Sep 24 01:55:38     from torch.jit._script import ( 
Sep 24 01:55:38 /opt/conda/lib/python3.6/site-packages/torch/jit/_script.py:1082: in <module> 
Sep 24 01:55:38     _register_builtin(_unwrap_optional, "aten::_unwrap_optional") 
Sep 24 01:55:38 /opt/conda/lib/python3.6/site-packages/torch/jit/_builtins.py:139: in _register_builtin 
Sep 24 01:55:38     _get_builtin_table()[id(fn)] = op 
Sep 24 01:55:38 /opt/conda/lib/python3.6/site-packages/torch/jit/_builtins.py:124: in _get_builtin_table 
Sep 24 01:55:38     _builtin_ops.append((math.remainder, "aten::mathremainder"))  # type: ignore 
Sep 24 01:55:38 E   AttributeError: module 'math' has no attribute 'remainder' 
Sep 24 01:55:38 - generated xml file: /var/lib/jenkins/workspace/caffe2_tests/python/result.xml - 
Sep 24 01:55:38 =========================== short test summary info ============================ 
Sep 24 01:55:38 ERROR ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/workspace_test.py 
Sep 24 01:55:38 !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 
Sep 24 01:55:38 ========================= 3 warnings, 1 error in 2.18s ========================= 

See CircleCI build pytorch_linux_xenial_cuda10_2_cudnn7_py3_ge_config_legacy_test (4/20)

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

Sep 24 02:13:21 caused by: Connection refused (os error 111)
Sep 24 02:13:21 ++++ extract_trap_cmd 
Sep 24 02:13:21 ++++ printf '%s\n' '' 
Sep 24 02:13:21 +++ printf '%s\n' cleanup 
Sep 24 02:13:21 ++ trap -- ' 
Sep 24 02:13:21 cleanup' EXIT 
Sep 24 02:13:21 ++ [[ pytorch-linux-xenial-cuda10.1-cudnn7-ge_config_legacy-test != *pytorch-win-* ]] 
Sep 24 02:13:21 ++ which sccache 
Sep 24 02:13:21 ++ sccache --stop-server 
Sep 24 02:13:21 Stopping sccache server... 
Sep 24 02:13:21 error: couldn't connect to server 
Sep 24 02:13:21 caused by: Connection refused (os error 111) 
Sep 24 02:13:21 ++ true 
Sep 24 02:13:21 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 02:13:21 ++ [[ pytorch-linux-xenial-cuda10.1-cudnn7-ge_config_legacy-test == *rocm* ]] 
Sep 24 02:13:21 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 02:13:21 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 02:13:21 ++ RUST_LOG=sccache::server=error 
Sep 24 02:13:21 ++ sccache --start-server 
Sep 24 02:13:21 Starting sccache server... 
Sep 24 02:13:21 ++ sccache --zero-stats 
Sep 24 02:13:21 Compile requests                 0 

See CircleCI build pytorch_xla_linux_bionic_py3_6_clang9_build (5/20)

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

Sep 24 01:33:39 caused by: Connection refused (os error 111)
Sep 24 01:33:39 ++++ extract_trap_cmd 
Sep 24 01:33:39 ++++ printf '%s\n' '' 
Sep 24 01:33:39 +++ printf '%s\n' cleanup 
Sep 24 01:33:39 ++ trap -- ' 
Sep 24 01:33:39 cleanup' EXIT 
Sep 24 01:33:39 ++ [[ pytorch-xla-linux-bionic-py3.6-clang9-build != *pytorch-win-* ]] 
Sep 24 01:33:39 ++ which sccache 
Sep 24 01:33:39 ++ sccache --stop-server 
Sep 24 01:33:39 Stopping sccache server... 
Sep 24 01:33:39 error: couldn't connect to server 
Sep 24 01:33:39 caused by: Connection refused (os error 111) 
Sep 24 01:33:39 ++ true 
Sep 24 01:33:39 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:33:39 rm: cannot remove '/var/lib/jenkins/sccache_error.log': No such file or directory 
Sep 24 01:33:39 ++ true 
Sep 24 01:33:39 ++ [[ pytorch-xla-linux-bionic-py3.6-clang9-build == *rocm* ]] 
Sep 24 01:33:39 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:33:39 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:33:39 ++ RUST_LOG=sccache::server=error 
Sep 24 01:33:39 ++ sccache --start-server 
Sep 24 01:33:39 Starting sccache server... 

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_ge_config_simple_test (6/20)

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

Sep 24 01:58:35 caused by: Connection refused (os error 111)
Sep 24 01:58:35 ++++ extract_trap_cmd 
Sep 24 01:58:35 ++++ printf '%s\n' '' 
Sep 24 01:58:35 +++ printf '%s\n' cleanup 
Sep 24 01:58:35 ++ trap -- ' 
Sep 24 01:58:35 cleanup' EXIT 
Sep 24 01:58:35 ++ [[ pytorch-linux-xenial-py3.6-gcc5.4-ge_config_simple-test != *pytorch-win-* ]] 
Sep 24 01:58:35 ++ which sccache 
Sep 24 01:58:35 ++ sccache --stop-server 
Sep 24 01:58:35 Stopping sccache server... 
Sep 24 01:58:35 error: couldn't connect to server 
Sep 24 01:58:35 caused by: Connection refused (os error 111) 
Sep 24 01:58:35 ++ true 
Sep 24 01:58:35 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:58:35 ++ [[ pytorch-linux-xenial-py3.6-gcc5.4-ge_config_simple-test == *rocm* ]] 
Sep 24 01:58:35 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:58:35 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:58:35 ++ RUST_LOG=sccache::server=error 
Sep 24 01:58:35 ++ sccache --start-server 
Sep 24 01:58:35 Starting sccache server... 
Sep 24 01:58:35 ++ sccache --zero-stats 
Sep 24 01:58:35 Compile requests                 0 

See CircleCI build pytorch_linux_bionic_py3_6_clang9_test (7/20)

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

Sep 24 01:57:36 caused by: Connection refused (os error 111)
Sep 24 01:57:36 ++++ extract_trap_cmd 
Sep 24 01:57:36 ++++ printf '%s\n' '' 
Sep 24 01:57:36 +++ printf '%s\n' cleanup 
Sep 24 01:57:36 ++ trap -- ' 
Sep 24 01:57:36 cleanup' EXIT 
Sep 24 01:57:36 ++ [[ pytorch-linux-bionic-py3.6-clang9-test != *pytorch-win-* ]] 
Sep 24 01:57:36 ++ which sccache 
Sep 24 01:57:36 ++ sccache --stop-server 
Sep 24 01:57:36 Stopping sccache server... 
Sep 24 01:57:36 error: couldn't connect to server 
Sep 24 01:57:36 caused by: Connection refused (os error 111) 
Sep 24 01:57:36 ++ true 
Sep 24 01:57:36 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:57:36 ++ [[ pytorch-linux-bionic-py3.6-clang9-test == *rocm* ]] 
Sep 24 01:57:36 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:57:36 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:57:36 ++ RUST_LOG=sccache::server=error 
Sep 24 01:57:36 ++ sccache --start-server 
Sep 24 01:57:36 Starting sccache server... 
Sep 24 01:57:36 ++ sccache --zero-stats 
Sep 24 01:57:36 Compile requests                 0 

See CircleCI build pytorch_python_doc_build (8/20)

Step: "Doc Build and Push" (full log | diagnosis details | 🔁 rerun)

Sep 24 02:06:53 AttributeError: module 'math' has no attribute 'remainder'
Sep 24 02:06:53   File "/opt/conda/lib/python3.6/site-packages/torch/_ops.py", line 9, in <module> 
Sep 24 02:06:53     import torch.jit 
Sep 24 02:06:53   File "/opt/conda/lib/python3.6/site-packages/torch/jit/__init__.py", line 16, in <module> 
Sep 24 02:06:53     from torch.jit._script import ( 
Sep 24 02:06:53   File "/opt/conda/lib/python3.6/site-packages/torch/jit/_script.py", line 1082, in <module> 
Sep 24 02:06:53     _register_builtin(_unwrap_optional, "aten::_unwrap_optional") 
Sep 24 02:06:53   File "/opt/conda/lib/python3.6/site-packages/torch/jit/_builtins.py", line 139, in _register_builtin 
Sep 24 02:06:53     _get_builtin_table()[id(fn)] = op 
Sep 24 02:06:53   File "/opt/conda/lib/python3.6/site-packages/torch/jit/_builtins.py", line 124, in _get_builtin_table 
Sep 24 02:06:53     _builtin_ops.append((math.remainder, "aten::mathremainder"))  # type: ignore 
Sep 24 02:06:53 AttributeError: module 'math' has no attribute 'remainder' 
Sep 24 02:06:53 Makefile:17: recipe for target 'figures' failed 
Sep 24 02:06:53 make: *** [figures] Error 1 

See CircleCI build pytorch_linux_backward_compatibility_check_test (9/20)

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

Sep 24 01:57:59 caused by: Connection refused (os error 111)
Sep 24 01:57:59 ++++ extract_trap_cmd 
Sep 24 01:57:59 ++++ printf '%s\n' '' 
Sep 24 01:57:59 +++ printf '%s\n' cleanup 
Sep 24 01:57:59 ++ trap -- ' 
Sep 24 01:57:59 cleanup' EXIT 
Sep 24 01:57:59 ++ [[ pytorch-linux-backward-compatibility-check-test != *pytorch-win-* ]] 
Sep 24 01:57:59 ++ which sccache 
Sep 24 01:57:59 ++ sccache --stop-server 
Sep 24 01:57:59 Stopping sccache server... 
Sep 24 01:57:59 error: couldn't connect to server 
Sep 24 01:57:59 caused by: Connection refused (os error 111) 
Sep 24 01:57:59 ++ true 
Sep 24 01:57:59 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:57:59 ++ [[ pytorch-linux-backward-compatibility-check-test == *rocm* ]] 
Sep 24 01:57:59 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:57:59 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:57:59 ++ RUST_LOG=sccache::server=error 
Sep 24 01:57:59 ++ sccache --start-server 
Sep 24 01:57:59 Starting sccache server... 
Sep 24 01:57:59 ++ sccache --zero-stats 
Sep 24 01:57:59 Compile requests                 0 

See CircleCI build pytorch_linux_xenial_cuda10_2_cudnn7_py3_ge_config_profiling_test (10/20)

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

Sep 24 02:13:30 caused by: Connection refused (os error 111)
Sep 24 02:13:30 ++++ extract_trap_cmd 
Sep 24 02:13:30 ++++ printf '%s\n' '' 
Sep 24 02:13:30 +++ printf '%s\n' cleanup 
Sep 24 02:13:30 ++ trap -- ' 
Sep 24 02:13:30 cleanup' EXIT 
Sep 24 02:13:30 ++ [[ pytorch-linux-xenial-cuda10.1-cudnn7-ge_config_profiling-test != *pytorch-win-* ]] 
Sep 24 02:13:30 ++ which sccache 
Sep 24 02:13:30 ++ sccache --stop-server 
Sep 24 02:13:30 Stopping sccache server... 
Sep 24 02:13:30 error: couldn't connect to server 
Sep 24 02:13:30 caused by: Connection refused (os error 111) 
Sep 24 02:13:30 ++ true 
Sep 24 02:13:30 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 02:13:30 ++ [[ pytorch-linux-xenial-cuda10.1-cudnn7-ge_config_profiling-test == *rocm* ]] 
Sep 24 02:13:30 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 02:13:30 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 02:13:30 ++ RUST_LOG=sccache::server=error 
Sep 24 02:13:30 ++ sccache --start-server 
Sep 24 02:13:30 Starting sccache server... 
Sep 24 02:13:30 ++ sccache --zero-stats 
Sep 24 02:13:30 Compile requests                 0 

See CircleCI build pytorch_linux_xenial_cuda10_2_cudnn7_py3_gcc7_test (11/20)

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

Sep 24 02:13:18 caused by: Connection refused (os error 111)
Sep 24 02:13:18 ++++ extract_trap_cmd 
Sep 24 02:13:18 ++++ printf '%s\n' '' 
Sep 24 02:13:18 +++ printf '%s\n' cleanup 
Sep 24 02:13:18 ++ trap -- ' 
Sep 24 02:13:18 cleanup' EXIT 
Sep 24 02:13:18 ++ [[ pytorch-linux-xenial-cuda10.2-cudnn7-py3-gcc7-test != *pytorch-win-* ]] 
Sep 24 02:13:18 ++ which sccache 
Sep 24 02:13:18 ++ sccache --stop-server 
Sep 24 02:13:18 Stopping sccache server... 
Sep 24 02:13:18 error: couldn't connect to server 
Sep 24 02:13:18 caused by: Connection refused (os error 111) 
Sep 24 02:13:18 ++ true 
Sep 24 02:13:18 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 02:13:18 ++ [[ pytorch-linux-xenial-cuda10.2-cudnn7-py3-gcc7-test == *rocm* ]] 
Sep 24 02:13:18 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 02:13:18 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 02:13:18 ++ RUST_LOG=sccache::server=error 
Sep 24 02:13:18 ++ sccache --start-server 
Sep 24 02:13:18 Starting sccache server... 
Sep 24 02:13:18 ++ sccache --zero-stats 
Sep 24 02:13:18 Compile requests                 0 

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_ge_config_legacy_test (12/20)

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

Sep 24 01:58:02 caused by: Connection refused (os error 111)
Sep 24 01:58:02 ++++ extract_trap_cmd 
Sep 24 01:58:02 ++++ printf '%s\n' '' 
Sep 24 01:58:02 +++ printf '%s\n' cleanup 
Sep 24 01:58:02 ++ trap -- ' 
Sep 24 01:58:02 cleanup' EXIT 
Sep 24 01:58:02 ++ [[ pytorch-linux-xenial-py3.6-gcc5.4-ge_config_legacy-test != *pytorch-win-* ]] 
Sep 24 01:58:02 ++ which sccache 
Sep 24 01:58:02 ++ sccache --stop-server 
Sep 24 01:58:02 Stopping sccache server... 
Sep 24 01:58:02 error: couldn't connect to server 
Sep 24 01:58:02 caused by: Connection refused (os error 111) 
Sep 24 01:58:02 ++ true 
Sep 24 01:58:02 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:58:02 ++ [[ pytorch-linux-xenial-py3.6-gcc5.4-ge_config_legacy-test == *rocm* ]] 
Sep 24 01:58:02 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:58:02 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:58:02 ++ RUST_LOG=sccache::server=error 
Sep 24 01:58:02 ++ sccache --start-server 
Sep 24 01:58:02 Starting sccache server... 
Sep 24 01:58:02 ++ sccache --zero-stats 
Sep 24 01:58:02 Compile requests                 0 

See CircleCI build pytorch_linux_xenial_py3_clang7_onnx_ort_test1 (13/20)

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

Sep 24 01:55:47 E AttributeError: module 'math' has no attribute 'remainder'
Sep 24 01:55:47 /opt/conda/lib/python3.6/site-packages/torch/_ops.py:9: in <module> 
Sep 24 01:55:47     import torch.jit 
Sep 24 01:55:47 /opt/conda/lib/python3.6/site-packages/torch/jit/__init__.py:16: in <module> 
Sep 24 01:55:47     from torch.jit._script import ( 
Sep 24 01:55:47 /opt/conda/lib/python3.6/site-packages/torch/jit/_script.py:1082: in <module> 
Sep 24 01:55:47     _register_builtin(_unwrap_optional, "aten::_unwrap_optional") 
Sep 24 01:55:47 /opt/conda/lib/python3.6/site-packages/torch/jit/_builtins.py:139: in _register_builtin 
Sep 24 01:55:47     _get_builtin_table()[id(fn)] = op 
Sep 24 01:55:47 /opt/conda/lib/python3.6/site-packages/torch/jit/_builtins.py:124: in _get_builtin_table 
Sep 24 01:55:47     _builtin_ops.append((math.remainder, "aten::mathremainder"))  # type: ignore 
Sep 24 01:55:47 E   AttributeError: module 'math' has no attribute 'remainder' 
Sep 24 01:55:47 - generated xml file: /var/lib/jenkins/workspace/caffe2_tests/python/result.xml - 
Sep 24 01:55:47 =========================== short test summary info ============================ 
Sep 24 01:55:47 ERROR ../../../../opt/conda/lib/python3.6/site-packages/caffe2/python/workspace_test.py 
Sep 24 01:55:47 !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 
Sep 24 01:55:47 ========================= 3 warnings, 1 error in 2.20s ========================= 

See CircleCI build pytorch_linux_xenial_py3_clang5_asan_test1 (14/20)

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

Sep 24 01:56:54 caused by: Connection refused (os error 111)
Sep 24 01:56:54 ++++ extract_trap_cmd 
Sep 24 01:56:54 ++++ printf '%s\n' '' 
Sep 24 01:56:54 +++ printf '%s\n' cleanup 
Sep 24 01:56:54 ++ trap -- ' 
Sep 24 01:56:54 cleanup' EXIT 
Sep 24 01:56:54 ++ [[ pytorch-linux-xenial-py3-clang5-asan-test1 != *pytorch-win-* ]] 
Sep 24 01:56:54 ++ which sccache 
Sep 24 01:56:54 ++ sccache --stop-server 
Sep 24 01:56:54 Stopping sccache server... 
Sep 24 01:56:54 error: couldn't connect to server 
Sep 24 01:56:54 caused by: Connection refused (os error 111) 
Sep 24 01:56:54 ++ true 
Sep 24 01:56:54 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:56:54 ++ [[ pytorch-linux-xenial-py3-clang5-asan-test1 == *rocm* ]] 
Sep 24 01:56:54 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:56:54 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:56:54 ++ RUST_LOG=sccache::server=error 
Sep 24 01:56:54 ++ sccache --start-server 
Sep 24 01:56:54 Starting sccache server... 
Sep 24 01:56:54 ++ sccache --zero-stats 
Sep 24 01:56:54 Compile requests                 0 

See CircleCI build pytorch_doc_test (15/20)

Step: "Doc test" (full log | diagnosis details | 🔁 rerun)

Sep 24 01:59:16 caused by: Connection refused (os error 111)
Sep 24 01:59:16 +++++ extract_trap_cmd 
Sep 24 01:59:16 +++++ printf '%s\n' '' 
Sep 24 01:59:16 ++++ printf '%s\n' cleanup 
Sep 24 01:59:16 +++ trap -- ' 
Sep 24 01:59:16 cleanup' EXIT 
Sep 24 01:59:16 +++ [[ pytorch-linux-xenial-py3.6-gcc5.4-build != *pytorch-win-* ]] 
Sep 24 01:59:16 +++ which sccache 
Sep 24 01:59:16 +++ sccache --stop-server 
Sep 24 01:59:16 Stopping sccache server... 
Sep 24 01:59:16 error: couldn't connect to server 
Sep 24 01:59:16 caused by: Connection refused (os error 111) 
Sep 24 01:59:16 +++ true 
Sep 24 01:59:16 +++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:59:16 +++ [[ pytorch-linux-xenial-py3.6-gcc5.4-build == *rocm* ]] 
Sep 24 01:59:16 +++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:59:16 +++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:59:16 +++ RUST_LOG=sccache::server=error 
Sep 24 01:59:16 +++ sccache --start-server 
Sep 24 01:59:16 Starting sccache server... 
Sep 24 01:59:16 +++ sccache --zero-stats 
Sep 24 01:59:16 Compile requests                 0 

See CircleCI build pytorch_windows_vs2019_py36_cuda10.1_test1 (16/20)

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

ls: cannot access '/c/Users/circleci/project/build/win_tmp/ci_scripts/*': No such file or directory
+ TMP_DIR_WIN='C:\Users\circleci\project\build\win_tmp'
+ export PYTORCH_FINAL_PACKAGE_DIR=/c/users/circleci/workspace/build-results
+ PYTORCH_FINAL_PACKAGE_DIR=/c/users/circleci/workspace/build-results
++ cygpath -w /c/users/circleci/workspace/build-results
+ export 'PYTORCH_FINAL_PACKAGE_DIR_WIN=C:\users\circleci\workspace\build-results'
+ PYTORCH_FINAL_PACKAGE_DIR_WIN='C:\users\circleci\workspace\build-results'
+ mkdir -p /c/Users/circleci/project/build/win_tmp/build/torch
+ CI_SCRIPTS_DIR=/c/Users/circleci/project/build/win_tmp/ci_scripts
+ mkdir -p /c/Users/circleci/project/build/win_tmp/ci_scripts
++ ls '/c/Users/circleci/project/build/win_tmp/ci_scripts/*'
ls: cannot access '/c/Users/circleci/project/build/win_tmp/ci_scripts/*': No such file or directory
+ '[' -n '' ']'
+ export SCRIPT_HELPERS_DIR=/c/Users/circleci/project/.jenkins/pytorch/win-test-helpers
+ SCRIPT_HELPERS_DIR=/c/Users/circleci/project/.jenkins/pytorch/win-test-helpers
+ '[' -n https://github.com/pytorch/pytorch/pull/45254 ']'
+ DETERMINE_FROM=/c/Users/circleci/project/build/win_tmp/determine_from
+ file_diff_from_base /c/Users/circleci/project/build/win_tmp/determine_from
+ set +e
+ git fetch origin master --quiet
load pubkey "/c/Users/circleci/.ssh/id_rsa": invalid format 
+ set -e

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_ge_config_profiling_test (17/20)

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

Sep 24 01:58:34 caused by: Connection refused (os error 111)
Sep 24 01:58:34 ++++ extract_trap_cmd 
Sep 24 01:58:34 ++++ printf '%s\n' '' 
Sep 24 01:58:34 +++ printf '%s\n' cleanup 
Sep 24 01:58:34 ++ trap -- ' 
Sep 24 01:58:34 cleanup' EXIT 
Sep 24 01:58:34 ++ [[ pytorch-linux-xenial-py3.6-gcc5.4-ge_config_profiling-test != *pytorch-win-* ]] 
Sep 24 01:58:34 ++ which sccache 
Sep 24 01:58:34 ++ sccache --stop-server 
Sep 24 01:58:34 Stopping sccache server... 
Sep 24 01:58:34 error: couldn't connect to server 
Sep 24 01:58:34 caused by: Connection refused (os error 111) 
Sep 24 01:58:34 ++ true 
Sep 24 01:58:34 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:58:34 ++ [[ pytorch-linux-xenial-py3.6-gcc5.4-ge_config_profiling-test == *rocm* ]] 
Sep 24 01:58:34 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:58:34 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:58:34 ++ RUST_LOG=sccache::server=error 
Sep 24 01:58:34 ++ sccache --start-server 
Sep 24 01:58:34 Starting sccache server... 
Sep 24 01:58:34 ++ sccache --zero-stats 
Sep 24 01:58:34 Compile requests                 0 

See CircleCI build pytorch_linux_xenial_py3_clang5_asan_test2 (18/20)

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

Sep 24 01:57:08 caused by: Connection refused (os error 111)
Sep 24 01:57:08 ++++ extract_trap_cmd 
Sep 24 01:57:08 ++++ printf '%s\n' '' 
Sep 24 01:57:08 +++ printf '%s\n' cleanup 
Sep 24 01:57:08 ++ trap -- ' 
Sep 24 01:57:08 cleanup' EXIT 
Sep 24 01:57:08 ++ [[ pytorch-linux-xenial-py3-clang5-asan-test2 != *pytorch-win-* ]] 
Sep 24 01:57:08 ++ which sccache 
Sep 24 01:57:08 ++ sccache --stop-server 
Sep 24 01:57:08 Stopping sccache server... 
Sep 24 01:57:08 error: couldn't connect to server 
Sep 24 01:57:08 caused by: Connection refused (os error 111) 
Sep 24 01:57:08 ++ true 
Sep 24 01:57:08 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:57:08 ++ [[ pytorch-linux-xenial-py3-clang5-asan-test2 == *rocm* ]] 
Sep 24 01:57:08 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:57:08 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:57:08 ++ RUST_LOG=sccache::server=error 
Sep 24 01:57:08 ++ sccache --start-server 
Sep 24 01:57:08 Starting sccache server... 
Sep 24 01:57:08 ++ sccache --zero-stats 
Sep 24 01:57:08 Compile requests                 0 

See CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_test (19/20)

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

Sep 24 01:58:56 caused by: Connection refused (os error 111)
Sep 24 01:58:56 ++++ extract_trap_cmd 
Sep 24 01:58:56 ++++ printf '%s\n' '' 
Sep 24 01:58:56 +++ printf '%s\n' cleanup 
Sep 24 01:58:56 ++ trap -- ' 
Sep 24 01:58:56 cleanup' EXIT 
Sep 24 01:58:56 ++ [[ pytorch-linux-xenial-py3.6-gcc5.4-test != *pytorch-win-* ]] 
Sep 24 01:58:56 ++ which sccache 
Sep 24 01:58:56 ++ sccache --stop-server 
Sep 24 01:58:56 Stopping sccache server... 
Sep 24 01:58:56 error: couldn't connect to server 
Sep 24 01:58:56 caused by: Connection refused (os error 111) 
Sep 24 01:58:56 ++ true 
Sep 24 01:58:56 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:58:56 ++ [[ pytorch-linux-xenial-py3.6-gcc5.4-test == *rocm* ]] 
Sep 24 01:58:56 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:58:56 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:58:56 ++ RUST_LOG=sccache::server=error 
Sep 24 01:58:56 ++ sccache --start-server 
Sep 24 01:58:56 Starting sccache server... 
Sep 24 01:58:56 ++ sccache --zero-stats 
Sep 24 01:58:56 Compile requests                 0 

See CircleCI build pytorch_vulkan_linux_bionic_py3_6_clang9_test (20/20)

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

Sep 24 01:56:24 caused by: Connection refused (os error 111)
Sep 24 01:56:24 ++++ extract_trap_cmd 
Sep 24 01:56:24 ++++ printf '%s\n' '' 
Sep 24 01:56:24 +++ printf '%s\n' cleanup 
Sep 24 01:56:24 ++ trap -- ' 
Sep 24 01:56:24 cleanup' EXIT 
Sep 24 01:56:24 ++ [[ pytorch-vulkan-linux-bionic-py3.6-clang9-test != *pytorch-win-* ]] 
Sep 24 01:56:24 ++ which sccache 
Sep 24 01:56:24 ++ sccache --stop-server 
Sep 24 01:56:24 Stopping sccache server... 
Sep 24 01:56:24 error: couldn't connect to server 
Sep 24 01:56:24 caused by: Connection refused (os error 111) 
Sep 24 01:56:24 ++ true 
Sep 24 01:56:24 ++ rm /var/lib/jenkins/sccache_error.log 
Sep 24 01:56:24 ++ [[ pytorch-vulkan-linux-bionic-py3.6-clang9-test == *rocm* ]] 
Sep 24 01:56:24 ++ SCCACHE_ERROR_LOG=/var/lib/jenkins/sccache_error.log 
Sep 24 01:56:24 ++ SCCACHE_IDLE_TIMEOUT=1200 
Sep 24 01:56:24 ++ RUST_LOG=sccache::server=error 
Sep 24 01:56:24 ++ sccache --start-server 
Sep 24 01:56:24 Starting sccache server... 
Sep 24 01:56:24 ++ sccache --zero-stats 
Sep 24 01:56:24 Compile requests                 0 

Extra GitHub checks: 1 failed


ci.pytorch.org: 2 failed


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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 5 times.

facebook-github-bot pushed a commit that referenced this pull request Dec 23, 2020
Summary:
This is basically a reborn version of #45254 .

Ref: #42919

Pull Request resolved: #48077

Reviewed By: ngimel

Differential Revision: D25687042

Pulled By: bugra

fbshipit-source-id: 05f20a6f3c5212f73d0b1505b493b720e6cf74e5
@bugra bugra closed this Jun 8, 2021
@bugra bugra deleted the bugra/refactor-six-usage branch June 8, 2021 23:24
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
This is basically a reborn version of pytorch#45254 .

Ref: pytorch#42919

Pull Request resolved: pytorch#48077

Reviewed By: ngimel

Differential Revision: D25687042

Pulled By: bugra

fbshipit-source-id: 05f20a6f3c5212f73d0b1505b493b720e6cf74e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Legacy Python2 and early Python3 leftovers

2 participants