Skip to content
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

GH Actions: fix failing tests on PHP 5.3-5.5 #71

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Nov 1, 2021

I still can't fathom why the tests were previously passing and are failing now. I know they were running fine before as I checked the logs on multiple occasions.

I've now unearthed the documentation from Nette Tester 1.x which what's used to run the tests on PHP 5.3-5.5.
The docs state:

The Tester runs PHP processes with -n option, so without php.ini. More details in the Own php.ini chapter.

... which in a way is similar to the problem we previously ran into for Nette Tester 2.x, which is why the -C (= Use system-wide php.ini) option is used there. Also see #55

As the tests were running and passing on Nette 1.x/PHP 5.3 - 5.5 previously, we never dug in deeper for the peculiarities of Nette 1.x.

So to fix the test runs against PHP 5.3 - 5.5, which are using Nette Tester 1.x, I'm proposing to add a php.ini file to the tests directory specifically for use with PHP 5.3 - 5.5.

This should get the tests passing again.

I'm adding @villfa as co-author to this PR as I ended up with this solution inspired by a PR they pulled to my fork of this repo.

I still can't fathom why the tests were previously passing and are failing now. I know they were running fine before as I checked the logs on multiple occasions.

I've now [unearthed the documentation from Nette Tester 1.x](https://web.archive.org/web/20170602082733/https://tester.nette.org/#toc-how-the-tester-runs) which what's used to run the tests on PHP 5.3-5.5.
The docs state:
> The Tester runs PHP processes with `-n` option, so without `php.ini`. More details in the [Own php.ini chapter](https://web.archive.org/web/20170602082733/https://tester.nette.org/#toc-own-php-ini).

... which in a way is similar to the problem we previously ran into for Nette Tester 2.x, which is why the `-C` (= Use system-wide `php.ini`) option is used there. Also see php-parallel-lint/PHP-Parallel-Lint#55

As the tests were running and passing on Nette 1.x/PHP 5.3 - 5.5 previously, we never dug in deeper for the peculiarities of Nette 1.x.

So to fix the test runs against PHP 5.3 - 5.5, which are using Nette Tester 1.x, I'm proposing to add a `php.ini` file to the `tests` directory specifically for use with PHP 5.3 - 5.5.

This should get the tests passing again.

I'm adding villfa as co-author to this PR as I ended up with this solution inspired by [a PR they pulled to my fork of this repo](#1).

Co-authored-by: Fabien Villepinte <fabien.villepinte@gmail.com>
@grogy grogy merged commit ba57322 into php-parallel-lint:master Dec 1, 2021
@jrfnl jrfnl deleted the feature/ghactions-fix-test-run-php-5.3-5.5 branch December 1, 2021 15:20
@jrfnl jrfnl added this to the 1.x Next milestone Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants