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

Issue 2211163003: Update new botlist to use dimensions endpoint (Closed)

Created:
4 years, 4 months ago by kjlubick
Modified:
4 years, 4 months ago
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org, rmistry
Base URL:
https://chromium.googlesource.com/external/github.com/luci/luci-py@limiting
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

Update new botlist to use dimensions endpoint - Use new dimensions endpoint to get full fleet dimensions. Before, you would only be able to filter based on the things already in the list, which is a problem if the thing you want doesn't show up in the first [BOT_LIST_LIMIT] commits. - Dimensions are passed from the client-side filter to the server-side filter. The items we have will be filtered out while waiting for the server to give us more. The spinner will be active while any of the ajax requests are active. - The "devices" dimension was split (server side) into device_type, device_os, and android_devices. The last one is the number of connected, ready devices. - Added new method _attribute, which will look for an attribute in the "dimensions" and fallback to "state". This allows a more consistent "API" than hodge-podge _devices/_state all over the place. - Quarantined bot message actually show up (pulled from state). - Dead bot message augmented with human friendly "last seen" message. - Disk space column shown up, which is pulled exclusively from state, not a dimension. It is displayed in a human friendly manner. - Remove "auto download" of demo json from Makefile - Sinon was updated to bring in a bug fix. BUG=631047 Committed: https://github.com/luci/luci-py/commit/bf775c6fcaaa324474208dfcaaac75b2a226789f

Patch Set 1 #

Patch Set 2 : Midway through adding disk space #

Patch Set 3 : Finish up disk space and other refactoring #

Patch Set 4 : Add documentation #

Patch Set 5 : rebuild #

Patch Set 6 : Make devices column make more sense #

Total comments: 16

Patch Set 7 : First round of feedback #

Patch Set 8 : put demo data in luci-py wiki #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+822 lines, -421 lines) Patch
M appengine/swarming/elements/Makefile View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M appengine/swarming/elements/build/elements.html View 1 2 3 4 5 6 19 chunks +430 lines, -270 lines 0 comments Download
M appengine/swarming/elements/build/js/common.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M appengine/swarming/elements/package.json View 1 chunk +1 line, -1 line 0 comments Download
M appengine/swarming/elements/res/imp/botlist/bot-filters.html View 1 2 3 4 5 6 chunks +51 lines, -26 lines 3 comments Download
M appengine/swarming/elements/res/imp/botlist/bot-list.html View 1 2 3 4 5 9 chunks +105 lines, -27 lines 0 comments Download
M appengine/swarming/elements/res/imp/botlist/bot-list-data.html View 1 2 3 4 5 6 6 chunks +102 lines, -60 lines 0 comments Download
M appengine/swarming/elements/res/imp/botlist/bot-list-demo.html View 1 3 chunks +12 lines, -5 lines 0 comments Download
M appengine/swarming/elements/res/imp/botlist/bot-list-shared.html View 1 2 3 4 5 6 7 chunks +53 lines, -27 lines 0 comments Download
M appengine/swarming/elements/res/imp/index/swarming-index-demo.html View 1 chunk +1 line, -1 line 0 comments Download
M appengine/swarming/elements/res/js/common.js View 1 2 3 4 5 6 2 chunks +64 lines, -2 lines 2 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 33 (14 generated)
kjlubick
New Dead/quarantined messages: https://screenshot.googleplex.com/Wegkkor5c63 New disk space columns: https://screenshot.googleplex.com/STgE4TRF5iK https://screenshot.googleplex.com/mKTBiRfmm2q New device-based columns: https://screenshot.googleplex.com/teVBQZvgu33 Live ...
4 years, 4 months ago (2016-08-08 15:12:35 UTC) #11
jcgregorio
Still reviewing, but sending what I've got now. https://codereview.chromium.org/2211163003/diff/100001/appengine/swarming/elements/Makefile File appengine/swarming/elements/Makefile (right): https://codereview.chromium.org/2211163003/diff/100001/appengine/swarming/elements/Makefile#newcode13 appengine/swarming/elements/Makefile:13: # ...
4 years, 4 months ago (2016-08-08 16:14:42 UTC) #12
kjlubick
https://codereview.chromium.org/2211163003/diff/100001/appengine/swarming/elements/Makefile File appengine/swarming/elements/Makefile (right): https://codereview.chromium.org/2211163003/diff/100001/appengine/swarming/elements/Makefile#newcode13 appengine/swarming/elements/Makefile:13: # See gs://luci-demo-data/swarming/ for *demo.json On 2016/08/08 at 16:14:42, ...
4 years, 4 months ago (2016-08-08 19:07:10 UTC) #13
M-A Ruel
https://codereview.chromium.org/2211163003/diff/100001/appengine/swarming/elements/Makefile File appengine/swarming/elements/Makefile (right): https://codereview.chromium.org/2211163003/diff/100001/appengine/swarming/elements/Makefile#newcode13 appengine/swarming/elements/Makefile:13: # See gs://luci-demo-data/swarming/ for *demo.json On 2016/08/08 19:07:10, kjlubick ...
4 years, 4 months ago (2016-08-08 19:31:23 UTC) #15
chromium-reviews
bot-list-demo.json is 1.5MB On Mon, Aug 8, 2016 at 3:31 PM, <maruel@chromium.org> wrote: > > ...
4 years, 4 months ago (2016-08-08 19:34:41 UTC) #16
M-A Ruel
On 2016/08/08 19:34:41, chromium-reviews wrote: > bot-list-demo.json is 1.5MB You could store it in luci-py.wiki ...
4 years, 4 months ago (2016-08-08 19:36:47 UTC) #17
kjlubick
On 2016/08/08 at 19:36:47, maruel wrote: > On 2016/08/08 19:34:41, chromium-reviews wrote: > > bot-list-demo.json ...
4 years, 4 months ago (2016-08-08 20:24:03 UTC) #18
M-A Ruel
On 2016/08/08 20:24:03, kjlubick wrote: > On 2016/08/08 at 19:36:47, maruel wrote: > > On ...
4 years, 4 months ago (2016-08-08 20:28:53 UTC) #19
jcgregorio
https://codereview.chromium.org/2211163003/diff/140001/appengine/swarming/elements/res/imp/botlist/bot-filters.html File appengine/swarming/elements/res/imp/botlist/bot-filters.html (right): https://codereview.chromium.org/2211163003/diff/140001/appengine/swarming/elements/res/imp/botlist/bot-filters.html#newcode567 appengine/swarming/elements/res/imp/botlist/bot-filters.html:567: var rest = f.substring(col.length + FILTER_SEP.length); Isn't rest = ...
4 years, 4 months ago (2016-08-08 20:54:32 UTC) #20
kjlubick
https://codereview.chromium.org/2211163003/diff/140001/appengine/swarming/elements/res/imp/botlist/bot-filters.html File appengine/swarming/elements/res/imp/botlist/bot-filters.html (right): https://codereview.chromium.org/2211163003/diff/140001/appengine/swarming/elements/res/imp/botlist/bot-filters.html#newcode567 appengine/swarming/elements/res/imp/botlist/bot-filters.html:567: var rest = f.substring(col.length + FILTER_SEP.length); On 2016/08/08 at ...
4 years, 4 months ago (2016-08-09 12:07:21 UTC) #21
jcgregorio
https://codereview.chromium.org/2211163003/diff/140001/appengine/swarming/elements/res/imp/botlist/bot-filters.html File appengine/swarming/elements/res/imp/botlist/bot-filters.html (right): https://codereview.chromium.org/2211163003/diff/140001/appengine/swarming/elements/res/imp/botlist/bot-filters.html#newcode567 appengine/swarming/elements/res/imp/botlist/bot-filters.html:567: var rest = f.substring(col.length + FILTER_SEP.length); On 2016/08/09 at ...
4 years, 4 months ago (2016-08-09 13:26:13 UTC) #22
kjlubick
On 2016/08/09 at 13:26:13, jcgregorio wrote: > https://codereview.chromium.org/2211163003/diff/140001/appengine/swarming/elements/res/imp/botlist/bot-filters.html > File appengine/swarming/elements/res/imp/botlist/bot-filters.html (right): > > https://codereview.chromium.org/2211163003/diff/140001/appengine/swarming/elements/res/imp/botlist/bot-filters.html#newcode567 ...
4 years, 4 months ago (2016-08-09 13:35:53 UTC) #23
M-A Ruel
On 2016/08/09 13:35:53, kjlubick wrote: > On 2016/08/09 at 13:26:13, jcgregorio wrote: > > So ...
4 years, 4 months ago (2016-08-09 13:58:36 UTC) #24
kjlubick
On 2016/08/09 at 13:58:36, maruel wrote: > On 2016/08/09 13:35:53, kjlubick wrote: > > On ...
4 years, 4 months ago (2016-08-09 14:35:09 UTC) #25
M-A Ruel
On 2016/08/09 14:35:09, kjlubick wrote: > On 2016/08/09 at 13:58:36, maruel wrote: > > On ...
4 years, 4 months ago (2016-08-09 14:55:33 UTC) #26
jcgregorio
lgtm
4 years, 4 months ago (2016-08-09 17:05:09 UTC) #27
KevinL
lgtm
4 years, 4 months ago (2016-08-09 18:44:56 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2211163003/140001
4 years, 4 months ago (2016-08-09 18:45:05 UTC) #31
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 18:48:23 UTC) #33
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://github.com/luci/luci-py/commit/bf775c6fcaaa324474208dfcaaac75b2a226789f

Powered by Google App Engine
This is Rietveld 408576698