Skip to content

ci: always install chromedriver version that matches chrome version#3335

Merged
straker merged 8 commits intodevelopfrom
chromedriver-postinstall
Jan 6, 2022
Merged

ci: always install chromedriver version that matches chrome version#3335
straker merged 8 commits intodevelopfrom
chromedriver-postinstall

Conversation

@straker
Copy link
Copy Markdown
Contributor

@straker straker commented Jan 6, 2022

We've continually had problems with chromedriver version. When we had it as @latest we ran into a problem where CircleCI hadn't updated to the latest Chrome version so the test failed. When we pin we run into problems with always using that version of chromedriver even if the version of Chrome is newer.

This pr creates a CircleCI script that will get the current version of Chrome installed and then install the matching chromedriver version. Tested it and it works for both normal test and nightly (after Chrome Beta is installed). This also means we can just pin to the latest version of chromedriver for local dev.

@straker straker requested a review from a team as a code owner January 6, 2022 18:47
@stephenmathieson
Copy link
Copy Markdown
Member

If this is fixing a CI-only problem, why don't we just have CircleCI run the script (rather than coupling it to npm install)?

@straker
Copy link
Copy Markdown
Contributor Author

straker commented Jan 6, 2022

The way I see it this could also be a contributor problem as we are pinning to a version of chromedriver that may not work with the users installed version of chrome.

@straker
Copy link
Copy Markdown
Contributor Author

straker commented Jan 6, 2022

Going to close. Doesn't look like Windows provides a way to get the chrome version through cli. Will look for an alternative solution.

@straker straker closed this Jan 6, 2022
@straker straker reopened this Jan 6, 2022
@straker straker merged commit 2ca9fef into develop Jan 6, 2022
@straker straker deleted the chromedriver-postinstall branch January 6, 2022 21:42
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.

2 participants