-
Notifications
You must be signed in to change notification settings - Fork 902
test: Skip test_decode_delta_rule.py #2600
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,8 @@ | |
| import torch | ||
| import pytest | ||
|
|
||
| pytestmark = pytest.mark.skip(reason="Temporarily skipped due to CI failures.") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer a targeted Three concerns:
π‘ Architecture-conditional skip (guideline-compliant alternative)-pytestmark = pytest.mark.skip(reason="Temporarily skipped due to CI failures.")
+from flashinfer.utils import get_compute_capability as _get_cc
+import torch as _torch
+pytestmark = pytest.mark.skipif(
+ _get_cc(_torch.device("cuda"))[0] not in [9, 10, 11, 12],
+ reason="GDN decode requires SM90+ (temporarily skipped on non-SM90 CI runners).",
+)
As per coding guidelines: "Test files must use flashinfer.utils functions (get_compute_capability, is_sm90a_supported, etc.) to skip tests on unsupported GPU architectures." π€ Prompt for AI Agents |
||
|
|
||
| try: | ||
| from .reference_delta_rule import decode_delta_rule, verify_delta_rule | ||
| except ImportError: | ||
|
|
||
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.
While skipping tests can be a temporary solution for CI failures, it's crucial to track this technical debt. Please add a reference to a tracking issue in the reason string to ensure these tests are re-enabled once the underlying problem is fixed.