Skip to content

Stop the auto-merge eligibility run aborting on the first failing check - #3408

Merged
pwizla merged 1 commit into
mainfrom
repo/fix-eligibility-exit-code
Aug 26, 2026
Merged

Stop the auto-merge eligibility run aborting on the first failing check#3408
pwizla merged 1 commit into
mainfrom
repo/fix-eligibility-exit-code

Conversation

@pwizla

@pwizla pwizla commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

The first manual run of the eligibility workflow failed. It stopped after 3 of 12 checks and reported the job as broken, when nothing was broken: #3366 simply changes 34 lines, over the 30-line limit.

GitHub runs a step as bash -e unless told otherwise, and set -uo pipefail does not undo that. A check exiting 1 is this step's normal output — it means a criterion was violated — so -e killed the loop at the first one.

  • shell: bash on the six steps whose scripts expect non-zero exit codes
  • The cron had the same latent bug on all three of its steps: it would have aborted on the first PR held by CI
  • sed -E so the PASS/FAIL prefix is actually stripped from the summary table (BSD sed does not read \|)

Simulated against #3366: all twelve checks now run, line-count fails, and the verdict is "Not eligible. Failed: line-count".

Follows #3401

GitHub runs a step as bash -e unless told otherwise, and set -uo pipefail does
not undo it, so a check exiting 1 — a violated criterion, the normal output —
killed the job. The first real run stopped after 3 of 12 checks with no verdict.
shell: bash on the six steps whose scripts expect non-zero codes; the cron had
the same latent bug on all three of its steps.
@pwizla pwizla self-assigned this Aug 26, 2026
@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview Aug 26, 2026 2:21pm

Request Review

@github-actions github-actions Bot added pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo labels Aug 26, 2026
@pwizla pwizla changed the title Stop the eligibility run aborting on the first failing check Stop the auto-merge eligibility run aborting on the first failing check Aug 26, 2026
@pwizla pwizla added this to the 7.1.1 milestone Aug 26, 2026
@pwizla

pwizla commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator Author

let's go 🚀

@pwizla
pwizla merged commit f3e9045 into main Aug 26, 2026
9 checks passed
@pwizla
pwizla deleted the repo/fix-eligibility-exit-code branch August 26, 2026 14:21
@github-actions github-actions Bot added the internal PRs created by the Strapi core team label Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal PRs created by the Strapi core team pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant