Skip to content

End the eligibility step on an explicit exit 0 - #3411

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

End the eligibility step on an explicit exit 0#3411
pwizla merged 1 commit into
mainfrom
repo/fix-eligibility-final-exit

Conversation

@pwizla

@pwizla pwizla commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

All twelve checks ran, the summary table rendered, the verdict was recorded — and the step still failed. This is a different bug from the shell one fixed in #3409, and it was hidden behind it.

A step's exit code is that of its last command. The last one to run here is the test on UNKNOWN, inside the block that writes the verdict. When no check errored — the normal case — that variable is empty, the test returns 1, and the step fails on a perfectly good outcome.

The step reports a verdict; it does not pass or fail on it. Whether the PR is eligible is carried by the eligible output and read by the next step.

Reproduced against #3366, which legitimately fails the 30-line criterion:

  • before: verdict "Not eligible. Failed: line-count", exit 1
  • after: same verdict, exit 0

The other five steps across both workflows were not affected — they happen to end on an echo — but they get the same explicit ending, so no step's result depends on whichever command is last.

Should fix #3409

All twelve checks ran and the verdict was recorded, but the step still failed.
Its exit code is that of its last command, and the last one to run was the
test on UNKNOWN: with no errored check that variable is empty, the test returns
1, and the step fails on a perfectly normal outcome.

The step reports a verdict, it does not pass or fail on it — eligibility is
carried by the output. Reproduced against #3366: same verdict either way, exit 1
before, exit 0 after. The other five steps across both workflows were not
affected but get the same explicit ending, so no step's result depends on
whichever command happens to be last.
@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:40pm

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 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allright, let's merge & test 🤞

@pwizla pwizla added the internal PRs created by the Strapi core team label Aug 26, 2026
@pwizla
pwizla merged commit 3bd0ed7 into main Aug 26, 2026
11 checks passed
@pwizla
pwizla deleted the repo/fix-eligibility-final-exit branch August 26, 2026 14:41
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