Мы запускаем тесты e2e, используя Jenkins
и hortonworks/cloudbreak-web-e2e
С недавних пор мы имеем следующую ошибку:
Failed: unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed (Session info: chrome=68.0.3440.75) (Driver info: chromedriver=2.41.578700 (...),platform=Linux 4.14.33-59.37.amzn2.x86_64 x86_64)
И стек говорит:
WebDriverError: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: chrome=68.0.3440.75)
(Driver info: chromedriver=2.41.578700 (...),platform=Linux 4.14.33-59.37.amzn2.x86_64 x86_64)
at Object.checkLegacyResponse (/usr/local/share/.config/yarn/global/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (/usr/local/share/.config/yarn/global/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/usr/local/share/.config/yarn/global/node_modules/selenium-webdriver/lib/http.js:441:30)
at process._tickCallback (internal/process/next_tick.js:68:7)
From asynchronous test:
Error
at Suite.describe (/usr/share/jenkins_home/workspace/line-Config_e2e-tests_PR-....spec.ts:33:9)
at addSpecsToSuite (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1107:25)
at Env.describe (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1074:7)
at describe (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4399:18)
at Suite.describe (/usr/share/jenkins_home/workspace/line-Config_e2e-tests_PR-....spec.ts:32:5)
at addSpecsToSuite (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1107:25)
at Env.describe (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1074:7)
at describe (/usr/local/share/.config/yarn/global/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4399:18)
at Object.<anonymous> (/usr/share/jenkins_home/workspace/line-Config_e2e-tests_PR-....spec.ts:16:1)
Одна интересная вещь, которую можно увидеть в выводе на консоль Jenkins:
...
I/update - chromedriver: unzipping chromedriver_2.42.zip
I/update - chromedriver: setting permissions to 0755 for /usr/share/jenkins_home/workspace/ine-Config_e2e-tests_master-.../node_modules/webdriver-manager/selenium/chromedriver_2.42
I/downloader - curl -o/usr/share/jenkins_home/workspace/ine-Config_e2e-tests_master-.../node_modules/webdriver-manager/selenium/selenium-server-standalone-3.14.0.jar https://selenium-release.storage.googleapis.com/3.14/selenium-server-standalone-3.14.0.jar
I/downloader - curl -o/usr/share/jenkins_home/workspace/ine-Config_e2e-tests_master-.../node_modules/webdriver-manager/selenium/geckodriver-v0.22.0.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.22.0/geckodriver-v0.22.0-linux64.tar.gz
I/update - geckodriver: unzipping geckodriver-v0.22.0.tar.gz
I/update - geckodriver: setting permissions to 0755 for /usr/share/jenkins_home/workspace/ine-Config_e2e-tests_master-.../node_modules/webdriver-manager/selenium/geckodriver-v0.22.0
Running Protractor tests
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Report destination: build/test-results/screenshots/report.html
I/launcher - Running 1 instances of WebDriver
I/direct - Using ChromeDriver directly...
Started
...F(node:127) UnhandledPromiseRejectionWarning: WebDriverError: no such session
(Driver info: chromedriver=2.41.578700 (...),platform=Linux 4.14.33-59.37.amzn2.x86_64 x86_64)
Сначала говорится "... распаковка chromedriver 2.42", но позже, похоже, используется 2.41 и Chrome (ium) 68?
Локальный запуск тестов e2e (не в образе Docker без Jenkins, поэтому в IntelliJ с Chrome (ium) 69 и Chromedriver 2.42) работает без ошибок.