rh-runninghub/minimax-h3-multigpu-lightning/ci-workflow-guide
Claude Code and agent skill by rh-runninghub/minimax-h3-multigpu-lightning
- community
Checking that the SKILL.md file is still in the repository.
Guide to SGLang CI workflow orchestration — stage ordering, fail-fast, gating, partitioning, execution modes, and debugging CI failures. Use when modifying CI workflows, adding stages, debugging CI pipeline issues, or understanding how tests are dispatched and gated across stages.
Install
npx vskill@latest install rh-runninghub/minimax-h3-multigpu-lightning/ci-workflow-guideSKILL.md
The same SKILL.md was published earlier as rh-runninghub/minimax-h3-multigpu-lightning/ci-workflow-guide.
SGLang CI Workflow Orchestration Guide
This skill covers the CI infrastructure layer — how tests are dispatched, gated, and aborted on failure across stages. For test authoring (templates, fixtures, registration, model selection), see the write-sglang-test skill.
Naming Conventions
- Suite:
base-{a,b,c}-test-{gpu_count}-gpu-{hardware}(e.g.,base-b-test-1-gpu-small) - Test group: Directory-level registered test group under
test/registered/(e.g.,hicachemaps totest/registered/hicache/test_*.py) - CI runner:
{gpu_count}-gpu-{hardware}(e.g.,1-gpu-5090,4-gpu-h100,8-gpu-h200)
Key Files
| File | Role | |
|---|---|---|
.github/workflows/pr-test.yml | Main workflow — all stages, jobs, conditions, matrix definitions | |
.github/workflows/pr-test-extra.yml | Extra workflow — gated by BOTH run-ci and run-ci-extra labels | |
.github/workflows/pr-gate.yml | PR gating: draft check, run-ci label, per-user rate limiting | |
.github/actions/check-pr-test-health/action.yml | Cross-job fail-fast: queries API for any failed job | |
.github/actions/wait-for-jobs/action.yml | Stage gating: polls API until stage jobs complete | |
.github/actions/check-maintenance/action.yml | Maintenance mode check | |
.github/scripts/ci-labels.cjs | Resolves the four CI control labels into dispatch axes | |
test/run_suite.py | Suite runner: collects, filters, partitions, executes tests | |
python/sglang/test/ci/ci_register.py | Test registration (AST-parsed markers), LPT auto-partition | |
python/sglang/test/ci/ci_utils.py | run_unittest_files(): execution, retry, continue-on-error | |
scripts/ci/utils/slash_command_handler.py | Handles slash commands from PR comments |
Architecture Overview
Every stage test job includes a check-pr-test-health step after checkout — if any job in the run has already failed, the job fails fast (red X) with a root cause annotation.
Scheduled runs skip wait-for-base-* jobs, running all stages in parallel. Fail-fast is also disabled.
Fail-Fast Layers
4 layers of fail-fast, from fine to coarse:
| Layer | Mechanism | Granularity | Disabled on schedule? | |
|---|---|---|---|---|
| 1. Test method → file | unittest -f (failfast) | One test method fails → entire test file stops immediately | Yes | |
| 2. File → suite | run_unittest_files() default | One test file fails → entire suite stops (--continue-on-error off) | Yes | |
| 3. Job → job (same stage) | check-pr-test-health action | One job fails → other waiting jobs in same stage fail-fast (red X) | Yes | |
| 4. Stage → stage (cross-stage) | wait-for-base-* + needs | Base A fails → base B/C jobs skip entirely (never get a runner) | Yes (wait jobs skipped) |
- Layer 1:
-fflag appended to allpython3 -m pytest/unittestinvocations inci_utils.py - Layer 2:
--continue-on-errorflag inrun_suite.py— off for PRs, on for scheduled runs - Layer 3:
check-pr-test-healthauto-detectsscheduleevent and skips; filters out cascade failures to show only root cause jobs - Layer 4:
wait-for-base-*jobs are conditioned ongithub.event_name == 'pull_request'— skipped for scheduled runs
Execution Modes
| Aspect | PR (pull_request) | Scheduled (cron, every 6h) | Manual dispatch (workflow_dispatch) | |
|---|---|---|---|---|
| Stage ordering | Sequential: A → B → C via wait-for-base-* | Parallel (all at once) | Single target stage only | |
| Cross-job fail-fast | Yes (check-pr-test-health) | Yes | Yes | |
| continue-on-error | No (stop at first failure within suite) | Yes (run all tests) | No | |
| Retry | Enabled | Enabled | Enabled | |
| max_parallel | 3 (default), 14 if max-concurrency label | 14 | 3 (default), 14 if max-concurrency | |
| PR gate | Yes (draft, label, rate limit) | Skipped | Skipped | |
| Concurrency | cancel-in-progress: true per PR | Queue (no cancel) | Isolated per stage+SHA |
Four labels relax these limits for one PR: bypass-fail-fast, parallel-stages, max-concurrency, and highest-priority (all three). .github/scripts/ci-labels.cjs resolves them; the contribution guide describes what each one does.
Stage Gating (wait-for-jobs action)
wait-for-base-a and wait-for-base-b are lightweight ubuntu-latest jobs that poll the GitHub Actions API.
How it works:
- Calls
listJobsForWorkflowRunto list all jobs in the current run - Matches jobs by exact name or prefix (for matrix jobs, e.g.,
base-b-test-1-gpu-small (3)) - If any matched job has
conclusion === 'failure'→ fail immediately (fail-fast) - If all matched jobs are completed and count matches
expected_count→ success - Otherwise → sleep
poll-interval-seconds(default: 60s) and retry - Timeout after
max-wait-minutes(240 min for base-a, 480 min for base-b)
Job specs example (base-b):
Critical:expected_countmust match the matrix size. If you add/remove matrix entries, update the wait job's spec accordingly.
PR only: Condition github.event_name == 'pull_request' && !inputs.target_stage — scheduled runs and manual dispatches skip these entirely, allowing parallel execution.
Cross-Job Fail-Fast (check-pr-test-health action)
Composite action called after checkout in every stage test job (21 jobs total across pr-test.yml, pr-test-multimodal-gen.yml, pr-test-sgl-kernel.yml, pr-test-jit-kernel.yml).
How it works:
- Queries
listJobsForWorkflowRunfor the current workflow run - Filters for root cause failures only — jobs with
conclusion === 'failure'whose failing step is NOTcheck-pr-test-health(excludes cascade failures) - If root cause failures found → calls
core.setFailed()with the list of root cause job names - If none → does nothing (step succeeds)
Cascade filtering: When job A fails fast due to the health check, it also has conclusion: failure. Without filtering, job B would list both the original failure AND job A's fail-fast. The filter checks each failed job's steps array — if the failing step name contains check-pr-test-health or Check PR test health, it's excluded from the root cause list.
Usage pattern:
Visual effect: Job shows red X (failure) with error annotation showing root cause job names. Subsequent steps are naturally skipped (default if: success() is false after a failed step). No per-step if guards needed.
No stage filtering: Checks ALL jobs in the run, not just the current stage. Any failure anywhere triggers fail-fast.
Error message example:
Within-Suite Failure Handling
Controlled by run_unittest_files() in python/sglang/test/ci/ci_utils.py.
Flags
| Flag | PR default | Scheduled default | Effect | |
|---|---|---|---|---|
--continue-on-error | Off | On | Off: stop at first failure. On: run all files, report all failures at end | |
--enable-retry | On | On | Retry retriable failures (accuracy/perf assertions) | |
--max-attempts | 2 | 2 | Max attempts per file including initial run |
Retry Classification
When a test fails and retry is enabled, the output is classified:
Non-retriable (checked first — real code errors): SyntaxError, ImportError, ModuleNotFoundError, NameError, TypeError, AttributeError, RuntimeError, CUDA out of memory, OOM, Segmentation fault, core dumped, ConnectionRefusedError, FileNotFoundError
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsglang/.claude/skills/ci-workflow-guide/SKILL.md
Popularity
- Repository stars
- 99
- Repository forks
- 13
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rh-runninghub/minimax-h3-multigpu-lightning/ci-workflow-guide)