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

Issue 239283008: Add global presubmit that JSON and IDL files can be parsed. (Closed)

Created:
6 years, 8 months ago by Yoyo Zhou
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, extensions-reviews_chromium.org, iannucci
Visibility:
Public.

Description

Add global presubmit that JSON and IDL files can be parsed. Sometimes, changes to JSON/IDL files make them invalid. It's easier to check these at presubmit time than discovering they can't be parsed at runtime. This just moves the check from chrome/common/extensions/api to top-level. This presubmit check excludes files in test/data directories. BUG=366395 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274432

Patch Set 1 #

Patch Set 2 : more exceptions #

Patch Set 3 : better exceptions #

Patch Set 4 : inline test data #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -344 lines) Patch
M PRESUBMIT.py View 1 2 3 4 2 chunks +101 lines, -0 lines 0 comments Download
M PRESUBMIT_test.py View 1 2 3 2 chunks +216 lines, -0 lines 0 comments Download
D chrome/common/extensions/api/PRESUBMIT.py View 1 chunk +0 lines, -72 lines 0 comments Download
D chrome/common/extensions/api/PRESUBMIT_test.py View 1 chunk +0 lines, -82 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_idl_1.idl View 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_idl_2.idl View 1 chunk +0 lines, -13 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_idl_3.idl View 1 chunk +0 lines, -13 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_idl_4.idl View 1 chunk +0 lines, -13 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_idl_5.idl View 1 chunk +0 lines, -10 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_idl_6.idl View 1 chunk +0 lines, -10 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_idl_7.idl View 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_idl_8.idl View 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_idl_9.idl View 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_json_1.json View 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_json_2.json View 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_json_3.json View 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/invalid_json_4.json View 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/valid_idl_basics.idl View 1 chunk +0 lines, -38 lines 0 comments Download
D chrome/common/extensions/api/test_presubmit/valid_json.json View 1 chunk +0 lines, -11 lines 0 comments Download
M tools/json_schema_compiler/idl_schema.py View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Yoyo Zhou
6 years, 8 months ago (2014-04-16 20:57:02 UTC) #1
Paweł Hajdan Jr.
LGTM Also adding Brett for additions to base/ - he may prefer these files to ...
6 years, 8 months ago (2014-04-17 09:04:50 UTC) #2
Yoyo Zhou
brettw: ping. Can you please review whether these new additions to base/test/data are okay?
6 years, 8 months ago (2014-04-24 16:10:23 UTC) #3
brettw
Sorry, I don't understand the reason for this change. Can you cover this in the ...
6 years, 8 months ago (2014-04-24 18:18:19 UTC) #4
Yoyo Zhou
Added some commentary to the CL description.
6 years, 8 months ago (2014-04-24 18:44:25 UTC) #5
Yoyo Zhou
cc: iannucci Brett, there's a bug associated with this, as it turns out.
6 years, 8 months ago (2014-04-24 19:41:04 UTC) #6
Yoyo Zhou
I added another exception to the presubmit check, per discussion on chromium-dev.
6 years, 8 months ago (2014-04-25 20:18:29 UTC) #7
iannucci1
On 2014/04/25 20:18:29, Yoyo Zhou wrote: > I added another exception to the presubmit check, ...
6 years, 8 months ago (2014-04-25 20:31:41 UTC) #8
Paweł Hajdan Jr.
On 2014/04/25 20:31:41, iannucci1 wrote: > Should I add a more-restrictive check for this subdirectory, ...
6 years, 7 months ago (2014-04-28 12:18:05 UTC) #9
brettw
I just noticed you moved the IDL one as well. I'm worried about doing this. ...
6 years, 7 months ago (2014-04-28 22:54:41 UTC) #10
Yoyo Zhou
On 2014/04/28 22:54:41, brettw wrote: > I just noticed you moved the IDL one as ...
6 years, 7 months ago (2014-04-30 00:48:45 UTC) #11
brettw
I think Pawel should check the Python again since it's changed a lot. I'm not ...
6 years, 7 months ago (2014-04-30 18:18:26 UTC) #12
Yoyo Zhou
Pawel, can you take another look? I made the test data inline in PRESUBMIT_test.py. Along ...
6 years, 7 months ago (2014-05-06 01:49:55 UTC) #13
asargent_no_longer_on_chrome
idl_schema.py lgtm
6 years, 7 months ago (2014-05-06 04:14:16 UTC) #14
Yoyo Zhou
Pawel, ping
6 years, 7 months ago (2014-05-14 16:59:32 UTC) #15
Yoyo Zhou
Pawel, ping!
6 years, 7 months ago (2014-05-19 22:38:55 UTC) #16
Paweł Hajdan Jr.
LGTM Feel free to use IM or irc to ping - for long reviews it's ...
6 years, 7 months ago (2014-05-20 14:24:31 UTC) #17
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 7 months ago (2014-05-20 18:57:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/239283008/50001
6 years, 7 months ago (2014-05-20 18:59:46 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 19:49:39 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 19:54:04 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/68729) linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/29072) linux_chromium_gn_rel ...
6 years, 7 months ago (2014-05-20 19:54:04 UTC) #22
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 6 months ago (2014-06-02 21:30:11 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/239283008/70001
6 years, 6 months ago (2014-06-02 21:31:18 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-03 01:37:54 UTC) #25
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 08:44:51 UTC) #26
Message was sent while issue was closed.
Change committed as 274432

Powered by Google App Engine
This is Rietveld 408576698