Skip to content

[https://nvbugs/7117674][infra] Waive the empty-stop sampling case on CPU - #22607

Merged
yuxianq merged 1 commit into
NVIDIA:mainfrom
yuxianq:sampling-empty-stop-waiver-7117674
Nov 19, 2026
Merged

yuxianq merged 1 commit into
NVIDIA:mainfrom
yuxianq:sampling-empty-stop-waiver-7117674

Conversation

@yuxianq

@yuxianq yuxianq commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Replace #22590 with its CPU waiver in the sorted position in tests/integration/test_lists/waives.txt. The original PR appended the entry at the end of the file, and the required sorter moved it during CI. Failing pre-commit job

The affected case passes stop="" and expects a tokenizer-required error. SamplingParams rejects the empty stop string first, so the assertion fails on both x86 and Arm CPU stages. The waiver covers only test_prepare_sampling_params_explicit_end_id_strings_without_tokenizer_are_rejected[words1] on CPU. Remove the waiver once the test is fixed on main. NVBug 7117674 · Underlying fix #22597

Test Coverage

  • Ran the repository pre-commit checks against the PR diff, including file-contents-sorter and duplicate-waiver validation.
  • Checked the unit-test waiver matcher against both CPU stage prefixes, adjacent parameter cases, and B200/B300 stage prefixes.

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 adds one skip entry to tests/integration/test_lists/waives.txt. No source code changes.
  • The entry skips full:CPU/unittest/llmapi/test_sampling_params.py::test_prepare_sampling_params_explicit_end_id_strings_without_tokenizer_are_rejected[words1] with reference https://nvbugs/7117674.
  • The waiver covers one parameter case. Adjacent cases and other stages are not affected.
  • The entry sits in sorted order between the existing test_idle_iter_stats.py waiver and the test_subprocess_timeouts.py waiver.
  • The diff adds the line only. It removes nothing. The base branch does not contain this entry.
  • Risk: the skip hides a failing assertion. The test passes stop="" and expects a tokenizer-required error. SamplingParams rejects the empty stop string first. The underlying fix is tracked in PR #22597. The waiver should be removed after the test is fixed on main.

QA Engineer Review

Test-list changes only.

  • Modified: tests/integration/test_lists/waives.txt (+1/-0).
  • Added waiver: full:CPU/unittest/llmapi/test_sampling_params.py::test_prepare_sampling_params_explicit_end_id_strings_without_tokenizer_are_rejected[words1] SKIP (https://nvbugs/7117674).
  • Scope: CPU stage only. The test is skipped, not fixed. Coverage of the tokenizer-required error path for this case is not exercised until the test is repaired.
  • Test-db or qa list placement: not applicable. This file is a waiver list.
  • Coverage verdict: needs follow-up. Remove the waiver after the underlying test fix lands.

Per-File QA Perspective

  • tests/integration/test_lists/waives.txt: Adds one CPU skip for the words1 case of the explicit end-id tokenizer rejection test. QA should confirm the skip is removed once the test passes on main.

… CPU

Place the existing words1 selector in sorted order so pre-commit accepts the CPU waiver. NVBug 7117674 tracks restoring this case once its validation expectation is fixed.

Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The integration test skip list now excludes one CPU llmapi sampling-parameters test and references NVBUG 7117674.

Changes

CPU llmapi test waiver

Layer / File(s) Summary
Add test waiver
tests/integration/test_lists/waives.txt
Adds a skip-list entry for test_prepare_sampling_params_explicit_end_id_strings_without_tokenizer_are_rejected[words1], linked to NVBUG 7117674.

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

Change: Other

Suggested reviewers: xxi-nv, reasonsolo, wanli-jiang

Merge Risk: Minimal · up to fd86d

This adds a narrowly scoped, tracked test waiver for one CPU test case that currently fails. It does not change runtime behavior, and the risk of merging is minimal.

Architecture risk: Low · up to fd86d

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; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in tests/integration/test_lists/waives.txt: Added a skip-list entry for test_prepare_sampling_params_explicit_end_id_strings_without_tokenizer_are_rejected[words1] in the CPU llmapi test suite, linked to NVBUG 7117674.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the NVBug ID, the [infra] type, and the CPU waiver for the empty-stop sampling case. This matches the single-line waives.txt change that adds the skip entry. It follows the repository …
Description check Passed The description covers the what and why. It explains the waiver for the failing empty-stop test on CPU, links NVBug 7117674 and the underlying fix, and lists test coverage. It fills in the template se…
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 names the NVBug ID, the [infra] type, and the CPU waiver for the empty-stop sampling case. This matches the single-line waives.txt change that adds the skip entry. It follows the repository template format.

Full details: Description check

Explanation

The description covers the what and why. It explains the waiver for the failing empty-stop test on CPU, links NVBug 7117674 and the underlying fix, and lists test coverage. It fills in the template sections for Description and Test Coverage. The PR Checklist is ticked, though the author did not mark each item individually. The description does not mention the template's Alternative CodeRabbit title line, which is optional.

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 21b4f99 and fd86d33.

Files selected for processing: 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; 11 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. Adds a sorted, CPU-only waiver for the {"stop": ""} case ([words1]) of the tokenizer-required sampling test, which fails on main since #22237 made SamplingParams reject empty stop strings; it replaces the unsorted auto-waive in #22590.

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

Approve: no Blocker found. 2 suggestions below are nice to have.

Nice to have (2): 1 inline, 1 below
  • (R2: Test lists and waives) If #22597 (which drops {"stop": ""}) lands first, or lands without deleting this line, [words1] silently skips the passing {"bad": "BAD"} case on all CPU stages. (waives.txt:81)
  • [Nice to have] (R1: PR process) #22590 is still open, with two approvals, a passing /bot skip, and squash auto-merge enabled by @karljang. Its only failing check is the pre-commit sorter, so fixing that check merges it. Since this PR replaces it, please close #22590, or ask @karljang to turn its auto-merge off. Then a single waiver lands for nvbugs/7117674, and the cleanup in #22597 follows this PR.
What this review checked
  • The full:CPU/ entry resolves, through test_list_parser.parse_test_name and tests/unittest/conftest.py:apply_waives_ut, to exactly the inner node id llmapi/test_sampling_params.py::...[words1] on CPU-Generic-x86-1..4 and CPU-Generic-arm-1..4 and to nothing on GPU stages; the file-level test_unittests_v2 case is not skipped (simulated with the repo's own parser).
  • [words1] is {"stop": ""} and the only failing case: SamplingParams.__post_init__ raises stop must not contain an empty string (tensorrt_llm/sampling_params.py:445-448) before the tokenizer check, while the other four cases still raise tokenizer is required (tensorrt_llm/llmapi/llm.py:1557-1563), as the NVBug's triage of L0 #71080 also shows.
  • The test file is module-level cpu_only and listed only in l0_cpu.yml, so the CPU scope is complete; the line is in sorted order, and the head's Pre-commit Check (sorter, duplicate-waive and validate-test-lists hooks) passed.
  • Not covered: The waived test was not run; the waiver match was simulated with the repo's parser and the parameter ids checked with a standalone pytest collection.
  • Not covered: No L0 CI run exists on this head yet; only the GitHub checks were read.
  • Not covered: #22597 was read only where it touches this waiver.

Automated review by trtllm-agent-review. If a point is wrong, reply in its thread. After you push fixes or reply, the bot re-checks the Blockers within a few hours.

Comment thread tests/integration/test_lists/waives.txt Resolved
@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.

@yuxianq

yuxianq commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "auto-waive: waive-only change"

@yuxianq
yuxianq enabled auto-merge (squash) November 19, 2026 04:31
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85956 [ skip ] triggered by Bot. Commit: fd86d33 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #85956 [ skip ] completed with state SUCCESS. Commit: fd86d33
Skipping testing for commit fd86d33

Link to invocation

@yuxianq
yuxianq merged commit 2672c80 into NVIDIA:main Nov 19, 2026
23 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