Splitting a CI job into a matrix renames its checks, and required checks with the old names stay pending
Symptom#
After a PR shards a job or splits a serial build into per-version jobs, the PR cannot merge. The required checks with the old names stay pending forever.
Cause#
The split renames the checks, for example Valgrind (C++ n/6) or Wheel build … (cpNN). Branch protection still requires the old names.
Fix#
Before the merge, ask the user to check the required checks in the branch protection settings and to update them. You often cannot read these settings yourself: gh api returns 404 without admin rights.
Evidence#
Observer note, 2026-09-30, dftracer-utils: sharding the valgrind job gave check names like Valgrind (C++ n/6), and splitting the wheel build per Python version gave Wheel build … (cpNN). Reading the protection settings with gh api returned 404 without admin rights.
Also found by searching
- gh pr merge -> Required status check "Valgrind" is expected, waiting for status to be reported
- after I sharded a CI job into a matrix, the PR is stuck with required checks pending forever
- how do I fix required checks that never complete after renaming or splitting a GitHub Actions job?
- branch protection still expects the old job name after converting to strategy matrix, merge blocked, gh api protection 404
- PR stuck 'Expected — Waiting for status to be reported' required check never runs after matrix split
- after I sharded the CI job into a matrix the PR cannot merge, old check names still pending
- how do I fix required status checks after renaming CI jobs? gh api branch protection returns 404
- branch protection waits for check that no longer exists after splitting build per python version