Skip to content

[https://nvbugs/7141591][fix] Restore B300 Helix context test coverage - #23012

Open
trtllm-agent wants to merge 1 commit into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-v2/nvbug-7141591-r697
Open

trtllm-agent wants to merge 1 commit into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-v2/nvbug-7141591-r697

Conversation

@trtllm-agent

@trtllm-agent trtllm-agent commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Remove the B300 multi-GPU attention wrapper waiver and the four context-head variant waivers after the fixture repair in #22846. Retain the broader GB300 attention wrapper waiver: its staged-KV input-fingerprint mismatch is tracked separately by #22611.

This is a partial coverage follow-up, not removal of every remaining waiver for this bug.

Why Tests Only

#22846 aligns the fixture's cache and attention mappings and prepares the context/decode metadata according to the production Helix contract. This follow-up changes only tests/integration/test_lists/waives.txt; kernels, assertions, tolerances and test registrations are unchanged.

Verification

Verified main 6331024f5ba84ce0d219ccc8617f921810907773 with the final five-waiver deletion, current Python/JIT source, native libraries with matching production build inputs, and four GPUs per platform:

  • Dense PrimTS, B300 and GB300: the unchanged test_k3_mla_helix_context_heads function passes all six variants on each platform, including the four reported CP=2 comparisons and both controls, with zero failures, errors, skips or reruns. With TLLM_FMHA_LIBS=prims_ts, actual PrimsTSFmha.run_mla_generation calls complete on every rank of each reported case. These are the original comparisons, not a substitute neighboring test.
  • Default dispatch, B300: the full registered test_unittests_v2 entry below passes all 136 inner cases once, with zero failures, errors, skips or reruns. All shared-process predecessors, neighbors and controls execute. Its selector, exclusions, markers and 120-minute bound are unchanged. Actual decode in the four reported cases uses FallbackFmha.
  • Default dispatch, GB300: the unchanged head function passes all six variants once with zero failures, errors, skips or reruns; actual decode in the four reported cases uses FallbackFmha. This refresh does not rerun or claim a passing full GB300 attention parent. The current staged-KV input fingerprint still disagrees with the checked-in inputs, so that broader parent waiver remains.

The explicit dense runs establish the original decode backend's correctness separately from default-backend passes; dense PrimTS is opt-in on these platforms following #22806.

B300 entry and its inner result:

unittest/_torch/attention/multi_gpu --ignore=unittest/_torch/attention/multi_gpu/test_helix_zero_kv.py --ignore=unittest/_torch/attention/multi_gpu/test_gqa_kv_replica.py
136 passed

These use the CI unittest bridge. They are parent/function-entry results, not full CI-stage or PR-CI results.

Test Coverage

  • tests/unittest/_torch/attention/multi_gpu/test_mla_helix_context.py::test_k3_mla_helix_context_heads covers the reported variants and controls.
  • The unchanged directory entry in tests/integration/test_lists/test-db/l0_dgx_b300.yml runs the full multi-GPU attention group, including its shared-process predecessors, chunked-history and owned-prefill cases.

Fixes https://nvbugs/7141591

Dev Engineer Review

  • The only changed file is tests/integration/test_lists/waives.txt, with 0 lines added and 5 removed. No source code changed.
  • The diff removes the unittest/_torch/attention/multi_gpu directory skip. That skip also ignored test_helix_zero_kv.py, so that file is no longer ignored by it.
  • The diff removes four test_k3_mla_helix_context_heads skip entries (bf16-no-gate-tp1-cp2, fp8-gate-tp1-cp2, fp8-gate-tp2-cp2, fp8-no-gate-tp1-cp2-unaligned-q-scale-block).
  • The unittest/_torch/attention skip stays in place and still ignores test_gqa_kv_replica.py.
  • The PR objectives say the GB300 attention wrapper waiver stays. The diff does not show that waiver as a separate entry, so this summary does not confirm it.

QA Engineer Review

  • Test-list file modified: tests/integration/test_lists/waives.txt.
  • Removed waivers: the multi_gpu directory skip and four test_k3_mla_helix_context_heads skips, all tied to nvbugs/7141591.
  • Affected behavior: test_helix_zero_kv.py and the four context-head variants now run instead of being skipped.
  • Reported results, not verified here: the author reports the six test_k3_mla_helix_context_heads variants pass on B300 and GB300 with dense PrimTS, and on GB300 with default dispatch. The author reports all 136 inner cases of test_unittests_v2 pass on B300. These are parent or function-entry results, not full CI results.
  • Coverage verdict: needs follow-up. The removed waivers need CI runs on B300 and GB300 to confirm the reported results.

Per-File QA Perspective

  • tests/integration/test_lists/waives.txt: Re-enables test_helix_zero_kv.py and four test_k3_mla_helix_context_heads variants. QA should confirm these pass on B300 and GB300 in CI.

Remove the B300 attention/multi_gpu wrapper waiver and the four
context-head variant waivers from tests/integration/test_lists/waives.txt.

PR NVIDIA#22846 aligns the fixture's cache and attention mappings and its decode
metadata. This follow-up changes no kernels, assertions, tolerances or test
registrations.

Keep the broader GB300 attention wrapper waiver: its staged-KV input
fingerprint check still fails, and PR NVIDIA#22611 addresses that separate issue.

Signed-off-by: trtllm-agent <296075020+trtllm-agent@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The integration test waiver list now targets the attention directory and ignores only test_gqa_kv_replica.py. The previous multi-GPU and MLA context-head waiver entries were removed.

Changes

Attention test waivers

Layer / File(s) Summary
Update attention waiver scope
tests/integration/test_lists/waives.txt
The waiver list retains an entry for test_gqa_kv_replica.py under the attention directory. It removes the multi-GPU directory entry and four test_mla_helix_context_heads entries.

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

Change: Other

Merge Risk: Minimal · up to ac51c

This restores test coverage for B300 multi-GPU attention and the context-head variants by removing waivers that are no longer needed. Production behavior is unchanged. If one of the re-enabled tests turns out to be unstable in CI, it can be re-waived by reverting this file.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title follows the repository template with an NVBugs ID and the [fix] type. It names the main change, restoring B300 Helix context test coverage by removing waivers. It is specific and matches the…
Description check Passed The description covers the summary, the reason for a tests-only change, verification results, and test coverage, and it links the NVBugs ID. It follows the template's Description and Test Coverage sec…
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.
Full details: Title check

Explanation

The title follows the repository template with an NVBugs ID and the [fix] type. It names the main change, restoring B300 Helix context test coverage by removing waivers. It is specific and matches the waives.txt edits and the PR objectives.

Full details: Description check

Explanation

The description covers the summary, the reason for a tests-only change, verification results, and test coverage, and it links the NVBugs ID. It follows the template's Description and Test Coverage sections in substance. It does not fill the PR checklist, which is an acceptable gap for a non-critical section. The description is detailed and matches the raw summary and objectives.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6331024 and ac51c13.

Files selected for processing: 1

  • tests/integration/test_lists/waives.txt
Files with no reviewable changes: 1

  • tests/integration/test_lists/waives.txt

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

@trtllm-agent-review trtllm-agent-review 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.

Thanks for the PR. This PR removes five nvbugs/7141591 waives so the B300 multi-GPU attention entry and four Helix context-head CP=2 cases run again in post-merge CI, now that the #22846 fixture fix is on main; the GB300 attention waive stays.

Reviewed at commit ac51c13a70 (1 file, +0/−5).

This change only edits the CI waive list, so the review looks for blockers only: whether each removal takes effect and whether the re-enabled tests can break CI. It found none.

Approve: no Blocker found.

What this review checked
  • Each removal takes effect. The removed outer waive is exactly the tests/integration/test_lists/test-db/l0_dgx_b300.yml:28 entry without its TIMEOUT, and the four inner ids are real pytest.param ids in tests/unittest/_torch/attention/multi_gpu/test_mla_helix_context.py:161-172. No other waive or in-code skip keeps these cases off.
  • The fix is on the base and matches what was waived. 6870ae4 (#22846, same bug) is an ancestor of the reviewed base. The four waived ids are exactly the CP=2 cases of the pre-fix test, and the set lacks bf16-no-gate-tp1-cp4, the case #22846 added that any post-fix 4-GPU B300 run collects.
  • After merge, the B300 entry runs in DGX_B300-4_GPUs-PyTorch-Post-Merge-1/2. These stages have the four GPUs fp8-gate-tp2-cp2 needs, and the entry's recorded 4034 s fits its 120-minute TIMEOUT. test_helix_zero_kv.py keeps its own pre-merge entry (tests/integration/test_lists/test-db/l0_dgx_b300.yml:123).
  • Not covered: No GPU run: the re-enabled cases need four B300 GPUs.
  • Not covered: The commit that post-merge 3094 tested is not recorded in the repository; the PR's local B300 and GB300 runs were taken as described, not reproduced.

Automated review by trtllm-agent-review. If a point is wrong, reply in its thread. Once you have pushed code changes and replied in every Blocker thread, the bot re-checks the Blockers within a few hours. A Blocker you think should not be fixed needs no code change: reply in its thread with the reason and the evidence.

@github-actions

Copy link
Copy Markdown

Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements.

@trtllm-agent

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #87831 [ run ] triggered by Bot. Commit: ac51c13 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #87831 [ run ] completed with state DISABLED
The CI pipeline is currently frozen to deploy an urgent hotfix. For time-sensitive requests, please contact @trt-llm-infra-devs.

Link to invocation

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants