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

Issue 26601003: Fix get_latest_build to return actual latest build (Closed)

Created:
7 years, 2 months ago by mmontgomery
Modified:
7 years, 2 months ago
Reviewers:
ojan
CC:
blink-reviews, Ken Russell (switch to Gerrit)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix get_latest_build to return actual latest build The code and tests implicitly assume that converting from a list to a set to a list again does not change ordering. This seems to be true for small lists, such as the one in the unit tests. For a list of, say, 200 items, this is not true. The fix is to add a call to sorted() before indexing the list of latest cached builds. BUG=305392 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159201

Patch Set 1 #

Patch Set 2 : remove redundant test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M Tools/TestResultServer/handlers/buildershandler.py View 1 chunk +2 lines, -1 line 0 comments Download
M Tools/TestResultServer/handlers/buildershandler_unittest.py View 1 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mmontgomery
FYI for kbr :)
7 years, 2 months ago (2013-10-08 22:47:56 UTC) #1
ojan
Doh! LGTM On Tue, Oct 8, 2013 at 3:47 PM, <mmontgomery@chromium.org> wrote: > Reviewers: ojan, ...
7 years, 2 months ago (2013-10-08 22:56:34 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmontgomery@chromium.org/26601003/4001
7 years, 2 months ago (2013-10-08 22:59:11 UTC) #3
commit-bot: I haz the power
7 years, 2 months ago (2013-10-09 05:19:05 UTC) #4
Message was sent while issue was closed.
Change committed as 159201

Powered by Google App Engine
This is Rietveld 408576698