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

Issue 1299893002: Improve error handling for js2gtest C++ generation. (Closed)

Created:
5 years, 4 months ago by Peter Lundblad
Modified:
5 years, 3 months ago
Reviewers:
David Tseng, sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve error handling for js2gtest C++ generation. Previously, an error in a javascript file would cause the error to be written to the -gen.cc file and fed to the C++ compiler (rarely accepts such output as valid C++). This change causes the generation build action to fail and the error to be output to the stderr of the ninja process instead. Also, stack traces are improved by annotating eval'd files with sourceURL comments when running the generator. BUG=None Committed: https://crrev.com/2cadf1ff8e88b5471c0926ee247af5eb6eb297e6 Cr-Commit-Position: refs/heads/master@{#345964}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Switch the output generator to use javascript template strings. #

Total comments: 1

Patch Set 3 : Add OWNERS #

Patch Set 4 : Add missing newline. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -41 lines) Patch
A chrome/test/base/OWNERS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/js2gtest.js View 1 2 3 10 chunks +84 lines, -41 lines 0 comments Download
M tools/gypv8sh.py View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1299893002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1299893002/1
5 years, 4 months ago (2015-08-18 13:16:58 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-18 13:57:44 UTC) #4
Peter Lundblad
5 years, 4 months ago (2015-08-19 07:27:10 UTC) #6
sky
I'm not familiar with chrome/test/base/js2gtest.js. Can you find another owner?
5 years, 4 months ago (2015-08-19 16:53:18 UTC) #7
Peter Lundblad
+David. @sky: chromevox uses this test framework a lot, would you be fine adding chromevox ...
5 years, 4 months ago (2015-08-20 08:45:12 UTC) #9
sky
The people that have contributed substantially to this file should be owners. Looks like Sheridan ...
5 years, 4 months ago (2015-08-20 16:53:06 UTC) #10
David Tseng
lgtm https://codereview.chromium.org/1299893002/diff/1/chrome/test/base/js2gtest.js File chrome/test/base/js2gtest.js (right): https://codereview.chromium.org/1299893002/diff/1/chrome/test/base/js2gtest.js#newcode409 chrome/test/base/js2gtest.js:409: output(); Optional: want to use the function() {/*! ...
5 years, 3 months ago (2015-08-26 23:18:00 UTC) #11
Peter Lundblad
dtseng@chromium.org writes: > lgtm > > > > > https://codereview.chromium.org/1299893002/diff/1/chrome/test/base/js2gtest.js > File chrome/test/base/js2gtest.js (right): > ...
5 years, 3 months ago (2015-08-27 16:07:37 UTC) #12
David Tseng
lgtm https://codereview.chromium.org/1299893002/diff/20001/chrome/test/base/js2gtest.js File chrome/test/base/js2gtest.js (right): https://codereview.chromium.org/1299893002/diff/20001/chrome/test/base/js2gtest.js#newcode202 chrome/test/base/js2gtest.js:202: return read(path) + '//# sourceURL=' + path; nit: ...
5 years, 3 months ago (2015-08-27 17:06:31 UTC) #13
Peter Lundblad
@sky: I added David to OWNERS and he reviewed the code. Can you have a ...
5 years, 3 months ago (2015-08-27 17:24:56 UTC) #14
sky
LGTM
5 years, 3 months ago (2015-08-27 17:26:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1299893002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1299893002/60001
5 years, 3 months ago (2015-08-27 19:10:49 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-08-27 19:58:46 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-08-27 19:59:55 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2cadf1ff8e88b5471c0926ee247af5eb6eb297e6
Cr-Commit-Position: refs/heads/master@{#345964}

Powered by Google App Engine
This is Rietveld 408576698