-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
chromedriver version bump after Chrome 74 failures #6094
chromedriver version bump after Chrome 74 failures #6094
Conversation
cc01d35
to
4256127
Compare
Nice, and noting # https://sites.google.com/a/chromium.org/chromedriver/ has all versions |
Noting specific error: |
https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t ...says that It suggests:
linking to puppeteer/puppeteer#1834 |
@@ -1,7 +1,7 @@ | |||
require "test_helper" | |||
|
|||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase | |||
chromeOptions = %w(--headless --disable-gpu --no-sandbox --remote-debugging-port=9222) | |||
chromeOptions = %w(--headless --disable-gpu --no-sandbox --disable-dev-shm-usage --remote-debugging-port=9222) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing this change here...
@@ -30,7 +30,7 @@ RUN apt-get install -y fonts-liberation libappindicator3-1 libasound2 libatk-bri | |||
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ | |||
dpkg -i google-chrome-stable_current_amd64.deb && \ | |||
apt-get -fy install && \ | |||
wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip && \ | |||
wget https://chromedriver.storage.googleapis.com/76.0.3809.68/chromedriver_linux64.zip && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to match this to our chrome version; see #5525 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so:
Unpacking google-chrome-stable (76.0.3809.87-1) ...
2700Setting up google-chrome-stable (76.0.3809.87-1) ...
2701update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
2702update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
2703update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So that should be ok...
Possibly connected karma-runner/karma-chrome-launcher#198 |
I think we may be seeing a broader issue, re the error Some have said using |
Some people are downgrading to |
@@ -30,7 +30,7 @@ RUN apt-get install -y fonts-liberation libappindicator3-1 libasound2 libatk-bri | |||
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to change the version here to fix it to a specific chrome version, but I can't find a version-pegged link to substitute instead of https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
-- hmm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. That says old versions are not provided as they lack security updates. It shows a pathway to finding old binaries but it's complicated and I wasn't able to find one for 75 on my first try. I feel like it's not a best practice to point at old chromes, but we're stuck as chromedriver isn't working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so I'm stuck here, i can't find an old version for chrome 75-- so can't make this change:
wget https://chromedriver.storage.googleapis.com/75.0.3770.140/chromedriver_linux64.zip && \
Do we just wait a bit for a solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.chromium.org/getting-involved/download-chromium shows methods for finding old Chromes. We could try to find a direct link to an old chrome v74 to just get our Travis running again...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, found a chrome 74 to point to: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/638880/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, trying the above link
Yeah, I tried all chrome-driver versions after 73 and none of them seems to work. So, bumping chrome version maybe tried. |
Ok, I have recently dealt with something like this in https://gitlab.com/noosfero/noosfero/merge_requests/1687/diffs#diff-content-0ec615393fffd605e287c92d72dc85217af8d1dd I'll push on top of this. |
Great @alaxalves! |
Although, I am all eyes here, but please ping me if your fix works, as we want to merge it asap. Thank you! |
Great. Waiting for tests to end 😃 |
Addressing #6095 in the short term, follow up there for longer-term fix