rh-runninghub/minimax-h3-multigpu-lightning/ci-workflow-guide

Claude Code and agent skill by rh-runninghub/minimax-h3-multigpu-lightning

Trust tier 2
  • community
LLM review pending
Source check pending

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-guide

SKILL.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., hicache maps to test/registered/hicache/test_*.py)
  • CI runner: {gpu_count}-gpu-{hardware} (e.g., 1-gpu-5090, 4-gpu-h100, 8-gpu-h200)

Key Files

FileRole
.github/workflows/pr-test.ymlMain workflow — all stages, jobs, conditions, matrix definitions
.github/workflows/pr-test-extra.ymlExtra workflow — gated by BOTH run-ci and run-ci-extra labels
.github/workflows/pr-gate.ymlPR gating: draft check, run-ci label, per-user rate limiting
.github/actions/check-pr-test-health/action.ymlCross-job fail-fast: queries API for any failed job
.github/actions/wait-for-jobs/action.ymlStage gating: polls API until stage jobs complete
.github/actions/check-maintenance/action.ymlMaintenance mode check
.github/scripts/ci-labels.cjsResolves the four CI control labels into dispatch axes
test/run_suite.pySuite runner: collects, filters, partitions, executes tests
python/sglang/test/ci/ci_register.pyTest registration (AST-parsed markers), LPT auto-partition
python/sglang/test/ci/ci_utils.pyrun_unittest_files(): execution, retry, continue-on-error
scripts/ci/utils/slash_command_handler.pyHandles slash commands from PR comments

Architecture Overview

┌──────────────┐
│ build kernel │
└──────┬───────┘
│
├─ check-changes ──── detects which packages changed
│ (main_package, sgl_kernel, jit_kernel, multimodal_gen)
│
├─ call-gate ──────── pr-gate.yml (draft? label? rate limit?)
│
├─────────────────────────────────────────────────────┐
│ │
▼ │
┌─────────────────────────────────────┐ │
│ Base A (~3 min) │ │
│ pre-flight check │ │
│ │ │
│ ┌─────────────────────────────┐ │ │
│ │ base-a-test-1-gpu-small │ │ │
│ │ (small GPUs) │ │ │
│ └─────────────────────────────┘ │ │
│ ┌─────────────────────────────┐ │ │
│ │ base-a-test-cpu │ │ │
│ │ (CPU) │ │ │
│ └─────────────────────────────┘ │ │
└──────┬──────────────────────────────┘ │
│ │
▼ ▼
┌─────────────────────────────────────┐ ┌──────────────────────────┐
│ Base B (~30 min) │ │ kernel test │
│ base tests │ └──────────────────────────┘
│ │ ┌──────────────────────────┐
│ ┌─────────────────────────────┐ │ │ multimodal gen test │
│ │ base-b-test-1-gpu-small │ │ └──────────────────────────┘
│ │ (small GPUs, e.g. 5090) │ │
│ └─────────────────────────────┘ │
│ ┌─────────────────────────────┐ │
│ │ base-b-test-1-gpu-large │ │
│ │ (large GPUs, e.g. H100) │ │
│ └─────────────────────────────┘ │
│ ┌─────────────────────────────┐ │
│ │ base-b-test-2-gpu-large │ │
│ │ (large GPUs, e.g. H100) │ │
│ └─────────────────────────────┘ │
└──────┬──────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Base C (~30 min) │
│ advanced tests │
│ │
│ ┌─────────────────────────────┐ │
│ │ base-c-test-4-gpu-h100 │ │
│ │ (H100 GPUs) │ │
│ └─────────────────────────────┘ │
│ ┌─────────────────────────────┐ │
│ │ base-c-test-8-gpu-h200 │ │
│ │ (8 x H200 GPUs) │ │
│ └─────────────────────────────┘ │
│ ┌─────────────────────────────┐ │
│ │ base-c-test-4-gpu-b200 │ │
│ │ (4 x B200 GPUs) │ │
│ └─────────────────────────────┘ │
│ ┌─────────────────────────────┐ │
│ │ Other advanced tests │ │
│ │ (DeepEP, PD Disagg, GB300) │ │
│ └─────────────────────────────┘ │
└──────┬──────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ pr-test-finish │
│ aggregates all results, fails if │
│ any job failed/cancelled │
└─────────────────────────────────────┘

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:

LayerMechanismGranularityDisabled on schedule?
1. Test method → fileunittest -f (failfast)One test method fails → entire test file stops immediatelyYes
2. File → suiterun_unittest_files() defaultOne test file fails → entire suite stops (--continue-on-error off)Yes
3. Job → job (same stage)check-pr-test-health actionOne job fails → other waiting jobs in same stage fail-fast (red X)Yes
4. Stage → stage (cross-stage)wait-for-base-* + needsBase A fails → base B/C jobs skip entirely (never get a runner)Yes (wait jobs skipped)
  • Layer 1: -f flag appended to all python3 -m pytest / unittest invocations in ci_utils.py
  • Layer 2: --continue-on-error flag in run_suite.py — off for PRs, on for scheduled runs
  • Layer 3: check-pr-test-health auto-detects schedule event and skips; filters out cascade failures to show only root cause jobs
  • Layer 4: wait-for-base-* jobs are conditioned on github.event_name == 'pull_request' — skipped for scheduled runs

Execution Modes

AspectPR (pull_request)Scheduled (cron, every 6h)Manual dispatch (workflow_dispatch)
Stage orderingSequential: A → B → C via wait-for-base-*Parallel (all at once)Single target stage only
Cross-job fail-fastYes (check-pr-test-health)YesYes
continue-on-errorNo (stop at first failure within suite)Yes (run all tests)No
RetryEnabledEnabledEnabled
max_parallel3 (default), 14 if max-concurrency label143 (default), 14 if max-concurrency
PR gateYes (draft, label, rate limit)SkippedSkipped
Concurrencycancel-in-progress: true per PRQueue (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:

  1. Calls listJobsForWorkflowRun to list all jobs in the current run
  2. Matches jobs by exact name or prefix (for matrix jobs, e.g., base-b-test-1-gpu-small (3))
  3. If any matched job has conclusion === 'failure' → fail immediately (fail-fast)
  4. If all matched jobs are completed and count matches expected_count → success
  5. Otherwise → sleep poll-interval-seconds (default: 60s) and retry
  6. Timeout after max-wait-minutes (240 min for base-a, 480 min for base-b)

Job specs example (base-b):

json
[
{"prefix": "base-b-test-1-gpu-small", "expected_count": 8},
{"prefix": "base-b-test-1-gpu-large", "expected_count": 14},
{"prefix": "base-b-test-2-gpu-large", "expected_count": 4},
{"prefix": "base-b-test-4-gpu-b200", "expected_count": 1}
]
Critical: expected_count must 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:

  1. Queries listJobsForWorkflowRun for the current workflow run
  2. Filters for root cause failures only — jobs with conclusion === 'failure' whose failing step is NOT check-pr-test-health (excludes cascade failures)
  3. If root cause failures found → calls core.setFailed() with the list of root cause job names
  4. 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:

yaml
steps:
- name: Checkout code
uses: actions/checkout@v4
...
- uses: ./.github/actions/check-pr-test-health
id: pr-test-health
- name: Install dependencies # skipped automatically if health check failed
... # (default if: success() is false)
- name: Run test # also skipped
...

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:

Fail-fast: skipping — root cause job(s): base-b-test-1-gpu-small (0), base-b-test-1-gpu-small (1)

Within-Suite Failure Handling

Controlled by run_unittest_files() in python/sglang/test/ci/ci_utils.py.

Flags
FlagPR defaultScheduled defaultEffect
--continue-on-errorOffOnOff: stop at first failure. On: run all files, report all failures at end
--enable-retryOnOnRetry retriable failures (accuracy/perf assertions)
--max-attempts22Max 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rh-runninghub/minimax-h3-multigpu-lightning/ci-workflow-guide/badge)](https://verified-skill.com/skills/rh-runninghub/minimax-h3-multigpu-lightning/ci-workflow-guide)

Something wrong with this skill or its page? Tell us.