TRT-2573: Show non-blocking failure message in JUnit failure output#30921
TRT-2573: Show non-blocking failure message in JUnit failure output#30921stbenjam wants to merge 1 commit intoopenshift:mainfrom
Conversation
Move the "NON-BLOCKING FAILURE" message from testOutputBytes (which is prepended to the beginning and not visible in the JUnit failure lens since it shows the last ~100 lines) into the JUnit FailureOutput.Output field directly. This ensures informing test failures are clearly marked as non-blocking when viewed in the Spyglass JUnit lens in Prow. Fixes TRT-2573 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
WalkthroughNon-blocking failure handling logic was refactored across two files: removal of output rewriting in cmd_runsuite.go and addition of conditional failure message wrapping in junit.go based on extensionTestResult lifecycle status. The control flow for classifying and printing failures remains unchanged. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.3)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
|
Skipping CI for Draft Pull Request. |
|
/test e2e-aws-ovn-fips |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stbenjam The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@stbenjam: This pull request references TRT-2573 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@stbenjam: This pull request references TRT-2573 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Scheduling required tests: |
|
@stbenjam: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
FailureOutput.Outputfield so it's visible in the Spyglass JUnit lens in ProwtestOutputByteswhich gets truncated to the last ~100 lines in the failure output, making it invisible for tests with longer outputtest/extended/extension/extension.gocan be used to verify this works in CIFixes TRT-2573
Example https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/30921/pull-ci-openshift-origin-main-e2e-aws-ovn-fips/2036093813532921856
Test plan
[Suite:openshift/ote]suite runs in CI and the failing informing test shows "NON-BLOCKING FAILURE" in the JUnit lens🤖 Generated with Claude Code