Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/developer/contributor-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ them. The canonical registry is `tests/ci/labels.py`:
| `ray` | Actors and placement groups |
| `router` | Routing decisions |
| `arguments` | Top-level argparse / `validate_args` |
| `basic` | Default e2e smoke set; these tests also carry `e2e` |
| `e2e` | Opt-in full-recipe GPU e2e runs (heavy) |
| `model-scripts` | `train_diffusion.py` + `scripts/*.py` smoke tests |

Expand All @@ -143,6 +144,7 @@ An e2e test declares the recipe to run, the arguments to run it with, and the me
register_e2e_ci(
est_time=1200,
suite="stage-c-3-gpu-h200",
labels=["basic", "e2e"],
script="scripts/run_diffusion_grpo_sd3_ocr_sglang.py",
args=["--num-rollout", "2"],
metrics=["rollout/reward/raw_mean", "train/grad_norm", ...],
Expand Down
13 changes: 6 additions & 7 deletions tests/ci/labels.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Canonical CI label registry.

Tests declare a domain label set in `register_cuda_ci(..., labels=[...])` and
`register_cpu_ci(..., labels=[...])`. The PR-side trigger for each label is
Tests declare a domain label set in `register_cuda_ci(..., labels=[...])`,
`register_cpu_ci(..., labels=[...])` and `register_e2e_ci(..., labels=[...])`. The PR-side trigger for each label is
`run-ci-<key>`: each entry below MUST have a matching `run-ci-<key>` label in
the GitHub repo (maintainer-managed).

Expand All @@ -11,14 +11,13 @@
The workflow does not need editing -- the generic stage job filters tests
by labels at runtime.

The meta-labels are intentionally NOT listed here:
* `run-ci-basic` authorizes CI but matches no domain, so only tests without
labels run.
* `run-ci-image` / `run-ci-all` authorize CI and bypass the per-test labels
filter via `--match-all-labels` (handled in run_suite.py).
The meta-labels `run-ci-image` / `run-ci-all` are intentionally NOT listed
here: they bypass the per-test labels filter via `--match-all-labels`
(handled in run_suite.py).
"""

KNOWN_LABELS: dict[str, str] = {
"basic": "Default e2e smoke set (every basic test also carries e2e)",
"sglang-diffusion": "sglang_diffusion_utils engine / monkey patch tests",
"e2e": "Full-recipe GPU e2e runs (opt-in: heavy, ~30-40 min each)",
"fsdp": "FSDP backend + config tests",
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/short/test_ltx23_pickscore_grpo_4xGPU.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
register_e2e_ci(
est_time=1800,
suite="stage-c-5-gpu-h200",
labels=["basic", "e2e"],
script="scripts/run_diffusion_grpo_ltx23_sglang.py",
args=[
"--num-rollout",
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/short/test_sd3_nft_pickscore_3xGPU.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
register_e2e_ci(
est_time=900,
suite="stage-c-3-gpu-h200",
labels=["basic", "e2e"],
script="scripts/run_diffusion_nft_sd3_pickscore.py",
args=[
"--num-rollout",
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/short/test_sd3_ocr_grpo_2xGPU.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
register_e2e_ci(
est_time=1200,
suite="stage-c-3-gpu-h200",
labels=["basic", "e2e"],
script="scripts/run_diffusion_grpo_sd3_ocr_sglang.py",
# Inline on purpose: the legacy (no output store) gate for rollouts fetched in the parser actors.
args=["--num-rollout", "2"],
Expand Down
Loading