Repository navigation
test(router): contrast shared vs independent RR counters in select_pd_pair - #2050
OftenDream wants to merge 1 commit into
Conversation
…_pair Add stage-level regressions that drive WorkerSelectionStage::select_pd_pair with one shared RoundRobinPolicy Arc versus two independent instances, so the UT distinguishes the shared-counter skew from the fixed coverage. Signed-off-by: yangxurui <yangxurui@meituan.com> Co-authored-by: longcat-ia-team <312376714+longcat-ia-team@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe PR expands round-robin tests to distinguish shared and independent counters. PD worker-selection tests add shared helpers and verify alternating selections for shared policies and even distribution for independent policies. ChangesRound-robin worker selection
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing for now; will reopen/create when ready. |
Summary
WorkerSelectionStage::select_pd_pair(viaget_prefill_policy/get_decode_policy):RoundRobinPolicyArc → prefill[20,0,20,0], decode[0,20,0,20][10,10,10,10]Test plan
select_pd_pair_shared_round_robin_counter_skips_half_the_workersselect_pd_pair_independent_round_robin_counters_cover_all_workerstest_shared_vs_independent_counters_across_two_poolsMade with Cursor