pytorch / pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration
https://pytorch.org
Other
84.4k stars 22.73k forks source link

DISABLED test_comprehensive_roll_cpu_bool (__main__.TestInductorOpInfoCPU) #140335

Open pytorch-bot[bot] opened 1 week ago

pytorch-bot[bot] commented 1 week ago

Platforms: inductor

This test was disabled because it is failing in CI. See recent examples and the most recent trunk workflow logs.

Over the past 3 hours, it has been determined flaky in 4 workflow(s) with 4 failures and 4 successes.

Debugging instructions (after clicking on the recent samples link): DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs. To find relevant log snippets:

  1. Click on the workflow logs linked above
  2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
  3. Grep for test_comprehensive_roll_cpu_bool
  4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.
Sample error message ``` Traceback (most recent call last): File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_device_type.py", line 1152, in test_wrapper return test(*args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_device_type.py", line 1434, in only_fn return fn(self, *args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_utils.py", line 2199, in wrapper fn(*args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_device_type.py", line 1229, in dep_fn return fn(slf, *args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_device_type.py", line 1229, in dep_fn return fn(slf, *args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_device_type.py", line 1229, in dep_fn return fn(slf, *args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_utils.py", line 1592, in wrapper fn(*args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_utils.py", line 1528, in wrapper fn(*args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/unittest/mock.py", line 1336, in patched return func(*newargs, **newkeywargs) File "/opt/conda/envs/py_3.9/lib/python3.9/contextlib.py", line 79, in inner return func(*args, **kwds) File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor_opinfo.py", line 955, in inner raise e File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor_opinfo.py", line 947, in inner fn(self, device, dtype, op) File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor_opinfo.py", line 1193, in test_comprehensive raise e File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor_opinfo.py", line 1175, in test_comprehensive self.check_model( File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor.py", line 454, in check_model actual = run(*example_inputs, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/eval_frame.py", line 556, in _fn return fn(*args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/convert_frame.py", line 1395, in __call__ return self._torchdynamo_orig_callable( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/convert_frame.py", line 545, in __call__ return _compile( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/convert_frame.py", line 977, in _compile guarded_code = compile_inner(code, one_graph, hooks, transform) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/convert_frame.py", line 706, in compile_inner return _compile_inner(code, one_graph, hooks, transform) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_utils_internal.py", line 95, in wrapper_function return function(*args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/convert_frame.py", line 741, in _compile_inner out_code = transform_code_object(code, transform) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/bytecode_transformation.py", line 1348, in transform_code_object transformations(instructions, code_options) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/convert_frame.py", line 229, in _fn return fn(*args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/convert_frame.py", line 658, in transform tracer.run() File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/symbolic_convert.py", line 2912, in run super().run() File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/symbolic_convert.py", line 1120, in run while self.step(): File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/symbolic_convert.py", line 1032, in step self.dispatch_table[inst.opcode](self, inst) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/symbolic_convert.py", line 3103, in RETURN_VALUE self._return(inst) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/symbolic_convert.py", line 3088, in _return self.output.compile_subgraph( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/output_graph.py", line 1077, in compile_subgraph self.compile_and_call_fx_graph(tx, list(reversed(stack_values)), root) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/output_graph.py", line 1346, in compile_and_call_fx_graph compiled_fn = self.call_user_compiler(gm) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/output_graph.py", line 1396, in call_user_compiler return self._call_user_compiler(gm) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/output_graph.py", line 1445, in _call_user_compiler raise BackendCompilerFailed(self.compiler_fn, e).with_traceback( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/output_graph.py", line 1426, in _call_user_compiler compiled_fn = compiler_fn(gm, self.example_inputs()) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/repro/after_dynamo.py", line 130, in __call__ compiled_gm = compiler_fn(gm, example_inputs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/repro/after_dynamo.py", line 130, in __call__ compiled_gm = compiler_fn(gm, example_inputs) File "/var/lib/jenkins/workspace/test/inductor/test_torchinductor.py", line 446, in compile_fx_wrapper return compile_fx(model_, example_inputs_) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_inductor/compile_fx.py", line 1708, in compile_fx return aot_autograd( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/backends/common.py", line 72, in __call__ cg = aot_module_simplified(gm, example_inputs, **self.kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_functorch/aot_autograd.py", line 1103, in aot_module_simplified compiled_fn = dispatch_and_compile() File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_functorch/aot_autograd.py", line 1079, in dispatch_and_compile compiled_fn, _ = create_aot_dispatcher_function( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_functorch/aot_autograd.py", line 527, in create_aot_dispatcher_function return _create_aot_dispatcher_function( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_functorch/aot_autograd.py", line 778, in _create_aot_dispatcher_function compiled_fn, fw_metadata = compiler_fn( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_functorch/_aot_autograd/jit_compile_runtime_wrappers.py", line 197, in aot_dispatch_base compiled_fw = compiler(fw_module, updated_flat_args) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_inductor/compile_fx.py", line 1525, in fw_compiler_base return _fw_compiler_base(model, example_inputs, is_inference) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_inductor/compile_fx.py", line 1594, in _fw_compiler_base return inner_compile( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_inductor/compile_fx.py", line 587, in compile_fx_inner return wrap_compiler_debug(_compile_fx_inner, compiler_name="inductor")( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_dynamo/repro/after_aot.py", line 102, in debug_wrapper inner_compiled_fn = compiler_fn(gm, example_inputs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_inductor/compile_fx.py", line 744, in _compile_fx_inner compiled_graph = FxGraphCache.load( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_inductor/codecache.py", line 1515, in load compiled_graph = compile_fx_fn( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_inductor/compile_fx.py", line 651, in codegen_and_compile compiled_graph = fx_codegen_and_compile(gm, example_inputs, **fx_kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_inductor/compile_fx.py", line 1015, in fx_codegen_and_compile compiled_graph = CompiledFxGraph( File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/_inductor/codecache.py", line 1658, in __init__ with open(graph.cache_path) as f: torch._dynamo.exc.BackendCompilerFailed: backend='compile_fx_wrapper' raised: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp7cv9yx8e/st/cstmbhraxrxztdv5kwaj3mdlgsvhig2xtfkh7iuwljyj2dffkj3c.py' Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information You can suppress this exception and fall back to eager by setting: import torch._dynamo torch._dynamo.config.suppress_errors = True The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_utils.py", line 3057, in wrapper method(*args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_device_type.py", line 460, in instantiated_test result = test(self, **param_kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_device_type.py", line 1434, in only_fn return fn(self, *args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_utils.py", line 1592, in wrapper fn(*args, **kwargs) File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/testing/_internal/common_device_type.py", line 1164, in test_wrapper raise e_tracked from e Exception: Caused by sample input at index 9: SampleInput(input=Tensor[size=(5, 5, 5), device="cpu", dtype=torch.bool], args=(-1,0), kwargs={}, broadcasts_input=False, name='') To execute this test, run the following from the base repo dir: PYTORCH_OPINFO_SAMPLE_INPUT_INDEX=9 python test/inductor/test_torchinductor_opinfo.py TestInductorOpInfoCPU.test_comprehensive_roll_cpu_bool This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0 ```

Test file path: inductor/test_torchinductor_opinfo.py

cc @clee2000 @ezyang @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @aakhundov

pytorch-bot[bot] commented 1 week ago
Hello there! From the DISABLED prefix in this issue title, it looks like you are attempting to disable a test in PyTorch CI. The information I have parsed is below: * Test name: `test_comprehensive_roll_cpu_bool (__main__.TestInductorOpInfoCPU)` * Platforms for which to skip the test: inductor * Disabled by `pytorch-bot[bot]` Within ~15 minutes, `test_comprehensive_roll_cpu_bool (__main__.TestInductorOpInfoCPU)` will be disabled in PyTorch CI for these platforms: inductor. Please verify that your test name looks correct, e.g., `test_cuda_assert_async (__main__.TestCuda)`. To modify the platforms list, please include a line in the issue body, like below. The default action will disable the test for all platforms if no platforms list is specified. ``` Platforms: case-insensitive, list, of, platforms ``` We currently support the following platforms: asan, dynamo, inductor, linux, mac, macos, rocm, slow, win, windows. ### How to re-enable a test To re-enable the test globally, close the issue. To re-enable a test for only a subset of platforms, remove the platforms from the list in the issue body. This may take some time to propagate. To re-enable a test only for a PR, put `Fixes #140335` in the PR body and rerun the test jobs. Note that if a test is flaky, it maybe be difficult to tell if the test is still flaky on the PR.
pytorch-bot[bot] commented 1 week ago

Another case of trunk flakiness has been found here. The list of platforms [inductor] appears to contain all the recently affected platforms [inductor]. Either the change didn't propogate fast enough or disable bot might be broken.

shunting314 commented 1 week ago

similar to https://github.com/pytorch/pytorch/issues/140317