pytorch - 💡(How to fix) Fix DISABLED test_graph_break_bomb_backend_inductor_device_cpu (__main__.TestPackage) [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
pytorch/pytorch#182110Fetched 2026-05-02 05:27:11
View on GitHub
Comments
1
Participants
1
Timeline
102
Reactions
0
Participants
Timeline (top)
mentioned ×48subscribed ×48labeled ×5commented ×1

Error Message

Traceback (most recent call last): File "/opt/conda/envs/py_3.14/lib/python3.14t/unittest/case.py", line 58, in testPartExecutor yield File "/opt/conda/envs/py_3.14/lib/python3.14t/unittest/case.py", line 669, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/opt/conda/envs/py_3.14/lib/python3.14t/unittest/case.py", line 615, in _callTestMethod result = method() File "/opt/conda/envs/py_3.14/lib/python3.14t/site-packages/torch/testing/_internal/common_utils.py", line 3532, in wrapper method(*args, **kwargs) ~~~~~~^^^^^^^^^^^^^^^^^ File "/opt/conda/envs/py_3.14/lib/python3.14t/site-packages/torch/testing/_internal/common_utils.py", line 607, in instantiated_test test(self, **param_kwargs) ~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 228, in test_graph_break_bomb self.assertEqual(compiled_fn(*args), args[0].sum()) ~~~~~~~~~~~^^^^^^^ File "/opt/conda/envs/py_3.14/lib/python3.14t/site-packages/torch/_dynamo/eval_frame.py", line 1095, in compile_wrapper result = fn(*args, **kwargs) File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in fn if x.sum() == mid: File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 188, in torch_dynamo_resume_in_fn_at_186 elif x.sum() < mid: File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_188 if x.sum() == mid: File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 188, in torch_dynamo_resume_in_fn_at_186 elif x.sum() < mid: File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_188 if x.sum() == mid: File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 188, in torch_dynamo_resume_in_fn_at_186 elif x.sum() < mid: File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_188 if x.sum() == mid: File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_186 if x.sum() == mid: NameError: name '__compiled_fn_142_1f44c36f_54c7_4d9a_89be_98e6135e6189' is not defined

To execute this test, run the following from the base repo dir: python test/dynamo/test_package.py TestPackage.test_graph_break_bomb_backend_inductor_device_cpu

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0

Root Cause

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

Code Example

Traceback (most recent call last):
  File "/opt/conda/envs/py_3.14/lib/python3.14t/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/opt/conda/envs/py_3.14/lib/python3.14t/unittest/case.py", line 669, in run
    self._callTestMethod(testMethod)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.14/lib/python3.14t/unittest/case.py", line 615, in _callTestMethod
    result = method()
  File "/opt/conda/envs/py_3.14/lib/python3.14t/site-packages/torch/testing/_internal/common_utils.py", line 3532, in wrapper
    method(*args, **kwargs)
    ~~~~~~^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.14/lib/python3.14t/site-packages/torch/testing/_internal/common_utils.py", line 607, in instantiated_test
    test(self, **param_kwargs)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 228, in test_graph_break_bomb
    self.assertEqual(compiled_fn(*args), args[0].sum())
                     ~~~~~~~~~~~^^^^^^^
  File "/opt/conda/envs/py_3.14/lib/python3.14t/site-packages/torch/_dynamo/eval_frame.py", line 1095, in compile_wrapper
    result = fn(*args, **kwargs)
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in fn
    if x.sum() == mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 188, in torch_dynamo_resume_in_fn_at_186
    elif x.sum() < mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_188
    if x.sum() == mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 188, in torch_dynamo_resume_in_fn_at_186
    elif x.sum() < mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_188
    if x.sum() == mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 188, in torch_dynamo_resume_in_fn_at_186
    elif x.sum() < mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_188
    if x.sum() == mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_186
    if x.sum() == mid:
NameError: name '__compiled_fn_142_1f44c36f_54c7_4d9a_89be_98e6135e6189' is not defined

To execute this test, run the following from the base repo dir:
    python test/dynamo/test_package.py TestPackage.test_graph_break_bomb_backend_inductor_device_cpu

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
RAW_BUFFERClick to expand / collapse

Platforms: linux

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

Over the past 6 hours, it has been determined flaky in 3 workflow(s) with 3 failures and 3 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_graph_break_bomb_backend_inductor_device_cpu
  4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.
<details><summary>Sample error message</summary>
Traceback (most recent call last):
  File "/opt/conda/envs/py_3.14/lib/python3.14t/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/opt/conda/envs/py_3.14/lib/python3.14t/unittest/case.py", line 669, in run
    self._callTestMethod(testMethod)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.14/lib/python3.14t/unittest/case.py", line 615, in _callTestMethod
    result = method()
  File "/opt/conda/envs/py_3.14/lib/python3.14t/site-packages/torch/testing/_internal/common_utils.py", line 3532, in wrapper
    method(*args, **kwargs)
    ~~~~~~^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/py_3.14/lib/python3.14t/site-packages/torch/testing/_internal/common_utils.py", line 607, in instantiated_test
    test(self, **param_kwargs)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 228, in test_graph_break_bomb
    self.assertEqual(compiled_fn(*args), args[0].sum())
                     ~~~~~~~~~~~^^^^^^^
  File "/opt/conda/envs/py_3.14/lib/python3.14t/site-packages/torch/_dynamo/eval_frame.py", line 1095, in compile_wrapper
    result = fn(*args, **kwargs)
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in fn
    if x.sum() == mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 188, in torch_dynamo_resume_in_fn_at_186
    elif x.sum() < mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_188
    if x.sum() == mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 188, in torch_dynamo_resume_in_fn_at_186
    elif x.sum() < mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_188
    if x.sum() == mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 188, in torch_dynamo_resume_in_fn_at_186
    elif x.sum() < mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_188
    if x.sum() == mid:
  File "/__w/pytorch/pytorch/test/dynamo/test_package.py", line 186, in torch_dynamo_resume_in_fn_at_186
    if x.sum() == mid:
NameError: name '__compiled_fn_142_1f44c36f_54c7_4d9a_89be_98e6135e6189' is not defined

To execute this test, run the following from the base repo dir:
    python test/dynamo/test_package.py TestPackage.test_graph_break_bomb_backend_inductor_device_cpu

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
</details>

Test file path: dynamo/test_package.py

For all disabled tests (by GitHub issue), see https://hud.pytorch.org/disabled.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @chauhang @amjames @Lucaskabela @jataylo @azahed98

extent analysis

TL;DR

The test test_graph_break_bomb_backend_inductor_device_cpu is failing due to a NameError exception, indicating that a compiled function is not defined.

Guidance

  • Investigate the test_graph_break_bomb function in dynamo/test_package.py to understand why the compiled function __compiled_fn_142_1f44c36f_54c7_4d9a_89be_98e6135e6189 is not defined.
  • Check the workflow logs for any errors or warnings related to compilation or function definition.
  • Verify that the PYTORCH_PRINT_REPRO_ON_FAILURE environment variable is set to 1 to enable reproducibility debugging.
  • Review the test file dynamo/test_package.py and the TestPackage class to ensure that the test is properly defined and executed.

Example

No code snippet is provided as the issue is related to a specific test failure and requires further investigation.

Notes

The issue is specific to the test_graph_break_bomb_backend_inductor_device_cpu test and may require debugging and investigation to resolve. The provided error message and stack trace indicate a NameError exception, but the root cause is unclear.

Recommendation

Apply workaround: Investigate and debug the test_graph_break_bomb function to resolve the NameError exception. This may involve modifying the test code or the compilation process to ensure that the compiled function is properly defined.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

pytorch - 💡(How to fix) Fix DISABLED test_graph_break_bomb_backend_inductor_device_cpu (__main__.TestPackage) [1 comments, 1 participants]