Skip to content
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

twister: add option to ignore skipped tests in reports #40780

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

nashif
Copy link
Member

@nashif nashif commented Nov 30, 2021

With --no-skipped, twister will skip over all tests marked as skipped
(filtered) in the junit report.

This is useful for CI where have 1000s of filtered tests that appear in
the report and in some cases cause tools parsing the output to fail or
provide incomplete results.

Fixes #38179

Signed-off-by: Anas Nashif [email protected]

@github-actions github-actions bot added the area: Twister Twister label Nov 30, 2021
@nashif nashif requested review from PerMac, cfriedt and galak November 30, 2021 16:03
@nashif nashif force-pushed the twister/no_skipped branch from cc8a7ee to e7d4bd4 Compare November 30, 2021 16:46
@nashif nashif requested review from hakehuang and removed request for hakehuang, enjiamai and chen-png December 1, 2021 01:59
# Multiple 'property' can be added to 'properties'
# differing by name and value
ET.SubElement(eleTSPropetries, 'property', name="version", value=version)
if not no_skipped or total != skips:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or total != skips: will not cause it showing some skipped tests ?

# Multiple 'property' can be added to 'properties'
# differing by name and value
ET.SubElement(eleTSPropetries, 'property', name="version", value=version)
if not no_skipped or total != skips:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be able to eliminate the double-negative if you rename the variable to report_skipped.

@nashif nashif force-pushed the twister/no_skipped branch 2 times, most recently from b3bdfda to 682fd94 Compare December 4, 2021 17:20
@github-actions
Copy link

github-actions bot commented Feb 3, 2022

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Feb 3, 2022
cfriedt
cfriedt previously approved these changes Feb 3, 2022
Copy link
Member

@cfriedt cfriedt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a rebase, but LGTM

@nashif nashif removed the Stale label Feb 3, 2022
Copy link
Member

@PerMac PerMac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add the same option to json and csv reports for consistency? Sorry for so late review, I missed this PR somehow.

@PerMac PerMac self-requested a review February 3, 2022 10:14
PerMac
PerMac previously approved these changes Feb 3, 2022
Copy link
Member

@PerMac PerMac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed to approve as I don't wont to block this PR. However, the consistency in the reports is important, so please add such option also for json and csv

@enjiamai enjiamai self-requested a review February 3, 2022 12:35
enjiamai
enjiamai previously approved these changes Feb 3, 2022
Copy link
Collaborator

@enjiamai enjiamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we will need this feature, and this only enabled when --no-skipped used.

hakehuang
hakehuang previously approved these changes Feb 6, 2022
@mbolivar-nordic
Copy link
Contributor

@nashif please rebase

ceolin
ceolin previously approved these changes Mar 3, 2022
nashif added 2 commits March 3, 2022 07:56
With --no-skipped-report, twister will skip over all tests marked as
skipped (filtered) in the junit report.

This is useful for CI where have 1000s of filtered tests that appear in
the report and in some cases cause tools parsing the output to fail or
provide incomplete results.

Fixes zephyrproject-rtos#38179

Signed-off-by: Anas Nashif <[email protected]>
Do not report skipped tests to reduce size of report and to make it
parseable.

Signed-off-by: Anas Nashif <[email protected]>
@nashif nashif dismissed stale reviews from ceolin, hakehuang, enjiamai, PerMac, and cfriedt via cbeacb3 March 3, 2022 12:59
@nashif nashif force-pushed the twister/no_skipped branch from 682fd94 to cbeacb3 Compare March 3, 2022 12:59
@nashif nashif merged commit 02eb06f into zephyrproject-rtos:main Mar 3, 2022
@nashif nashif deleted the twister/no_skipped branch March 3, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

twister: only report failures in merged junit output
7 participants