Skip to content

ci.yml: release PRs rerun the full matrix on a commit the push run already tested #531

Done

Description

@Shinrai

The ci job in the ci.yml template runs on pull_request for every release PR (head next / hotfixes), whatever the head commit is:

if: |
  github.event_name != 'pull_request' ||
  github.event.pull_request.head.repo.fork == true ||
  github.event.pull_request.head.ref == 'next' ||
  github.event.pull_request.head.ref == 'hotfixes'

The fallback is there for the bot's chore: bump version commit, which commit-gate filters out on the push path. But when the release PR's head is an ordinary commit (any PR merged into next), the push run already tests that exact SHA and posts Required PR Check to it. The release PR then runs the whole matrix a second time on the same SHA.

Example, CLDMV/slothlet at f8be6af2 (merge of slothlet#947 into next):

  • push run 45552570252: Build & Test 22.22 / 24 / lts/* + Coverage & Badge Push
  • pull_request run for release PR #704 45552577207: Build & Test 22.22 / 24 / lts/* + PR Coverage Badge

Slothlet's suite takes about 3 hours per leg, so every merge into next runs six of them instead of three, and the release waits on both.

Suggested fix: only take the release-PR fallback when the head commit is one the push path skips (the same test commit-gate uses: the bot's chore: bump version, the base→next sync merge). For any other head SHA, skip the pull_request run like other in-repo PRs; the push run's Required PR Check on that SHA already satisfies the ruleset. The skip can't depend on the push run having finished, so it has to be decided from the commit itself.

The change goes in the template (examples/individual-repo-workflows/.../ci.yml) and then out to every v4 repo's ci.yml.

Activity

  1. added
    type: bug
    priority: medium
    status: confirmed
    status: in progress
    and removed
    status: confirmed
    on Nov 25, 2026
  2. removed
    status: in progress
    on Nov 25, 2026
  3. cldmv-bot commented on Nov 25, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #532, merged into next. This issue closes automatically when that work ships to the default branch.

  4. added
    status: implemented
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: implementedtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions