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

Issue 12377023: Use author as determined from scm if we can not get it from rietveld (Closed)

Created:
7 years, 9 months ago by Dirk Pranke
Modified:
7 years, 9 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, Pam (message me for reviews)
Visibility:
Public.

Description

Use author as determined from scm if we can not get it from rietveld Until an issue is uploaded to Rietveld, we don't know the official email address to use for an owners check. There are three ways to fix this: we could attempt to log in to rietveld prior to doing the check and extract the address to use, or we could use ~/.last_codereview_email_address, or we can use the email address we can determine from the checkout. All three options have flaws; the first is particularly awkward since there doesn't seem to be a good way to fetch the email without posting an issue. The second is flawed if we use different addresses for different repos, and the third is flawed if the checkout's email address is different from the rietveld address, or if it is anonymous. However, since this is only being used for owners checks (in this case), anonymous checkouts probably don't matter, and hopefully the cases where the email addresses differ are rare. R=maruel@chromium.org BUG=118388, 150049 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=186259

Patch Set 1 #

Total comments: 4

Patch Set 2 : update w/ review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -21 lines) Patch
M presubmit_canned_checks.py View 1 1 chunk +7 lines, -13 lines 0 comments Download
M tests/presubmit_unittest.py View 4 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Dirk Pranke
WDYT of this? I'm not entirely happy with it, but I think it'll fix 80-90% ...
7 years, 9 months ago (2013-02-28 21:12:42 UTC) #1
M-A Ruel
I think I'd prefer to auth before running the test but it has the disadvantage ...
7 years, 9 months ago (2013-03-03 01:58:57 UTC) #2
M-A Ruel
On 2013/03/03 01:58:57, Marc-Antoine Ruel wrote: > I think I'd prefer to auth before running ...
7 years, 9 months ago (2013-03-03 01:59:23 UTC) #3
Dirk Pranke
> I think I'd prefer to auth before running the test but it has the ...
7 years, 9 months ago (2013-03-04 21:41:12 UTC) #4
Marc-Antoine Ruel (Google)
lgtm
7 years, 9 months ago (2013-03-05 02:05:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpranke@chromium.org/12377023/5002
7 years, 9 months ago (2013-03-05 21:03:14 UTC) #6
commit-bot: I haz the power
7 years, 9 months ago (2013-03-05 21:06:04 UTC) #7
Message was sent while issue was closed.
Change committed as 186259

Powered by Google App Engine
This is Rietveld 408576698