From 1046144d18aa819b3bb75f0ff7ead24e2f945213 Mon Sep 17 00:00:00 2001 From: Sunrisepeak Date: Tue, 27 Oct 2026 05:16:21 +0900 Subject: [PATCH] validate: the llvm leg has no more shards than selected members Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com> --- .github/workflows/validate.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index d08faddb..26345217 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1091,6 +1091,14 @@ jobs: # planner about toolchains is the larger one, and it needs a timing # table per leg that CI does not produce yet. lln=$(( ln + 3 )) + # A shard holds one member at least: a selective run of one member + # gave the llvm leg four shards, three of which set up a runner and + # built nothing. + if [ "$MEMBERS" != "__ALL__" ]; then + count=$(echo $MEMBERS | wc -w) + [ "$count" -lt 1 ] && count=1 + [ "$lln" -gt "$count" ] && lln=$count + fi { printf '{"include":[' # linux runs TWICE: once on mcpp's default toolchain and once on