Skip to content

Run tests on PHP 7.4 and simplify test matrix - #439

Merged
jsor merged 4 commits into
reactphp:masterfrom
clue-labs:tests
Jul 11, 2020
Merged

Run tests on PHP 7.4 and simplify test matrix#439
jsor merged 4 commits into
reactphp:masterfrom
clue-labs:tests

Conversation

@clue

@clueclue commented Jul 10, 2020

Copy link
Copy Markdown
Member

Builds on top of reactphp/socket#208, reactphp/dns#156, reactphp/promise-timer#41 and others.
Supersedes / closes#436

@clueclue added this to the v1.1.0 milestone Jul 10, 2020
@clueclue changed the title Test against PHP 7.4 and simplify test matrixRun tests on PHP 7.4 and simplify test matrixJul 10, 2020
@clue

clue commented Jul 10, 2020

Copy link
Copy Markdown
MemberAuthor

The build error on PHP 7.4 will be addressed via reactphp/dns#164. Interestingly, it fails in the FunctionalResolverTest class and does not fail anymore by excluding some other test cases. It can only be reproduced by running:

$ vendor/bin/phpunit --coverage-text --exclude-group internet

It can not be reproduced when running on any other PHP version, when ext-xdebug is disabled, when coverage is not collected or when not excluding this group.

This means the test failure is bogus.

The build error on PHP 7.4 will be addressed via
reactphp/dns#164. Interestingly, it fails in the
`FunctionalResolverTest` class and does not fail anymore by excluding
some other test cases. It can only be reproduced by running:
```
$ vendor/bin/phpunit --coverage-text --exclude-group internet
```
It can not be reproduced when running on any other PHP version, when
`ext-xdebug` is disabled, when coverage is not collected or when not
excluding this group.
This means the test failure is bogus.
We work around this by temporarily skipping some test case for now.
@clue

clue commented Jul 10, 2020

Copy link
Copy Markdown
MemberAuthor

This means the test failure is bogus.

I don' want to hold this PR back due to a bogus build error, so let's work around this by temporarily skipping some test cases for now. This is similar to the work around in #428 and can be reverted once reactphp/dns#164 is released in a future version.

PR is ready for review :shipit:

@clue
clue requested review from WyriHaximus and jsorJuly 10, 2020 16:40
@jsor
jsor merged commit 561aaa8 into reactphp:masterJul 11, 2020
@clue
clue deleted the tests branch July 11, 2020 10:16
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@clue@jsor@WyriHaximus