CI is failing on hotfix-7.10.x with PHP 5.5 and 5.6 (example failure) because Chrome 77 (latest stable) dropped support for Ubuntu Trusty.
There was 1 error:
---------
1) UserWizardCest: Check the php version meets the recommended requirements.
Test tests/install/UserWizardCest.php:testScenarioInstallSuiteCRMWithDefaultConfiguration
[Facebook\WebDriver\Exception\SessionNotCreatedException] session not created exception: Chrome version must be >= 63.0.3239.0
(Driver info: chromedriver=2.36.540471 (9c759b81a907e70363c6312294d30b6ccccc2752),platform=Linux 4.4.0-101-generic x86_64)
#1 /home/travis/build/salesagility/SuiteCRM/vendor/facebook/webdriver/lib/Exception/WebDriverException.php:154
#2 /home/travis/build/salesagility/SuiteCRM/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:331
#3 /home/travis/build/salesagility/SuiteCRM/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:144
#4 Codeception\Subscriber\Module->before
#5 /home/travis/build/salesagility/SuiteCRM/vendor/symfony/event-dispatcher/EventDispatcher.php:212
#6 /home/travis/build/salesagility/SuiteCRM/vendor/symfony/event-dispatcher/EventDispatcher.php:44
Artifacts:
Png: /home/travis/build/salesagility/SuiteCRM/tests/_output/UserWizardCest.testScenarioInstallSuiteCRMWithDefaultConfiguration.travis.ci.hub.fail.png
Html: /home/travis/build/salesagility/SuiteCRM/tests/_output/UserWizardCest.testScenarioInstallSuiteCRMWithDefaultConfiguration.travis.ci.hub.fail.html
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
The command "./vendor/bin/codecept run install --env travis-ci-hub -f --ext DotReporter" exited with 1.
CI would download Chrome and pass.
CI fails to download Chrome Stable.
Upgrade to Xenial for 5.5 and 5.6 (or drop them, teehee), or downgrade Chrome (I'd strongly recommend against this).
More info here: https://travis-ci.community/t/travis-is-downloading-older-chrome-versions-in-place-of-chrome-stable/5040/5
cc: @lazka I think I remember you trying to upgrade the PHP 5.5 and 5.6 builds to xenial?
Okay, so Travis doesn't support 5.5 on Xenial: https://github.com/travis-ci/travis-ci/issues/9881
I guess we can just be stuck on Chrome 76 for 5.5 and 5.6?
mumbles about how we need to drop support for old PHP versions sooner to avoid problems like this
cc: @lazka I think I remember you trying to upgrade the PHP 5.5 and 5.6 builds to xenial?
I kept them at trusty to also test older mysql with older php. But imo moving 5.6 to xenial is a good idea until the chrome issue is fixed.
Where is chrome coming from in CI?
btw, I'm using puppeteer for another project, maybe this would be helpful for pinning chrome:
$ npm install puppeteer@chrome-71
$ node
Welcome to Node.js v12.10.0.
Type ".help" for more information.
> require('puppeteer').executablePath();
'/home/user/Desktop/ewafew/node_modules/puppeteer/.local-chromium/linux-594312/chrome-linux/chrome'
>
I've created #7853
We should probably make the PHP 5.5 build use Chrome 76 for now. Though, can you even install older versions of Chrome easily? I think Google takes them down after every new release. If that's the case, I guess we have to use the default Chrome 73 that comes with Travis' Linux environment.
Okay, so Travis doesn't let you install anything other than chrome stable or beta, and Google does indeed drop the ability to download older versions of Chrome when they make new releases.
So, either we need to install Chrome 76 from some non-Google source or we need to get PHP 5.5 working on Xenial.
So, options:
Most helpful comment
I've created #7853