pytorch - 💡(How to fix) Fix DISABLED test_reshape_reindexing_transposed_input (__main__.LoopOrderingTest) [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#180652Fetched 2026-04-18 05:51:40
View on GitHub
Comments
1
Participants
1
Timeline
78
Reactions
0
Participants
Timeline (top)
mentioned ×36subscribed ×36labeled ×5commented ×1

Error Message

Traceback (most recent call last): File "/var/lib/jenkins/workspace/test/inductor/test_loop_ordering.py", line 478, in test_reshape_reindexing_transposed_input self.do_acc_test(f, x) File "/var/lib/jenkins/workspace/test/inductor/test_loop_ordering.py", line 240, in do_acc_test self.assertTrue(same(expect, actual, tol=1e-3)) File "/opt/conda/envs/py_3.10/lib/python3.10/unittest/case.py", line 687, in assertTrue raise self.failureException(msg) AssertionError: False is not true

To execute this test, run the following from the base repo dir: PYTORCH_TEST_CUDA_MEM_LEAK_CHECK=1 PYTORCH_TEST_WITH_SLOW_GRADCHECK=1 python test/inductor/test_loop_ordering.py LoopOrderingTest.test_reshape_reindexing_transposed_input

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 "/var/lib/jenkins/workspace/test/inductor/test_loop_ordering.py", line 478, in test_reshape_reindexing_transposed_input
    self.do_acc_test(f, x)
  File "/var/lib/jenkins/workspace/test/inductor/test_loop_ordering.py", line 240, in do_acc_test
    self.assertTrue(same(expect, actual, tol=1e-3))
  File "/opt/conda/envs/py_3.10/lib/python3.10/unittest/case.py", line 687, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true

To execute this test, run the following from the base repo dir:
    PYTORCH_TEST_CUDA_MEM_LEAK_CHECK=1 PYTORCH_TEST_WITH_SLOW_GRADCHECK=1 python test/inductor/test_loop_ordering.py LoopOrderingTest.test_reshape_reindexing_transposed_input

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

Platforms: linux, slow

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_reshape_reindexing_transposed_input
  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 "/var/lib/jenkins/workspace/test/inductor/test_loop_ordering.py", line 478, in test_reshape_reindexing_transposed_input
    self.do_acc_test(f, x)
  File "/var/lib/jenkins/workspace/test/inductor/test_loop_ordering.py", line 240, in do_acc_test
    self.assertTrue(same(expect, actual, tol=1e-3))
  File "/opt/conda/envs/py_3.10/lib/python3.10/unittest/case.py", line 687, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true

To execute this test, run the following from the base repo dir:
    PYTORCH_TEST_CUDA_MEM_LEAK_CHECK=1 PYTORCH_TEST_WITH_SLOW_GRADCHECK=1 python test/inductor/test_loop_ordering.py LoopOrderingTest.test_reshape_reindexing_transposed_input

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

Test file path: inductor/test_loop_ordering.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 @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo

extent analysis

TL;DR

  • The most likely fix involves investigating and resolving the inconsistency in the test_reshape_reindexing_transposed_input test case, potentially related to numerical precision or test data.

Guidance

  • Review the provided recent examples and workflow logs to understand the test failures.
  • Follow the debugging instructions to find relevant log snippets by grepping for test_reshape_reindexing_transposed_input in the expanded Test step of the job.
  • Investigate the AssertionError: False is not true exception in the test_reshape_reindexing_transposed_input test case, potentially related to the same function or the tol=1e-3 tolerance.
  • Run the test locally using the provided command PYTORCH_TEST_CUDA_MEM_LEAK_CHECK=1 PYTORCH_TEST_WITH_SLOW_GRADCHECK=1 python test/inductor/test_loop_ordering.py LoopOrderingTest.test_reshape_reindexing_transposed_input to reproduce and debug the issue.

Example

No specific code snippet is provided, but the test case test_reshape_reindexing_transposed_input in inductor/test_loop_ordering.py should be reviewed for potential issues.

Notes

The test is marked as flaky, and the CI is green due to shielding, making it harder to parse the logs. The issue may be related to numerical precision or test data, and a thorough investigation of the test case and logs is necessary to resolve the issue.

Recommendation

  • Apply workaround: Temporarily increase the tolerance tol in the same function or modify the test data to reduce the likelihood of false negatives, while investigating the root cause of the inconsistency.

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