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

Issue 11567052: Rework the owner-suggesting algorithm. (Closed)

Created:
8 years ago by Dirk Pranke
Modified:
8 years ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, Wez, Zachary Kuznia, Pam (message me for reviews)
Visibility:
Public.

Description

Rework the owner-suggesting algorithm. It turns out that we were weighting all possible owners equally, and picking the last one out of the list. Given the way we traversed owners files, and given that we got rid of the "set noparent"s, this meant that we were always suggesting Ben for just about everything. This change implements a much smarter algorithm that attempts to balance number of reviewers and closeness to the files under review. The unit tests added show specific examples and explanations for why things are chosen the way they are. R=maruel@chromium.org BUG=76727 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=173784

Patch Set 1 #

Patch Set 2 : fix comment about scaling factor #

Total comments: 5

Patch Set 3 : update w/ review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -80 lines) Patch
M owners.py View 1 2 2 chunks +51 lines, -51 lines 0 comments Download
M tests/owners_unittest.py View 1 2 5 chunks +121 lines, -29 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Dirk Pranke
8 years ago (2012-12-14 22:25:19 UTC) #1
M-A Ruel
lgtm with nits. https://codereview.chromium.org/11567052/diff/3001/owners.py File owners.py (right): https://codereview.chromium.org/11567052/diff/3001/owners.py#newcode268 owners.py:268: # This returns a list of ...
8 years ago (2012-12-17 22:27:18 UTC) #2
Dirk Pranke
https://codereview.chromium.org/11567052/diff/3001/owners.py File owners.py (right): https://codereview.chromium.org/11567052/diff/3001/owners.py#newcode268 owners.py:268: # This returns a list of (potential owner, distance-from-dir) ...
8 years ago (2012-12-18 21:13:21 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpranke@chromium.org/11567052/6001
8 years ago (2012-12-18 21:16:07 UTC) #4
commit-bot: I haz the power
8 years ago (2012-12-18 21:18:51 UTC) #5
Message was sent while issue was closed.
Change committed as 173784

Powered by Google App Engine
This is Rietveld 408576698