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

Issue 21722003: Add presubmit check for run-bindings-tests (Closed)

Created:
7 years, 4 months ago by Nils Barth (inactive)
Modified:
7 years, 4 months ago
CC:
blink-reviews, kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, arv (Not doing code reviews)
Visibility:
Public.

Description

Add presubmit check for run-bindings-tests run-bindings-tests should be run (and succeed) for any changes to Source/bindings. This is particularly important to make sure tests are rebaselined when changes are made to the code generator. This adds a PRESUBMIT.py script to do just that! Checked that this worked by changing a test IDL in Source/bindings/tests/idls ...and running git cl upload ...which then gives a presubmit warning, as desired! Script based on GetUnitTests in tools/depot_tools/presubmit_canned_checks.py ...which seems exemplary. I've stripped it down to the minimum. Ref: http://src.chromium.org/viewvc/chrome/trunk/tools/depot_tools/presubmit_canned_checks.py?view=markup Proximately, this is in reply to Erik's request: https://codereview.chromium.org/19047003/#msg5 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155448

Patch Set 1 #

Patch Set 2 : Fix copyright notice #

Patch Set 3 : Tweak similarity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -0 lines) Patch
A Source/bindings/PRESUBMIT.py View 1 2 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Nils Barth (inactive)
Hiyas, Here's a presubmit check so we'll never forget to run run-bindings-tests again!
7 years, 4 months ago (2013-08-02 05:42:54 UTC) #1
haraken
Given that run-bindings-tests is heavy, we want to run it only when IDL files or ...
7 years, 4 months ago (2013-08-02 05:45:20 UTC) #2
Nils Barth (inactive)
On 2013/08/02 05:45:20, haraken wrote: > Given that run-bindings-tests is heavy, we want to run ...
7 years, 4 months ago (2013-08-02 05:48:05 UTC) #3
haraken
ah, thanks. That's great. The CL looks good to me, but other guys who are ...
7 years, 4 months ago (2013-08-02 05:53:11 UTC) #4
Nils Barth (inactive)
On 2013/08/02 05:53:11, haraken wrote: > ah, thanks. That's great. > > The CL looks ...
7 years, 4 months ago (2013-08-02 05:58:07 UTC) #5
Nils Barth (inactive)
Adam, Marja, could y'all take a look at this please? Quick CL to add a ...
7 years, 4 months ago (2013-08-02 05:58:51 UTC) #6
do-not-use
The CL looks good to me as well although I am not familiar with presubmit ...
7 years, 4 months ago (2013-08-02 06:17:18 UTC) #7
abarth-chromium
I'm not a PRESUBMIT expert. I mostly cargo-culted the root one from Chromium. However, this ...
7 years, 4 months ago (2013-08-02 16:55:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/21722003/6001
7 years, 4 months ago (2013-08-02 16:56:17 UTC) #9
commit-bot: I haz the power
Change committed as 155448
7 years, 4 months ago (2013-08-02 18:09:02 UTC) #10
Nils Barth (inactive)
On 2013/08/02 16:55:54, abarth wrote: > I'm not a PRESUBMIT expert. I mostly cargo-culted the ...
7 years, 4 months ago (2013-08-05 04:48:22 UTC) #11
marja
Late lgtm (was ooo) Random skeptical thought 1: there have been already problems that the ...
7 years, 4 months ago (2013-08-06 16:53:17 UTC) #12
Nils Barth (inactive)
Thanks for the note Marja! 1. We could make run-bindings-tests be a commit-only test, not ...
7 years, 4 months ago (2013-08-07 02:28:17 UTC) #13
haraken
>> 2: what's the benefit of the bindings tests? > > haraken, Christophe: thoughts? Bindings ...
7 years, 4 months ago (2013-08-07 02:38:18 UTC) #14
marja
7 years, 4 months ago (2013-08-07 07:08:06 UTC) #15
Message was sent while issue was closed.
Having this check at upload time is good, since that's the moment when the
developer is in the right mental context to run the results reset. Commit-time
is too late (especially when it's caught by the commit bot).

I started crbug.com/269299 for discussion.

Powered by Google App Engine
This is Rietveld 408576698