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

Issue 2065253003: PRESUBMIT: Fix bug in sources-above-target check. (Closed)

Created:
4 years, 6 months ago by kjellander_webrtc
Modified:
4 years, 6 months ago
Reviewers:
aleloi, phoglund
CC:
webrtc-reviews_webrtc.org, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

PRESUBMIT: Fix bug in sources-above-target check. The current implementation is matching against sources which sometimes gets too wide (as seen in https://codereview.webrtc.org/1999113002 where tools.gyp contains a key 'process_outputs_as_sources', making it fail on the GYP dependency. The file checking operations were also performed against group(0) of the regex match, which is all of it. The regex was written with the goal of processing what matched group(1), i.e. what's inside the sources list. TESTED=I ran git cl presubmit against https://codereview.webrtc.org/1999113002 with this patch applied, without getting any errors. Committed: https://crrev.com/74290b9d9c686603f1b8cafe9b4131a03485bf0c Cr-Commit-Position: refs/heads/master@{#13154}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M PRESUBMIT.py View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
kjellander_webrtc
4 years, 6 months ago (2016-06-15 14:44:41 UTC) #3
phoglund
A bug in a regex? Inconceivable! :) lgtm
4 years, 6 months ago (2016-06-15 14:59:29 UTC) #4
aleloi
lgtm
4 years, 6 months ago (2016-06-16 08:19:03 UTC) #5
kjellander_webrtc
4 years, 6 months ago (2016-06-16 08:55:32 UTC) #7
Message was sent while issue was closed.
On 2016/06/16 08:19:03, aleloi wrote:
> lgtm

Odd, this was committed as
https://chromium.googlesource.com/external/webrtc/+/74290b9d9c686603f1b8cafe9...
I must have done something wrong when I patched in aleloi's CL. I should not
commit manually (better use CQ with NOTRY=True).

Powered by Google App Engine
This is Rietveld 408576698