Repository navigation
[https://nvbugs/7117674][infra] Waive the empty-stop sampling case on CPU - #22607
Conversation
… 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>
|
No actionable comments were generated in the recent review. WalkthroughThe integration test skip list now excludes one CPU ChangesCPU llmapi test waiver
Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Other Suggested reviewers: Merge Risk:
|
trtllm-agent-review
left a comment
There was a problem hiding this comment.
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, throughtest_list_parser.parse_test_nameandtests/unittest/conftest.py:apply_waives_ut, to exactly the inner node idllmapi/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-leveltest_unittests_v2case is not skipped (simulated with the repo's own parser). [words1]is{"stop": ""}and the only failing case:SamplingParams.__post_init__raisesstop must not contain an empty string(tensorrt_llm/sampling_params.py:445-448) before the tokenizer check, while the other four cases still raisetokenizer 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_onlyand listed only inl0_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.
|
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. |
|
/bot skip --comment "auto-waive: waive-only change" |
|
PR_Github #85956 [ skip ] triggered by Bot. Commit: |
|
PR_Github #85956 [ skip ] completed with state |
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 jobThe affected case passes
stop=""and expects a tokenizer-required error.SamplingParamsrejects the empty stop string first, so the assertion fails on both x86 and Arm CPU stages. The waiver covers onlytest_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 #22597Test Coverage
file-contents-sorterand duplicate-waiver validation.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-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin 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
tests/integration/test_lists/waives.txt. No source code changes.full:CPU/unittest/llmapi/test_sampling_params.py::test_prepare_sampling_params_explicit_end_id_strings_without_tokenizer_are_rejected[words1]with referencehttps://nvbugs/7117674.test_idle_iter_stats.pywaiver and thetest_subprocess_timeouts.pywaiver.stop=""and expects a tokenizer-required error.SamplingParamsrejects 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.
tests/integration/test_lists/waives.txt(+1/-0).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).Per-File QA Perspective
tests/integration/test_lists/waives.txt: Adds one CPU skip for thewords1case of the explicit end-id tokenizer rejection test. QA should confirm the skip is removed once the test passes on main.