8000 DISABLED test_tensor_subclasses (__main__.TestScript) · Issue #119949 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

DISABLED test_tensor_subclasses (__main__.TestScript) #119949

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

Open
pytorch-bot bot opened this issue Feb 15, 2024 · 28 comments 8000
Open

DISABLED test_tensor_subclasses (__main__.TestScript) #119949

pytorch-bot bot opened this issue Feb 15, 2024 · 28 comments
Assignees
Labels
module: dynamo module: flaky-tests Problem is a flaky test in CI oncall: jit Add this issue/PR to JIT oncall triage queue oncall: pt2 skipped Denotes a (flaky) test currently skipped in CI. triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@pytorch-bot
Copy link
pytorch-bot bot commented Feb 15, 2024

Platforms: dynamo

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_tensor_subclasses
  4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.

Test file path: test_jit.py

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel @clee2000 @wdvr @chauhang @penguinwu @voznesenskym @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @jiayisunx @chenyang78 @kadeng @amjames @ezyang @gchanan @zou3519 @msaroufim @bdhirsh @anijain2305

@pytorch-bot pytorch-bot bot added module: flaky-tests Problem is a flaky test in CI oncall: jit Add this issue/PR to JIT oncall triage queue oncall: pt2 skipped Denotes a (flaky) test currently skipped in CI. labels Feb 15, 2024
Copy link
Author
pytorch-bot bot commented Feb 15, 2024
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_tensor_subclasses (__main__.TestScript)
  • Platforms for which to skip the test: dynamo
  • Disabled by pytorch-bot[bot]

Within ~15 minutes, test_tensor_subclasses (__main__.TestScript) will be disabled in PyTorch CI for these platforms: dynamo. 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 #119949 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.

@masnesral
Copy link
Contributor

Ok, here's one example from the logs:

Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/test/test_jit.py", line 3695, in test_tensor_subclasses
    def test_tensor_subclasses(self):
  File "/var/lib/jenkins/workspace/test/test_jit.py", line 3696, in check_subclass
    def check_subclass(x, tensor):
  File "/var/lib/jenkins/workspace/test/test_jit.py", line 3697, in torch_dynamo_resume_in_check_subclass_at_3697
    template = dedent("""
  File "/var/lib/jenkins/workspace/test/test_jit.py", line 4932, in _check_code
    def _check_code(self, code_str, fn_name, inputs):
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/convert_frame.py", line 904, in catch_errors
    return callback(frame, cache_entry, hooks, frame_state, skip=1)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/convert_frame.py", line 769, in _convert_frame
    result = inner_convert(
             ^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/convert_frame.py", line 398, in _convert_frame_assert
    return _compile(
           ^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/convert_frame.py", line 696, in _compile
    raise InternalTorchDynamoError(str(e)).with_traceback(
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/convert_frame.py", line 669, in _compile
    guarded_code = compile_inner(code, one_graph, hooks, transform)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/utils.py", line 250, in time_wrapper
    r = func(*args, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/convert_frame.py", line 542, in compile_inner
    out_code = transform_code_object(code, transform)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/bytecode_transformation.py", line 1033, in transform_code_object
    transformations(instructions, code_options)
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/convert_frame.py", line 163, in _fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/convert_frame.py", line 507, in transform
    tracer.run()
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/symbolic_convert.py", line 2130, in run
    super().run()
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/symbolic_convert.py", line 793, in run
    and self.step()
        ^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/symbolic_convert.py", line 756, in step
    getattr(self, inst.opname)(inst)
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/symbolic_convert.py", line 470, in wrapper
    return inner_fn(self, inst)
           ^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/symbolic_convert.py", line 1785, in CALL
    self.call_function(fn, args, kwargs)
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/symbolic_convert.py", line 657, in call_function
    self.push(fn.call_function(self, args, kwargs))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/variables/lazy.py", line 94, in realize_and_forward
    return getattr(self.realize(), name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/variables/builtin.py", line 533, in call_function
    args = [v.realize() for v in args]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/variables/builtin.py", line 533, in <listcomp>
    args = [v.realize() for v in args]
            ^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/variables/lazy.py", line 58, in realize
    self._cache.realize(self.parents_tracker)
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/variables/lazy.py", line 24, in realize
    self.vt = VariableBuilder(tx, self.source)(self.value)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/variables/builder.py", line 246, in __call__
    vt = self._wrap(value)
         ^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/variables/builder.py", line 445, in _wrap
    result = dict(
             ^^^^^
  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/variables/builder.py", line 445, in <genexpr>
    result = dict(
                 ^
torch._dynamo.exc.InternalTorchDynamoError: dictionary changed size during iteration

from user code:
   File "/var/lib/jenkins/workspace/test/test_jit.py", line 4934, in torch_dynamo_resume_in__check_code_at_4934
    exec(code_str, globals(), scope)

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


To execute this test, run the following from the base repo dir:
    PYTORCH_TEST_WITH_DYNAMO=1 python test/test_jit.py -k test_tensor_subclasses

@masnesral
Copy link
Contributor

So far, can't repro locally with either python 3.10 or 3.11

@masnesral
Copy link
Contributor

@zou3519, I guess you removed the skip for this in #118728
any advice you could offer?

@zou3519 zou3519 self-assigned this Feb 20, 2024
@zou3519 zou3519 added triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module and removed triage review labels Feb 20, 2024
Copy link
Author
pytorch-bot bot commented Mar 5, 2024

Resolving the issue because the test is not flaky anymore after 700 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Mar 5, 2024
Copy link
Author
pytorch-bot bot commented Apr 10, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this Apr 10, 2024
Copy link
Author
pytorch-bot bot commented Jun 20, 2024

Resolving the issue because the test is not flaky anymore after 450 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Jun 20, 2024
Copy link
Author
pytorch-bot bot commented Jul 18, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

Copy link
Author
pytorch-bot bot commented Jul 19, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this Jul 19, 2024
Copy link
Author
pytorch-bot bot commented Jul 19, 2024

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

Copy link
Author
pytorch-bot bot commented Jul 19, 2024

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

Copy link
Author
pytorch-bot bot commented Aug 2, 2024

Resolving the issue because the test is not flaky anymore after 150 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Aug 2, 2024
Copy link
Author
pytorch-bot bot commented Aug 2, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this Aug 2, 2024
Copy link
Author
pytorch-bot bot commented Aug 19, 2024

Resolving the issue because the test is not flaky anymore after 300 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Aug 19, 2024
Copy link
Author
pytorch-bot bot commented Aug 19, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this Aug 19, 2024
Copy link
Author
pytorch-bot bot commented Sep 2, 2024

Resolving the issue because the test is not flaky anymore after 200 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Sep 2, 2024
Copy link
Author
pytorch-bot bot commented Sep 3, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this Sep 3, 2024
Copy link
Author
pytorch-bot bot commented Sep 17, 2024

Resolving the issue because the test is not flaky anymore after 450 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Sep 17, 2024
Copy link
Author
pytorch-bot bot commented Sep 23, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this Sep 23, 2024
Copy link
Author
pytorch-bot bot commented Oct 7, 2024

Resolving the issue because the test is not flaky anymore after 450 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Oct 7, 2024
Copy link
Author
pytorch-bot bot commented Oct 8, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this Oct 8, 2024
Copy link
Author
pytorch-bot bot commented Oct 22, 2024

Resolving the issue because the test is not flaky anymore after 550 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Oct 22, 2024
Copy link
Author
pytorch-bot bot commented Oct 22, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this Oct 22, 2024
Copy link
Author
pytorch-bot bot commented Nov 5, 2024

Resolving the issue because the test is not flaky anymore after 800 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Nov 5, 2024
Copy link
Author
pytorch-bot bot commented Nov 7, 2024

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this Nov 7, 2024
Copy link
Author
pytorch-bot bot commented Nov 7, 2024

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

Copy link
Author
pytorch-bot bot commented Mar 3, 2025

Resolving the issue because the test is not flaky anymore after 300 reruns without any failures and the issue hasn't been updated in 14 days. Please reopen the issue to re-disable the test if you think this is a false positive

@pytorch-bot pytorch-bot bot closed this as completed Mar 3, 2025
Copy link
Author
pytorch-bot bot commented May 12, 2025

Another case of trunk flakiness has been found here. Reopening issue. The list of platforms [dynamo] appears to contain all the recently affected platforms [dynamo].

@pytorch-bot pytorch-bot bot reopened this May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: dynamo module: flaky-tests Problem is a flaky test in CI oncall: jit Add this issue/PR to JIT oncall triage queue oncall: pt2 skipped Denotes a (flaky) test currently skipped in CI. triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

3 participants
0