Repository navigation
[Test] Fix scheduler fixtures after prefill burst counting - #40411
Merged
Merged
Conversation
Contributor
Author
|
/rerun-test -c |
Contributor
|
Results for 🚀 |
This was referenced Sep 20, 2026
Dovis01
added a commit
to Dovis01/sglang
that referenced
this pull request
Sep 20, 2026
Resolve scheduler unit-test fixture conflicts by taking upstream sgl-project#40411. Signed-off-by: Shijin Zhang <[email protected]>
shenxiul
pushed a commit
to shenxiul/sglang
that referenced
this pull request
Sep 20, 2026
## Why is this change needed? DFlash and DSpark both prepare target verification through `DFlashVerifyInput.prepare_for_verify`, but their workers separately pass the deprecated `skip_attn_backend_init` flag. Put graph metadata readiness next to the shared planning call, and let eager verification initialize metadata after final batch preparation. An unchanged four-token verify batch reuses its graph plan. If padding expands it to eight tokens, the existing shape record requests a new plan. NPU verification continues to defer planning to the runner. Token IDs and positions retain the decode runner's normal refresh behavior. ## Test Plan - **17 CPU cases pass** across the existing DFlash preparation and forward-metadata plan-record suites. - **Red → green:** rerunning the two planning regressions against the upstream parent method fails for redundant eager planning and the missing graph-ready marker; both pass with this change. The graph case also checks invalidation after token-count padding. - One added regression case in the existing preparation suite. Removed the token-copy cache and its separate lifecycle case; the preparation suite now runs in CPU CI. - Upstream pre-commit checks pass. - **CI repair and main rebase:** the prior CPU failures reproduced on main `99a44c88d4`. Upstream sgl-project#40411 has now fixed those scheduler fixtures, so this PR uses that main fix and drops its temporary local repair. On main `5c69e32abe`, the four affected suites pass **62 tests and 51 subtests** (13.29 s). - **Out-of-tree DFlash fixture:** reproduced seven failure/subtest outcomes on main `5c69e32abe`: the dummy draft config reached Hugging Face, and fallback assertions read raw arguments rather than resolved values. A separate test-only commit stubs config loading and reads `resolved_view(args)`, preserving all backend/fallback assertions. The fixture passes **4 tests + 6 subtests** with network disabled; the combined hook and verify-planning suites pass **21 tests + 6 subtests**. No test cases were added.
This was referenced Sep 20, 2026
This was referenced Sep 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#40006 moved prefill accounting from launch-to-launch to launch-to-result. Its first commit (
93809e30a7, @pranjalssh) carried the matching tests — the samesplit_index=0and_prev_prefill_end_tsfixes as here, plus a 209-linetest_prefill_busy_accounting.py— but3ad89bf990(@merrymercy, "Remove test changes from prefill accounting PR") dropped them, and8139a1740emerged runtime-only. Twobase-a-test-cpufiles have been red on main since: 28 errors intest_disagg_idle_step_counters.py, 1 intest_auxiliary_output.py.Fixing the fixtures is most of the change — a result-side clock, and prefill expectations rebuilt for the new rule (decode unchanged). The rest is two cases for the
split_index == 0gate and themax(start_ts, prev_end_ts)overlap branch.cc @pranjalssh @Jialin @merrymercy
CI States
Latest PR Test (Base): ❌ Run #35489927412
Latest PR Test (Extra): ❌ Run #35489927296
Latest PR Test (AMD ROCm 10): ❌ Run #35489927401