Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@WyriHaximus
Copy link
Member

This PR superseeds: #235

Running the test suite on PHP 8+ results in the following two errors on Ubuntu 24.04. This PR doesn't aim to fix those errors, but to ensure we have a working CI test environment.

There were 2 failures:

1) React\Tests\Dns\Query\TcpTransportExecutorTest::testQueryStaysPendingWhenClientCanNotSendExcessiveMessageInOneChunkWhenServerClosesSocket
React\EventLoop\LoopInterface::removeWriteStream(resource(545) of type (stream)) was not expected to be called.

/home/runner/work/dns/dns/src/Query/TcpTransportExecutor.php:273
/home/runner/work/dns/dns/tests/Query/TcpTransportExecutorTest.php:347

2) React\Tests\Dns\Query\TcpTransportExecutorTest::testQueryRejectsWhenClientKeepsSendingWhenServerClosesSocketWithoutCallingCustomErrorHandler
Failed asserting that exception of type "Error" matches expected exception "RuntimeException". Message was: "Can only throw objects" at
/home/runner/work/dns/dns/tests/Query/TcpTransportExecutorTest.php:413

Running the test suite on PHP 8+ results in the following two errors on
Ubuntu 24.04. This PR doesn't aim to fix those errors, but to ensure we
have a working CI test environment.

```
There were 2 failures:

1) React\Tests\Dns\Query\TcpTransportExecutorTest::testQueryStaysPendingWhenClientCanNotSendExcessiveMessageInOneChunkWhenServerClosesSocket
React\EventLoop\LoopInterface::removeWriteStream(resource(545) of type (stream)) was not expected to be called.

/home/runner/work/dns/dns/src/Query/TcpTransportExecutor.php:273
/home/runner/work/dns/dns/tests/Query/TcpTransportExecutorTest.php:347

2) React\Tests\Dns\Query\TcpTransportExecutorTest::testQueryRejectsWhenClientKeepsSendingWhenServerClosesSocketWithoutCallingCustomErrorHandler
Failed asserting that exception of type "Error" matches expected exception "RuntimeException". Message was: "Can only throw objects" at
/home/runner/work/dns/dns/tests/Query/TcpTransportExecutorTest.php:413
```
@WyriHaximus WyriHaximus added this to the v3.0.0 milestone Jul 22, 2025
@WyriHaximus WyriHaximus requested review from PaulRotmann and clue July 22, 2025 06:04
WyriHaximus added a commit to WyriHaximus-labs/dns that referenced this pull request Jul 22, 2025
In a recent Ubuntu 24.04 runner update something changed that makes PHP
code seemingly more performant. In reactphp#236 this issue is shown to have
something to do with 24.04 because without code changes it works on 22
.04. However, that doesn't fix the underlying issue.

While I'm not sure what changed, by increasing these two numbers by 10
folding them we're back at passing tests,
@WyriHaximus
Copy link
Member Author

This PR has been superseeded by #237

WyriHaximus added a commit to WyriHaximus-labs/dns that referenced this pull request Aug 26, 2025
This ports reactphp#237 from 3.x to 1.x.

In a recent Ubuntu 24.04 runner update something changed that makes PHP
code seemingly more performant. In reactphp#236 this issue is shown to have
something to do with 24.04 because without code changes it works on 22.04. However, that doesn't fix the underlying issue.

While I'm not sure what changed, by increasing these two numbers by 10
folding them we're back at passing tests.
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.

1 participant