CI: ui-egui tests run on two shards (#10080)

vectorcraft-ui-egui's tests were one leg that set the pull request run's
length (33.2 min median over 20 runs: about 19 min compiling and 11.9 min
running 5,288 tests). The gate now has six legs. Shards 1 and 2 each
build vectorcraft-ui-egui's tests and run half of them with nextest's
count partition. Each part also runs its own pinned slow tests, so the
slowest tests do not land on one leg. Part 1 alone runs the doctests and
the i18n report, and `cargo xtask ci warm` builds the split once.

Before running, a part lists the tests and stops with an error when a
pinned test name no longer exists. The xtask shard tests check that
every test of a split runs on exactly one part.

The nightly signing policy and its preparation doc list the new job
names (`test N/6`).
This commit is contained in:
.CooCoo authored and GitHub committed 2026-11-29 09:10:57 -05:00
1 parent b3514b6277
commit 3ad283b9b0
5 files changed
+365 -42

No files matched your search

+10 -5
View File
@@ -38,27 +38,32 @@
"applicability": "required"
},
{
"name": "gate / test 1/5 (ubuntu-24.04)",
"name": "gate / test 1/6 (ubuntu-24.04)",
"app_id": 15368,
"applicability": "required"
},
{
"name": "gate / test 2/5 (ubuntu-24.04)",
"name": "gate / test 2/6 (ubuntu-24.04)",
"app_id": 15368,
"applicability": "required"
},
{
"name": "gate / test 3/5 (ubuntu-24.04)",
"name": "gate / test 3/6 (ubuntu-24.04)",
"app_id": 15368,
"applicability": "required"
},
{
"name": "gate / test 4/5 (ubuntu-24.04)",
"name": "gate / test 4/6 (ubuntu-24.04)",
"app_id": 15368,
"applicability": "required"
},
{
"name": "gate / test 5/5 (ubuntu-24.04)",
"name": "gate / test 5/6 (ubuntu-24.04)",
"app_id": 15368,
"applicability": "required"
},
{
"name": "gate / test 6/6 (ubuntu-24.04)",
"app_id": 15368,
"applicability": "required"
},
+6 -5
View File
@@ -39,11 +39,12 @@ jobs:
dev-strip: true
# The workspace crates also build without line tables. A panic still names its file and line.
dev-debug: "0"
# Five legs instead of one: shards 1 to 4 each build and run the tests of their own crates,
# and shard 5 runs the other `cargo xtask ci` steps (xtask/src/shards.rs). `gate (<os>)`
# passes only when all five did. On pushes to main, a `cache warm` leg builds what every
# shard builds and saves the dependency cache.
test-shards: 5
# Six legs instead of one: shards 1 and 2 each build vectorcraft-ui-egui's tests and run
# half of them, shards 3 to 5 each build and run the tests of their own crates, and shard 6
# runs the other `cargo xtask ci` steps (xtask/src/shards.rs). `gate (<os>)` passes only
# when all six did. On pushes to main, a `cache warm` leg builds what every shard builds and
# saves the dependency cache.
test-shards: 6
shard-command: cargo xtask ci shard
warm-command: cargo xtask ci warm
# The dependency cache also keeps the compiled workspace crates and test executables, so a