From cdc912f02ef6a728a0a67730a671ded2d8d75654 Mon Sep 17 00:00:00 2001 From: t Date: Thu, 22 Oct 2026 02:47:51 +0200 Subject: [PATCH] fix(ci): draft_skip shard-unguarded mutant missed the shard once needs: sat above its if: (main red since #5891) The mutant deleted the line right after the job header; #5891 put needs: there, so it changed nothing and the self-test failed. Range-based delete up to runs-on: is position-independent. Co-Authored-By: Claude Sonnet 5.5 --- scripts/check_ci_draft_skip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_ci_draft_skip.sh b/scripts/check_ci_draft_skip.sh index 75b47325cd..8db62fc5ac 100755 --- a/scripts/check_ci_draft_skip.sh +++ b/scripts/check_ci_draft_skip.sh @@ -65,7 +65,7 @@ self_test() { } mutant no-ready-for-review 's/, ready_for_review\]/]/' mutant x86-main-unguarded 's/ && github\.event\.pull_request\.draft != true \}\}/ }}/' - mutant shard-unguarded '/^ workspace-test-shard:/{n;/draft/d}' + mutant shard-unguarded '/^ workspace-test-shard:$/,/runs-on:/{/draft != true/d;}' mutant gate-no-draft-exit '/echo "gate: draft PR/d' mutant ci-gate-no-draft-flag '/^ ci-gate:/,/^ gate:/{/DRAFT: \$/d}' mutant sigma-step-runs-on-draft '/Σ-executed/{n;d}'