Agent Skills › sgl-project/sglang › ci-test-audit

ci-test-audit

GitHub

审计现有测试树和CI配置,利用模式目录识别冗余或 misplaced 测试,优化CI时间与成本。提供具体改进建议,如删除重复测试、调整层级,而非直接修改代码。

.agents/skills/ci-test-audit/SKILL.md sgl-project/sglang

触发场景

审查测试或CI配置 缩短CI时间或降低成本 查找冗余或位置不当的测试 清理测试组 检查CI变更是否符合既定规范

安装

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

非标准路径

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

不安装直接使用

npx skills use sgl-project/sglang@ci-test-audit

指定 Agent (Claude Code)

npx skills add sgl-project/sglang --skill ci-test-audit -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": "ci-test-audit",
    "description": "Audit the existing test tree and CI configuration for improvements, using a catalog of patterns previously applied in this repo. Use when asked to audit tests or CI, shrink CI time or cost, find redundant or misplaced tests, clean up a test group, or review whether a CI change follows established practice."
}

CI / Test Audit

Audits what is already in test/, .github/ and scripts/ci/. For writing a new test see write-sglang-test; for how the pipeline dispatches and gates work see ci-workflow-guide.

How to use it

Read action-items.md first. It is a catalog of patterns that have been applied to this repo, each with a way to spot it and example PRs. The catalog is the substance of this skill; everything below is only scaffolding.

The user says what to audit -- a test group, a stage, a workflow file, or a complaint like "this suite is slow" -- and how thoroughly. Read that scope and decide which patterns apply.

An audit is only useful if it is specific. "This suite could be trimmed" is not a finding; "TestFooLargePage is a strict subset of TestFooRetractLargePage, drop it" is. Every finding needs the file, the pattern it matches, and what to do.

Auditing at scale

An audit over hundreds of files (a whole tier, every CPU test) splits the reading from the judgment:

  • Inventory first. Collect each file's registrations, cost (live estimate x GPUs, from the sglang-ci-stats model), and the exact items to check (CI-skipped classes, overlapping configs) with a script, before any agent reads a file.
  • Fan out file reads to the cheapest model with a fixed brief and a TSV answer, in chunks of about 15 files. The brief lists the exact items to verify; "review every case in the file" makes the pass slow and adds nothing.
  • Prosecutor stance. Each file in the brief is deleted or demoted by default; keeping it needs a reason: the change that would turn it red, and the grep that shows no other test catches that change.
  • The main agent re-judges every verdict, most expensive first, before reporting. Treat cheap-model "covered by X" or "superseded by Y" verdicts as leads: in one audit none of 20 proposed file deletions held on verification.
  • Re-tier before deleting. For cost, moving a test down a tier (base, extra, nightly, weekly) saves far more than deleting: the tier policy is in write-sglang-test, Choosing a Tier. Delete only what never runs in CI or is verified redundant.
  • Failure evidence comes from failed runs' job logs. sglang-ci-stats records only successful jobs, so whether a tier catches regressions the tier above misses is read from the failed scheduled runs on main.

Reporting

Group findings by confidence in the claim, not by pattern id. Lead with the ones where the evidence is in the file you just read; keep the speculative ones separate and say what you would need to check. Skip anything you are not reasonably sure about -- a long list of maybes costs more to triage than it saves.

Propose, do not apply. Deleting a test, moving a registration to another stage, and changing a threshold are all decisions for the user. Land them as separate changes, since a trim and a threshold change fail for different reasons.

Keeping the catalog current

Example PRs age. When a pattern shows up in newer work, or a new pattern recurs, update action-items.md: the pattern text should stay general, the examples are replaceable evidence.

版本历史

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

    新增大规模审计策略:包括先建立文件清单、使用低成本模型并行读取文件、采用‘控方立场’默认删除/降级测试、主Agent复核最昂贵判定,以及基于失败运行日志验证层级有效性。

  • a90e9c5 2026-10-19 17:13

同 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-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/rerun-test/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
b803b534
收录时间
2026-10-19 17:13

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