-
Notifications
You must be signed in to change notification settings - Fork 143
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
Support multiple test contacts in the ReportPortal plugin #3412
base: main
Are you sure you want to change the base?
Conversation
db5fbd6
to
5cac74d
Compare
fb8c975
to
f951c36
Compare
Hello, The contacts are always saved under the
Another option is to enumerate each contact key:
Any preferences? Thanks! |
We decided we will go with the first option:
This PR is ready for review. |
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, thanks!
f951c36
to
7110dcf
Compare
A short release note would be nice. |
@psss Added, thanks for the review! |
6adb5ff
to
10dc3a9
Compare
Hm,
This does not seem to be related to this change. When executed locally, everything is just fine 😵💫 |
@psss fails for me locally as well. I It fails because that asserted file exists as Fastest way to check is (failing version)
Passing version has the last two tests in switched order. |
The problem with the changed order of tests has been mentioned this evening on tmt Slack channel, this seems like the same issue. I suspect fmf library is a culprit here, but I didn't follow fmf development closely enough for me to point a finger at a commit (and no tmt change rings a bell). But it should be easy to check, the test would pass with tmt & an older fmf version.
|
@happz @psss Yes indeed, fmf-1.4.1 vs 1.5.0 return different order of tests. EDIT: fmf behavior changed in teemtee/fmf#260, it's the 'sort' added in https://github.com/teemtee/fmf/blob/95c9745db00b0e2b545a8e93021544c10d8665ac/fmf/base.py#L714 |
So the problem is that previously the data key sorting happened when the https://github.com/teemtee/fmf/blob/95c9745db00b0e2b545a8e93021544c10d8665ac/fmf/base.py#L710-L716 The change does not affect trees which are built directly from tmt/tmt/steps/discover/shell.py Lines 389 to 394 in 01d38b8
So these nodes are now sorted as well, which for this specific use case probably does not make sense: User provided the tests in the form of a list and they most probably expect the order should be preserved. I see two possible ways to fix this:
If we go the first way, it would break tests which rely on the sorting. And I guess this approach can be quite widely used. So, let's make it configurable? Or any other/better ideas? |
I'd say it should be configurable. Caller of climb method should know if they want to keep the order in which they created the data (eg. as this discover.shell) or sorted (majority of other use cases). |
Add the possibility of exporting multiple test contacts into the report portal instance.
Closes: #3407
TODO:
Pull Request Checklist