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

Fixing the Build #287

Closed
aik099 opened this issue Jun 25, 2018 · 13 comments · Fixed by #303
Closed

Fixing the Build #287

aik099 opened this issue Jun 25, 2018 · 13 comments · Fixed by #303
Labels

Comments

@aik099
Copy link
Member

aik099 commented Jun 25, 2018

All of recent builds are failing due different reasons.

  • The PHP 5.3 build fails due incorrect Ubuntu version usage (no PHP 5.3 available on it)
  • The PHP 5.x builds fail due Fatal Error (because Selenium 2 doesn't work on latest Firefox provided by Travis CI)
  • The PHP 7.x builds fail (almost all tests failed) due timeout issues connecting to Selenium Server (have no idea why)
  • The PHP 7.x build using remote virtual machine for running selenium works, but have 2 tests failed
@aik099
Copy link
Member Author

aik099 commented Jul 1, 2018

Currently I'm stuck on minkphp/driver-testsuite#21, when attempting to run tests locally.

@jibran
Copy link

jibran commented Jul 1, 2018

Selenium 2 doesn't work on latest Firefox provided by Travis CI

I think this can be fixed by instaclick/php-webdriver@be87042. PR for updating the library is #289 but the larger discussion is #254 which is of course block on this. 🙂

@aik099
Copy link
Member Author

aik099 commented Jul 1, 2018

Maybe. I was able to get test suite working (at least not a fatal error) on PHP 5.5 locally using Chrome. I've attempted to get same effect on Travis CI using #290, but it's not working (see https://travis-ci.org/minkphp/MinkSelenium2Driver/jobs/398802493). Attempt to debug the build also failed with access denied error.

@aik099
Copy link
Member Author

aik099 commented Jan 4, 2019

The PHP 7.x builds fail (almost all tests failed) due timeout issues connecting to Selenium Server (have no idea why)

This was fixed in #278 and #296.

@greg0ire
Copy link

How about just dropping php 5 support, if fixing php 5 builds is all that is left to do?

@aik099
Copy link
Member Author

aik099 commented May 20, 2019

@greg0ire , there are multiple similar issues. There are also PRs created, that use Facebook Driver instead of InstaClick, that also require PHP 7 at least.

@greg0ire
Copy link

Similar issues about dropping php 5? Or something else? I can create a PR to drop php 5 if you want me to, I think doing so in a minor release would not be an issue since php 5 is EOL'ed: https://www.php.net/supported-versions.php

@aik099
Copy link
Member Author

aik099 commented May 20, 2019

Issues/PRs are about switching to different WebDriver implementation. It just happens, that different WebDriver implementation require PHP 7 at minimum and that would in turn force to increase minimal supported version for this repository as well.

@greg0ire
Copy link

I think php 5 could be dropped regardless of what happens on other repositories, and in fact, maybe it could be dropped on all repositories, thus enabling easier decision-making and maintenance. This is probably not the right place to discuss it, but maybe you could consider it?

@aik099
Copy link
Member Author

aik099 commented May 20, 2019

Currently supporting PHP 5 for Mink repositories doesn't create any additional challenges. If cross-dependency issues (e.g. supporting Symfony 4) arise, then they're solved pretty quickly.

@greg0ire
Copy link

Hasn't Mink been incompatible with sf/css-selector 4 for quite a long time now?

@rpkamp
Copy link

rpkamp commented Jun 18, 2019

Currently supporting PHP 5 for Mink repositories doesn't create any additional challenges.

Maybe not, but if it were dropped:

  • we could have strict_types
  • we could have scalar type hints
  • we could have return types
  • array() could be replaced with []
  • Travis would be faster, because it has to run less tests

Just to name a few.

PHP 5 has been EOL for half a year now. If PHP itself doesn't support it anymore, why should Mink?

Just because support is dropped doesn't mean people can't use it anymore btw, they just won't get new features and any bugs they encounter won't be fixed. But if you're on a PHP stack that old I think expecting support from anyone is unrealistic (and unhealthy) anyway.

@RuslanZavacky
Copy link

RuslanZavacky commented Jul 10, 2019

You might also want to look at it from another side - PHP 5 doesn't get any security fixes for invulnerabilities. Supporting any package after such period, contributes to the bad actors intentions and not the community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants