Agent Skills › sgl-project/sglang › rerun-test

rerun-test

GitHub

用于在PR评论中触发特定测试文件运行,覆盖基础CI未涵盖的额外、夜间或每周层级测试。通过指定变更文件或模块,确保相关代码得到充分验证,提升测试覆盖率与发布质量。

.agents/skills/rerun-test/SKILL.md sgl-project/sglang

触发场景

PR修改了需额外/夜间/每周运行的测试代码 需要手动触发特定测试以验证变更 合并前确认相关测试已通过

安装

npx skills add sgl-project/sglang --skill rerun-test -g -y
更多选项

非标准路径

npx skills add https://github.com/sgl-project/sglang/tree/main/.agents/skills/rerun-test -g -y

不安装直接使用

npx skills use sgl-project/sglang@rerun-test

指定 Agent (Claude Code)

npx skills add sgl-project/sglang --skill rerun-test -a claude-code -g -y

安装 repo 全部 skill

npx skills add sgl-project/sglang --all -g -y

预览 repo 内 skill

npx skills add sgl-project/sglang --list

SKILL.md

Frontmatter
{
    "name": "rerun-test",
    "description": "Run the CI tests a change touches with the `\/rerun-test` PR comment instead of relying on the per-PR Base run. Use when a PR changes code whose tests run in the extra, nightly, or weekly tier, when asked to run the related tests on a PR, or before asking for a merge."
}

rerun-test

Base CI covers only the core default paths, and its workload may not exercise a given change. Tests for other features run in the extra, nightly, and weekly tiers, so a green Base run does not cover them. /rerun-test runs chosen test files against the PR head, each on the runner it is registered for, whatever its tier.

Pick the tests

  1. Tests the PR adds or modifies under test/registered/ (/rerun-test --changed selects them).
  2. Tests that exercise the changed code: grep test/registered/ for the changed modules, functions, and server flags.
  3. One end-to-end test for each subsystem the change touches (PD, HiCache, speculative decoding, LoRA, a model family), whatever its tier.

Prefer the narrowest spec that covers the change: file.py::TestClass or file.py::TestClass.test_method.

Post

Put every spec in one comment, for example /rerun-test registered/hicache/test_hicache_storage_file_backend.py registered/lora/test_lora_update.py. The handler replies with the run links and marks the reply when the runs finish.

Limits

  • A file estimated above 60 minutes is rejected; it runs only in its scheduled tier.
  • CPU tests run only for the ubuntu CPU suite (base-a-test-cpu); Xeon and arm64 suites are not supported.
  • No PR-local sglang-kernel wheel is built. A change under python/sglang/kernels/aot/ needs the normal PR CI.
  • Each file runs directly (python3 <file> -f), not through test/run_suite.py, and /run-cpu-ci runs main's stage workflow. A change to the CI runner itself (run_suite.py, ci_utils.py, fork_test_worker.py, the stage workflows) is validated by the PR's own PR Test run.

Command syntax and permissions: contribution guide.

版本历史

  • 62f9f3f 当前 2026-11-03 10:19

同 Skill 集合

.agents/skills/add-jit-kernel/SKILL.md
.agents/skills/add-sgl-kernel/SKILL.md
.agents/skills/babysit-pr-to-pass-ci/SKILL.md
.agents/skills/ci-test-audit/SKILL.md
.agents/skills/ci-workflow-guide/SKILL.md
.agents/skills/clean-startup-log/SKILL.md
.agents/skills/compute-mamba-ratio/SKILL.md
.agents/skills/cookbook-add-model/SKILL.md
.agents/skills/cookbook-migrate-model/SKILL.md
.agents/skills/cookbook-review-pr/SKILL.md
.agents/skills/debug-cuda-crash/SKILL.md
.agents/skills/debug-distributed-hang/SKILL.md
.agents/skills/env-var-conventions/SKILL.md
.agents/skills/generate-profile/SKILL.md
.agents/skills/kernel-organization/SKILL.md
.agents/skills/kl-consistency-test/SKILL.md
.agents/skills/large-class-style/SKILL.md
.agents/skills/llm-torch-profiler-analysis/SKILL.md
.agents/skills/mechanical-refactor-verify/SKILL.md
.agents/skills/processor-model-parity/SKILL.md
.agents/skills/scripted-runtime-notes/SKILL.md
.agents/skills/sglang-bisect-ci-regression/SKILL.md
.agents/skills/sglang-cherrypick/SKILL.md
.agents/skills/sglang-multi-graph-check/SKILL.md
.agents/skills/sglang-prod-incident-triage/SKILL.md
.agents/skills/sglang-runtime-context/SKILL.md
.agents/skills/speculative-naming/SKILL.md
.agents/skills/write-sglang-test/SKILL.md
.claude/skills/add-jit-kernel/SKILL.md
.claude/skills/add-sgl-kernel/SKILL.md
.claude/skills/babysit-pr-to-pass-ci/SKILL.md
.claude/skills/ci-test-audit/SKILL.md
.claude/skills/ci-workflow-guide/SKILL.md
.claude/skills/clean-startup-log/SKILL.md
.claude/skills/compute-mamba-ratio/SKILL.md
.claude/skills/cookbook-add-model/SKILL.md
.claude/skills/cookbook-migrate-model/SKILL.md
.claude/skills/cookbook-review-pr/SKILL.md
.claude/skills/debug-cuda-crash/SKILL.md
.claude/skills/debug-distributed-hang/SKILL.md
.claude/skills/env-var-conventions/SKILL.md
.claude/skills/generate-profile/SKILL.md
.claude/skills/kernel-organization/SKILL.md
.claude/skills/kl-consistency-test/SKILL.md
.claude/skills/large-class-style/SKILL.md
.claude/skills/llm-torch-profiler-analysis/SKILL.md
.claude/skills/mechanical-refactor-verify/SKILL.md
.claude/skills/scripted-runtime-notes/SKILL.md
.claude/skills/sglang-bisect-ci-regression/SKILL.md

元信息

文件数
0
版本
62f9f3f
Hash
fa383614
收录时间
2026-11-03 10:19

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-06 01:07
浙ICP备14020137号-1