Skip to content

pipeline: Report the errors of checkpatch instead of the end of its log. - #9

Closed
rosemarie-o wants to merge 1 commit into
fuzzfactor:mainfrom
rosemarie-o:reports-checkpatch
Closed

rosemarie-o wants to merge 1 commit into
fuzzfactor:mainfrom
rosemarie-o:reports-checkpatch

Conversation

@rosemarie-o

Copy link
Copy Markdown

The report of a failed job carried the last 25 lines of its log, which for checkpatch were mostly the source of the step, its environment and the cleanup of the runner, with the color codes of GitHub, around the few lines checkpatch printed.

Like warnings, the checkpatch workflows now put the output of checkpatch in an error annotation titled workflows.warning_annotation when it fails, and the report carries the messages of such annotations instead of the log, cut to 100 lines and 10000 characters. Jobs without them, or whose annotations cannot be read for lack of permission, are still reported with the end of their log.

Fixes #7

The report of a failed job carried the last 25 lines of its log, which
for checkpatch were mostly the source of the step, its environment and
the cleanup of the runner, with the color codes of GitHub, around the
few lines checkpatch printed.

Like warnings, the checkpatch workflows now put the output of
checkpatch in an error annotation titled workflows.warning_annotation
when it fails, and the report carries the messages of such annotations
instead of the log.  Jobs without them, or whose annotations cannot be
read for lack of permission, are still reported with the end of their
log.

The messages of error and warning annotations are both cut to 100
lines and 10000 characters; warnings were cut to report.log_lines
lines, which could drop some of the output of checkpatch.

Fixes fuzzfactor#7

Signed-off-by: Rosemarie O'Riorden <rosemarie@redhat.com>
@rosemarie-o
rosemarie-o marked this pull request as draft November 30, 2026 18:30
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.

Checkpatch report should only show checkpatch.py output

1 participant