Skip to content

ci/build: fail the job on hard check errors - #137

Open
ozan956 wants to merge 1 commit into
cifrom
fix-ci-checkpatch-signoff
Open

ci/build: fail the job on hard check errors#137
ozan956 wants to merge 1 commit into
cifrom
fix-ci-checkpatch-signoff

Conversation

@ozan956

@ozan956 ozan956 commented Jul 31, 2026

Copy link
Copy Markdown
Member

A bare return 1 does not trigger the trap, so the error was annotated and the step exited non-zero, yet the job (continue-on-error: true) and the aggregated result stayed ok.

A commit missing a Signed-off-by line, for example, passed CI. https://github.com/analogdevicesinc/u-boot/actions/runs/30635738326/job/91172768680?pr=136#step:8:39

Not tested whether this triggers or not, not on the corp net rn. @gastmaier

check_checkpatch, check_license and check_qconfig_sync detect hard
errors by setting fail=1 and returning it, but the downstream summary
only fails on step_fail_<name> variables in GITHUB_ENV, which are
written by the ERR trap. A bare 'return 1' does not trigger the trap,
so the error was annotated and the step exited non-zero, yet the job
(continue-on-error: true) and the aggregated result stayed green. A
commit missing a Signed-off-by line, for example, passed CI.

Set step_fail_<name> explicitly when fail=1 so the failure is recorded
and the aggregated check fails.

Signed-off-by: Ozan Durgut <ozan.durgut@analog.com>
@ozan956
ozan956 requested review from gastmaier and pamolloy July 31, 2026 14:55
@ozan956

ozan956 commented Jul 31, 2026

Copy link
Copy Markdown
Member Author

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.

2 participants