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

Issue 2601773004: Adding check for team and component tags in owners files. (Closed)

Created:
3 years, 12 months ago by RobertoCN
Modified:
3 years, 11 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding check for team and component tags in owners files. As a part of presubmit, if an OWNERS file is modified or added the following checks will be performed: - Ensure that at most one line starts with `# COMPONENT: ` exists in the file. - Ensure that at most one line starts with `# TEAM: ` exists in the file, and that it contains exactly one email address. R=stgao@chromium.org,dpranke@chromium.org,phajdan.jr@chromium.org BUG=667954 Review-Url: https://codereview.chromium.org/2601773004 Committed: https://chromium.googlesource.com/chromium/src/+/9b21c11aaa6ad0e4d5bc0cd6e750b67e86ad0fbc

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing comments and adding tests #

Total comments: 12

Patch Set 3 : PTAL, added check against multiple components in one line. #

Total comments: 2

Patch Set 4 : Addressing last comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -0 lines) Patch
M PRESUBMIT.py View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
A tools/checkteamtags/OWNERS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A tools/checkteamtags/PRESUBMIT.py View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A tools/checkteamtags/checkteamtags.py View 1 2 1 chunk +117 lines, -0 lines 0 comments Download
A tools/checkteamtags/checkteamtags_test.py View 1 2 1 chunk +119 lines, -0 lines 0 comments Download
A tools/checkteamtags/run_tests View 1 2 1 chunk +41 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (5 generated)
RobertoCN
PTAL
3 years, 12 months ago (2016-12-28 00:38:02 UTC) #1
Paweł Hajdan Jr.
LGTM w/comments https://codereview.chromium.org/2601773004/diff/1/tools/checkteamtags/checkteamtags.py File tools/checkteamtags/checkteamtags.py (right): https://codereview.chromium.org/2601773004/diff/1/tools/checkteamtags/checkteamtags.py#newcode32 tools/checkteamtags/checkteamtags.py:32: if os.path.exists(full_path): Do we make it a ...
3 years, 11 months ago (2016-12-28 08:43:04 UTC) #2
RobertoCN
I addressed Paweł's comments and added some unit tests. https://codereview.chromium.org/2601773004/diff/1/tools/checkteamtags/checkteamtags.py File tools/checkteamtags/checkteamtags.py (right): https://codereview.chromium.org/2601773004/diff/1/tools/checkteamtags/checkteamtags.py#newcode32 tools/checkteamtags/checkteamtags.py:32: ...
3 years, 11 months ago (2016-12-28 21:47:10 UTC) #3
stgao
lgtm with nits. https://codereview.chromium.org/2601773004/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/2601773004/diff/20001/PRESUBMIT.py#newcode755 PRESUBMIT.py:755: """Check that OWNERS files have consistent ...
3 years, 11 months ago (2017-01-03 22:47:00 UTC) #4
RobertoCN
PTAL, added check against multiple components in one line.
3 years, 11 months ago (2017-01-04 00:17:46 UTC) #5
Dirk Pranke
I defer to phajdan.jr here.
3 years, 11 months ago (2017-01-04 03:11:49 UTC) #6
stgao
lgtm with one more comment. https://codereview.chromium.org/2601773004/diff/40001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/2601773004/diff/40001/PRESUBMIT.py#newcode762 PRESUBMIT.py:762: if input_api.os_path.basename(f.AbsoluteLocalPath()) == 'OWNERS'] ...
3 years, 11 months ago (2017-01-04 06:35:27 UTC) #7
RobertoCN
https://codereview.chromium.org/2601773004/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/2601773004/diff/20001/PRESUBMIT.py#newcode755 PRESUBMIT.py:755: """Check that OWNERS files have consistent TEAM and COMPONENT ...
3 years, 11 months ago (2017-01-04 18:48:59 UTC) #8
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/2601773004/60001
3 years, 11 months ago (2017-01-04 18:49:28 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/832f59964c871959a85b6b64fb2ae81dc5e6441d Cr-Commit-Position: refs/heads/master@{#441420}
3 years, 11 months ago (2017-01-04 19:03:47 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 19:04:06 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/9b21c11aaa6ad0e4d5bc0cd6e750...

Powered by Google App Engine
This is Rietveld 408576698