Repository navigation
[https://nvbugs/7071872][fix] Align disaggregation cancellation fixtures with batch state - #21994
Conversation
|
/bot run --disable-fail-fast |
|
No actionable comments were generated in the recent review. WalkthroughThis change updates disaggregation idle-cancellation tests to build ChangesDisaggregation idle-cancellation tests
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Suggested reviewers: Merge Risk:
|
|
PR_Github #83773 [ run ] triggered by Bot. Commit: |
sunnyqgg
left a comment
There was a problem hiding this comment.
I checked the fixture repair against the production path it unblocks. After #20903, _process_previous_batch reads BatchState.guided_failures / guided_batch_id and PyExecutor.capturable_guided_decoder (py_executor.py:7613-7615, 11917-11924). With the real BatchState defaults plus capturable_guided_decoder = None, _take_capturable_guided_failures returns [], so each of the six restored cases now reaches its own assertions. The six removed lines are exactly the #21963 waives for nvbugs/7071872, and the pre-merge CPU stage still collects the file (l0_cpu.yml:114). Counts: 0 blockers, 0 possibly blocking, 2 required, 0 nice-to-have. The L0 run for bf410f4 (PR_Github #83773) was still queued when I wrote this, so please merge only after the CPU stage has run the six restored cases green.
- [Required] PR description: the auto-generated CodeRabbit block says "the tests are not found in the
test-db/CI orqa/manual-QA lists" and "The file is not found in thetest-db/CI orqa/manual-QA lists". That is wrong.tests/integration/test_lists/test-db/l0_cpu.yml:114(- unittest/_torch/disaggregation, the pre-merge CPU stage) collects thiscpu_onlyfile. The six cases failed there in L0_MergeRequest_PR #69106 (stage CPU-Generic-x86-2), which is why they were waived, and your own Test Coverage section says the suite stays under thel0_cpu.ymldirectory selection. Please delete or correct those CodeRabbit lines, so the PR does not claim that the restored cases never run in CI.
|
PR_Github #83773 [ run ] completed with state |
…res with batch state Signed-off-by: Yuxian Qiu <[email protected]>
bf410f4 to
e4897ba
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #83840 [ run ] triggered by Bot. Commit: |
chienchunhung
left a comment
There was a problem hiding this comment.
LGTM; the fixture repair addresses the reported error and removes all six waivers. Thanks for the fix!
|
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 #83840 [ run ] completed with state |
Dev Engineer Review
The test fixtures now use
BatchStateandSampleStateTorchfor previous-batch state, and setcapturable_guided_decodertoNonein the executor fixture. This aligns the fixtures with fields read during previous-batch processing. The diff contains no production code changes.QA Engineer Review
The patch modifies one test file and
tests/integration/test_lists/waives.txt. It removes six waivers for cancellation-boundary, deferred LoRA generation, and overlap-marker tests. The test file does not appear in the searchedtest-db/CI orqa/manual-QA lists. Test results for the current head are not available. Coverage verdict: sufficient for the fixture repair and restored tests.Per-File QA Perspective
tests/unittest/_torch/disaggregation/test_disagg_idle_cancellation.py: Updates previous-batch fixtures used by cancellation and token-harvest tests. The file does not appear in the searchedtest-db/CI orqa/manual-QA lists.tests/integration/test_lists/waives.txt: Removes six NVBug 7071872 skip entries for this test file, restoring those cases from waiver status without changing their assertions.Description
After #20903, previous-batch processing reads
BatchState.guided_failures, but the disaggregation cancellation fixtures construct partialSimpleNamespacebatch states. Six CPU tests fail withAttributeErrorbefore reaching their cancellation and token-harvest assertions.Use the real
BatchStateandSampleStateTorchdefaults and explicitly setcapturable_guided_decoder = Nonein the executor fixture. Remove the six waivers added by #21963 for NVBug 7071872, restoring these cases to the existing CPU CI selection.This is an independent fixture repair based directly on
mainat11131ecfbe; it addresses the shared failures observed while validating #19396.Test Coverage
Run with normal native runtime initialization on x86, with GPUs hidden:
CUDA_VISIBLE_DEVICES='' python3 -m pytest -m cpu_only tests/unittest/_torch/disaggregation/test_disagg_idle_cancellation.py -q --tb=shortfc41ebd016: 6 failed, 79 passed; all six failures reproduce the waivedguided_failureserror.11131ecfbe: 85 passed, no skips.git diff --checkpassed.l0_cpu.ymldirectory selection. Local pytest reported 10.10 seconds for the fixed suite; this is not a CI timing measurement.PR Checklist