Skip to content

pipeline: Report the failed tests of Build and Test runs. - #10

Closed
rosemarie-o wants to merge 2 commits into
fuzzfactor:mainfrom
rosemarie-o:reports-build-and-test
Closed

rosemarie-o wants to merge 2 commits into
fuzzfactor:mainfrom
rosemarie-o:reports-build-and-test

Conversation

@rosemarie-o

Copy link
Copy Markdown

Reports of failed runs showed the last 25 lines of each failed job's log. Those lines come from GitHub's cleanup after the job, so they never said what failed.

Parse the autotest output that OVN and OVS print instead: list the tests that failed, then the last log_lines lines of each one's log from the "Detailed failed tests" section, which end with the check that failed. The section of each job is cut to 100 lines and 10000 characters, with a note to see the workflow run for the full report.

A job without failed tests, such as one that failed to build, shows the last log_lines lines before the error that ended its failed step, again skipping the cleanup.

Fixes #1

Reports of failed runs showed the last 25 lines of each failed job's
log.  Those lines come from GitHub's cleanup after the job, so they
never said what failed.

Parse the autotest output that OVN and OVS print instead: list the
tests that failed, then the last log_lines lines of each one's log
from the "Detailed failed tests" section, which end with the check
that failed.  The section of each job is cut to 100 lines and 10000
characters, with a note to see the workflow run for the full report.

A job without failed tests, such as one that failed to build, shows
the last log_lines lines before the error that ended its failed step,
again skipping the cleanup.

Fixes fuzzfactor#1

Signed-off-by: Rosemarie O'Riorden <rosemarie@redhat.com>
The same tests often fail in every job of a run, so reports repeated
the same logs for each job, and with many failed jobs the email grew
to hundreds of lines.

Skip the logs of tests already shown whole for an earlier job, with a
line naming the tests skipped, so the space goes to failures not shown
yet.  A job whose failed tests were all shown shows them again.  A log
that was cut is shown again.  Cut all jobs together to 300 lines, with
a note of how many lines more there were.

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

In Build and Test report, show test failures rather than last 25 lines

1 participant