Skip to content

[Test] Remove HardwareClassification nightly fallbacks - #190181

Closed
orangeH25 wants to merge 1 commit into
pytorch:mainfrom
orangeH25:test/remove-nightly-fallback
Closed

orangeH25 wants to merge 1 commit into
pytorch:mainfrom
orangeH25:test/remove-nightly-fallback

Conversation

@orangeH25

Copy link
Copy Markdown
Collaborator

Summary

HardwareClassification has landed in a nightly, so the temporary import workarounds are no longer needed.

Changes

  • test/conftest.py: remove try/except in _resolve_hw_classification
  • test/run_test.py: remove try/except with hardcoded _HC_CHOICES fallback

@orangeH25
orangeH25 requested a review from a team as a code owner July 16, 2026 09:49
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Jul 16, 2026
@pytorch-bot

pytorch-bot Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 0629f4f with merge base 2e16c2d (image):

NEW FAILURE - The following job has failed:

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

@KarhouTam
KarhouTam requested a review from fffrog July 17, 2026 02:51
@liangel-02 liangel-02 added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Jul 17, 2026
@fffrog fffrog moved this from Backlog to Ready for Review(Definitive) in PyTorch Test Refactoring Jul 19, 2026

@fffrog fffrog left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM, thank you.

@fffrog

fffrog commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot rebase -b main

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Successfully rebased test/remove-nightly-fallback onto refs/remotes/origin/main, please pull locally before adding more changes (for example, via git checkout test/remove-nightly-fallback && git pull --rebase)

@pytorchmergebot
pytorchmergebot force-pushed the test/remove-nightly-fallback branch from 145fb48 to 0629f4f Compare July 19, 2026 05:32
@fffrog

fffrog commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 19, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: trunk / linux-jammy-rocm-py3.10-mi350 / test (distributed, 3, 3, linux.rocm.gpu.gfx950.2)

Details for Dev Infra team Raised by workflow job

@fffrog

fffrog commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot merge -i

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 1 checks: trunk / linux-jammy-rocm-py3.10-mi350 / test (distributed, 3, 3, linux.rocm.gpu.gfx950.2)

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

@github-project-automation github-project-automation Bot moved this from Ready for Review(Definitive) to Done in PyTorch Test Refactoring Jul 19, 2026
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
## Summary

[HardwareClassification](pytorch#186918) has landed in a nightly, so the temporary import workarounds are no longer needed.

## Changes
- test/conftest.py: remove try/except in `_resolve_hw_classification`
- test/run_test.py: remove try/except with hardcoded `_HC_CHOICES` fallback

Pull Request resolved: pytorch#190181
Approved by: https://github.com/janeyx99, https://github.com/fffrog
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
## Summary

[HardwareClassification](pytorch#186918) has landed in a nightly, so the temporary import workarounds are no longer needed.

## Changes
- test/conftest.py: remove try/except in `_resolve_hw_classification`
- test/run_test.py: remove try/except with hardcoded `_HC_CHOICES` fallback

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

[HardwareClassification](pytorch#186918) has landed in a nightly, so the temporary import workarounds are no longer needed.

## Changes
- test/conftest.py: remove try/except in `_resolve_hw_classification`
- test/run_test.py: remove try/except with hardcoded `_HC_CHOICES` fallback

Pull Request resolved: pytorch#190181
Approved by: https://github.com/janeyx99, https://github.com/fffrog
MelindaTan pushed a commit to MelindaTan/pytorch that referenced this pull request Jul 31, 2026
## Summary

[HardwareClassification](pytorch#186918) has landed in a nightly, so the temporary import workarounds are no longer needed.

## Changes
- test/conftest.py: remove try/except in `_resolve_hw_classification`
- test/run_test.py: remove try/except with hardcoded `_HC_CHOICES` fallback

Pull Request resolved: pytorch#190181
Approved by: https://github.com/janeyx99, https://github.com/fffrog
ysnylmzz added a commit to ysnylmzz/pytorch that referenced this pull request Sep 3, 2026
Review feedback: the guard asserting that a device type needs no entry in
`_get_device_from_module` to be recognised did so against a literal
`('hpu', 'xpu', 'mps', 'mtia', privateuse1)`. That is the same hand-maintained
device list this change deletes from `torch/storage.py`, moved into the test, so
the next backend would still have needed an edit -- one file over.

It now iterates `set(NATIVE_DEVICES) | {"hpu"}` minus `cpu`, so it widens on its
own when a native device is added, and `NATIVE_DEVICES` already ends with
`torch._C._get_privateuse1_backend_name()`, which keeps the out-of-tree case that
matters here.

`hpu` is the one name still written out. It is absent from `NATIVE_DEVICES` and it
was one of the three entries in the whitelist being deleted, so deriving alone
would silently drop the only entry of the old behaviour that nothing else covers.

Not tagging this file's classes with `hw_classification` here. `test_torch.py` has
four device-parameterized classes and one plain one, none classified, and there is
an active upstream series doing exactly that per file (pytorch#186918, pytorch#190991, pytorch#190181).
Five mechanical lines in a storage-lookup PR would enlarge the diff for an
unrelated reason and collide with that work; happy to send it separately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants