Skip to content

[https://nvbugs/7044056][fix] Restore B300 attention timeout and remove stale waiver - #22409

Merged
trtllm-agent merged 2 commits into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-v2/nvbug-7044056-r411
Nov 19, 2026
Merged

trtllm-agent merged 2 commits into
NVIDIA:mainfrom
tensorrt-cicd:repair-bot-v2/nvbug-7044056-r411

Conversation

@trtllm-agent

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

Copy link
Copy Markdown
Collaborator

Description

Give the existing B300 post-merge multi-GPU attention entry an explicit 120-minute suite timeout and remove a stale, unmatched waiver.

The broad attention entry had TIMEOUT (120) before #20683 narrowed it to multi_gpu/. The narrowed entry uses the default 3600-second outer watchdog. Restore the explicit suite budget without changing the test-db selectors, numerical assertions, or per-leaf watchdogs.

Execution time is not uniformly over one hour. Historical passing-CI averages for the predecessor selector in tests/integration/defs/.test_durations were approximately 1925, 2380 and 2171 seconds in the 2026-11-02, 2026-11-09 and 2026-11-16 snapshots, respectively: roughly 32–40 minutes. Current-selector verification on the slower tested nodes took 4079.691–4104.335 seconds. The 60-minute bound can therefore terminate otherwise passing execution on affected nodes; this does not mean full-suite execution normally takes over an hour.

This is a timeout mitigation, not a fix for the reported node-dependent runtime variation. Its cause remains unestablished and continues to be tracked under https://nvbugs/7044056; this PR does not claim that investigation is resolved.

Remove only the stale waiver added by #22311. Before that waiver merged, #21997 had already added --ignore=unittest/_torch/attention/multi_gpu/test_gqa_kv_replica.py to the B300 entry. The waiver names the older selector, and apply_waives matches exact node IDs, so it never skipped the current B300 entry. Deleting it is stale-line cleanup, not restoration of waived coverage. Preserve all other current-main waivers and upstream waiver removals, including the separate waivers for https://nvbugs/7109810.

The current B300 multi-GPU attention entry remains fully skipped in CI by the separate waiver for https://nvbugs/7109810. The TIMEOUT (120) annotation is not part of the parametrized node ID, so it does not bypass that exact-selector waiver. The 120-minute budget takes effect for CI execution only after that waiver is lifted; this PR does not re-enable this suite's B300 CI coverage.

Test Coverage

Verification on four B300 GPUs, using the integration wrapper and full serial inner pytest sequences. These are direct wrapper runs, not a blossom-ci result for this PR or validation of both complete post-merge shards. Verification summary: https://nvbugs/7044056.

  • Controlled before/after: on the same tested runtime and node, the original selector times out at 3600 seconds after 118 completed inner passes. The timeout-only candidate completes the original selector with 138 passed in 4364.736 seconds and the current CI selector with 134 passed in 4079.691 seconds.
  • Previously verified tree: using a runtime built from its merged base, the original selector has 138 passed in 4388.642 seconds; the current CI selector has 134 passed in 4104.335 seconds. Both run in one outer pytest process; both outer wrappers pass, with no inner failures or skips. Those GPU results verify the code tree retained by fee990e8aeba981afcb50c6f2b093d2c3e50a7a3. The subsequent main merge preserves the same PR patch, but GPU verification has not been repeated on the new merged tree; focused configuration checks pass.
  • The reported leaf, test_k3_mla_helix_context_heads[fp8-no-gate-tp1-cp2-unaligned-q-scale-block], passes in both final runs. Coverage retains the original GQA predecessors and neighboring MHA/MLA, FIFO/NCCL, head-layout, ownership and chunked-history cases selected by the suites.
  • Configured pre-commit checks pass, including YAML validation, test-list source AST validation and DCO. No runtime code path or dependency is added; the existing CI case covers this configuration change.

Original selector: unittest/_torch/attention/multi_gpu --ignore=unittest/_torch/attention/multi_gpu/test_helix_zero_kv.py.

Current CI selector additionally retains --ignore=unittest/_torch/attention/multi_gpu/test_gqa_kv_replica.py.

PR Checklist

  • Scope is limited to the suite budget and stale-waiver cleanup.
  • Existing test selections and assertions are preserved; the unmatched waiver is removed without changing which cases are selected.
  • Other upstream changes and waiver removals are preserved.
  • No API, runtime, dependency or ownership change is introduced.
  • Coding checks and DCO sign-offs pass.

Tracking: https://nvbugs/7044056

Dev Engineer Review

  • The diff changes two test-list files. It does not change source code, public APIs, or test code.
  • tests/integration/test_lists/test-db/l0_dgx_b300.yml: Appends TIMEOUT (120) to the existing unittest/_torch/attention/multi_gpu entry. The --ignore options for test_helix_zero_kv.py and test_gqa_kv_replica.py remain. The timeout token sits after the pytest arguments on the same line. The list parser's handling of this form is not verified in this review.
  • tests/integration/test_lists/waives.txt: Removes one line only: unittest/_torch/attention/multi_gpu --ignore=...test_helix_zero_kv.py SKIP (https://nvbugs/7044056). That line lacks the GQA ignore, so it does not match the current entry's selector. The remaining GQA-ignore waiver (NVBUG 7109810) is unchanged. No waiver was added or re-tagged.
  • Removing the stale line does not restore waived coverage. The PR states it is cleanup, not a coverage change.
  • The timeout is a mitigation. The PR states the cause of the node-dependent runtime variation is still under investigation (nvbugs/7044056).
  • The PR reports direct full-wrapper runs on four B300 GPUs: 138 passes in 4364.736 s on the original selector, and 134 passes in 4079.691 s on the CI selector. After merging main, the runs took 4388.642 s and 4104.335 s. These are manual wrapper runs, not PR CI results.

QA Engineer Review

Test files changed: none under tests/ in Python. Changes are in test-list files only. No test function, test ID, or selector was added or removed.

  • Modified: tests/integration/test_lists/test-db/l0_dgx_b300.yml. Adds TIMEOUT (120) to the unittest/_torch/attention/multi_gpu entry. This is a CI (test-db/) list. No qa/ list changed.
  • Modified: tests/integration/test_lists/waives.txt. Removes one non-matching waiver for the older selector (NVBUG 7044056).
  • Reported results: the PR reports direct wrapper runs (138 and 134 passes on four B300 GPUs). It does not report a completed blossom-ci result or a full post-merge shard run for this head.

Per-file QA perspective:

  • test-db/l0_dgx_b300.yml: Verify that the multi-GPU attention entry runs on B300 post-merge and completes within 120 minutes. Verify that the Helix zero-KV and GQA KV-replica ignores still apply.
  • waives.txt: Verify that only the stale 7044056 line was removed and that the other waivers are unchanged. Do not treat this as restored B300 coverage.

Coverage verdict: needs follow-up. The diff is correct for the entry-specific timeout and stale-waiver cleanup. Complete post-merge shard CI is not shown for this head, and the node-dependent slowdown remains under investigation.

…rage

Restore TIMEOUT (120) on the B300 post-merge multi-GPU attention entry and remove its tracking waiver. Keep existing selectors, assertions, and per-test watchdogs unchanged.

Preserve the other waiver removals already on main.

Fixes https://nvbugs/7044056

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

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The B300 multi-GPU attention test command now has a 120-second timeout. The waiver entry now ignores test_gqa_kv_replica.py and tracks NVBUG 7109810.

Changes

Multi-GPU Attention Test Selection

Layer / File(s) Summary
Update timeout and waiver entry
tests/integration/test_lists/test-db/l0_dgx_b300.yml, tests/integration/test_lists/waives.txt
The B300 test command now has a 120-second timeout; its two ignore options are unchanged. The waiver entry now ignores test_gqa_kv_replica.py and tracks NVBUG 7109810.

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

Change: Bug fix

Merge Risk: Minimal · up to 3b8e8

This change adds a 120-minute timeout to the B300 multi-GPU attention test entry and removes a stale waiver that no longer matches any test. Only test configuration changes, with no production impact. No concrete defect was found, so the merge risk is minimal.

Architecture risk: Low · up to fee99

The change affects 1 system.

Changed systems: tests

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — tests (service) was modified; 2 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in tests/integration/test_lists/test-db/l0_dgx_b300.yml: The multi-GPU attention test command now has a 120-second timeout; its two ignore options are unchanged.
  • observed — Modified behavior in tests/integration/test_lists/waives.txt: Removed the skip entry for the unittest/_torch/attention/multi_gpu directory, which excluded test_helix_zero_kv.py and referenced NVBug 7044056.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: restoring the explicit 120-minute timeout for the B300 attention entry and removing a stale waiver. It also follows the required [ticket][type] Summary format. The 84-…
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.
Description check Passed The description covers the change, its rationale, and its verification. It states that the B300 post-merge multi-GPU attention entry gets an explicit 120-minute TIMEOUT, and that a stale waiver for te…
Full details: Title check

Explanation

The title names the main change: restoring the explicit 120-minute timeout for the B300 attention entry and removing a stale waiver. It also follows the required [ticket][type] Summary format. The 84-character length is acceptable and the wording is specific.

Full details: Description check

Explanation

The description covers the change, its rationale, and its verification. It states that the B300 post-merge multi-GPU attention entry gets an explicit 120-minute TIMEOUT, and that a stale waiver for test_gqa_kv_replica.py is removed. It gives timing evidence from CI snapshots and direct wrapper runs on four B300 GPUs, and it notes that the entry stays skipped by the separate waiver for nvbugs/7109810. It also states that the merged tree has not been re-verified on GPUs, and that the checklist items are addressed. The description follows the template's Description, Test Coverage and PR Checklist sections, although the template's leading @coderabbitai summary line and the title format are not evaluated here. The description is detailed and specific, so no remediation is needed.

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 fee990e and 3b8e862.

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.

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

No blockers: 2 Required (both about the PR description) and 2 Nice to have. The TIMEOUT (120) line itself works as intended. TIMEOUT is stripped from the node id, the same --ignore=... TIMEOUT (120) form already exists at l0_gb300_multi_gpus.yml:57, and the wrapper's subprocess has no timeout of its own, so the 7200 s bound takes effect. The removed waiver also cites this PR's bug.

  • [Required] The removed waiver never applied, so "the waived coverage is restored" is not accurate. It names the pre-#21997 selector (unittest/_torch/attention/multi_gpu --ignore=unittest/_torch/attention/multi_gpu/test_helix_zero_kv.py). But #21997 had already added --ignore=unittest/_torch/attention/multi_gpu/test_gqa_kv_replica.py to this entry before #22311 merged, and waivers match exact node ids (apply_waives, tests/integration/defs/test_list_parser.py:711-717). So after #22311 the B300 entry was never skipped; it kept running and timing out. Deleting the line is a stale-line cleanup, and the fix is the TIMEOUT. Please correct the description, its checklist item and the "runs instead of skipping" wording in the QA block.
  • [Nice to have] No CI has run on this PR yet, and a default /bot run does not execute post-merge entries. Please run /bot run --stage-list "DGX_B300-4_GPUs-PyTorch-Post-Merge-1,DGX_B300-4_GPUs-PyTorch-Post-Merge-2" and link the result. Optionally, add the measured ~4100 s for the current selector to tests/integration/defs/.test_durations (both the bare key and the test_unittests.py::test_unittests_v2[...] key). That file has no row for this selector yet, only the pre-#21997 one at 2171 s, so least_duration estimates the entry at the 391 s list average. The shard that receives it then runs about 3.1-3.6 h of tests while the other runs about 2.6 h, under a 240-minute walltime (#SBATCH --time=240 in post-merge #3074).

@trtllm-agent trtllm-agent changed the title [https://nvbugs/7044056][fix] Restore B300 attention timeout and coverage [https://nvbugs/7044056][fix] Restore B300 attention timeout and remove stale waiver Nov 17, 2026
@trtllm-agent

Copy link
Copy Markdown
Collaborator Author

The description, checklist and QA block now identify the waiver deletion as stale-selector cleanup: the added GQA ignore predates the waiver, and exact node-ID matching meant that line never skipped the current B300 entry. The title no longer claims coverage restoration.

I cannot initiate repository CI from this bot account; the repository ignores CI-trigger commands from bots. The recorded 138/134-case results are direct full-wrapper runs, not execution of both complete post-merge shards, and I have no blossom-ci stage result for this head to link.

I left .test_durations unchanged. Its producer aggregates seven days of passing CI results, whereas the approximately 4100-second figures are manual slower-node observations. I have not substituted those observations for the unqualified CI aggregate.

…044056-r411

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

# Conflicts:
#	tests/integration/test_lists/waives.txt

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

Both edits are correct. Note that the timeout won't affect CI yet. [tests/integration/test_lists/waives.txt:170](https://github.com/NVIDIA/TensorRT-LLM/pull/22409/files#diff-621bd2af82a3b97c7a5948368d36c14582ffdf73361deb7f42d2ff395b22167eR170) (nvbug 7109810) matches this entry's selector exactly. The node ID doesn't include the TIMEOUT (120) suffix (pytest_generate_tests parametrizes with ids=lambda x: x), so that waiver still skips the whole suite. The 120-minute budget only takes effect once the 7109810 waiver is lifted. Please say this in the description so nobody reads this PR as re-enabling B300 multi-GPU attention coverage.

@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

Updated the description to state explicitly that https://nvbugs/7109810 still skips the entire B300 multi-GPU attention entry. It now explains that TIMEOUT (120) is excluded from the node ID, so the longer CI budget only takes effect after that waiver is lifted. This PR does not re-enable the suite's B300 CI coverage.

@trtllm-agent

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #86076 [ run ] triggered by Bot. Commit: 3b8e862 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #86076 [ run ] completed with state SUCCESS. Commit: 3b8e862
/LLM/main/L0_MergeRequest_PR pipeline #71289 completed with status: 'SUCCESS'

CI Report

Link to invocation

@trtllm-agent
trtllm-agent merged commit f0b63c8 into NVIDIA:main Nov 19, 2026
22 checks passed
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