-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Enable skipIfXpu to support class-level skipping #151420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh/EikanWang/81/base
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/151420
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (4 Unrelated Failures)As of commit c5787b8 with merge base cd7bc60 ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
) | ||
expected_ref = torch.xpu.is_available() | ||
expected_res = "test_case_1" not in rc | ||
self.assertEqual(expected_ref, expected_res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the test class is decorated by skipIfXpu
, all the test cases are skipped only for XPU.
expected_ref = torch.xpu.is_available() | ||
expected_res = "test_case_2" not in rc | ||
self.assertEqual(expected_ref, expected_res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test_case_2
is decoreated by skipIfXpu
while the other test cases are not. Therefore, the literal "test_case_2" should not appear in the output when the XPU is available.
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Rebase failed due to Command
Raised by https://github.com/pytorch/pytorch/actions/runs/14999417333 |
Stack from ghstack (oldest at bottom):