-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Make run-tests GitHub Actions aware #9161
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
Conversation
The colorization of the state already works, so I'm wondering how much value this is adding 🙂 |
Hey, this is a Draft, stop looking at it. But as you already did: I'm annoyed by needing to search around in the log to find which tests exactly failed. With this I'm attempting to directly list the test names in the checks tab. It should work once one of the jobs finishes. A similar example is here: https://github.com/haproxy/haproxy/actions/runs/2690570393 An alternative to the change is adding a problem matcher: https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md which does the same thing. But that one might be a little messy with needing to ignore the color codes during matching. Having native support would also allow us to leverage “markdown job summaries” which can be used to do something like this: https://github.com/TimWolla/haproxy-auth-request/actions/runs/2725531285. Of course it would need to be discussed what information would be useful to have in that markdown summary. |
If we ignore the fact that I accidentally marked the skipped tests as warnings, it works more or less like I wanted it to work: |
In my opinion, seeing which test failed is not really helpful; instead the diff(s) would likely be. |
That should be possible with the https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/. The regular "error" markers I've used here do not support multi-line messages. |
Another thing this PR does as of now: The test files will also be "annotated" in the "Files Changed" tab. Either as an unchanged file with failures, or inline in the diff if the test itself is also modified. |
Absolutely, my bad.
Ah , gotcha.
That looks interesting. We could probably also achieve that if we didn't log skipped tests in the CI. (You could still save a few clicks by having a summary right there without clicking into the job)
That sounds useful (as long as skipped/XFAIL tests don't all show up). It's probably hard to show a correct diff though. In it's current form it's verbose and not too meaningful.
(Sorry I know this is a draft, these are just thoughts not criticism) |
Yeah, that's a bug. I've taken the
It might actually be possible thanks to @staabm's comment. I'll look into that, but for now I've pushed a first change to correctly ignore SKIPped tests, which should already make the output much cleaner. |
For posterity some screenshots: Job Summary of https://github.com/php/php-src/actions/runs/2742807430 |
echo #9255 (comment) |
Let's close this for now as there is no clear consensus on how to move forward. I'm not against improving GitHub integration at all, but I also understand that run-tests.php should be somewhat platform agnostic. Maybe we can move the given logic into an adapter that we can provide just for php-src? |
Yeah, that's fair. I don't plan on pursuing this further for now. With the greatly slimmed-down output of run-tests in CI, viewing the log files is manageable. |
No description provided.