[Test] Consolidate test cleanup and CI taxonomy (net -11.4K lines) (#37436)

Co-authored-by: Mick Qian <mickqian@users.noreply.github.com>
This commit is contained in:
Xiaoyu Zhang
2026-09-07 15:13:59 +08:00
committed by GitHub
co-authored by Mick Qian
parent 6a1ff90f2d
commit 4d23a4fa6d
199 changed files with 1185 additions and 11812 deletions
+9
View File
@@ -1,6 +1,7 @@
---
paths:
- "test/**/*.py"
- "python/sglang/multimodal_gen/test/**/*.py"
---
# Unit Test Admission Criteria
@@ -68,5 +69,13 @@ One strong case beats several weak ones: each additional case must guard a
distinct failure mode. Ask "which bug escapes if I delete this case?" -- no
answer means delete it.
New cases join an existing file in the same subsystem by default. Create a new
file only when it needs a different fixture, dependency, owner, or CI contract;
every file pays a separate interpreter-import cost in the CPU gate.
Suite cadence is part of admission: if a failing run cannot be attributed to a
single PR's diff, the test belongs in a nightly or weekly suite rather than a
per-commit lane.
Test mechanics (placement, CI registration, fixtures) live in
[`write-sglang-test`](../skills/write-sglang-test/SKILL.md).