Skip to content

Conversation

@Wirone
Copy link
Member

@Wirone Wirone commented Oct 11, 2025

This little improvement should make this test stable for MacOS (I did few re-runs and it passed every time).


Unfortunately, there still is a problem for Linux, but it's NOT related to test itself, because as you can see here, when running with native PHPUnit, it passes for all matrix' test jobs (failures are only because of output printed from debug echo statements). No timeouts there. Only when run through ParaUnit, it randomly hits timeouts, or runs endlessly when enforceTimeLimit is set to false. Those endless runs may stuck both at the end of the test (after ReactPHP's loop is theoretically finished and test should reach assertion phase) or even before it starts anything (no debug output).

image image

At this point I have no idea what can be done to make it stable on Linux. @Jean85 any thoughts from ParaUnit perspective?

@Wirone Wirone self-assigned this Oct 11, 2025
@Wirone Wirone added topic/tests topic/parallel Issues related to parallel runner labels Oct 11, 2025
@coveralls
Copy link

coveralls commented Oct 11, 2025

Coverage Status

coverage: 94.145% (-0.006%) from 94.151%
when pulling 7636805 on Wirone:codito/fix-parallel-flacky-test
into 3c1eb9e on PHP-CS-Fixer:master.

@Jean85
Copy link
Contributor

Jean85 commented Oct 11, 2025

Oh wow, a parallel runner inside a test inside a parallel test runner, this is tricky! 😅

Unfortunately I switched to a Mac this year, so I fear I cannot reproduce this locally, but I'll try to take a look when I can to see if I can spot anything from the code...

@kubawerlos kubawerlos enabled auto-merge (squash) October 16, 2025 17:36
@kubawerlos kubawerlos merged commit eff5719 into PHP-CS-Fixer:master Oct 16, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic/parallel Issues related to parallel runner topic/tests

4 participants