Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Backend CI: run the multi-rank gloo suites in their own Repo tests shard (#15291)

Daniel Han231a4aa1fc7e
diff --git a/.github/workflows/studio-backend-ci.yml b/.github/workflows/studio-backend-ci.yml
index 28d0aac78a9..73bf269ecaa 100644
--- a/.github/workflows/studio-backend-ci.yml
+++ b/.github/workflows/studio-backend-ci.yml
@@ -467,6 +467,8 @@ jobs:
--ignore=tests/vllm_compat
--ignore=tests/version_compat
--ignore-glob=tests/test_fsdp2*.py
+ --ignore-glob=tests/test_[!f]*gloo*.py
+ --ignore-glob=tests/test_f[!s]*gloo*.py
--deselect tests/test_model_registry.py::test_model_registration
--deselect tests/test_model_registry.py::test_all_model_registration
# Native FSDP2's gloo tests spawn 2 to 4 ranks each: about ten minutes of this
@@ -475,6 +477,16 @@ jobs:
- shard: fsdp2
selection: >-
tests/test_fsdp2*.py
+ # The other multi-rank gloo suites (tensor, pipeline and context parallel, float8 and
+ # fp8 under FSDP2) did the same again: with them the catch-all hit the 2100 s cap and was
+ # interrupted at 74 to 98% on most runs. Locally on 4 cores they are 578 s of the
+ # catch-all's 1258 s. The two globs are every *gloo* file except test_fs*, which is
+ # fsdp2's: an explicit file root cannot be filtered by --ignore, so the split is done in
+ # the globs themselves.
+ - shard: gloo
+ selection: >-
+ tests/test_[!f]*gloo*.py
+ tests/test_f[!s]*gloo*.py
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
diff --git a/tests/studio/test_backend_ci_parallel_isolation.py b/tests/studio/test_backend_ci_parallel_isolation.py
index 0a064114161..12996e913a8 100644
--- a/tests/studio/test_backend_ci_parallel_isolation.py
+++ b/tests/studio/test_backend_ci_parallel_isolation.py
@@ -318,15 +318,15 @@ def test_the_command_scan_sees_the_parallel_run_and_the_serial_steps():
"""Pin the parser: a scan that matched nothing would pass both tests above."""
commands = _pytest_commands()
parallel = [command for command in commands if " -n " in f" {command} "]
- assert len(parallel) == 7, (
- f"expected seven parallel pytest runs, three shards of the backend matrix and four "
+ assert len(parallel) == 8, (
+ f"expected eight parallel pytest runs, three shards of the backend matrix and five "
f"of repo-cpu-tests, got {parallel}. If a job stopped running in parallel, or a "
f"shard was added or removed, say so here rather than letting this scan quietly "
f"cover fewer runs."
)
root = [command for command in parallel if _over_the_repo_tests(command)]
- assert len(root) == 4, (
- f"expected the four repo-root shards, got {root}. The isolation checks above apply "
+ assert len(root) == 5, (
+ f"expected the five repo-root shards, got {root}. The isolation checks above apply "
f"to those, and a scan that matched none of them would pass on nothing."
)
backend = [command for command in parallel if _over_the_backend(command)]