Skip to content

Conversation

charleshofer
Copy link
Collaborator

When compiling pytest JSON reports, exclude skipped tests from the total number of tests run. This is in support of the dashboarding effort and makes calculating the passing test rate with the expression 100.0 * passed / unskipped_total possible. Also adds the option to skip this feature and compute totals as normal with the ROCM_TEST_INCLUDE_SKIPS environment variable.

From here on out, we should use pytest.mark.xfail or pytest.mark.xfail(run=False) to "skip" failing tests.

@charleshofer charleshofer requested a review from a team as a code owner March 14, 2025 03:00
Copy link

@mrodden mrodden left a comment

Choose a reason for hiding this comment

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

Looks good

@mrodden mrodden merged commit 022da91 into rocm-main Mar 14, 2025
8 checks passed
@charleshofer charleshofer deleted the remove-skips-from-report branch March 14, 2025 21:57
@charleshofer
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants