Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 1544813002: Fix git cl upload deadlock. (Closed)

Created:
5 years ago by Daniel Bratell
Modified:
5 years ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org, jrobbins, M-A Ruel, Bons
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix git cl upload deadlock. If the stderr buffer used in git diff became full before stdout was completely consumed, git cl upload would deadlock. This also sets GIT_PAGER to be perfectly sure no pager is triggered by the git commands run. I haven't seen that as a problem but it's a reasonable (and common) precaution. BUG=558726 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298090

Patch Set 1 #

Patch Set 2 : Other quotation marks. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M third_party/upload.py View 1 3 chunks +11 lines, -5 lines 1 comment Download

Messages

Total messages: 13 (4 generated)
Daniel Bratell
tandrii, can you please take a look?
5 years ago (2015-12-22 13:58:02 UTC) #1
Daniel Bratell
tandrii, can you please take a look? (this time actually adding tandrii to the reviewer ...
5 years ago (2015-12-22 14:02:51 UTC) #3
tandrii(chromium)
LGTM % since it's better than what it used to be. https://codereview.chromium.org/1544813002/diff/20001/third_party/upload.py File third_party/upload.py (right): ...
5 years ago (2015-12-22 14:49:37 UTC) #4
tandrii(chromium)
and thanks for your help!
5 years ago (2015-12-22 14:49:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544813002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544813002/20001
5 years ago (2015-12-22 15:09:04 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=298090
5 years ago (2015-12-22 15:10:46 UTC) #9
Daniel Bratell
On 2015/12/22 14:49:37, tandrii(chromium) wrote: > , but after looking into it, i don't see ...
5 years ago (2015-12-22 15:11:28 UTC) #10
Dirk Pranke
+ some rietveld/upload hackers ... I don't actually see any callers that set print_output=True. Can ...
5 years ago (2015-12-23 03:55:28 UTC) #12
Daniel Bratell
5 years ago (2015-12-23 07:48:02 UTC) #13
Message was sent while issue was closed.
On 2015/12/23 03:55:28, Dirk Pranke wrote:
> + some rietveld/upload hackers ...
> 
> I don't actually see any callers that set print_output=True. Can we just
delete
> those code paths and simplify things? 
> 
> (It looks like this code is also cloned into gcl.py, where we might want to
> clean up some things as well).

gcl.py is fine because it only uses one pipe (stderr is redirected to stdout
which uses the pipe). 

I've uploaded a cleanup patch for upload.py:
https://codereview.chromium.org/1545913002

Powered by Google App Engine
This is Rietveld 408576698