Repository navigation
[None][fix] Align the serve constructor ratchet with its landing baseline - #22174
Conversation
…line The constructor-site guard added by NVIDIA#21406 recorded an older snapshot of main. NVIDIA#20936 had already replaced _chat_stream and added two other Anthropic fixtures, and NVIDIA#21012 had added the graceful-shutdown fixtures. Their names were missing when the guard landed, so its CPU test fails with five missing sites and one obsolete entry on current main. Record only those sites that already existed in the parent of NVIDIA#21406's merge commit and remove the obsolete name. Keep the scanner and ratchet logic unchanged: newly added sites and stale allowances still fail. Signed-off-by: JunyiXu-nv <[email protected]>
|
/bot run |
|
No actionable comments were generated in the recent review. WalkthroughThe ChangesObject-new baseline correction
Estimated code review effort: 2 (Simple) | ~5 minutes Change: Other Possibly related PRs
Merge Risk:
|
|
PR_Github #84397 [ run ] triggered by Bot. Commit: |
|
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. |
|
PR_Github #84397 [ run ] completed with state |
Takes NVIDIA#22174 (serve constructor ratchet baseline), which fixes test_no_object_new on main. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Viraat Chandra <[email protected]>
Description
Fix the deterministic failure of
test_no_new_object_new_siteson main after #21406 merged.The guard's snapshot predates two changes that had already landed before the guard itself:
_chat_streamwith_streaming_chat_serverand added the disaggregated-route and batched-message fixtures intest_anthropic_routes.py.test_openai_server_graceful_shutdown.py.Update only those baseline entries: five missing names and one obsolete name. Their complete per-file site lists are identical immediately before #21406 merged (
9ceb00a84e^), at its merge (9ceb00a84e), and at this PR's base (c0468112f4). No site introduced after the guard landed is allowed by this change.The AST scanner and ratchet logic are unchanged. New construction sites, renamed sites and stale baseline entries still fail. No serving behavior, public API or test selection changes.
Test Coverage
c0468112f4; the corrected scan reports none.pytest -p trtllm_stub_ops -p no:cacheprovider -q tests/unittest/serve/test_no_object_new.py: 12 passed with the repository's pytest configuration. The local stub plugin only permits importing the older compiled artifacts; this file's checks operate on Python source.pre-commit run --files tests/unittest/serve/test_no_object_new.pytwice: clean. Commit hooks also passed.The file remains
cpu_onlyand is already collected by theunittest/serveentry inl0_cpu.yml. Review ownership remains with the existing test CODEOWNERS.PR Checklist
🤖 Generated with Claude Code
Dev Engineer Review
tests/unittest/serve/test_no_object_new.py(+7/-1). The diff edits only theBASELINEmapping. The scanner and ratchet logic are unchanged.BASELINE:test_anthropic_routes.py:_disagg_route_client OpenAIDisaggServer,_streaming_chat_server OpenAIServer,test_batched_message_is_named_after_the_executor_client_id OpenAIServer.test_openai_server_graceful_shutdown.py(new mapping key):_config_keywords OpenAIServer,_serve_never_finishing_handler OpenAIServer.BASELINE:_chat_stream OpenAIServerintest_anthropic_routes.py.object.__new__sites in the listed files. Each allowance is a permitted site, so a reviewer should confirm that these sites existed before#21406merged. The PR objectives state this, but the diff alone does not prove it.QA Engineer Review
Test files changed:
tests/unittest/serve/test_no_object_new.py. Test functions and test IDs were not changed. The baseline data changed.Coverage: The guard test checks each file against the baseline. The PR objectives report that
pytest -p trtllm_stub_ops -p no:cacheprovider -q tests/unittest/serve/test_no_object_new.pypasses with 12 tests, and that a run without repository conftests or plugin auto-loading also passes with 12 tests. Negative checks reportedly confirm that unapproved or removed sites still fail. These results are author-reported. They were not run in this review.Test-list placement: Not applicable. No
test-db/orqa/list entries changed.Verdict:
sufficient. The change updates guard data and keeps the guard logic intact. A QA engineer should run the test file once to confirm the 12 passing results.Per-File QA Perspective
tests/unittest/serve/test_no_object_new.py: Updates theobject.__new__ratchet baseline. QA should confirm the test still passes and still fails for newly added unapproved sites. This file is not listed intest-db/orqa/.