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

Issue 11413012: Fixing the PRESUBMIT include check some more. (Closed)

Created:
8 years, 1 month ago by marja
Modified:
7 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fixing the PRESUBMIT include check some more. The previous version didn't take into account that source files can have a platform specific suffix. BUG=NONE TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=167996

Patch Set 1 #

Patch Set 2 : Adding tests #

Patch Set 3 : more #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 8

Patch Set 6 : Code review (maruel) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -20 lines) Patch
M OWNERS View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M PRESUBMIT.py View 1 2 3 4 5 5 chunks +32 lines, -18 lines 2 comments Download
A PRESUBMIT_test.py View 1 2 3 4 5 1 chunk +160 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
marja
Hi maruel, could your review a fix again? As an attempt to restore my honor, ...
8 years, 1 month ago (2012-11-15 16:14:56 UTC) #1
M-A Ruel
https://codereview.chromium.org/11413012/diff/3/OWNERS File OWNERS (right): https://codereview.chromium.org/11413012/diff/3/OWNERS#newcode11 OWNERS:11: per-file PRESUBMIT_test.py=maruel@chromium.org Replace the lines above with: per-file PRESUBMIT*.py=maruel@chromium.org ...
8 years, 1 month ago (2012-11-15 16:49:31 UTC) #2
marja
Thanks for comments! https://codereview.chromium.org/11413012/diff/3/OWNERS File OWNERS (right): https://codereview.chromium.org/11413012/diff/3/OWNERS#newcode11 OWNERS:11: per-file PRESUBMIT_test.py=maruel@chromium.org On 2012/11/15 16:49:31, Marc-Antoine ...
8 years, 1 month ago (2012-11-15 17:48:46 UTC) #3
M-A Ruel
lgtm Before setting the bit, try breaking PRESUBMIT_test.py and running: presubmit_support.py PRESUBMIT.py just to confirm ...
8 years, 1 month ago (2012-11-15 17:57:33 UTC) #4
marja
On 2012/11/15 17:57:33, Marc-Antoine Ruel wrote: > lgtm > > Before setting the bit, try ...
8 years, 1 month ago (2012-11-15 17:59:56 UTC) #5
marja
On 2012/11/15 17:59:56, marja wrote: > On 2012/11/15 17:57:33, Marc-Antoine Ruel wrote: > > lgtm ...
8 years, 1 month ago (2012-11-15 18:01:01 UTC) #6
M-A Ruel
On 2012/11/15 18:01:01, marja wrote: > On 2012/11/15 17:59:56, marja wrote: > > On 2012/11/15 ...
8 years, 1 month ago (2012-11-15 18:02:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/11413012/8002
8 years, 1 month ago (2012-11-15 18:15:15 UTC) #8
commit-bot: I haz the power
Presubmit check for 11413012-8002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-15 18:15:20 UTC) #9
marja
Yup, getting this same error locally when trying to git cl dcommit... no idea :/ ...
8 years, 1 month ago (2012-11-15 18:16:12 UTC) #10
M-A Ruel
On 2012/11/15 18:16:12, marja wrote: > Yup, getting this same error locally when trying to ...
8 years, 1 month ago (2012-11-15 18:22:05 UTC) #11
Dirk Pranke
On 2012/11/15 18:22:05, Marc-Antoine Ruel wrote: > On 2012/11/15 18:16:12, marja wrote: > > Yup, ...
8 years, 1 month ago (2012-11-15 19:13:41 UTC) #12
marja
Ahh. Actually the OWNERS check is correct, I'm modifying OWNERS without LGTM from anybody who ...
8 years, 1 month ago (2012-11-15 19:48:55 UTC) #13
Dirk Pranke
On 2012/11/15 19:48:55, marja wrote: > Ahh. Actually the OWNERS check is correct, I'm modifying ...
8 years, 1 month ago (2012-11-15 19:59:35 UTC) #14
Isaac (away)
https://chromiumcodereview.appspot.com/11413012/diff/8002/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/11413012/diff/8002/PRESUBMIT.py#newcode663 PRESUBMIT.py:663: whitelist=[r'.+_test\.py$'])) This seems overly broad. Could we change this ...
7 years, 11 months ago (2013-01-06 10:35:48 UTC) #15
M-A Ruel
https://chromiumcodereview.appspot.com/11413012/diff/8002/PRESUBMIT.py File PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/11413012/diff/8002/PRESUBMIT.py#newcode663 PRESUBMIT.py:663: whitelist=[r'.+_test\.py$'])) On 2013/01/06 10:35:48, Isaac wrote: > This seems ...
7 years, 11 months ago (2013-01-07 15:27:04 UTC) #16
marja
7 years, 11 months ago (2013-01-07 16:34:14 UTC) #17
Message was sent while issue was closed.
On 2013/01/07 15:27:04, Marc-Antoine Ruel wrote:
> https://chromiumcodereview.appspot.com/11413012/diff/8002/PRESUBMIT.py
> File PRESUBMIT.py (right):
> 
>
https://chromiumcodereview.appspot.com/11413012/diff/8002/PRESUBMIT.py#newcod...
> PRESUBMIT.py:663: whitelist=[r'.+_test\.py$']))
> On 2013/01/06 10:35:48, Isaac wrote:
> > This seems overly broad.  Could we change this to run PRESUBMIT_test.py
> instead
> > of any python file that ends with test?
> 
> Oh right, it should be r'[^\\/]+_test\.py$'.

Isn't the problem that this runs all "whatever_test.py" files in the current
directory, not that it runs any .py files in any subdirectories?

(RunUnitTestsInDirectory says: "Lists all files in a directory and runs them.
Doesn't recurse.".)

So, I'd just whitelist=[r'PRESUBMIT\.py'], is that OK?

Powered by Google App Engine
This is Rietveld 408576698