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

Log Chrome's stderr in case of failure #2603

Merged
merged 4 commits into from
Jun 27, 2017
Merged

Log Chrome's stderr in case of failure #2603

merged 4 commits into from
Jun 27, 2017

Conversation

paulirish
Copy link
Member

To improve debugging of #2556, #2544, #2462 , this PR will log out the contents of Chrome's stderr.

It was only through this technique that I found that Chrome had a fatal crash when I was trying to run it in a docker container:

[0627/002609.343419:FATAL:zygote_host_impl_linux.cc(107)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.

We'll see if this will uncover the travis flake (which I presume to be unrelated to --no-sandbox)


Also in this PR: we add the logLevel option to chrome-launcher.

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.

LGTM.

Continuously piping Chrome's stderr to log.error might be good for diagnosing other failures, but for this type of error it is nice to dump it all at once at the end

@@ -237,11 +241,19 @@ export class Launcher {
})
.catch(err => {
if (retries > 10) {
log.error('ChromeLauncher', err.message);
Copy link
Member

Choose a reason for hiding this comment

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

will this end up logging this twice?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. But since it's the most important part of that wall-of-text it seems ok. :)

@brendankenny
Copy link
Member

need to yarn format, apparently

@paulirish paulirish merged commit 6dbe4cf into master Jun 27, 2017
@paulirish paulirish deleted the logstderrolauncher branch June 27, 2017 20:29
paulirish added 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.

2 participants