Skip to content

[BE] Stop running mem_leak_check on CI - #185265

Closed
huydhn wants to merge 1 commit into
pytorch:mainfrom
huydhn:stop-mem-leak-check
Closed

huydhn wants to merge 1 commit into
pytorch:mainfrom
huydhn:stop-mem-leak-check

Conversation

@huydhn

@huydhn huydhn commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

mem_leak_check is not pulling its weight on CI (10h timeout jobs, mostly flaky/noisy results). This PR removes both ways it gets scheduled:

  • mem_leak_check in SUPPORTED_PERIODICAL_MODES (the 29 8 * * * schedule).
  • The enable-mem-leak-check PR label path in perform_misc_tasks.

Also cleans up the now-dead matrix.mem_leak_check guards in _{linux,mac,win,rocm,xpu}-test.yml and the orphaned is_cuda_or_rocm_job helper / MEM_LEAK_LABEL constant.

PYTORCH_TEST_CUDA_MEM_LEAK_CHECK plumbing in torch/testing/_internal/common_utils.py, tools/testing/..., and the slow-gradcheck branch in .ci/pytorch/test.sh are intentionally untouched so local runs still work.

Test plan

  • python -m pytest .github/scripts/test_filter_test_configs.py -x -q — all 11 pass.
  • Next 29 8 * * * periodic run no longer schedules mem-leak-check shards.

Authored by Claude.

@huydhn
huydhn requested a review from a team as a code owner May 26, 2026 18:57
@pytorch-bot

pytorch-bot Bot commented May 26, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/185265

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 1 Pending

As of commit 5c5b927 with merge base 9b44968 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label May 26, 2026
Remove both entry points that materialize mem-leak-check shards:

- `mem_leak_check` in `SUPPORTED_PERIODICAL_MODES`, used by the 29 8 * * *
  schedule.
- The `enable-mem-leak-check` PR label path in `perform_misc_tasks`.

Also drop the now-orphaned `is_cuda_or_rocm_job` / `MEM_LEAK_LABEL` and
the dead `matrix.mem_leak_check` guards in the `_*-test.yml` workflows.

In-tree `PYTORCH_TEST_CUDA_MEM_LEAK_CHECK` plumbing is left alone so
local runs and the slow-gradcheck workaround still work.

Test Plan:

```
python -m pytest .github/scripts/test_filter_test_configs.py -x -q
```

All 11 tests pass.

Authored by Claude.
@huydhn
huydhn force-pushed the stop-mem-leak-check branch from 6fd553c to 5c5b927 Compare May 26, 2026 19:10
@huydhn

huydhn commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

@soulitzer Wdyt about this change? @janeyx99 points out to me that you might still need this

@malfet malfet changed the title Stop running mem_leak_check on CI [BE] Stop running mem_leak_check on CI May 26, 2026
@huydhn

huydhn commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f 'CI only tweak'

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@soulitzer

Copy link
Copy Markdown
Contributor

@huydhn this sounds good! I don't remember if this caught anything useful, although I might've just forgotten lol

tinglvv pushed a commit that referenced this pull request May 28, 2026
## Summary

`mem_leak_check` is not pulling its weight on CI (10h timeout jobs, mostly flaky/noisy results). This PR removes both ways it gets scheduled:

- `mem_leak_check` in `SUPPORTED_PERIODICAL_MODES` (the `29 8 * * *` schedule).
- The `enable-mem-leak-check` PR label path in `perform_misc_tasks`.

Also cleans up the now-dead `matrix.mem_leak_check` guards in `_{linux,mac,win,rocm,xpu}-test.yml` and the orphaned `is_cuda_or_rocm_job` helper / `MEM_LEAK_LABEL` constant.

`PYTORCH_TEST_CUDA_MEM_LEAK_CHECK` plumbing in `torch/testing/_internal/common_utils.py`, `tools/testing/...`, and the slow-gradcheck branch in `.ci/pytorch/test.sh` are intentionally untouched so local runs still work.

## Test plan

- [x] `python -m pytest .github/scripts/test_filter_test_configs.py -x -q` — all 11 pass.
- [ ] Next `29 8 * * *` `periodic` run no longer schedules mem-leak-check shards.

Authored by Claude.
Pull Request resolved: #185265
Approved by: https://github.com/malfet
khushi-411 pushed a commit to khushi-411/pytorch that referenced this pull request Jun 1, 2026
## Summary

`mem_leak_check` is not pulling its weight on CI (10h timeout jobs, mostly flaky/noisy results). This PR removes both ways it gets scheduled:

- `mem_leak_check` in `SUPPORTED_PERIODICAL_MODES` (the `29 8 * * *` schedule).
- The `enable-mem-leak-check` PR label path in `perform_misc_tasks`.

Also cleans up the now-dead `matrix.mem_leak_check` guards in `_{linux,mac,win,rocm,xpu}-test.yml` and the orphaned `is_cuda_or_rocm_job` helper / `MEM_LEAK_LABEL` constant.

`PYTORCH_TEST_CUDA_MEM_LEAK_CHECK` plumbing in `torch/testing/_internal/common_utils.py`, `tools/testing/...`, and the slow-gradcheck branch in `.ci/pytorch/test.sh` are intentionally untouched so local runs still work.

## Test plan

- [x] `python -m pytest .github/scripts/test_filter_test_configs.py -x -q` — all 11 pass.
- [ ] Next `29 8 * * *` `periodic` run no longer schedules mem-leak-check shards.

Authored by Claude.
Pull Request resolved: pytorch#185265
Approved by: https://github.com/malfet
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
## Summary

`mem_leak_check` is not pulling its weight on CI (10h timeout jobs, mostly flaky/noisy results). This PR removes both ways it gets scheduled:

- `mem_leak_check` in `SUPPORTED_PERIODICAL_MODES` (the `29 8 * * *` schedule).
- The `enable-mem-leak-check` PR label path in `perform_misc_tasks`.

Also cleans up the now-dead `matrix.mem_leak_check` guards in `_{linux,mac,win,rocm,xpu}-test.yml` and the orphaned `is_cuda_or_rocm_job` helper / `MEM_LEAK_LABEL` constant.

`PYTORCH_TEST_CUDA_MEM_LEAK_CHECK` plumbing in `torch/testing/_internal/common_utils.py`, `tools/testing/...`, and the slow-gradcheck branch in `.ci/pytorch/test.sh` are intentionally untouched so local runs still work.

## Test plan

- [x] `python -m pytest .github/scripts/test_filter_test_configs.py -x -q` — all 11 pass.
- [ ] Next `29 8 * * *` `periodic` run no longer schedules mem-leak-check shards.

Authored by Claude.
Pull Request resolved: pytorch#185265
Approved by: https://github.com/malfet
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
## Summary

`mem_leak_check` is not pulling its weight on CI (10h timeout jobs, mostly flaky/noisy results). This PR removes both ways it gets scheduled:

- `mem_leak_check` in `SUPPORTED_PERIODICAL_MODES` (the `29 8 * * *` schedule).
- The `enable-mem-leak-check` PR label path in `perform_misc_tasks`.

Also cleans up the now-dead `matrix.mem_leak_check` guards in `_{linux,mac,win,rocm,xpu}-test.yml` and the orphaned `is_cuda_or_rocm_job` helper / `MEM_LEAK_LABEL` constant.

`PYTORCH_TEST_CUDA_MEM_LEAK_CHECK` plumbing in `torch/testing/_internal/common_utils.py`, `tools/testing/...`, and the slow-gradcheck branch in `.ci/pytorch/test.sh` are intentionally untouched so local runs still work.

## Test plan

- [x] `python -m pytest .github/scripts/test_filter_test_configs.py -x -q` — all 11 pass.
- [ ] Next `29 8 * * *` `periodic` run no longer schedules mem-leak-check shards.

Authored by Claude.
Pull Request resolved: pytorch#185265
Approved by: https://github.com/malfet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants