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

Issue 12913028: Output better error messages during build (Closed)

Created:
7 years, 9 months ago by cjhopman
Modified:
7 years, 8 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, frankf+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org, nilesh
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Output better error messages during build The python build scripts use subprocess.check_call() for external commands (aapt, javac, etc). On a failure, it prints the python stacktrace, followed by the command being run (in a form that can be copy-pasted and actually work), followed by the output from the command. Previously, it was printing command output, then command, then stacktrace which is much less useful. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191300

Patch Set 1 : #

Total comments: 13

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -15 lines) Patch
M build/android/dex.py View 1 2 chunks +1 line, -2 lines 0 comments Download
M build/android/jar.py View 1 2 chunks +1 line, -2 lines 0 comments Download
M build/android/javac.py View 1 2 chunks +1 line, -2 lines 0 comments Download
M build/android/process_resources.py View 1 2 2 chunks +9 lines, -7 lines 0 comments Download
M build/android/pylib/build_utils.py View 1 2 2 chunks +37 lines, -0 lines 0 comments Download
M build/android/strip_library_for_apk.py View 1 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
cjhopman
What do you guys think? The output is much nicer, but the function is kind ...
7 years, 9 months ago (2013-03-28 00:53:27 UTC) #1
newt (away)
I like this. javac failures are currently quite messy, and this should help a lot. ...
7 years, 9 months ago (2013-03-28 03:26:50 UTC) #2
Isaac (away)
Drive by comment. This looks good, though! Check out depot_tools/subprocess2 if you have any questions ...
7 years, 9 months ago (2013-03-28 06:54:25 UTC) #3
cjhopman
https://codereview.chromium.org/12913028/diff/2001/build/android/pylib/build_utils.py File build/android/pylib/build_utils.py (right): https://codereview.chromium.org/12913028/diff/2001/build/android/pylib/build_utils.py#newcode62 build/android/pylib/build_utils.py:62: def CheckCall(args, cwd=None): On 2013/03/28 06:54:25, Isaac wrote: > ...
7 years, 9 months ago (2013-03-28 23:30:20 UTC) #4
Yaron
lgtm https://codereview.chromium.org/12913028/diff/27002/build/android/process_resources.py File build/android/process_resources.py (right): https://codereview.chromium.org/12913028/diff/27002/build/android/process_resources.py#newcode88 build/android/process_resources.py:88: 'crunch', Nit: fix indent https://codereview.chromium.org/12913028/diff/27002/build/android/pylib/build_utils.py File build/android/pylib/build_utils.py (right): ...
7 years, 9 months ago (2013-03-28 23:53:10 UTC) #5
newt (away)
lgtm https://codereview.chromium.org/12913028/diff/2001/build/android/pylib/build_utils.py File build/android/pylib/build_utils.py (right): https://codereview.chromium.org/12913028/diff/2001/build/android/pylib/build_utils.py#newcode78 build/android/pylib/build_utils.py:78: copyable_command = ('( cd ' + os.path.abspath(cwd) + ...
7 years, 9 months ago (2013-03-29 00:20:07 UTC) #6
cjhopman
https://codereview.chromium.org/12913028/diff/27002/build/android/process_resources.py File build/android/process_resources.py (right): https://codereview.chromium.org/12913028/diff/27002/build/android/process_resources.py#newcode88 build/android/process_resources.py:88: 'crunch', On 2013/03/28 23:53:10, Yaron wrote: > Nit: fix ...
7 years, 9 months ago (2013-03-29 00:39:50 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/12913028/39001
7 years, 9 months ago (2013-03-29 00:40:39 UTC) #8
commit-bot: I haz the power
7 years, 8 months ago (2013-03-29 05:06:36 UTC) #9
Message was sent while issue was closed.
Change committed as 191300

Powered by Google App Engine
This is Rietveld 408576698