Skip to content

[Test] Fix scheduler fixtures after prefill burst counting - #40411

Merged
hnyls2002 merged 3 commits into
mainfrom
mmangkad/fix-scheduler-test-fixtures
Sep 20, 2026
Merged

hnyls2002 merged 3 commits into
mainfrom
mmangkad/fix-scheduler-test-fixtures

Conversation

@mmangkad

@mmangkad mmangkad commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

#40006 moved prefill accounting from launch-to-launch to launch-to-result. Its first commit (93809e30a7, @pranjalssh) carried the matching tests — the same split_index=0 and _prev_prefill_end_ts fixes as here, plus a 209-line test_prefill_busy_accounting.py — but 3ad89bf990 (@merrymercy, "Remove test changes from prefill accounting PR") dropped them, and 8139a1740e merged runtime-only. Two base-a-test-cpu files have been red on main since: 28 errors in test_disagg_idle_step_counters.py, 1 in test_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 == 0 gate and the max(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

@mmangkad

Copy link
Copy Markdown
Contributor Author

/rerun-test -c

@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test -c:

🚀 ubuntu-latest (2 tests): ✅ View workflow run

cd test/ && python3 registered/unit/managers/test_auxiliary_output.py
cd test/ && python3 registered/unit/managers/test_disagg_idle_step_counters.py

@hnyls2002
hnyls2002 merged commit 22f02cc into main Sep 20, 2026
110 of 123 checks passed
@hnyls2002
hnyls2002 deleted the mmangkad/fix-scheduler-test-fixtures branch September 20, 2026 07:08
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants