Repository navigation
v2.25.8
Patch release, test suite only: no library code changed. Two unit tests that flaked on slow runners now decide by the order of events instead of wall-clock bounds (#185).
Nothing changes for applications. CI reruns caused by these two tests go away, and both still catch the regressions they guard against.
Testing & CI
OperationReadReconnectLifecycleTest::testAClosedListenerThatSuspendsWhileTheReconnectGivesUp(#185).- Before: it suspended its Closed listener for 0.3 s or 0.8 s against poll deadlines of 3 s and 0.3 s, and checked Closed the moment the timed-out poll returned. On a slow runner the reconnect had not given up by then.
- Now: the listener is held on a gate the test opens. With a 30 s deadline, the poll must still wait while the listener is held, and then gets the exhaustion error. With a 0.3 s deadline, the listener stays held until the poll has returned nothing; the connection may still be Connecting at that point.
OperationReadWakeupTest::testOperationGetsWhatADispatchWaitingOnAPongWriteBrings(#185).- Before: it required its result within 1.5 s. A runner under coverage took 2.58 s, with the code working as designed.
- Now: the result must win a race against a timer of the operation's 3 s deadline, armed before the operation starts. The broken reads it guards against returned only at that deadline, so they cannot win.
- Checked: controlled scheduling delays reproduce both flakes on the old tests, and the new tests pass under them. Temporary production mutations (the read's result wake-up removed, the recovery awaited without the caller's cancellation, the Closed listener detached) still fail the new tests at the intended assertions.
Quality gates
- PHPStan level 8, full repository.
- 3388 unit tests (with data sets), run in CI on PHP 8.2 to 8.5 under Xdebug. Also 157 live integration tests and 49 Behat scenarios; all runnable examples pass.
- The 11 affected cases pass in random order with seeds 185 and 20261011, on EventDriver and StreamSelectDriver, natively and with coverage.
- Coverage unchanged at 99.03%, since no library line changed.
- Infection covered MSI 92.75% (90% floor enforced in CI).
The full record is in the CHANGELOG.