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

Issue 2611803003: Script to extract components from OWNERS files throughout the repo. (Closed)

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

Description

Script to extract components from OWNERS files throughout the repo. This script traverses the src tree and parses OWNERS file for COMPONENT/TEAM information. It gathers this information in the form of a machine readable mapping and (optionally) saves it to disk. R=stgao@chromium.org BUG=667952 Review-Url: https://codereview.chromium.org/2611803003 Cr-Commit-Position: refs/heads/master@{#444938} Committed: https://chromium.googlesource.com/chromium/src/+/e4f4643a0ddc25991785406d4a64b0e51d743ddc

Patch Set 1 #

Patch Set 2 : Removing superfluous blank line #

Total comments: 14

Patch Set 3 : Adding tests, handling possible windows casing. #

Patch Set 4 : Rebasing on top of landed change #

Total comments: 4

Patch Set 5 : Addressing feedback. #

Total comments: 2

Patch Set 6 : Adding first version of components_and_team_maps. #

Patch Set 7 : Making robertocn and stgao owners of the generated file #

Patch Set 8 : Simplifying check for existence of owners file. #

Patch Set 9 : Shortening name of generated file. #

Total comments: 4

Patch Set 10 : Addressing feedback and extracting logic to shared module. #

Total comments: 21

Patch Set 11 : Addressing comments #

Total comments: 2

Patch Set 12 : Removing generated file, changing default output dir. #

Patch Set 13 : No longer need these permissions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -0 lines) Patch
A tools/checkteamtags/extract_components.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +100 lines, -0 lines 0 comments Download
A tools/checkteamtags/extract_components_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +126 lines, -0 lines 0 comments Download
A tools/checkteamtags/owners_file_tags.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (7 generated)
RobertoCN
PTAL See dependent patchset for an example of the output of the script.
3 years, 11 months ago (2017-01-03 23:21:32 UTC) #1
stgao
https://codereview.chromium.org/2611803003/diff/20001/tools/checkteamtags/extract_components.py File tools/checkteamtags/extract_components.py (right): https://codereview.chromium.org/2611803003/diff/20001/tools/checkteamtags/extract_components.py#newcode6 tools/checkteamtags/extract_components.py:6: """Parses OWNERS recursively and generates a machine readable component ...
3 years, 11 months ago (2017-01-05 07:56:52 UTC) #3
stgao
https://codereview.chromium.org/2611803003/diff/60001/tools/checkteamtags/extract_components.py File tools/checkteamtags/extract_components.py (right): https://codereview.chromium.org/2611803003/diff/60001/tools/checkteamtags/extract_components.py#newcode10 tools/checkteamtags/extract_components.py:10: `# COMPONENT: Tools>Test>Findit` nit: The code of Findit is ...
3 years, 11 months ago (2017-01-05 17:22:31 UTC) #4
RobertoCN
PTAL, addressed all feedback. https://codereview.chromium.org/2611803003/diff/20001/tools/checkteamtags/extract_components.py File tools/checkteamtags/extract_components.py (right): https://codereview.chromium.org/2611803003/diff/20001/tools/checkteamtags/extract_components.py#newcode6 tools/checkteamtags/extract_components.py:6: """Parses OWNERS recursively and generates ...
3 years, 11 months ago (2017-01-05 19:28:20 UTC) #5
stgao
Mind running the script with a up-to-date checkout and including the json file in this ...
3 years, 11 months ago (2017-01-05 19:48:36 UTC) #6
RobertoCN
On 2017/01/05 19:48:36, stgao (slow on Monday) wrote: > Mind running the script with a ...
3 years, 11 months ago (2017-01-06 00:42:25 UTC) #7
RobertoCN
https://codereview.chromium.org/2611803003/diff/80001/tools/checkteamtags/extract_components.py File tools/checkteamtags/extract_components.py (right): https://codereview.chromium.org/2611803003/diff/80001/tools/checkteamtags/extract_components.py#newcode82 tools/checkteamtags/extract_components.py:82: if owners_file_name and owners_file_name in files: On 2017/01/05 19:48:36, ...
3 years, 11 months ago (2017-01-06 00:54:04 UTC) #8
RobertoCN
Shruthi, Could you review the format, contents and name of the json file generated by ...
3 years, 11 months ago (2017-01-07 00:44:50 UTC) #10
sshruthi1
On 2017/01/07 00:44:50, RobertoCN wrote: > Shruthi, > > Could you review the format, contents ...
3 years, 11 months ago (2017-01-09 19:28:01 UTC) #11
stgao
https://codereview.chromium.org/2611803003/diff/160001/OWNERS File OWNERS (right): https://codereview.chromium.org/2611803003/diff/160001/OWNERS#newcode13 OWNERS:13: per-file component_and_team_maps.json=robertocn@chromium.org This needs updating. https://codereview.chromium.org/2611803003/diff/160001/tools/checkteamtags/extract_components.py File tools/checkteamtags/extract_components.py (right): ...
3 years, 11 months ago (2017-01-09 19:31:58 UTC) #12
RobertoCN
PTAL https://codereview.chromium.org/2611803003/diff/160001/OWNERS File OWNERS (right): https://codereview.chromium.org/2611803003/diff/160001/OWNERS#newcode13 OWNERS:13: per-file component_and_team_maps.json=robertocn@chromium.org On 2017/01/09 19:31:58, stgao (slow on ...
3 years, 11 months ago (2017-01-09 23:58:58 UTC) #13
stgao
Some more comments. https://codereview.chromium.org/2611803003/diff/180001/tools/checkteamtags/extract_components.py File tools/checkteamtags/extract_components.py (right): https://codereview.chromium.org/2611803003/diff/180001/tools/checkteamtags/extract_components.py#newcode43 tools/checkteamtags/extract_components.py:43: 'component_map.json') Fit in previous line. https://codereview.chromium.org/2611803003/diff/180001/tools/checkteamtags/extract_components.py#newcode52 ...
3 years, 11 months ago (2017-01-10 06:19:11 UTC) #14
RobertoCN
PTAL https://codereview.chromium.org/2611803003/diff/180001/tools/checkteamtags/extract_components.py File tools/checkteamtags/extract_components.py (right): https://codereview.chromium.org/2611803003/diff/180001/tools/checkteamtags/extract_components.py#newcode43 tools/checkteamtags/extract_components.py:43: 'component_map.json') On 2017/01/10 06:19:10, stgao (slow on Monday) ...
3 years, 11 months ago (2017-01-11 22:24:58 UTC) #15
stgao
lgtm with name nits @jam, mind a review for adding the new file src/component_map.json? The ...
3 years, 11 months ago (2017-01-12 02:45:32 UTC) #17
jam
On 2017/01/12 02:45:32, stgao (slow on Monday) wrote: > lgtm with name nits > > ...
3 years, 11 months ago (2017-01-12 17:32:33 UTC) #18
stgao
On 2017/01/12 17:32:33, jam wrote: > On 2017/01/12 02:45:32, stgao (slow on Monday) wrote: > ...
3 years, 11 months ago (2017-01-12 23:28:17 UTC) #19
chromium-reviews
On Thu, Jan 12, 2017 at 3:28 PM <stgao@chromium.org> wrote: > On 2017/01/12 17:32:33, jam ...
3 years, 11 months ago (2017-01-13 19:14:36 UTC) #20
jam
On 2017/01/13 19:14:36, chromium-reviews wrote: > On Thu, Jan 12, 2017 at 3:28 PM <mailto:stgao@chromium.org> ...
3 years, 11 months ago (2017-01-13 23:57:32 UTC) #21
chromium-reviews
For the latter case, my reasoning was that if this has to live somewhere, it ...
3 years, 11 months ago (2017-01-14 00:06:05 UTC) #22
jam
I can't think of a reason where it wouldn't be accessible, since it could just ...
3 years, 11 months ago (2017-01-14 01:01:43 UTC) #23
stgao
As John mentioned, we could make that GS storage directory/file accessible to the world, and ...
3 years, 11 months ago (2017-01-14 02:03:02 UTC) #24
RobertoCN
On 2017/01/14 02:03:02, stgao (slow on Monday) wrote: > As John mentioned, we could make ...
3 years, 11 months ago (2017-01-19 22:47:20 UTC) #25
stgao
> > I will be finishing this today. > > Do people like the idea ...
3 years, 11 months ago (2017-01-19 23:30:24 UTC) #26
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/2611803003/240001
3 years, 11 months ago (2017-01-19 23:59:52 UTC) #29
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 01:52:28 UTC) #32
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/e4f4643a0ddc25991785406d4a64...

Powered by Google App Engine
This is Rietveld 408576698