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
Build: Add karma-chrome-launcher support #10898
Conversation
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.
Thanks for the PR! I'm in support of this change, but I do have a question.
One more thing: would you mind formatting the commit message following our guidelines? We ask this of committers so that we can keep the generation of our changelog automated. |
6704019
to
b085b6d
Compare
Removed phantomjs dependency from package.json and karma.conf.js. Signed-off-by: ossdev07 <ossdev@puresoftware.com>
b085b6d
to
5848b64
Compare
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.
LGTM, thanks!
Note to whoever merges this: Since this just affects the tests and isn't user-facing, the commit prefix should be changed to |
Thanks for the PR! Is something like chrome/puppeteer required?(I'm not seeing it in devdeps). |
Hi @aladdin-add You can add puppeteer in the devdeps or you can manually download chromium. |
This reverts commit 9bc3f7c.
…#10898)" (eslint#10973)" This reverts commit 536611a.
Thanks for accepting this PR. |
The commit in this PR was reverted in #10973 because it was breaking the build on a few platforms. For example, the tests on our Jenkins release server failed with the following error:
@platinumazure also reported that this change caused the tests to start failing for him locally -- he might be able to give more information about what's going on. Sorry, I had meant to leave an update on this PR when I reverted the change, but I forgot to do so. |
@not-an-aardvark I understand your concern.
I do understand that there must be some other constraints as well which are causing build to fail as you mentioned @platinumazure has reported, I won't mind looking into the issues which are causing builds to breaks on the specific platforms. |
To clarify, does this require Chromium to be installed on the machine independently of ESLint? I was under the impression that all the necessary pieces would get installed by npm. |
@not-an-aardvark Thanks for asking well there are two ways basically by which we can provide chromium binary:
After that we need to export path to chromium binary as i mentioned like
I will be happy to support if you need me to do any modification in the PR. |
Ping @not-an-aardvark @aladdin-add Hey, Sorry to bother you again! |
Hopefully the build failing can be fixed by #11027. |
Thanks for the quick update @aladdin-add |
Removed phantomjs dependency from package.json and karma.conf.js.
Signed-off-by: ossdev07 ossdev@puresoftware.com
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[ ] Bug fix [template]
[ ] New rule [template]
[X] Changes an existing rule [template]
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
Just added the "customLauncher" support which allow to use HeadlessChrome with --no-sandbox flag.
Is there anything you'd like reviewers to focus on?
Phantomjs is not supported anymore should use chrome instead.