Skip to content

[https://nvbugs/6964732][fix] Split the B300 attention unit-test aggregate at sparse/ - #20822

Closed
trtllm-agent wants to merge 1 commit into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-v2/nvbug-6964732-r43
Closed

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

Conversation

@trtllm-agent

@trtllm-agent trtllm-agent commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Description

On single-GPU B300 (l0_b300), the unittest/_torch/attention --ignore=... aggregate runs serially: agg_unit_mem_df.csv has no B300 row for it, so test_unittests_v2 uses one worker. It also has no TIMEOUT override, so it gets CI's default 3600 s per-entry pytest limit.

Its wall time on B300 post-merge runs:

Builds Wall time
early October ~2780-2840 s
3028-3029 ~3260-3320 s
3032-3033 ~3500-3530 s
3031 killed at 3600 s, after 4,567 cases had reported (none failed)

The growth comes from many additions, not one change. The largest single step was test_prims_ts_attention_backend.py, which went from ~300 s to ~610 s on B300 between builds 3029 and 3031.

This change runs sparse/ as its own entry and ignores it in the directory entry. The six files the old entry ignored are still ignored, and they keep their own entries. Every case still runs on B300: none is skipped or waived, and no timeout is raised. Each entry now fits the default limit.

Fixes https://nvbugs/6964732

Test Coverage

Run on one B300 GPU, as CI runs it: test_unittests.py::test_unittests_v2, pytest --timeout=3600, fresh JIT caches. The base is a wheel built from the base commit; this change edits only a test list.

  • Before (current entry): Timeout at 3600 s, after 4,570 cases had reported (none failed).
  • After (the two entries this change renders):
    • unittest/_torch/attention --ignore=unittest/_torch/attention/sparse PASSED in 1596 s.
    • unittest/_torch/attention/sparse --ignore=... PASSED in 2692 s.
    • Together: 5,272 cases, 0 failed. This covers every case that the old entry ran in its last passing post-merge run (4,700).
  • trt-test-db render of l0_b300 for a 1-GPU B300 pre-merge stage: the only difference is the one old line replaced by the two new ones.

PR Checklist

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

Dev Engineer Review

The B300 attention test list now separates the sparse subtree from the general attention entry. This reduces the size of each CI entry without changing the tests selected by the two entries or raising the timeout. The supplied information reports both entries under the default 3,600-second timeout. Runtime results are author-reported; no independent test run is available here.

QA Engineer Review

Only a test-list file changed. The general attention entry now excludes unittest/_torch/attention/sparse, and a separate sparse entry includes that subtree with the existing six file exclusions. The six exclusions remain represented by their own entries. No test functions, IDs, selectors, or waivers changed. Coverage verdict: sufficient for this test-list-only change, based on the supplied description.

Per-File QA Perspective

  • tests/integration/test_lists/test-db/l0_b300.yml: Splits B300 attention CI selection into general and sparse entries while preserving the six existing exclusions. This is a CI workflow selection change; verify both entries run and remain within the default timeout.

…egate at sparse/

On single-GPU B300 the unittest/_torch/attention aggregate runs serially
(agg_unit_mem_df.csv has no B300 row for it) under CI's default 3600 s
per-entry pytest timeout. Its wall time grew from ~2800 s in early
October to ~3530 s in post-merge build 3032, and build 3031 was killed
at 3600 s with no case failed. Run sparse/ as its own entry, with the
same files ignored as before, so each entry fits the default limit
again. The same 5272 cases run; none is skipped, waived or given a
longer timeout.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: trtllm-agent <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between d4cfc12 and 7ae96a7.

📒 Files selected for processing: 1
  • tests/integration/test_lists/test-db/l0_b300.yml

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 B300 test list now has separate entries for general attention and sparse attention. The sparse entry excludes six files that have their own entries.

Changes

B300 attention test lists

Layer / File(s) Summary
Separate attention test entries
tests/integration/test_lists/test-db/l0_b300.yml
The general attention entry excludes the sparse subtree. A separate sparse entry runs that subtree and excludes six files listed in their own entries.

Priority: ➖ Normal

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

Change: Bug fix

Suggested reviewers: bowenfu, zheyuf

Merge Risk: ⚪ Minimal · up to 7ae96

The B300 attention tests remain covered through two entries without a merge-blocking issue.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title follows the required NVBugs and type format. It clearly describes the main change: splitting the B300 attention unit-test aggregate at sparse/.
Description check Passed The description explains the runtime issue, the proposed split, the preservation of test coverage, measured results, test configuration, and checklist status. It provides sufficient context for review…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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: Description check

Explanation

The description explains the runtime issue, the proposed split, the preservation of test coverage, measured results, test configuration, and checklist status. It provides sufficient context for review and matches the required sections.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@brnguyen2 brnguyen2 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.

Approving — the comments below are optional touch-ups, not blockers.

The split keeps every case and the six per-file entries stay intact. One follow-up below about how close the new sparse entry already is to the limit.

# The serial aggregate outgrew CI's 60-minute per-entry limit on B300, so sparse/ runs as
# its own entry. The files ignored in it keep their own entries (pre-existing).
- unittest/_torch/attention --ignore=unittest/_torch/attention/sparse
- unittest/_torch/attention/sparse --ignore=unittest/_torch/attention/sparse/dsa/test_cute_dsl_fp8_paged_mqa_logits.py --ignore=unittest/_torch/attention/sparse/dsa/test_cute_dsl_fp4_paged_mqa_logits.py --ignore=unittest/_torch/attention/sparse/test_cute_dsl_gvr_topk_decode.py --ignore=unittest/_torch/attention/sparse/test_cute_dsl_gvr_topk_tiers.py --ignore=unittest/_torch/attention/sparse/msa/test_minimax_m3_sparse_attn_decode.py --ignore=unittest/_torch/attention/sparse/msa/test_msa_proxy_split.py

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.

Your run puts this entry at 2692 s. That is ~75% of the 3600 s default, and the old aggregate grew ~700 s in a few weeks. At that rate sparse/ will hit the same timeout soon. Please record the measured time inline (e.g. # ~2700s on B300, default 60-min limit, like the # 250s note on unittest/_torch/executor) so the next person adding sparse tests sees the budget. If you know the next natural split point (e.g. sparse/dsa vs the rest), name it in the comment too.

@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.

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.

2 participants