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 918953003: Include range summary when rolling into chromium. (Closed)

Created:
5 years, 10 months ago by Michael Achenbach
Modified:
5 years, 10 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Include range summary when rolling into chromium. BUG=chromium:457022 TBR=tandrii@chromium.org NOTRY=true LOG=n TEST=./script_test.py Committed: https://crrev.com/15c269b760fdddc1d95e8e15dca6356f3854acb3 Cr-Commit-Position: refs/heads/master@{#26659}

Patch Set 1 #

Patch Set 2 : #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -25 lines) Patch
M tools/release/auto_roll.py View 3 chunks +4 lines, -3 lines 0 comments Download
M tools/release/chromium_roll.py View 1 4 chunks +30 lines, -6 lines 6 comments Download
M tools/release/common_includes.py View 5 chunks +22 lines, -11 lines 2 comments Download
M tools/release/test_scripts.py View 1 4 chunks +16 lines, -5 lines 1 comment Download

Messages

Total messages: 11 (3 generated)
Michael Achenbach
PTAL https://codereview.chromium.org/918953003/diff/20001/tools/release/common_includes.py File tools/release/common_includes.py (left): https://codereview.chromium.org/918953003/diff/20001/tools/release/common_includes.py#oldcode656 tools/release/common_includes.py:656: return latest_hash Just returning here wouldn't be correct ...
5 years, 10 months ago (2015-02-12 10:38:55 UTC) #2
tandrii(chromium)
lgtm https://codereview.chromium.org/918953003/diff/20001/tools/release/chromium_roll.py File tools/release/chromium_roll.py (right): https://codereview.chromium.org/918953003/diff/20001/tools/release/chromium_roll.py#newcode39 tools/release/chromium_roll.py:39: # Maybe delete that parameter entirely? +1 for ...
5 years, 10 months ago (2015-02-13 22:29:08 UTC) #3
Michael Achenbach
https://codereview.chromium.org/918953003/diff/20001/tools/release/chromium_roll.py File tools/release/chromium_roll.py (right): https://codereview.chromium.org/918953003/diff/20001/tools/release/chromium_roll.py#newcode39 tools/release/chromium_roll.py:39: # Maybe delete that parameter entirely? On 2015/02/13 22:29:08, ...
5 years, 10 months ago (2015-02-16 12:20:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918953003/20001
5 years, 10 months ago (2015-02-16 12:21:26 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-16 12:21:41 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/15c269b760fdddc1d95e8e15dca6356f3854acb3 Cr-Commit-Position: refs/heads/master@{#26659}
5 years, 10 months ago (2015-02-16 12:21:56 UTC) #8
tandrii(chromium)
https://codereview.chromium.org/918953003/diff/20001/tools/release/chromium_roll.py File tools/release/chromium_roll.py (right): https://codereview.chromium.org/918953003/diff/20001/tools/release/chromium_roll.py#newcode94 tools/release/chromium_roll.py:94: ROLL_SUMMARY % (self["last_rolled_base"][:8], self["push_base"][:8])) On 2015/02/16 12:20:28, Michael Achenbach ...
5 years, 10 months ago (2015-02-16 14:32:28 UTC) #9
Jakob Kummerow
5 years, 10 months ago (2015-02-16 19:54:55 UTC) #11
Message was sent while issue was closed.
DBC.

https://codereview.chromium.org/918953003/diff/20001/tools/release/chromium_r...
File tools/release/chromium_roll.py (right):

https://codereview.chromium.org/918953003/diff/20001/tools/release/chromium_r...
tools/release/chromium_roll.py:94: ROLL_SUMMARY % (self["last_rolled_base"][:8],
self["push_base"][:8]))
On 2015/02/16 14:32:28, tandrii(chromium) wrote:
> On 2015/02/16 12:20:28, Michael Achenbach wrote:
> > On 2015/02/13 22:29:08, tandrii(chromium) wrote:
> > > 8chars*4bits = 32 bits should be enough for everybody :P
> > 
> > I actually ran a test once over our repo and found out that the normal git
> > summary size of 7 is not enough. There is an ambiguous commit. Therefore we
> need
> > 8.
> 
> So, I actually had some fun with this Birthday's paradox. At V8's current
> commits number (~30k), there is 10% chance of a collision even with 8 chars!
> 
> ============================================================
> commits          probability of hash[:7] collission
>    2324          0.010
>    7522          0.100
>   10000          0.170
>   10946          0.200
>   12429          0.250
>   19291          0.500
>   20000          0.525
>   27282          0.750
>   30000          0.813
>   40000          0.949
>   49723          0.990
>   50000          0.991
> ============================================================
> commits          probability of hash[:8] collission
>    9292          0.010
>   10000          0.012
>   20000          0.045
>   30000          0.099
>   30085          0.100
>   40000          0.170
>   43782          0.200
>   49712          0.250
>   50000          0.253
> ============================================================

Just give it 12 chars or so (or 20, I don't care), to be reasonably safe for the
foreseeable future.

Powered by Google App Engine
This is Rietveld 408576698