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

Issue 11776016: Fix RunPylint affected files regex issue (Closed)

Created:
7 years, 11 months ago by Isaac (away)
Modified:
7 years, 11 months ago
Reviewers:
iannucci, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org
Visibility:
Public.

Description

Fix RunPylint affected files regex issue The AffectedSourceFiles query matches against files with paths relative to repository root. On the other hand _FindAllFiles checks white_lists and black_lists against files paths relative to PRESUBMIT.py As a result, when a PRESUBMIT.py is not at RepositoryRoot, RunPylint can misbehave. I fix this by modifying the white_lists and black_list regexes to include the relative directory of PRESUBMIT.py. Also adding some logging to pylint and simplified misc logic. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=175364

Patch Set 1 #

Patch Set 2 : Adding logging #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Addressed M-A comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
M presubmit_canned_checks.py View 1 2 3 3 chunks +15 lines, -3 lines 0 comments Download
M tests/presubmit_unittest.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Isaac (away)
7 years, 11 months ago (2013-01-06 08:14:57 UTC) #1
M-A Ruel
lgtm with some fixes. Thanks, I had totally overlooked that fact. https://chromiumcodereview.appspot.com/11776016/diff/4001/presubmit_canned_checks.py File presubmit_canned_checks.py (left): ...
7 years, 11 months ago (2013-01-07 15:32:46 UTC) #2
Isaac (away)
https://chromiumcodereview.appspot.com/11776016/diff/4001/presubmit_canned_checks.py File presubmit_canned_checks.py (left): https://chromiumcodereview.appspot.com/11776016/diff/4001/presubmit_canned_checks.py#oldcode690 presubmit_canned_checks.py:690: if True: On 2013/01/07 15:32:46, Marc-Antoine Ruel wrote: > ...
7 years, 11 months ago (2013-01-07 18:46:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ilevy@chromium.org/11776016/8001
7 years, 11 months ago (2013-01-07 18:46:54 UTC) #4
commit-bot: I haz the power
7 years, 11 months ago (2013-01-07 18:49:27 UTC) #5
Message was sent while issue was closed.
Change committed as 175364

Powered by Google App Engine
This is Rietveld 408576698