fix: preserve gotest parser output for nested failures#31210
Conversation
Signed-off-by: immanuwell <pchpr.00@list.ru>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: immanuwell The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
WalkthroughThis PR refines JUnit test report parsing in the go test output handler. It adds a utility to join output lines while preserving trailing newlines, applies this utility to failure messages and skip output, and corrects indentation depth tracking to properly attribute double-indented nested output to parent test cases. ChangesJUnit Parser Output and Indentation Handling
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @immanuwell. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
This fixes a small
junitreportparser bug in nestedgo testoutput.What changed:
Repro on
mainbefore this patch:go test ./tools/junitreport/pkg/parser/gotestThe existing fixtures fail there, including the nested output cases built from real
go testlogs.Checked: