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: split the 3.13 shards a-f / g-r instead of a-k / l-r (#15061)

Daniel Hancff73aa0189b
diff --git a/.github/workflows/studio-backend-ci.yml b/.github/workflows/studio-backend-ci.yml
index 60bb80f3d37..f53b3f4727e 100644
--- a/.github/workflows/studio-backend-ci.yml
+++ b/.github/workflows/studio-backend-ci.yml
@@ -140,23 +140,25 @@ jobs:
#
# Shards root at `tests/` and differ only in ignores: `--ignore=FILE` does not filter explicit arguments.
# Shard 3 is the remainder, so new files land in exactly one shard (test_ci_backend_pytest_shards.py).
+ # a-f / g-r, not a-k / l-r: a-k's parallel step reached 1024-1264 s against the 1500 s backstop,
+ # and hit it twice on 2026-10-23, while l-r took 590-867 s (705 files each side now).
include:
- python: '3.13'
scope: full
- shard: a-k
+ shard: a-f
selection: >-
tests/
--ignore-glob=tests/*/*
--ignore-glob=tests/*_test.py
- --ignore-glob=tests/test_[!a-k]*.py
+ --ignore-glob=tests/test_[!a-f]*.py
- python: '3.13'
scope: full
- shard: l-r
+ shard: g-r
selection: >-
tests/
--ignore-glob=tests/*/*
--ignore-glob=tests/*_test.py
- --ignore-glob=tests/test_[!l-r]*.py
+ --ignore-glob=tests/test_[!g-r]*.py
- python: '3.13'
scope: full
shard: rest
@@ -287,7 +289,7 @@ jobs:
- name: Backend tests that cannot share a worker
# The twelve serial files, one process.
- if: matrix.scope == 'full' && matrix.shard == 'a-k'
+ if: matrix.scope == 'full' && matrix.shard == 'a-f'
working-directory: studio/backend
# Relative timing against a reference measured in the same process. Serial, so the
# comparison is between two implementations rather than between two schedulings.
@@ -310,7 +312,7 @@ jobs:
- name: Decision model training tests
# Their worker imports unsloth, so unsloth_zoo is installed here, after the suite above ran
# without it. trl stays at Studio's pin, which keeps datasets at the studio.txt version.
- if: matrix.scope == 'full' && matrix.shard == 'a-k'
+ if: matrix.scope == 'full' && matrix.shard == 'a-f'
working-directory: studio/backend
run: |
pip install unsloth_zoo "$(grep -m1 -E '^trl==' requirements/extras-no-deps.txt)"
diff --git a/tests/test_ci_backend_pytest_shards.py b/tests/test_ci_backend_pytest_shards.py
index fba31a3a960..8fe4f0aec0f 100644
--- a/tests/test_ci_backend_pytest_shards.py
+++ b/tests/test_ci_backend_pytest_shards.py
@@ -150,10 +150,11 @@ class TestEveryTestFileLandsInExactlyOneShard:
@pytest.mark.parametrize(
"path, expected",
[
- ("tests/test_apple.py", "a-k"),
- ("tests/test_kiwi.py", "a-k"),
- ("tests/test_lemon.py", "l-r"),
- ("tests/test_raisin.py", "l-r"),
+ ("tests/test_apple.py", "a-f"),
+ ("tests/test_fig.py", "a-f"),
+ ("tests/test_grape.py", "g-r"),
+ ("tests/test_kiwi.py", "g-r"),
+ ("tests/test_raisin.py", "g-r"),
("tests/test_squash.py", _CATCH_ALL),
("tests/test_yam.py", _CATCH_ALL),
],