New issue
Advanced search Search tips

Issue 692159 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

landmines.py doesn't print output when running as a gclient hook

Project Member Reported by charliea@chromium.org, Feb 14 2017

Issue description

This recently caused me problems, so I'm hoping that we can improve gclient.py so that this doesn't bite someone else. 

I spent a half hour or so trying to figure out what I'd done wrong that was causing `fetch v8` to fail. As it turns out, gclient was using landmines.py, which was failing. When I ran landmines.py directly, it gave a clear error message about how I didn't have Visual Studio 2013 installed (although I did have VS 2015 installed), which immediately tipped me off to what the problem was.

It probably makes sense to output landmines.py's output from gclient.py if landmines.py fails.
 
Cc: -charliea@google.com

Comment 2 by aga...@chromium.org, Feb 14 2017

Cc: aga...@chromium.org thakis@chromium.org
Components: -Infra>SDK Infra>Client>Chrome
Owner: ----
Summary: landmines.py doesn't print output when running as a gclient hook (was: gclient doesn't print landmines.py output on failure)
gclient is running landmines via a hook. It's not part of gclient itself. Plenty of hooks print stuff to the command line while running, whether they fail or succeed.

I don't know why landmines fails to print to stdout/stderr when running as a gclient hook, but it isn't the fault of gclient.
Ah, okay: that makes sense. Any suggestion on who might be a good person to talk to about gclient hooks?

Comment 4 by aga...@chromium.org, Feb 14 2017

I CC'd thakis, who appears to be the closest thing to an Owner that landmines has. Hopefully he'll be able to help with the script.

Comment 5 by thakis@chromium.org, Feb 14 2017

Cc: iannucci@chromium.org
I think iannucci wrote landmines. I don't own it, I just tell people not to rely on landmines for things a lot. I wish we could get rid of it eventually.
charliea: did you only see this on Windows? Perhaps it's due to thakis's and dcheng's recent work in gclient, but I can't repro the behavior you describe on Linux.
Labels: -Pri-1 Pri-2
Status: Available (was: Untriaged)
Yep, I only saw this on my Windows laptop. (granted, it was back in February, so I don't have too much more information on what I was doing when I ran into it)
Cc: -iannucci@chromium.org iannu...@google.com

Sign in to add a comment