diff --git a/docs/developer/contributor-guide.md b/docs/developer/contributor-guide.md index f23aaaeec..f304e1822 100644 --- a/docs/developer/contributor-guide.md +++ b/docs/developer/contributor-guide.md @@ -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 | @@ -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", ...], diff --git a/tests/ci/labels.py b/tests/ci/labels.py index 04e9a66b6..015a89366 100644 --- a/tests/ci/labels.py +++ b/tests/ci/labels.py @@ -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-`: each entry below MUST have a matching `run-ci-` label in the GitHub repo (maintainer-managed). @@ -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", diff --git a/tests/e2e/short/test_ltx23_pickscore_grpo_4xGPU.py b/tests/e2e/short/test_ltx23_pickscore_grpo_4xGPU.py index db4be2532..30555e643 100644 --- a/tests/e2e/short/test_ltx23_pickscore_grpo_4xGPU.py +++ b/tests/e2e/short/test_ltx23_pickscore_grpo_4xGPU.py @@ -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", diff --git a/tests/e2e/short/test_sd3_nft_pickscore_3xGPU.py b/tests/e2e/short/test_sd3_nft_pickscore_3xGPU.py index c33868524..6b2c020c7 100644 --- a/tests/e2e/short/test_sd3_nft_pickscore_3xGPU.py +++ b/tests/e2e/short/test_sd3_nft_pickscore_3xGPU.py @@ -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", diff --git a/tests/e2e/short/test_sd3_ocr_grpo_2xGPU.py b/tests/e2e/short/test_sd3_ocr_grpo_2xGPU.py index 16bd14570..9b8dd83ec 100644 --- a/tests/e2e/short/test_sd3_ocr_grpo_2xGPU.py +++ b/tests/e2e/short/test_sd3_ocr_grpo_2xGPU.py @@ -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"],