pytorch - 💡(How to fix) Fix DISABLED test_mempool_no_split (__main__.TestMemPool) [2 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#180325Fetched 2026-04-16 06:35:29
View on GitHub
Comments
2
Participants
1
Timeline
30
Reactions
0
Participants
Timeline (top)
mentioned ×12subscribed ×12labeled ×4commented ×2

Error Message

Traceback (most recent call last): File "/var/lib/jenkins/workspace/test/test_cuda.py", line 6441, in test_mempool_no_split raise AssertionError( AssertionError: Expected no_split pool to have more segments, but got 1 vs 1

To execute this test, run the following from the base repo dir: python test/test_cuda.py TestMemPool.test_mempool_no_split

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/test_cuda.py", line 6441, in test_mempool_no_split
    raise AssertionError(
AssertionError: Expected no_split pool to have more segments, but got 1 vs 1

To execute this test, run the following from the base repo dir:
    python test/test_cuda.py TestMemPool.test_mempool_no_split

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 12 workflow(s) with 24 failures and 12 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_mempool_no_split
  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/test_cuda.py", line 6441, in test_mempool_no_split
    raise AssertionError(
AssertionError: Expected no_split pool to have more segments, but got 1 vs 1

To execute this test, run the following from the base repo dir:
    python test/test_cuda.py TestMemPool.test_mempool_no_split

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

Test file path: test_cuda.py

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

cc @ptrblck @msaroufim @eqy @jerryzh168 @tinglvv @nWEIdia

extent analysis

TL;DR

The most likely fix involves investigating and addressing the inconsistent behavior of the test_mempool_no_split test in the test_cuda.py file, potentially related to the expected number of segments in the no-split pool.

Guidance

  • Investigate the test logs by following the provided debugging instructions to understand the context of the failures and successes.
  • Run the test locally using the command python test/test_cuda.py TestMemPool.test_mempool_no_split to reproduce the issue and gather more information.
  • Review the test case test_mempool_no_split in test_cuda.py to understand the assertion that's failing and why it's expecting more segments.
  • Check the configuration and environment variables, such as PYTORCH_PRINT_REPRO_ON_FAILURE, to ensure they are not influencing the test behavior.

Example

No specific code snippet can be provided without further investigation, but the test case in question is test_mempool_no_split in test_cuda.py, which raises an AssertionError due to an unexpected number of segments.

Notes

The issue seems to be related to the flaky behavior of the test, which has both passed and failed in different workflow runs. The root cause might be related to the test's expectations or the environment in which it's run.

Recommendation

Apply workaround: Temporarily enable the test and run it multiple times to gather more logs and understand the pattern of failures and successes, which might help in identifying the root cause.

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_mempool_no_split (__main__.TestMemPool) [2 comments, 1 participants]