Aggregate JUnit results at parent test level (#6238) - #7505
Open
Akshat005Chaudhary wants to merge 1 commit into
Open
Aggregate JUnit results at parent test level (#6238)#7505Akshat005Chaudhary wants to merge 1 commit into
Akshat005Chaudhary wants to merge 1 commit into
Conversation
- In archiveChildJobTap(), copy JUnit XML artifacts from each parallel child job to the parent workspace alongside the existing TAP copy. Uses optional:true so child jobs without JUnit output are silently skipped. - After all child artifacts are gathered, publish an aggregated JUnit report at the parent build level using skipMarkingBuildUnstable:true and allowEmptyResults:true to avoid interfering with the pipeline's own status logic (ref adoptium#6244). The JUnit glob patterns match those already used at the child level (L1147): **/work/**/*.jtr.xml, **/result/**/*.jtr.xml, **/junitreports/**/*.xml, **/external_test_reports/**/*.xml
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.
Aggregate JUnit results at parent test level
Closes #6238
Background
Currently, child TAP files are already aggregated and surfaced at the parent build level. However, JUnit XML results (produced by openjdk/JCK tests) are only visible at the child job level — engineers have to click into each parallel
testList_Njob individually to see test reports.This PR brings JUnit result aggregation to the parent build level, matching the existing TAP behaviour.
Changes
buildenv/jenkins/JenkinsfileBaseTwo additions inside
archiveChildJobTap():**/*.tapcopy, also fetches JUnit XML files from each parallel child job into the parent workspace:optional: trueensures child jobs that produce no JUnit output (e.g. non-openjdk tests) are silently skipped without failing the step.junitpublish step — after all child artifacts are gathered, publishes the aggregated report at the parent build:Safety / Status Interference
skipMarkingBuildUnstable: trueis used intentionally to ensure thejunitstep never overrides the pipeline's own build status logic (checkTestResults()). This directly addresses the concern raised in #6244, where the TAP plugin was removed precisely because it forcibly set job status toUNSTABLE— this implementation avoids repeating that mistake.allowEmptyResults: trueensures the parent build doesn't fail when no JUnit XML is present (e.g. platforms that only produce TAP).Testing
junitstep (remains controlled bycheckTestResults())