-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Hide skipped tests in CI #9163
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
Hide skipped tests in CI #9163
Conversation
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.
This is much better, thanks.
I wonder if we should also hide the XFAIL, or at least the diff of it. I highly doubt anybody is actually looking at those anyway. |
Showing details about XFAILs is indeed not particularly useful, but I'd really like to have the option to see all these details in a junit.xml file. For AppVeyor this is done like (relevant are only the first and the last line): php-src/appveyor/test_task.bat Lines 136 to 145 in 8cf9c2f
If there is the need, one can download that file, and investigate. |
@cmb69 Ok, I'll give that a try tomorrow 🙂 |
4bf608f
to
32e44ca
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.
Other than that remark this still LGTM.
d81f9aa
to
02a21d2
Compare
We can likely also ditch |
ACK. Are there any other reasons for WARN except for XFAIL tests passing? |
@cmb69 There's this: Lines 2130 to 2132 in d002a0d
Where you could do |
Great, |
Ah, thank you! Then probably this should either be fixed, or be removed. And it should be documented also (unless removed). Also the "info" case. |
@cmb69 Ah, it only happens if the test fails. If so you'll get a |
@iluuu1994, I'll have a closer look ASAP. |
e2b90af
to
1eae66f
Compare
I'm afraid not and a Google search just revealed other users encountering the same limitation. You might consider using the https://support.github.com/ panel to raise this as a suggestion. My past experiences with the GitHub support went very well. While they won't promise anything of course, they usually responded that they would add a +1 for the feature on their internal roadmap. That said: You might be able to hack around with that by using |
@TimWolla Bummer. Yeah I've tried |
@cmb69 Since the junit file is quite big (over 2mb per test run) do you think it's enough to store it on failure? Edit: Or we limit the time it's stored, probably the better option. |
See https://github.com/actions/upload-artifact#retention-period; TL;DR: it's already limited to 90 days. 5 days or so should be sufficient, though. |
One more idea (that I didn't test): You might be able to generate the name in the first step of the build, using
I didn't see any obvious issues. |
Apparently not: https://github.com/TimWolla/action-install-haproxy/actions/runs/2762375632 |
Yes I thought about this approach too.
From what I read it can't. And as I type you just confirmed it 🙂 |
1eae66f
to
728cada
Compare
@iluuu1994 The above might or might not be possible now with: https://github.blog/changelog/2022-09-26-github-actions-dynamic-names-for-workflow-runs/ |
Seeing all skipped tests named is generally not super useful but it hides the failed tests in a wall of text. We care more about the number of skipped tests which are still being displayed. The one useful things about seeing skipped tests is seeing that the CI is still doing something. However stuck CIs is normally not a problem we have.
If we want this output for older branches too I'll merge it into PHP-8.0 instead.
/cc @TimWolla