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

Issue 2930773003: Closure compilation: Modify compile_js2.py to not swallow errors. (Closed)

Created:
3 years, 6 months ago by dpapad
Modified:
3 years, 6 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, dbeam+watch-closure_chromium.org, jlklein+watch-closure_chromium.org, vitalyp+closure_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Closure compilation: Modify compile_js2.py to not swallow errors. Previously certain types of errors would not cause compile_js2.py to exit with an error code. Only type-checking related errors would trigger an error code, for example a InvalidOptionsException would erroneously not be considered an error. BUG=730866 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2930773003 Cr-Commit-Position: refs/heads/master@{#478463} Committed: https://chromium.googlesource.com/chromium/src/+/9a670d56a08acfc570ce624a52f80237c2552e7c

Patch Set 1 #

Patch Set 2 : Respect error code #

Patch Set 3 : More changes. #

Total comments: 1

Patch Set 4 : Smaller diff. #

Total comments: 3

Patch Set 5 : Don't write to file on failure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M third_party/closure_compiler/compile2.py View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (20 generated)
dpapad
https://codereview.chromium.org/2930773003/diff/40001/third_party/closure_compiler/compile2.py File third_party/closure_compiler/compile2.py (right): https://codereview.chromium.org/2930773003/diff/40001/third_party/closure_compiler/compile2.py#newcode287 third_party/closure_compiler/compile2.py:287: return return_code, bool(errors), stderr An alternative to adding a ...
3 years, 6 months ago (2017-06-08 22:26:05 UTC) #10
Dan Beam
https://codereview.chromium.org/2930773003/diff/80001/third_party/closure_compiler/compile2.py File third_party/closure_compiler/compile2.py (right): https://codereview.chromium.org/2930773003/diff/80001/third_party/closure_compiler/compile2.py#newcode270 third_party/closure_compiler/compile2.py:270: f.write('') this still writes a file in the event ...
3 years, 6 months ago (2017-06-09 03:10:39 UTC) #18
dpapad
https://codereview.chromium.org/2930773003/diff/80001/third_party/closure_compiler/compile2.py File third_party/closure_compiler/compile2.py (right): https://codereview.chromium.org/2930773003/diff/80001/third_party/closure_compiler/compile2.py#newcode270 third_party/closure_compiler/compile2.py:270: f.write('') On 2017/06/09 at 03:10:39, Dan Beam wrote: > ...
3 years, 6 months ago (2017-06-09 22:50:35 UTC) #19
Dan Beam
lgtm https://codereview.chromium.org/2930773003/diff/80001/third_party/closure_compiler/compile2.py File third_party/closure_compiler/compile2.py (right): https://codereview.chromium.org/2930773003/diff/80001/third_party/closure_compiler/compile2.py#newcode270 third_party/closure_compiler/compile2.py:270: f.write('') On 2017/06/09 22:50:35, dpapad wrote: > On ...
3 years, 6 months ago (2017-06-09 23:01:28 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2930773003/100001
3 years, 6 months ago (2017-06-09 23:20:57 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 23:53:56 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/9a670d56a08acfc570ce624a52f8...

Powered by Google App Engine
This is Rietveld 408576698