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

Fix chrome finder on linux & osx #2687

Merged
merged 3 commits into from
Jul 19, 2017

Conversation

wardpeet
Copy link
Collaborator

We added priority regexes of LIGHTHOUSE_CHROMIUM_PATH and CHROME_PATH even when they weren't populated so we got the regex {(:?)} which matches everything so the first chrome in the list got hit.

We now do explicit checks to add the regex only if they env params are populated

Fixes #2683

@wardpeet
Copy link
Collaborator Author

Should I create a test file just like we have for chrome-launcher?
introduce the export ModuleOverrides pattern?

@arturmiz
Copy link
Contributor

Oops, my bad... thanks for fixing this as I was the one who introduced this bug 👍

@wardpeet
Copy link
Collaborator Author

@arturmiz no worries 😉 It happens to the best of us!

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

this looks good to me, though it looks like maybe yarn test-launcher-formatting isn't happy? May need to adjust a line break or something.

Related to the code but not this fix, do you mind switching .travis.yml to using CHROME_PATH instead of LIGHTHOUSE_CHROMIUM_PATH?

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of the commit author(s) and merge this pull request when appropriate.

@paulirish
Copy link
Member

this looks good to me, though it looks like maybe yarn test-launcher-formatting isn't happy? May need to adjust a line break or something.

fixed

Related to the code but not this fix, do you mind switching .travis.yml to using CHROME_PATH instead of LIGHTHOUSE_CHROMIUM_PATH?

fixed

@paulirish paulirish merged commit 112c2c7 into GoogleChrome:master Jul 19, 2017
@paulirish
Copy link
Member

thx @wardpeet. saved my bacon!

@wardpeet
Copy link
Collaborator Author

thanks @paulirish for the cleanup

@wardpeet wardpeet deleted the bug/chrome-finder branch July 24, 2017 05:07
paulirish pushed a commit to GoogleChrome/chrome-launcher that referenced this pull request Aug 29, 2017
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.

5 participants