You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using standard rails tests and running into this issue:
Run bundle exec rails test
Rebuilding...
Done in 1626ms.
2025-01-[19](https://github.com/jardim-io/backend/actions/runs/12857703745/job/35845877630?pr=2132#step:16:20) 22:42:26 INFO Selenium [:logger_info] Details on how to use and modify Selenium logger:
https://selenium.dev/documentation/webdriver/troubleshooting/logging
2025-01-19 [22](https://github.com/jardim-io/backend/actions/runs/12857703745/job/35845877630?pr=2132#step:16:23):42:26 WARN Selenium [:selenium_manager] The chromedriver version (132.0.6834.83) detected in PATH at /opt/hostedtoolcache/setup-chrome/chromedriver/stable/x64/chromedriver might not be compatible with the detected chrome version (131.0.6778.204); currently, chromedriver 131.0.6778.264 is recommended for chrome 131.*, so it is advised to delete the driver in PATH and retry
Run options: --seed 41282
# Running:
.........E
Error:
AttachmentFormComponentTest#test_form_happy_path:
Selenium::WebDriver::Error::SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 132
Current browser version is 1[31](https://github.com/jardim-io/backend/actions/runs/12857703745/job/35845877630?pr=2132#step:16:32).0.6778.204 with binary path /usr/bin/google-chrome
test/components/attachment_form_component_test.rb:5:in `test_form_happy_path'
It turns out that browser-actions/setup-chrome installs the correct chrome and chromedriver versions but for whatever reason google-chrome isn't returning the version installed by this action.
Run browser-actions/setup-chrome@v1
Setup chrome stable
Attempting to download chrome stable...
Acquiring chrome stable from https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Installing chrome...
/usr/bin/ar x /home/runner/work/_temp/91af369b-d5bf-4ca9-a8a1-182b1e7efd7b
/usr/bin/tar -xf /tmp/deb-JX6jT3/data.tar.xz --directory /tmp/chrome-JqWEPB --strip-components 4 ./opt/google
Successfully Installed chromium to /opt/hostedtoolcache/setup-chrome/chromium/stable/x64
/opt/hostedtoolcache/setup-chrome/chromium/stable/x64/chrome --version
[0119/224118.629601:WARNING:chrome_main_linux.cc(80)] Read channel stable from /opt/hostedtoolcache/setup-chrome/chromium/stable/x64/CHROME_VERSION_EXTRA
Google Chrome 132.0.6834.83
Successfully setup chromium 132.0.6834.83
Setup chromedriver stable
Attempting to download chromedriver stable...
Acquiring chromedriver stable from https://storage.googleapis.com/chrome-for-testing-public/132.0.6834.83/linux64/chromedriver-linux64.zip
Installing chromedriver...
/usr/bin/unzip -o -q /home/runner/work/_temp/[21](https://github.com/jardim-io/backend/actions/runs/12857703745/job/35845877630?pr=2132#step:5:22)b80ca1-b375-46f3-b06f-8798b9f0b59c
Successfully Installed chromedriver to /opt/hostedtoolcache/setup-chrome/chromedriver/stable/x64
/opt/hostedtoolcache/setup-chrome/chromedriver/stable/x64/chromedriver --version
ChromeDriver 132.0.6834.83 (03d59cf5ecf1d8444838ff9a1e96[23](https://github.com/jardim-io/backend/actions/runs/12857703745/job/35845877630?pr=2132#step:5:24)1304d4ff9c-refs/branch-heads/6834@{#3390})
Successfully setup chromedriver 132.0.6834.83
Output Chrome Info
Run google-chrome --version
Google Chrome 131.0.6778.204
ChromeDriver 132.0.6834.83 (03d59cf5ecf1d8444838ff9a1e96231304d4ff9c-refs/branch-heads/6834@{#3390})
The text was updated successfully, but these errors were encountered:
alvincrespo
changed the title
Chrome and Chromedriver verisons mismatch
Chrome and Chromedriver versions mismatch
Jan 19, 2025
I'm using standard rails tests and running into this issue:
It turns out that browser-actions/setup-chrome installs the correct chrome and chromedriver versions but for whatever reason
google-chrome
isn't returning the version installed by this action.ci.yml
Logs
Install Chrome
Output Chrome Info
The text was updated successfully, but these errors were encountered: