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

Issue 2872493002: Adding PRESUBMIT check on orphan headers files. (Closed)

Created:
3 years, 7 months ago by mbonadei
Modified:
3 years, 7 months ago
Reviewers:
kjellander_webrtc
CC:
webrtc-reviews_webrtc.org, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adding PRESUBMIT check on orphan headers files. We want all .h files to be tracked by a GN target. This CL adds a presubmit check to ensure that newly added targets are tracked by GN. In this CL we add a directory called 'presubmit_checks_lib' so we can avoid to put everything in PRESUBMIT.py (especially if we want to test some checks). I tried to use 'tools-webrtc' but it is not easy to include a python module from a directory with '-' in the name. BUG=webrtc:7514 Review-Url: https://codereview.webrtc.org/2872493002 Cr-Commit-Position: refs/heads/master@{#18069} Committed: https://chromium.googlesource.com/external/webrtc/+/74973ed847fb594fb8b80b809236eeef13b7338c

Patch Set 1 #

Total comments: 20

Patch Set 2 : fixing coding standards + new test #

Patch Set 3 : moving presubmit_checks_lib to tools_webrtc #

Total comments: 2

Patch Set 4 : adding shebang line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -0 lines) Patch
M PRESUBMIT.py View 1 2 2 chunks +31 lines, -0 lines 0 comments Download
A tools_webrtc/presubmit_checks_lib/check_orphan_headers.py View 1 2 3 1 chunk +115 lines, -0 lines 0 comments Download
A tools_webrtc/presubmit_checks_lib/check_orphan_headers_test.py View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
mbonadei
3 years, 7 months ago (2017-05-08 06:53:55 UTC) #2
kjellander_webrtc
https://codereview.webrtc.org/2872493002/diff/1/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.webrtc.org/2872493002/diff/1/PRESUBMIT.py#newcode608 PRESUBMIT.py:608: def CheckOrphanHeaders(input_api, output_api): Prefix this with _ to show ...
3 years, 7 months ago (2017-05-08 18:52:00 UTC) #3
kjellander_webrtc
Now that https://codereview.webrtc.org/2864213004/ is landed you can put this in tools_webrtc
3 years, 7 months ago (2017-05-09 06:37:38 UTC) #4
mbonadei
On 2017/05/09 06:37:38, kjellander_webrtc wrote: > Now that https://codereview.webrtc.org/2864213004/ is landed you can put this ...
3 years, 7 months ago (2017-05-09 07:31:08 UTC) #5
mbonadei
https://codereview.webrtc.org/2872493002/diff/1/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.webrtc.org/2872493002/diff/1/PRESUBMIT.py#newcode608 PRESUBMIT.py:608: def CheckOrphanHeaders(input_api, output_api): On 2017/05/08 18:51:59, kjellander_webrtc wrote: > ...
3 years, 7 months ago (2017-05-09 07:31:22 UTC) #6
kjellander_webrtc
lgtm with comment fixed (probably solves the presubmit error). https://codereview.webrtc.org/2872493002/diff/40001/tools_webrtc/presubmit_checks_lib/check_orphan_headers.py File tools_webrtc/presubmit_checks_lib/check_orphan_headers.py (right): https://codereview.webrtc.org/2872493002/diff/40001/tools_webrtc/presubmit_checks_lib/check_orphan_headers.py#newcode1 tools_webrtc/presubmit_checks_lib/check_orphan_headers.py:1: ...
3 years, 7 months ago (2017-05-09 09:17:35 UTC) #7
mbonadei
PTAL. :) https://codereview.webrtc.org/2872493002/diff/40001/tools_webrtc/presubmit_checks_lib/check_orphan_headers.py File tools_webrtc/presubmit_checks_lib/check_orphan_headers.py (right): https://codereview.webrtc.org/2872493002/diff/40001/tools_webrtc/presubmit_checks_lib/check_orphan_headers.py#newcode1 tools_webrtc/presubmit_checks_lib/check_orphan_headers.py:1: # Copyright (c) 2017 The WebRTC project ...
3 years, 7 months ago (2017-05-09 11:16:40 UTC) #8
kjellander_webrtc
still lgtm
3 years, 7 months ago (2017-05-09 11:33:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2872493002/60001
3 years, 7 months ago (2017-05-09 14:35:34 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 14:58:09 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/external/webrtc/+/74973ed847fb594fb8b80b809...

Powered by Google App Engine
This is Rietveld 408576698