New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 667954 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocked on:
issue 667952

Blocking:
issue 679540



Sign in to add a comment

Add a presubmit check on CQ to prevent mapping from same component to different team

Project Member Reported by st...@chromium.org, Nov 22 2016

Issue description

After we have a single source for the directory -> component and component -> team mappings, we also need a presubmit check to prevent duplicate mappings which would be confusing.

Two cases here:
1. A component maps to only one team.
2. A directory maps to only one pair of component + team.
 

Comment 1 by sshru...@google.com, Nov 23 2016

Blockedon: 667952
Cc: sshruthi@chromium.org

Comment 2 by st...@chromium.org, Nov 23 2016

Description: Show this description

Comment 3 by st...@chromium.org, Nov 23 2016

Components: Tools>Test>FindIt

Comment 4 by st...@chromium.org, Nov 23 2016

Owner: bustamante@chromium.org
Status: Assigned (was: Available)
As discussed, we could start the second case right away (a directory maps to only one pair of component + team).
We could follow most of the current checkperms setup. We could start with the presubmit check, while postsubmit check is lower priority and is needed ideally, because some CL might bypass CQ.


Presubmit on CQ:
https://cs.chromium.org/chromium/src/tools/checkperms/checkperms.py
https://cs.chromium.org/chromium/src/PRESUBMIT.py?l=759&q=CheckFilePermissions

Example execution on CQ: https://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/311547/steps/presubmit/logs/stdio


Postsubmit check on Waterfall:
https://cs.chromium.org/chromium/src/testing/scripts/checkperms.py
https://cs.chromium.org/chromium/src/testing/buildbot/chromium.linux.json?q=checkperms&l=3475

Example execution on Waterfall:
https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests/builds/49280/steps/checkperms/logs/stdio

Comment 5 by st...@chromium.org, Dec 19 2016

Owner: ----
Status: Available (was: Assigned)

Comment 6 by st...@chromium.org, Dec 20 2016

Owner: robert...@chromium.org
Status: Assigned (was: Available)
Project Member

Comment 7 by bugdroid1@chromium.org, Jan 4 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/832f59964c871959a85b6b64fb2ae81dc5e6441d

commit 832f59964c871959a85b6b64fb2ae81dc5e6441d
Author: robertocn <robertocn@chromium.org>
Date: Wed Jan 04 19:01:30 2017

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
Cr-Commit-Position: refs/heads/master@{#441420}

[modify] https://crrev.com/832f59964c871959a85b6b64fb2ae81dc5e6441d/PRESUBMIT.py
[add] https://crrev.com/832f59964c871959a85b6b64fb2ae81dc5e6441d/tools/checkteamtags/OWNERS
[add] https://crrev.com/832f59964c871959a85b6b64fb2ae81dc5e6441d/tools/checkteamtags/PRESUBMIT.py
[add] https://crrev.com/832f59964c871959a85b6b64fb2ae81dc5e6441d/tools/checkteamtags/checkteamtags.py
[add] https://crrev.com/832f59964c871959a85b6b64fb2ae81dc5e6441d/tools/checkteamtags/checkteamtags_test.py
[add] https://crrev.com/832f59964c871959a85b6b64fb2ae81dc5e6441d/tools/checkteamtags/run_tests

Blocking: 679540

Comment 9 by sshru...@google.com, Jan 13 2017

Labels: Proj-DirectoryOwnership
Roberto, is there anything left here or can we close and reopen if something else comes up that needs to be added to the presubmit?
Status: Fixed (was: Assigned)

Sign in to add a comment