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

Issue 2657043002: Handles default revision ranges. (Closed)

Created:
3 years, 11 months ago by jessimb
Modified:
3 years, 10 months ago
Reviewers:
eakuefner, sullivan
CC:
catapult-reviews_chromium.org, perf-dashboard-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Handles default revision ranges. If the user doesn't supply point ids, defaults to most recent milestone point id thru most recent point id. Also display a special format for downstream bots. Demo (must be logged in): https://dev-jessimb-ec068d40-dot-chromeperf.appspot.com/speed_releasing/MemoryTest7 http://i.imgur.com/noqzeaI.png BUG=catapult:#3141

Patch Set 1 #

Patch Set 2 : Added default rev fn-ality #

Patch Set 3 : Added testing and fixed stuff b/c of it #

Patch Set 4 : Refactoring to allow for future cases. #

Total comments: 1

Patch Set 5 : Fixing minor bug #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -28 lines) Patch
M dashboard/dashboard/elements/speed-releasing-table.html View 1 2 3 3 chunks +12 lines, -4 lines 0 comments Download
M dashboard/dashboard/elements/speed-releasing-table-test.html View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M dashboard/dashboard/speed_releasing.py View 1 2 3 4 5 chunks +103 lines, -11 lines 6 comments Download
M dashboard/dashboard/speed_releasing_test.py View 1 2 3 4 5 chunks +50 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 10 (7 generated)
jessimb
PTAL. This handles default milestones and renaming point ids to r_commit_pos. Look for a future ...
3 years, 10 months ago (2017-02-04 00:11:22 UTC) #7
sullivan
I think there needs to be better high-level documentation about the inputs/outputs here. What url ...
3 years, 10 months ago (2017-02-08 22:19:54 UTC) #9
jessimb
3 years, 10 months ago (2017-02-08 22:51:31 UTC) #10
On 2017/02/08 at 22:19:54, sullivan wrote:
> I think there needs to be better high-level documentation about the
inputs/outputs here. What url params are taken, and what do we show based on
those?
> 
>
https://codereview.chromium.org/2657043002/diff/80001/dashboard/dashboard/spe...
> File dashboard/dashboard/speed_releasing.py (right):
> 
>
https://codereview.chromium.org/2657043002/diff/80001/dashboard/dashboard/spe...
> dashboard/dashboard/speed_releasing.py:17: CLANK_MILESTONES = {
> Can you add a high-level comment explaining what these are?
> 
> And it looks like we will just have one set of hard-coded milestones for all
release pages?
> 
>
https://codereview.chromium.org/2657043002/diff/80001/dashboard/dashboard/spe...
> dashboard/dashboard/speed_releasing.py:22: CHROUMIUM_MILESTONES = {
> Nit: CHROMIUM_MILESTONES
> 
>
https://codereview.chromium.org/2657043002/diff/80001/dashboard/dashboard/spe...
> dashboard/dashboard/speed_releasing.py:74: master_bot_pairs, masters =
_GetMasterBotPairs(table_entity.bots)
> It's confusing to change the return value of this function, and then not
update its name. But then what would the new name be,
"_GetMasterBotPairsAndMasterList"? I think that's a sign that the return value
of the function should be simpler. What about:
> 
> master_bot_pairs = _GetMasterBotPairs(table_entity.bots)
> masters = set([m.split('/')[0] for m in master_bot_pairs])
> 
> If master_bot_pairs instead returned a list of tuples, it could be:
> masters = set([m[0] for m in master_bot_pairs])
> 
>
https://codereview.chromium.org/2657043002/diff/80001/dashboard/dashboard/spe...
> dashboard/dashboard/speed_releasing.py:172: def _GetMilestone(masters,
num_from_end=0):
> This is only ever called with num_from_end=0, why not just change it to
_GetLastMilestone()?
> 
> Also this is getting the revision of the last milestone, not the milestone.
The naming is confusing with _GetNewestRev below, it returns a revision and so
does this.
> 
>
https://codereview.chromium.org/2657043002/diff/80001/dashboard/dashboard/spe...
> dashboard/dashboard/speed_releasing.py:204: for key, value in
milestone_dict.iteritems():
> To get rid of the pylint warning:
> 
> for _, value
> 
>
https://codereview.chromium.org/2657043002/diff/80001/dashboard/dashboard/spe...
> dashboard/dashboard/speed_releasing.py:225: def _GetDefaultRev(rev_a, rev_b,
masters, bots, tests):
> This function should be named better, something like
GetMilestoneRevisionsForRevs? I am actually not 100% sure what it's supposed to
do, and why we snap revisions to milestones from the url parameters. Wouldn't we
want to just grab the data between the revisions exactly if they are specified?
And use milestones if milestones are specified?

Just a quick note, I have another CL that I built off of this one. During
creating that one, I realized much of this CL needed to be changed. 
https://codereview.chromium.org/2684813002 it's a work in progress and needs to
be split up, but I hope it will address some of your comments (which I have not
read yet)!

Powered by Google App Engine
This is Rietveld 408576698