Skip to content

test: Skip test_decode_delta_rule.py #2600

Merged
bkryu merged 1 commit intoflashinfer-ai:mainfrom
bkryu:test_decode_delta_skip
Feb 20, 2026
Merged

test: Skip test_decode_delta_rule.py #2600
bkryu merged 1 commit intoflashinfer-ai:mainfrom
bkryu:test_decode_delta_skip

Conversation

@bkryu
Copy link
Collaborator

@bkryu bkryu commented Feb 20, 2026

📌 Description

test_decode_delta_rule.py is failing in internal and public CI, blocking any other PRs from being merged.

Disable the unit test script for now until a fix has been checked in.

🔍 Related Issues

🚀 Pull Request Checklist

Thank you for contributing to FlashInfer! Before we review your pull request, please make sure the following items are complete.

✅ Pre-commit Checks

  • I have installed pre-commit by running pip install pre-commit (or used your preferred method).
  • I have installed the hooks with pre-commit install.
  • I have run the hooks manually with pre-commit run --all-files and fixed any reported issues.

If you are unsure about how to set up pre-commit, see the pre-commit documentation.

🧪 Tests

  • Tests have been added or updated as needed.
  • All tests are passing (unittest, etc.).

Reviewer Notes

Summary by CodeRabbit

  • Tests
    • Temporarily disabled a test module pending investigation.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @bkryu, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a temporary measure to skip the test_decode_delta_rule.py test file. This action is intended to resolve ongoing continuous integration failures, thereby unblocking the CI pipeline and allowing other development efforts to proceed without interruption from this specific test suite.

Highlights

  • Test Skipping Implemented: The entire test file test_decode_delta_rule.py has been marked to be skipped using pytest.mark.skip.
  • Reason for Skipping: The test is being temporarily skipped due to persistent failures observed in the continuous integration (CI) pipeline.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • tests/gdn/test_decode_delta_rule.py
    • Added a pytest.mark.skip decorator to temporarily disable the entire test file.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 20, 2026

📝 Walkthrough

Walkthrough

A global pytest skip marker is added to the beginning of the test file tests/gdn/test_decode_delta_rule.py, causing all tests within it to be skipped with the reason "Temporarily skipped due to CI failures."

Changes

Cohort / File(s) Summary
Test Skip Marker
tests/gdn/test_decode_delta_rule.py
Added global pytest skip marker at the start of the file, skipping all tests due to CI failures.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A hop, skip, and a jump away,
Tests rest now, come what may,
CI troubles took their toll,
So we pause this testing role,
Temporary peace for weary code!

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive PR description addresses the issue but lacks detail on the specific failures, expected timeline for a fix, and proper test checklist completion. Provide details on the CI failures, expected fix timeline, and ensure the test checklist items are properly marked (indicating whether tests are passing or if this skip is temporary).
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'test: Skip test_decode_delta_rule.py' is specific and directly describes the main change—skipping a test file due to CI failures.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request skips the test_decode_delta_rule.py test file to address CI failures. While this is a valid approach to unblock the pipeline, I've suggested adding a reference to a tracking issue in the skip reason. This ensures the test is not forgotten and can be re-enabled in the future, helping to maintain test coverage and code quality.

import torch
import pytest

pytestmark = pytest.mark.skip(reason="Temporarily skipped due to CI failures.")
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

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.

Suggested change
pytestmark = pytest.mark.skip(reason="Temporarily skipped due to CI failures.")
pytestmark = pytest.mark.skip(reason="Temporarily skipped due to CI failures. See issue #XYZ for tracking.")

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@tests/gdn/test_decode_delta_rule.py`:
- Line 26: Replace the unconditional pytestmark skip with a targeted
pytest.mark.skipif that uses flashinfer.utils helpers (e.g.,
get_compute_capability and is_sm90a_supported) to detect unsupported GPU
architectures and skip only when appropriate; wrap the module-level imports of
reference_delta_rule, flashinfer.gdn_decode, and flashinfer.utils in a
try/except ImportError (or guard with an explicit collect-time check) so
import-time failures don’t break test collection, and update the skip reason to
include a tracking reference (issue/ticket ID) so the intent and owner are
recorded.

import torch
import pytest

pytestmark = pytest.mark.skip(reason="Temporarily skipped due to CI failures.")
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Prefer a targeted skipif using flashinfer.utils rather than an unconditional blanket skip; also add a tracking reference.

Three concerns:

  1. Coding guideline: Per project rules, test files must use flashinfer.utils functions (get_compute_capability, is_sm90a_supported, etc.) to skip tests on unsupported GPU architectures. An unconditional pytest.mark.skip silently drops the tests on every machine and every CI run, including ones where they would pass. If the root cause is that the tests fail on a specific architecture, convert this to a skipif:
💡 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).",
+)
  1. Import execution: pytestmark only suppresses test execution, not module-level code. Lines 28–44 (importing reference_delta_rule, flashinfer.gdn_decode, and flashinfer.utils) still run during pytest collection. If the CI failures are import-time errors (e.g., a missing compiled kernel), the skip won't prevent a collection error — the module would need a try/except ImportError guard around those imports, or a conftest.py-level collect_ignore.

  2. No tracking reference: "Temporarily skipped due to CI failures." lacks a link to the issue or ticket tracking the root cause, making it hard to know when it is safe to re-enable.

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
Verify each finding against the current code and only fix it if needed.

In `@tests/gdn/test_decode_delta_rule.py` at line 26, Replace the unconditional
pytestmark skip with a targeted pytest.mark.skipif that uses flashinfer.utils
helpers (e.g., get_compute_capability and is_sm90a_supported) to detect
unsupported GPU architectures and skip only when appropriate; wrap the
module-level imports of reference_delta_rule, flashinfer.gdn_decode, and
flashinfer.utils in a try/except ImportError (or guard with an explicit
collect-time check) so import-time failures don’t break test collection, and
update the skip reason to include a tracking reference (issue/ticket ID) so the
intent and owner are recorded.

@bkryu bkryu merged commit f59cc45 into flashinfer-ai:main Feb 20, 2026
31 of 44 checks passed
@bkryu bkryu deleted the test_decode_delta_skip branch March 17, 2026 22:12
kaixih added a commit that referenced this pull request Mar 18, 2026
Remove module-level pytestmark skip (added in #2600) and replace with
per-function @pytest.mark.skip on the previously-failing tests, so that
the new test_decode_kernel_bf16_padding_indices runs in CI while the
others remain skipped until their failures are addressed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants