Skip to content
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

Upgrade all packages #551

Merged
merged 5 commits into from
Mar 30, 2022
Merged

Upgrade all packages #551

merged 5 commits into from
Mar 30, 2022

Conversation

keithamus
Copy link
Contributor

This upgrades known dependencies to their latest versions, and makes a few small changes to the tsconfig and fetch_request files to upgrade the failing TypeScript build.

@keithamus
Copy link
Contributor Author

keithamus commented Mar 30, 2022

The tests are failing because intern comes pre-baked with its own copy of ChromeDriver, the ChromeDriver it uses only works with Chrome 99.

GitHub Actions runners use Chrome 98 right now (https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#browsers-and-drivers). They also come with ChromeDriver which works with 98. It should be possible to set an environment flag to get intern to use the built in ChromeDriver (actions exposes CHROMEWEBDRIVER env var which points to the chromedriver bin)... somehow 😂

See theintern/intern#1159

@dhh
Copy link
Member

dhh commented Mar 30, 2022

Could we lock intern to a version that has the prebaked 98 for now?

@keithamus keithamus force-pushed the upgrade-all-packages branch 4 times, most recently from f7e67da to c637fb2 Compare March 30, 2022 10:33
Pins Intern chromedriver to the one available in actions

Refs theintern/intern#1159

Co-authored-by: Kristján Oddsson <[email protected]>
Comment on lines +25 to +31
CHROMEVER="$(chromedriver --version | cut -d' ' -f2)"
echo "Actions ChromeDriver is $CHROMEVER"
CONTENTS="$(jq '.tunnelOptions.drivers[0].name = "chrome"' < intern.json)"
CONTENTS="$(echo ${CONTENTS} | jq --arg chromever "$CHROMEVER" '.tunnelOptions.drivers[0].version = $chromever')"
echo "${CONTENTS}" > intern.json
cat intern.json

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script uses the actions environment to determine the correct Chrome version, and writes into Intern.json the version to use. I think intern still downloads it's own copy of ChromeDriver, but at least it gets the tests running 😂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yak riders, saddle up!

@dhh dhh merged commit 5ed3dc1 into hotwired:main Mar 30, 2022
@keithamus keithamus deleted the upgrade-all-packages branch March 30, 2022 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants