Repository navigation
pipeline: Report the failed tests of Build and Test runs. - #10
Closed
rosemarie-o wants to merge 2 commits into
Closed
rosemarie-o wants to merge 2 commits into
rosemarie-o wants to merge 2 commits into
Conversation
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
marked this pull request as draft
November 30, 2026 16:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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