ci: add pytorch 2.12 and 2.13 to cpu tests#21835
Merged
Merged
Conversation
bhimrazy
requested review from
ethanwharris,
justusschock and
tchaton
as code owners
July 15, 2026 07:10
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #21835 +/- ##
=======================================
Coverage 87% 87%
=======================================
Files 270 270
Lines 24074 24074
=======================================
Hits 20903 20903
Misses 3171 3171 |
Collaborator
Author
|
requires: #21837 |
bhimrazy
force-pushed
the
ci/add-pytorch-2.12-2.13
branch
from
July 16, 2026 15:38
b8bed65 to
2a4b3ce
Compare
tchaton
approved these changes
Jul 16, 2026
bhimrazy
enabled auto-merge (squash)
July 16, 2026 16:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds PyTorch 2.12 and 2.13 to the CPU test matrices for
fabricandpytorch, on Python 3.12 and 3.13 — extending what #21679 did for 2.11.One test needed fixing to pass on the new versions —
test_get_default_process_group_backend_for_device:torch.utils.rename_privateuse1_backend("pcu"), which is process-global and irreversible, leaking a danglingpcudevice into every later test in the same xdist worker.RuntimeError: Device 'pcu' does not have a corresponding module registered as 'torch.pcu'.monkeypatch.setitemonBackend.default_device_backend_mapinstead, which has no global side effects.The other blocker here was
torch.compile+self.log()crashing on 2.12/2.13; that was split out and merged separately in #21837.Follow-up
Both matrices now carry a
TODOabout pruning the oldest minors (2.1–2.5), best done in its own PR.