Skip to content

[Test] Consolidate kernel tests under plural kernels tree - #39966

Merged
BBuf merged 1 commit into
sgl-project:mainfrom
BBuf:fix/consolidate-kernel-test-layout
Sep 17, 2026
Merged

BBuf merged 1 commit into
sgl-project:mainfrom
BBuf:fix/consolidate-kernel-test-layout

Conversation

@BBuf

@BBuf BBuf commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

test/registered/ currently has three kernel-test roots: the established plural kernels/ tree, a newer singular kernel/ tree, and a few remaining files under jit/. This makes placement ambiguous and allows the same class of tests to drift across parallel layouts.

Changes

  • Move all tests from test/registered/kernel/ into test/registered/kernels/ops/<group>/ or test/registered/kernels/benchmark/<group>/.
  • Move the remaining top-level test/registered/jit/ tests into the same plural tree.
  • Keep the moved test contents unchanged except for one self-referential path in a docstring.
  • Update the registered-test admission rule so new or renamed kernel tests must use test/registered/kernels/{ops,benchmark}/<group>/ and a *-kernel-* suite.
  • Add unit coverage for accepted and rejected kernel test layouts.
  • Update test documentation and remove obsolete workflow path filters.

Validation

  • python3 scripts/lint/check_registered_tests.py
  • python3 scripts/lint/check_no_registered_tests_in_package.py
  • python3 -m unittest discover -s scripts/lint -p 'test_check_*.py'
  • pre-commit run --files <all changed files>
  • uv run --with pyyaml python scripts/lint/check_workflow_job_names.py
  • git diff --check

CI States

Latest PR Test (Base): 🚫 Run #35222788191
Latest PR Test (Extra): ❌ Run #35222822497
Latest PR Test (AMD ROCm 10): ❌ Run #35222787977

@github-actions github-actions Bot added documentation Improvements or additions to documentation deepseek diffusion SGLang Diffusion labels Sep 17, 2026
@BBuf BBuf added the run-ci CI: run the baseline test suite on this PR label Sep 17, 2026
@BBuf
BBuf merged commit 7bc9152 into sgl-project:main Sep 17, 2026
194 of 265 checks passed
@BBuf
BBuf deleted the fix/consolidate-kernel-test-layout branch September 17, 2026 23:37
mrusanovsky added a commit to mrusanovsky/sglang that referenced this pull request Sep 18, 2026
Review feedback from kpham-sgl.

Comment style, per .claude/rules/comment-style.md. Docstrings and comments in the
non-test source drop from 479 lines to 310 across 1,928: the multi-line rationale
blocks go (that material belongs in the PR body, the docs section, or git log) and
what stays is the tensor shape contracts, the provenance of the measured constants,
and the two correctness arguments a reader cannot recover from the code -- the tiled
top-k's exactness proof and why a greedy row must report a point mass. Test
docstrings are one or two lines each, as the rule's bug-regression case allows. The
docs subsection loses a third of its prose and is now proportional to the DFlash
section above it. Two internal-workflow references that should never have shipped are
gone with it.

One module. lilicorr_components/ (four files, 933 lines) becomes
srt/speculative/lilicorr_utils.py, matching the flat dflash_utils.py / domino_utils.py
naming beside it. Pure code movement, no behaviour change: 46 CPU, 11 worker-stub and
18 GPU kernel-parity tests pass unchanged on an H100.

Tests in the kind/subsystem taxonomy. Upstream sgl-project#39966 renamed the kernel tree to
test/registered/kernels/{ops,benchmark}/<group>/, which left test_lilicorr_cuda.py on
a path check_registered_tests.py now rejects -- it moves beside
test_verify_commit_triton.py. The E2E server test moves to extra-b as asked. The
kernel-parity test cannot follow it: the taxonomy check requires a *-kernel-* suite
for anything under kernels/, and extra-b has no kernel suite. It stays on
base-b-kernel-unit-test-1-gpu-large.

Also moves the `if __name__ == "__main__"` block in both test files to the end; the
sampling commit had appended cases after it.
lorr1 pushed a commit to lorr1/sglang that referenced this pull request Sep 18, 2026
Upstream sgl-project#39966 consolidated kernel tests under test/registered/kernels/
and dropped "kernel" from the valid test kinds in
scripts/lint/check_registered_tests.py, so move the BF16 absorb kernel
test to test/registered/kernels/ops/attention/. Its jit-kernel-unit-test-amd
suite already carries the *-kernel-* infix the new rule requires.

The GLM-5.2 cookbook conflict is textual. Upstream bumped the MTP image tag
and dropped a sentence from the bullet the hybrid absorb bullet follows;
keep the upstream wording and the added bullet.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
kpham-sgl added a commit that referenced this pull request Sep 21, 2026
Resolves the rename conflict from #39966 by moving the new test to
test/registered/kernels/ops/attention/.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
kevin-mii added a commit to kevin-mii/sglang that referenced this pull request Sep 23, 2026
Main moved kernel tests under test/registered/kernels/ops (sgl-project#39966), renamed
wo_a_bf16.py to wo_a.py (sgl-project#39957) and moved the low-ratio page-table expansion
into dsv4/candidate_indexer.py (sgl-project#40352). Place the remaining AMD suites in the
plural tree and follow the two renames.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepseek diffusion SGLang Diffusion documentation Improvements or additions to documentation run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant