Skip to content

[None][fix] Move two Qwen4 unit tests under ops/ and read YAML QA lists in the Modeling V2 CI selection check - #22085

Merged
longlee0622 merged 1 commit into
NVIDIA:mainfrom
erictsai-nv:mv2-ci-selection-fix
Nov 11, 2026
Merged

longlee0622 merged 1 commit into
NVIDIA:mainfrom
erictsai-nv:mv2-ci-selection-fix

Conversation

@erictsai-nv

@erictsai-nv erictsai-nv commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

tests/unittest/_torch/modeling_v2/test_modeling_v2_ci_selection.py fails on main in two checks. This PR fixes both.

  1. [None][fix] Acquire at cluster scope on the mailbox waits of the Qwen4 mid-rows GEMM and HC decode kernels #21853 added two Qwen4 unit tests under models/qwen4_exp/gemm/ and models/qwen4_exp/hc/. The source lives under models/qwen4_exp/ops/, and no test-db entry runs the two files. This PR moves them to models/qwen4_exp/ops/gemm/ and models/qwen4_exp/ops/hc/, where the existing models/qwen4_exp/ops entry runs them. The files do not change.
  2. [TRTLLM-17628][test] Define multinode test launch parameters in YAML #21704 replaced qa/llm_function_multinode.txt with qa/llm_function_multinode.yml. The check read only qa/*.txt, so it reported the accuracy tests of three targets as unlisted. The check now also reads the case entries of the YAML case lists.

Test Coverage

tests/unittest/_torch/modeling_v2/test_modeling_v2_ci_selection.py passes (9 tests); it fails on main in test_unit_test_directories_mirror_source and test_every_test_is_in_a_test_list.

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

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

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

Dev Engineer Review

The change performs two exact renames into models/qwen4_exp/ops/ and adds YAML QA-list parsing to _qa_entries. The parser keeps .txt entries and adds only string case values from YAML dictionaries with list-valued tests. No API or unrelated behavior changes are present.

QA Engineer Review

Two source-level Qwen4 synchronization tests moved without content changes. They retain their existing test functions and parameterization. test_modeling_v2_ci_selection.py now checks YAML QA cases as well as text-list entries.

The moved tests are covered by the l0_b300.yml models/qwen4_exp/ops entry. The selection test is covered by l0_cpu.yml. No completed test result for the current commit is available. Coverage verdict: needs follow-up.

Per-File QA Perspective

  • tests/unittest/_torch/modeling_v2/models/qwen4_exp/ops/gemm/test_modeling_v2_mid_rows_mm_sync.py: Checks cluster-scope mailbox ordering for split-K GEMM and rejects CTA-scope waits. The l0_b300.yml models/qwen4_exp/ops entry covers it.
  • tests/unittest/_torch/modeling_v2/models/qwen4_exp/ops/hc/test_modeling_v2_qwen4_exp_hc_decode_rows_tc_sync.py: Checks cluster-scope ordering for both HC mailbox barriers. The l0_b300.yml models/qwen4_exp/ops entry covers it.
  • tests/unittest/_torch/modeling_v2/test_modeling_v2_ci_selection.py: Checks Modeling V2 layout and test-list completeness. It now recognizes YAML QA case entries, and l0_cpu.yml covers the test.

@erictsai-nv
erictsai-nv marked this pull request as ready for review November 11, 2026 06:42
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The QA entry collector continues to read nonblank, non-comment entries from .txt files. It now also reads string case values from qualifying items in .yml files. Two Qwen4 experimental test files moved into ops subdirectories without content changes.

Changes

QA List Selection

Layer / File(s) Summary
Collect entries from QA lists
tests/unittest/_torch/modeling_v2/test_modeling_v2_ci_selection.py, tests/unittest/_torch/modeling_v2/models/qwen4_exp/ops/gemm/test_modeling_v2_mid_rows_mm_sync.py, tests/unittest/_torch/modeling_v2/models/qwen4_exp/ops/hc/test_modeling_v2_qwen4_exp_hc_decode_rows_tc_sync.py
_qa_entries collects string case values from dictionary items in a list-valued YAML tests field. It retains filtering of blank and comment lines in .txt files. The two Qwen4 experimental test files moved into ops/gemm and ops/hc; their contents are unchanged.

Estimated code review effort: 2 (Simple) | ~8 minutes

Possibly related PRs

  • NVIDIA/TensorRT-LLM#21372: Adds the Qwen4 experimental target, its qwen4_exp/ops implementation, and related CI and QA entries. This PR moves Qwen4 tests into that layout and reads YAML QA case lists.
  • NVIDIA/TensorRT-LLM#20829: Changes Modeling V2 CI selection, target-specific test discovery, and test-list coverage checks. This PR updates the selection check to parse YAML QA entries and moves tests to the directory used by the test database.
Merge Risk: Minimal · up to dd680

This PR relocates two Qwen4 unit tests and extends the CI-selection test to read YAML QA case lists. No concrete merge-blocking risk remains. A malformed QA list would still be caught by the separate list verifier.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title follows the required [None][fix] format and clearly summarizes both main changes: moving Qwen4 tests under ops/ and reading YAML QA lists.
Description check Passed The description explains the failures, the two fixes, and test coverage. It includes the required sections and a completed checklist.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.

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 b7b61fb and dd680bf.

Files selected for processing: 3

  • tests/unittest/_torch/modeling_v2/models/qwen4_exp/ops/gemm/test_modeling_v2_mid_rows_mm_sync.py
  • tests/unittest/_torch/modeling_v2/models/qwen4_exp/ops/hc/test_modeling_v2_qwen4_exp_hc_decode_rows_tc_sync.py
  • tests/unittest/_torch/modeling_v2/test_modeling_v2_ci_selection.py
Files with no reviewable changes: 2

  • tests/unittest/_torch/modeling_v2/models/qwen4_exp/ops/gemm/test_modeling_v2_mid_rows_mm_sync.py
  • tests/unittest/_torch/modeling_v2/models/qwen4_exp/ops/hc/test_modeling_v2_qwen4_exp_hc_decode_rows_tc_sync.py

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

@erictsai-nv

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84055 [ run ] triggered by Bot. Commit: b7b61fb Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84055 [ run ] completed with state FAILURE. Commit: b7b61fb
/LLM/main/L0_MergeRequest_PR pipeline #69523 completed with status: 'ABORTED'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

Signed-off-by: Eric Tsai <ertsai@nvidia.com>
@hanjingtian

Copy link
Copy Markdown
Collaborator

/bot run

@longlee0622
longlee0622 enabled auto-merge (squash) November 11, 2026 15:07
@longlee0622

Copy link
Copy Markdown
Collaborator

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84209 [ run ] triggered by Bot. Commit: dd680bf Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #84209 [ run ] completed with state SUCCESS. Commit: dd680bf
/LLM/main/L0_MergeRequest_PR pipeline #69626 completed with status: 'SUCCESS'
Pipeline passed with automatic retried tests. Check the rerun report for details.

CI Report

Link to invocation

@longlee0622

Copy link
Copy Markdown
Collaborator

CI blocker for multiple PRs, bypassed reviewer approval to get it merged

chenfeiz0326 added a commit to chenfeiz0326/TensorRT-LLM that referenced this pull request Nov 11, 2026
Picks up NVIDIA#22085, which fixes the Modeling V2 CI selection check that fails on main.

Signed-off-by: chenfeiz0326 <203214996+chenfeiz0326@users.noreply.github.com>
erictsai-nv added a commit that referenced this pull request Nov 13, 2026
…hecks fixed by #22085 (#22215)

Signed-off-by: Eric Tsai <ertsai@nvidia.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.

4 participants