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

Issue 2510303002: Add check_gn_headers.py to find missing headers in GN (Closed)

Created:
4 years, 1 month ago by wychen
Modified:
3 years, 11 months ago
Reviewers:
Dirk Pranke, stgao
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add check_gn_headers.py to find missing headers in GN BUG=661774 Review-Url: https://codereview.chromium.org/2510303002 Cr-Commit-Position: refs/heads/master@{#442617} Committed: https://chromium.googlesource.com/chromium/src/+/037f6e9e17273a1108a38cf00232d083addb6ee9

Patch Set 1 #

Total comments: 9

Patch Set 2 : address comments and add tests #

Patch Set 3 : pylint, flake8 #

Total comments: 6

Patch Set 4 : try CQ #

Patch Set 5 : cwd #

Patch Set 6 : more bots #

Patch Set 7 : whitelist #

Patch Set 8 : whitelist more #

Patch Set 9 : fix json dump #

Total comments: 1

Patch Set 10 : rebase, Skip folders covered by DEPS #

Patch Set 11 : update gn_missing_headers.txt with Mac output #

Patch Set 12 : pylint and flake8 #

Patch Set 13 : add linux and android files from tryjob runs #

Total comments: 12

Patch Set 14 : address comments #

Patch Set 15 : remove whitelist file #

Total comments: 4

Patch Set 16 : use gclient, simplify filter #

Total comments: 4

Patch Set 17 : address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -0 lines) Patch
A build/check_gn_headers.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +131 lines, -0 lines 0 comments Download
A build/check_gn_headers_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +106 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (18 generated)
stgao
https://codereview.chromium.org/2510303002/diff/1/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/1/build/check_gn_headers.py#newcode20 build/check_gn_headers.py:20: IGNORE_REGEX = re.compile('(^(third_party|build)\/)|(.*/gen/.*)') Just curious, why we ignore third_party? ...
4 years, 1 month ago (2016-11-18 02:17:28 UTC) #1
wychen
https://codereview.chromium.org/2510303002/diff/1/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/1/build/check_gn_headers.py#newcode20 build/check_gn_headers.py:20: IGNORE_REGEX = re.compile('(^(third_party|build)\/)|(.*/gen/.*)') On 2016/11/18 02:17:28, stgao (slow on ...
4 years, 1 month ago (2016-11-18 03:35:40 UTC) #2
wychen
PTAL
4 years, 1 month ago (2016-11-18 03:36:23 UTC) #5
stgao
I can't see more obvious issues, but I'm not familiar enough with ninja/gn. So I'd ...
4 years, 1 month ago (2016-11-19 00:03:50 UTC) #6
stgao
https://codereview.chromium.org/2510303002/diff/40001/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/40001/build/check_gn_headers.py#newcode73 build/check_gn_headers.py:73: parser.add_argument('args', nargs=argparse.REMAINDER) To integrate into the chromium_trybot recipe for ...
4 years, 1 month ago (2016-11-19 00:21:34 UTC) #7
wychen
https://codereview.chromium.org/2510303002/diff/40001/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/40001/build/check_gn_headers.py#newcode40 build/check_gn_headers.py:40: if not f.startswith('build'): On 2016/11/19 00:03:50, stgao (slow on ...
4 years, 1 month ago (2016-11-21 22:58:13 UTC) #13
wychen
The DEPS filtering is done. PTAL https://codereview.chromium.org/2510303002/diff/200001/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/200001/build/check_gn_headers.py#newcode21 build/check_gn_headers.py:21: ninja_out = subprocess.check_output(['ninja', ...
3 years, 11 months ago (2016-12-28 15:33:50 UTC) #17
wychen
Happy-2017 ping!
3 years, 11 months ago (2017-01-04 09:06:19 UTC) #19
Dirk Pranke
On 2017/01/04 09:06:19, wychen wrote: > Happy-2017 ping! Sorry for the delay on this! I'll ...
3 years, 11 months ago (2017-01-05 02:59:41 UTC) #20
wychen
On 2017/01/05 02:59:41, Dirk Pranke wrote: > On 2017/01/04 09:06:19, wychen wrote: > > Happy-2017 ...
3 years, 11 months ago (2017-01-05 03:31:02 UTC) #21
Dirk Pranke
This mostly looks pretty good, apart from style comments about the Python. Let me know ...
3 years, 11 months ago (2017-01-09 06:47:49 UTC) #22
wychen
https://codereview.chromium.org/2510303002/diff/320001/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/320001/build/check_gn_headers.py#newcode19 build/check_gn_headers.py:19: def get_d_headers(out_dir): On 2017/01/09 06:47:49, Dirk Pranke wrote: > ...
3 years, 11 months ago (2017-01-09 11:26:38 UTC) #25
wychen
Thanks for reviewing! https://codereview.chromium.org/2510303002/diff/320001/testing/buildbot/chromium.linux.json File testing/buildbot/chromium.linux.json (right): https://codereview.chromium.org/2510303002/diff/320001/testing/buildbot/chromium.linux.json#newcode1301 testing/buildbot/chromium.linux.json:1301: } On 2017/01/09 06:47:49, Dirk Pranke ...
3 years, 11 months ago (2017-01-09 13:14:53 UTC) #26
Dirk Pranke
https://codereview.chromium.org/2510303002/diff/370004/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/370004/build/check_gn_headers.py#newcode79 build/check_gn_headers.py:79: """Parse the DEPS file and get the folder names""" ...
3 years, 11 months ago (2017-01-09 20:46:24 UTC) #27
Dirk Pranke
lgtm w/ nit.
3 years, 11 months ago (2017-01-09 20:46:40 UTC) #28
Dirk Pranke
On 2017/01/09 13:14:53, wychen wrote: > Thanks for reviewing! > > https://codereview.chromium.org/2510303002/diff/320001/testing/buildbot/chromium.linux.json > File testing/buildbot/chromium.linux.json ...
3 years, 11 months ago (2017-01-09 20:48:40 UTC) #29
wychen
On 2017/01/09 20:48:40, Dirk Pranke wrote: > On 2017/01/09 13:14:53, wychen wrote: > > Thanks ...
3 years, 11 months ago (2017-01-10 02:54:07 UTC) #30
Dirk Pranke
On 2017/01/10 02:54:07, wychen wrote: > On 2017/01/09 20:48:40, Dirk Pranke wrote: > > On ...
3 years, 11 months ago (2017-01-10 03:57:56 UTC) #31
wychen
On 2017/01/10 03:57:56, Dirk Pranke wrote: > On the tryservers, builders run the `analyze` step ...
3 years, 11 months ago (2017-01-10 11:53:40 UTC) #32
wychen
https://codereview.chromium.org/2510303002/diff/370004/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/370004/build/check_gn_headers.py#newcode79 build/check_gn_headers.py:79: """Parse the DEPS file and get the folder names""" ...
3 years, 11 months ago (2017-01-10 15:47:42 UTC) #34
Dirk Pranke
still lgtm. https://codereview.chromium.org/2510303002/diff/410001/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/410001/build/check_gn_headers.py#newcode91 build/check_gn_headers.py:91: out.add(line) Nit: This can be just: if ...
3 years, 11 months ago (2017-01-10 15:58:23 UTC) #35
wychen
https://codereview.chromium.org/2510303002/diff/410001/build/check_gn_headers.py File build/check_gn_headers.py (right): https://codereview.chromium.org/2510303002/diff/410001/build/check_gn_headers.py#newcode91 build/check_gn_headers.py:91: out.add(line) On 2017/01/10 15:58:23, Dirk Pranke wrote: > Nit: ...
3 years, 11 months ago (2017-01-10 17:02:26 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2510303002/430001
3 years, 11 months ago (2017-01-10 17:03:07 UTC) #39
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 17:15:30 UTC) #42
Message was sent while issue was closed.
Committed patchset #17 (id:430001) as
https://chromium.googlesource.com/chromium/src/+/037f6e9e17273a1108a38cf00232...

Powered by Google App Engine
This is Rietveld 408576698