[None][infra] Improve unit test CI coverage - #15368
Conversation
|
/bot run |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (20)
💤 Files with no reviewable changes (7)
📝 WalkthroughWalkthroughRemoves ChangesTest infrastructure and linting config updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts
Comment |
a851455 to
c843f4d
Compare
|
/bot run |
|
PR_Github #54258 [ run ] triggered by Bot. Commit: |
|
PR_Github #54258 [ run ] completed with state
|
c843f4d to
42a6f27
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #54438 [ run ] triggered by Bot. Commit: |
|
PR_Github #54438 [ run ] completed with state
|
fcb958f to
d1b85f3
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #54841 [ run ] triggered by Bot. Commit: |
|
PR_Github #54841 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #54897 [ run ] triggered by Bot. Commit: |
|
PR_Github #54897 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
084d6fa to
a5a2759
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #54928 [ run ] triggered by Bot. Commit: |
8e6de36 to
0802c34
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #56831 [ run ] triggered by Bot. Commit: |
|
PR_Github #56831 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #56934 [ run ] triggered by Bot. Commit: |
|
PR_Github #56934 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
6d18661 to
760357f
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #57151 [ run ] triggered by Bot. Commit: |
|
PR_Github #57151 [ run ] completed with state
|
Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
760357f to
f63b2e3
Compare
Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
|
/bot skip --comment "This PR adds new tests to CI, but the failed tests in CI are unrelated to this PR, skip CI" |
|
PR_Github #57327 [ skip ] triggered by Bot. Commit: |
|
PR_Github #57327 [ skip ] completed with state |
…k fake PR NVIDIA#15368 promoted _is_stats_dummy_request from a closure to a @staticmethod on PyExecutor. Production callsites still invoke it as self._is_stats_dummy_request(req), which resolves correctly on a real PyExecutor instance via the descriptor protocol. The unit tests in tests/unittest/pyexecutor/test_iter_stats_populate.py call PyExecutor._update_iter_stats unbound against a MagicMock fake self. On a bare MagicMock, self._is_stats_dummy_request auto-resolves to a child MagicMock whose call returns yet another (truthy) MagicMock, so every request is filtered as a dummy and the KV-token/count counters (num_ctx_kv_tokens, num_gen_kv_tokens, num_paused_kv_tokens, and under attention-DP also num_context_requests/num_gen_requests/num_paused_requests) collapse to zero — failing test_dummy_filtering_on_kv_token_fields and test_attention_dp_dummy_filtering_on_count_fields. Bind the real PyExecutor._is_stats_dummy_request static method onto the fake in _build_fake_self so the production filter dispatches to the real predicate (which reads req.is_dummy, a real @Property on _StubRequest). Test-only change; no production code is modified. Signed-off-by: tensorrt-cicd <90828364+tensorrt-cicd@users.noreply.github.com>
…k fake PR NVIDIA#15368 promoted _is_stats_dummy_request from a closure to a @staticmethod on PyExecutor. Production callsites still invoke it as self._is_stats_dummy_request(req), which resolves correctly on a real PyExecutor instance via the descriptor protocol. The unit tests in tests/unittest/pyexecutor/test_iter_stats_populate.py call PyExecutor._update_iter_stats unbound against a MagicMock fake self. On a bare MagicMock, self._is_stats_dummy_request auto-resolves to a child MagicMock whose call returns yet another (truthy) MagicMock, so every request is filtered as a dummy and the KV-token/count counters (num_ctx_kv_tokens, num_gen_kv_tokens, num_paused_kv_tokens, and under attention-DP also num_context_requests/num_gen_requests/num_paused_requests) collapse to zero — failing test_dummy_filtering_on_kv_token_fields and test_attention_dp_dummy_filtering_on_count_fields. Bind the real PyExecutor._is_stats_dummy_request static method onto the fake in _build_fake_self so the production filter dispatches to the real predicate (which reads req.is_dummy, a real @Property on _StubRequest). Test-only change; no production code is modified. Signed-off-by: tensorrt-cicd <90828364+tensorrt-cicd@users.noreply.github.com>
Signed-off-by: Yuxian Qiu <142763828+yuxianq@users.noreply.github.com>
Summary by CodeRabbit
Release Notes
Tests
Chores
Description
Improve CI coverage for unit tests by mapping uncovered or relocated unit test directories into existing L0 stages, moving several tests under stage-covered directories, and making CBTS path matching robust to directory test-db entries with a trailing slash.
This also normalizes the
unittest/kv_cache_manager_v2_teststest-db and memory-parallelism entries so CBTS and runtime test-list data use the same canonical id.Test Coverage
pre-commit run --files jenkins/scripts/cbts/blocks.py tests/integration/test_lists/test-db/l0_a10.yml tests/integration/test_lists/test-db/l0_b200.yml tests/integration/test_lists/test-db/l0_h100.yml tests/integration/defs/agg_unit_mem_df.csvunittest/kv_cache_manager_v2_tests/test_branch_reuse.pythrough the A10, B200, and H100 blocks.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.