Skip to content

ci: name install-script's cells by distro, and check required matrix cells exactly - #618

Merged
scttfrdmn merged 4 commits into
mainfrom
fix/572-stable-install-script-names
Oct 19, 2026
Merged

scttfrdmn merged 4 commits into
mainfrom
fix/572-stable-install-script-names

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

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

  • Stable names. Each install-script matrix row gains distro: ubuntu | rocky | opensuse, and the job sets name: install-script (${{ matrix.distro }}), the same pattern modulefiles uses. The required contexts become install-script (ubuntu), (rocky) and (opensuse). They no longer contain an image tag or a zypper/apt command line.
  • requiredChecks moves to the three new names.
  • The gap install-script's required check names embed a container image tag, so any image bump orphans three required contexts #572 named is closed. TestRequiredMatrixCellsAreProducedExactly expands every matrix-templated name: into the exact contexts it reports, and requires each required one to be among them. It handles include: rows and a tag: axis, with a floor of 6. Today that covers install-script, modulefiles and tagged-suite. Jobs still on the default name (fuzz-smoke, cross-build, build-tags) stay base-job-only, and the reason is in requiredChecks' comment.
Mutation Result
distro: rocky → rockylinux ❌ "install-script (rocky)" … no longer produces it
s3compat dropped from tagged-suite ❌ names tagged-suite (s3compat)
modulefiles lmod → lmod8 ❌ names modulefiles (lmod)
control: Leap image 15.6 → 16.0 (the #572 scenario) ✅ passes, as it now should

Branch protection: why this PR is BLOCKED until step 1

While this PR is open, its checks report under the new names, so the three old required contexts never report on it. The sequence:

  1. Remove the three old install-script (…) contexts from protection with DELETE on /contexts. That removes only those three; it doesn't replace the list.
  2. Merge.
  3. Once install-script (ubuntu|rocky|opensuse) have reported success on main, add them with POST.

install-script is unrequired only between steps 1 and 3.

🤖 Generated with Claude Code

…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
scttfrdmn enabled auto-merge (squash) October 19, 2026 00:34
@scttfrdmn
scttfrdmn merged commit 0356ae4 into main Oct 19, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant