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

[CI] update chrome install steps for Auth builds. #7602

Merged
merged 26 commits into from
Sep 14, 2023
Merged

Conversation

DellaBitta
Copy link
Contributor

@DellaBitta DellaBitta commented Sep 1, 2023

Discussion

Update the Chrome installation steps to use the new method of installation. This unlocks us to test against the latest and greatest chrome versions.

Changes include:

  • The use of puppeteer to install chrome on the CI VMs.
  • An update to the chromedriver npm module so that it may be properly configured to use the new Chrome download URLs.
  • An update of node from v14 to v16 for all CI runners. The latest version of Chrome Driver requires at v16+.
  • The addition of --npm-path npm to all run-s and run-p invocations, as they otherwise fail when invoked via npx on node v16.
  • Removed the installation of chrome in the Test Auth on Firefox If Changed in test-changed-auth.yml as it seemed like it seemed superfluous.

Testing

CI

API Changes

N/A

@changeset-bot
Copy link

changeset-bot bot commented Sep 1, 2023

⚠️ No Changeset found

Latest commit: f432dab

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 1, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 1, 2023

@DellaBitta DellaBitta marked this pull request as ready for review September 7, 2023 14:45
@@ -124,7 +124,7 @@
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-strip": "2.1.0",
"@types/express": "4.17.17",
"chromedriver": "98.0.1",
"chromedriver": "114.0.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

This pins the version to 114.0.2 for manual installs/test runs on our development machines?

Copy link
Contributor Author

@DellaBitta DellaBitta Sep 7, 2023

Choose a reason for hiding this comment

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

Yes, this is the chromedriver node module dependency which downloads a varying version of the chromedriver binary (depending oh the currently installed version of chrome.)

The node dependency needed to be updated in order to support the new URLs where Chrome is now hosted.

sudo apt-get install wget
sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb
sudo apt-get install -f ./google-chrome-stable_114.0.5735.90-1_amd64.deb --allow-downgrades
npx @puppeteer/browsers install chrome@stable
Copy link
Contributor

Choose a reason for hiding this comment

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

fyi @NhienLam

Copy link
Contributor

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

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

Can you also amend the description to specify that the --npm-path option is only needed when npx is involved? The problem (I think) is that npm-run-all mistakenly uses npx instead of npm if the process was started with npx. This was fixed in the fork npm-run-all2 which we may want to look into switching to at some point: bcomnes/npm-run-all2#96

.github/workflows/test-changed-auth.yml Outdated Show resolved Hide resolved
@DellaBitta DellaBitta merged commit 2be12d7 into master Sep 14, 2023
35 checks passed
@DellaBitta DellaBitta deleted the ddb-chrome-driver branch September 14, 2023 12:15
@firebase firebase locked and limited conversation to collaborators Oct 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants