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 build #303

Merged
merged 10 commits into from
Aug 28, 2019
Merged

Fixing build #303

merged 10 commits into from
Aug 28, 2019

Conversation

oleg-andreyev
Copy link
Contributor

@oleg-andreyev oleg-andreyev commented Jan 4, 2019

Closes #290
Closes #287

composer.json Show resolved Hide resolved
@aik099
Copy link
Member

aik099 commented Jan 4, 2019

Using Docker as the only way to run tests on Travis CI is too radical solution. Have you tried other things, like locking to other Firefox version or maybe using Google Chrome?

@oleg-andreyev
Copy link
Contributor Author

oleg-andreyev commented Jan 4, 2019

@aik099 I cannot agree that Docker is a radical solution, it's a de-facto container solution, but yes I have a working solution for Google Chrome, I could apply it, but I wanted to keep as much as possible from master + @stof have a different PR for Google Chrome.

@aik099
Copy link
Member

aik099 commented Jan 4, 2019

I cannot agree that Docker is a radical solution, it's a de-facto container solution, but yes I have a working solution for Google Chrome, I could apply it, but I wanted to keep as much as possible from master + @stof have a different PR for Google Chrome.

I see, but then why this PR is needed, when you already know that #300 should fix the same thing in a different way?

@oleg-andreyev
Copy link
Contributor Author

oleg-andreyev commented Jan 4, 2019

Firefox and Chrome are different browsers and MAY behave differently, in ideal I would add testing with firefox / chrome / phantomjs (not supported, but still quite popular), so Docker will be more convenient to use and also it does not cost anything to maintain Docker images.

@oleg-andreyev
Copy link
Contributor Author

oleg-andreyev commented Jan 4, 2019

BTW ChomeDriver is failing with

1) Behat\Mink\Tests\Driver\Custom\TimeoutTest::testInvalidTimeoutSettingThrowsException
Failed asserting that exception of type "Exception" matches expected exception "\Behat\Mink\Exception\DriverException". Message was: "invalid argument: unknown type of timeout:invalid
  (Session info: chrome=71.0.3578.98)
  (Driver info: chromedriver=2.45.615355 (d5698f682d8b2742017df6c81e0bd8e6a3063189),platform=Mac OS X 10.14.2 x86_64)" 

This is because how instaclick/php-webdriver is handling errors

https://github.com/instaclick/php-webdriver/blob/161f35e3c45d9fb93b1171a1394f8d555aab9525/lib/WebDriver/Exception.php#L139

Chrome is returning errno 61, which is not mapped.

composer.json Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
@aik099
Copy link
Member

aik099 commented Jan 4, 2019

Firefox and Chrome are different browsers and MAY behave differently, in ideal I would add testing with firefox / chrome / phantomjs (not supported, but still quite popular), so Docker will be more convenient to use and also it does not cost anything to maintain Docker images.

Probably. OK.

@aik099
Copy link
Member

aik099 commented Jan 4, 2019

BTW ChomeDriver is failing with

1) Behat\Mink\Tests\Driver\Custom\TimeoutTest::testInvalidTimeoutSettingThrowsException
Failed asserting that exception of type "Exception" matches expected exception "\Behat\Mink\Exception\DriverException". Message was: "invalid argument: unknown type of timeout:invalid
  (Session info: chrome=71.0.3578.98)
  (Driver info: chromedriver=2.45.615355 (d5698f682d8b2742017df6c81e0bd8e6a3063189),platform=Mac OS X 10.14.2 x86_64)" 

This is because how instaclick/php-webdriver is handling errors

https://github.com/instaclick/php-webdriver/blob/161f35e3c45d9fb93b1171a1394f8d555aab9525/lib/WebDriver/Exception.php#L139

Chrome is returning errno 61, which is not mapped.

Any way to fix this? Maybe a PR to InstaClick is needed?

@oleg-andreyev
Copy link
Contributor Author

oleg-andreyev commented Jan 4, 2019

Any way to fix this? Maybe a PR to InstaClick is needed?

Without making a PR to InstaClick, impossible.
As up to me, InstaClick seems as abandoned there is no activity for a year almost.
Almost all issues are created by @stof or @aik099.
And as I mentioned before I'd like to push forward with facebook/php-webdriver
#304
instaclick/php-webdriver#87

- added docker for php >= 5.4 (trusty)
- added php 7.3
- updated README
- added DISPLAY env and xvfb for 5.3 (precise)
@oleg-andreyev
Copy link
Contributor Author

Ready. Build green. 5.3 is returned

@oleg-andreyev
Copy link
Contributor Author

@stof @aik099 are there any showstopper for this being merged?

README.md Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
.travis.yml Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
.travis.yml Show resolved Hide resolved
@oleg-andreyev
Copy link
Contributor Author

@stof @aik099 is there anything holding us on merging this PR?

@aik099
Copy link
Member

aik099 commented Feb 18, 2019

Nothing is blocking me. I'm not sure about @stof .

@oleg-andreyev
Copy link
Contributor Author

ping @stof

@L0rD59
Copy link

L0rD59 commented Mar 7, 2019

Hi,

I have some trouble with latest release (1.3.1)

Fatal error: Uncaught WebDriver\Exception\UnknownError: Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: '018fc27d0330', ip: '172.31.0.9', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-45-generic', java.version: '1.8.0_45-internal'
Driver info: driver.version: unknown in /var/www/html/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php on line 350

Call Stack:
    0.0004     362408   1. {main}() /var/www/html/vendor/behat/behat/bin/behat:0
    0.0399    2119624   2. Behat\Testwork\Cli\Application->run() /var/www/html/vendor/behat/behat/bin/behat:34

Behat\Mink\Exception\DriverException: Could not close connection in /var/www/html/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php on line 350

Call Stack:
    0.0004     362408   1. {main}() /var/www/html/vendor/behat/behat/bin/behat:0
    0.0399    2119624   2. Behat\Testwork\Cli\Application->run() /var/www/html/vendor/behat/behat/bin/behat:34
   98.2076   17677000   3. Behat\Mink\Mink->__destruct() /var/www/html/vendor/behat/mink/src/Mink.php:0
   98.2076   17677000   4. Behat\Mink\Mink->stopSessions() /var/www/html/vendor/behat/mink/src/Mink.php:46
   98.2077   17677000   5. Behat\Mink\Session->stop() /var/www/html/vendor/behat/mink/src/Mink.php:186
   98.2077   17677000   6. Behat\Mink\Driver\Selenium2Driver->stop() /var/www/html/vendor/behat/mink/src/Session.php:78

If i use dev-master works as expected and faster

@aik099
Copy link
Member

aik099 commented Mar 7, 2019

Hi,

I have some trouble with latest release (1.3.1)

Fatal error: Uncaught WebDriver\Exception\UnknownError: Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: '018fc27d0330', ip: '172.31.0.9', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-45-generic', java.version: '1.8.0_45-internal'
Driver info: driver.version: unknown in /var/www/html/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php on line 350

Call Stack:
    0.0004     362408   1. {main}() /var/www/html/vendor/behat/behat/bin/behat:0
    0.0399    2119624   2. Behat\Testwork\Cli\Application->run() /var/www/html/vendor/behat/behat/bin/behat:34

Behat\Mink\Exception\DriverException: Could not close connection in /var/www/html/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php on line 350

Call Stack:
    0.0004     362408   1. {main}() /var/www/html/vendor/behat/behat/bin/behat:0
    0.0399    2119624   2. Behat\Testwork\Cli\Application->run() /var/www/html/vendor/behat/behat/bin/behat:34
   98.2076   17677000   3. Behat\Mink\Mink->__destruct() /var/www/html/vendor/behat/mink/src/Mink.php:0
   98.2076   17677000   4. Behat\Mink\Mink->stopSessions() /var/www/html/vendor/behat/mink/src/Mink.php:46
   98.2077   17677000   5. Behat\Mink\Session->stop() /var/www/html/vendor/behat/mink/src/Mink.php:186
   98.2077   17677000   6. Behat\Mink\Driver\Selenium2Driver->stop() /var/www/html/vendor/behat/mink/src/Session.php:78

If i use dev-master works as expected and faster

Hi, @L0rD59 . How your comment is related to changes made in this PR?

@oleg-andreyev
Copy link
Contributor Author

@stof @aik099 if PR is approved can we merge it?

@oleg-andreyev
Copy link
Contributor Author

@stof @aik099 I've resumed work on this branch.
I've added php7.4snapshot (and build is passing)
Also I've reused minkphp/driver-testsuite#37 where 5.3 is dropped.

https://travis-ci.org/minkphp/MinkSelenium2Driver/builds/549208858

@oleg-andreyev
Copy link
Contributor Author

@aik099 @stof can we make this moving?

composer.json Outdated Show resolved Hide resolved
composer.json Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
@oleg-andreyev
Copy link
Contributor Author

@aik099 build is green.

@aik099 aik099 merged commit a385124 into minkphp:master Aug 28, 2019
@aik099
Copy link
Member

aik099 commented Aug 28, 2019

Merging. Thanks @oleg-andreyev .

@aik099 aik099 mentioned this pull request Aug 28, 2019
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.

Fixing the Build
4 participants