-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add subresults support for reportportal report plugin #3331
Conversation
1e50f45
to
757da3f
Compare
757da3f
to
11d5bc3
Compare
0014f19
to
0fb5d3f
Compare
0fb5d3f
to
a6da49f
Compare
a6da49f
to
3b7b5a4
Compare
b2f5688
to
c1518ce
Compare
0d383fb
to
bdb49f9
Compare
I think it might be handy to control subresults import on a per test level through test fmf metadata. |
These are just some screenshots from my testing. BTW: @kkaarreell Do you have any idea why the subresult items have the Launch overview (parent tmt results):Beakerlib test detail (subresults / child test items):Details of shell test subresults when calling
|
I have tested the current code but it doesn't work (at least) for beakerlib tests. There are no logs for individual test phases (I am not even sure if beakerlib even produces them at all) and therefore there is nothing RP AA could work with or a reviewer look at when reviewing a particular failed phase. One can access logs for the whole test but because subresults are imported one can't assign a test result for a whole test as it needs to be done for individual phases. As a result, this feature is not usable ATM. As a precaution, phase reporting should be enabled only for tests that provide individual phase logs. |
Hello @kkaarreell,
I am aware the logs for subresults are not imported. I was troubleshooting this yesterday and the problem why the shell subresults (created by Regarding the logs for beakerlib subresults/phases, we want them, for sure. I was troubleshooting why the phase logs are not saved by
If I understand this correctly, if we always provide logs for ReportPortal child items (beakerlib phases and logs reported by calling With both PRs (#3370, #3372) applied, the result is following: Parent beakerlib result detail:Parent beakerlib result logs:Subresult logs (setup phase):Subresult logs (myfail phase): |
On the last screenshot there is a test phase failure but the error log is missing. |
f19af6c
to
d3fbee8
Compare
ba94e41
to
c8d1ec9
Compare
6477dce
to
50bc017
Compare
@thrix , thanks for the summary.
I've added |
Hello @4N0body5
I would like to ask if someone could help us to test the beakerlib subresults (https://github.com/teemtee/tmt/blob/1e522228b8f213b8acb300b409006d494c9128b2/tests/report/reportportal/data/beaker-phases-subresults.sh) and their import into the reportportal with the Also, I would appreciate if someone more experienced could help @4N0body5's with the local environment because I suspect it's somehow broken and I was unable to help (also discussed on tmt slack). @psss, @happz?
My understanding is that changes in this PR do not cause the endless loop in uuid-based rerun test phase. The endless loop was there before. Is that correct? I agree we should fix the tests. They should be stable at least to the same level as before. E.g. endless loop could be fixed in another PR. I would appreciate your help, thanks a lot!
I agree the metadata should be propagated from the parent test items to their children's items. Because the import of subresults is now optional (1e52222) I also think we should propate them in a follow-up PR. |
Hello @4N0body5 The current status of the reportportal tests running inside of a My env:
Extended Functionality - HISTORY AGGREGATIONI am getting three fails for subresults.
Extended Functionality - NAME-BASED RERUNSix fails, also caused by subresults.
Extended Functionality - UUID-BASED RERUNTwo failures occur here, and then it enters an endless loop.
|
d60e374
to
641c073
Compare
@seberm please, rebase when you find some spare time ( |
f8a3f93
to
7017bef
Compare
Hello @happz, About unmarked checkboxes - I've added more info into the PR description. The tests for beakerlib reportportal subresults are nice to have. The rest of the issues in the local reportportal tests will be handled by @4N0body5 (see #3331 (comment)). |
7017bef
to
bc18ded
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works are expected. Thanks much for implementing this! After discussion we've agreed that the necessary test adjustments will be done in a separate pull request once @4N0body5 has capacity. Added just one release note nitpick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
bc18ded
to
2c03006
Compare
2c03006
to
fc0d463
Compare
--------- Co-authored-by: Petr Šplíchal <[email protected]>
fc0d463
to
0c05e74
Compare
rebased and squashed locally, push ---force. If someone else will be doing the merge, please do it manually so commit hash is not modified. |
testing-farm:fedora-41-x86_64:provision fails only in tests using centos-stream-10 -> expected |
testing-farm:fedora-41-x86_64:full has passed in #3547, let's not waste evening time -> merging |
This PR adds support for tmt subresults for tmt reportportal plugin. It tries to map the subresults as child items of parent test result in a specific launch.
Please don't review this PR while it is marked as a draft.
More info:
TODOs:
status:interrupted
issues for subresults in RP, why is this happening?tmt-report-result
command should be already covered) - Nice to have (can be added in follow-up PR)Blocked by:
rhts-report-result
alias for reportingbeakerlib
subresults #3372Related:
Pull Request Checklist