Skip to content

[https://nvbugs/6842831][fix] Restore FlashInfer GDN decode test collection - #19667

Merged
tburt-nv merged 1 commit into
NVIDIA:mainfrom
pranav-nvidia:fix/flashinfer-gdn-test-collection
Sep 28, 2026
Merged

tburt-nv merged 1 commit into
NVIDIA:mainfrom
pranav-nvidia:fix/flashinfer-gdn-test-collection

Conversation

@pranav-nvidia

@pranav-nvidia pranav-nvidia commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fix GPU-side collection of tests/unittest/_torch/modules/mamba/test_flashinfer_gdn_decode.py by using is_flashinfer_gdn_decode_supported_arch in its availability guard. The test added in #17028 imports the old is_flashinfer_gdn_supported_arch name, which #19376 had already split into prefill/decode helpers. Because the guard runs at module import, this aborts collection of the entire Mamba suite on GPU workers before individual-test waivers can apply.

Observed on B300, B200, and H100 in PR #19507 CI build #62269. This changes only the test's helper import and call, retaining the decode-specific SM90/SM100/SM103 gate and all existing test coverage.

Test Coverage

  • B200 before/after collection check in the existing dedicated validation container, using its installed TensorRT-LLM 1.3.0rc29 package and copied test files: original file reproduces the exact missing-symbol ImportError (exit 2); patched file collects 1 test successfully (exit 0). Ran python3 -m pytest --noconftest -c /dev/null -p no:cacheprovider --collect-only -q <test-file> with GPU 0 visible. Before log, after log.
  • Pre-commit, commit-message hooks, and git diff --check passed.
  • Numerical kernel execution and the full Mamba suite were not rerun locally; validation targets the collection regression.

PR Checklist

  • Please check this after reviewing the above items as appropriate for this PR.

Dev Engineer Review

The decode availability guard now uses is_flashinfer_gdn_decode_supported_arch, matching the decode-specific helper. This avoids importing the removed helper and retains the decode architecture gate.

QA Engineer Review

The change modifies tests/unittest/_torch/modules/mamba/test_flashinfer_gdn_decode.py. It does not add or remove test functions, IDs, selectors, or waivers. The available summary reports that the patched file collected one test; numerical execution and the full Mamba suite were not rerun. Coverage verdict: needs follow-up.

Per-File QA Perspective

  • tests/unittest/_torch/modules/mamba/test_flashinfer_gdn_decode.py: The test covers FlashInfer GDN decode behavior behind a decode-specific architecture guard. Whether it is listed in the CI or manual-QA test lists is not established by the supplied evidence.

@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: NVIDIA/TensorRT-LLM/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 258d4f6c-5b1d-499c-8fa2-7f218f949c97

📥 Commits

Reviewing files that changed from the base of the PR and between 7c280a7 and 5abbec4.

📒 Files selected for processing (1)
  • tests/unittest/_torch/modules/mamba/test_flashinfer_gdn_decode.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.


Walkthrough

The FlashInfer GDN decode test now checks decode-specific architecture support when determining whether it can run.

Changes

GDN decode test

Layer / File(s) Summary
Decode architecture availability
tests/unittest/_torch/modules/mamba/test_flashinfer_gdn_decode.py
_fi_decode_available now checks is_flashinfer_gdn_decode_supported_arch instead of the general GDN architecture support function.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: bowenfu

Merge Risk: ⚪ Minimal · up to 5abbe

The decode test’s availability guard now uses the decode-specific architecture check and preserves its intended supported GPUs. No concrete merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the NVBugs issue, fix type, and primary change: restoring FlashInfer GDN decode test collection.
Description check ✅ Passed The description explains the collection failure, identifies the helper mismatch, describes the fix, and provides targeted validation results and test limitations. It includes the required Description,…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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

@pranav-nvidia
pranav-nvidia enabled auto-merge (squash) September 28, 2026 22:15
@pranav-nvidia pranav-nvidia changed the title [None][fix] Restore FlashInfer GDN decode test collection [https://nvbugs/6842831][fix] Restore FlashInfer GDN decode test collection Sep 28, 2026
@tburt-nv
tburt-nv disabled auto-merge September 28, 2026 22:24
@tburt-nv
tburt-nv merged commit 73102db into NVIDIA:main Sep 28, 2026
15 checks passed
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