Repository navigation
ci: name install-script's cells by distro, and check required matrix cells exactly - #618
Merged
Merged
Conversation
…cells exactly (#572) install-script's three required contexts were GitHub's default matrix names, which embed every value: an image tag and a package-manager command line, pinned literally in branch protection. Bumping Leap 15.6, moving rockylinux:9, or adding a package to a zypper line would rename a required check, and a renamed required check never reports, so every PR blocks with nothing red to read. Each row gains a stable distro (ubuntu, rocky, opensuse), and the job sets name: install-script (${{ matrix.distro }}), as modulefiles does by system. requiredChecks moves to the three new names. The guard could not see this: TestRequiredChecksStillHaveAJobToReportThem strips the matrix suffix and checks only the base job. TestRequiredMatrixCellsAreProducedExactly expands every matrix-templated name: (include rows, or a tag axis) into the contexts it reports, and requires each required one to be among them; floor 6. Jobs on the default name (fuzz-smoke, cross-build, build-tags) stay base-job-only, stated in requiredChecks' comment: the parser does not keep key order, and their names carry nothing that moves on its own. Mutations: renaming the rocky distro, dropping s3compat from tagged-suite, and renaming modulefiles' lmod cell each fail naming the context. Bumping the Leap image to 16.0, the scenario this issue is about, now passes. Branch protection changes alongside: the three old contexts are removed before merge, since they can no longer report, and the three new ones are added once they have reported on main.
scttfrdmn
enabled auto-merge (squash)
October 19, 2026 00:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #572. #572 stays open until the three new contexts are required on
main. That's a branch-protection step after merge, so this PR deliberately avoids closing keywords.Change
install-scriptmatrix row gainsdistro: ubuntu | rocky | opensuse, and the job setsname: install-script (${{ matrix.distro }}), the same patternmodulefilesuses. The required contexts becomeinstall-script (ubuntu),(rocky)and(opensuse). They no longer contain an image tag or a zypper/apt command line.requiredChecksmoves to the three new names.TestRequiredMatrixCellsAreProducedExactlyexpands every matrix-templatedname:into the exact contexts it reports, and requires each required one to be among them. It handlesinclude:rows and atag:axis, with a floor of 6. Today that coversinstall-script,modulefilesandtagged-suite. Jobs still on the default name (fuzz-smoke,cross-build,build-tags) stay base-job-only, and the reason is inrequiredChecks' comment.distro: rocky→rockylinux"install-script (rocky)" … no longer produces its3compatdropped fromtagged-suitetagged-suite (s3compat)modulefileslmod→lmod8modulefiles (lmod)15.6→16.0(the #572 scenario)Branch protection: why this PR is
BLOCKEDuntil step 1While this PR is open, its checks report under the new names, so the three old required contexts never report on it. The sequence:
install-script (…)contexts from protection withDELETEon/contexts. That removes only those three; it doesn't replace the list.install-script (ubuntu|rocky|opensuse)have reportedsuccessonmain, add them withPOST.install-scriptis unrequired only between steps 1 and 3.🤖 Generated with Claude Code