New issue
Advanced search Search tips

Issue 673774 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Show statistics about tasks for a specific view

Project Member Reported by mar...@chromium.org, Dec 13 2016

Issue description

Let's say you look at it:
https://chromium-swarm.appspot.com/tasklist?c=name&c=state&c=created_ts&c=user&f=os%3AUbuntu-12.04&l=50&s=created_ts%3Adesc

It'd be interesting to know the number of:
- pending tasks
- running tasks
 
Status: Started (was: Assigned)
Project Member

Comment 2 by bugdroid1@chromium.org, Feb 7 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/external/github.com/luci/luci-py.git/+/eb1a0447e6c2cbc16c854ff2ea22f424bf8af0e0

commit eb1a0447e6c2cbc16c854ff2ea22f424bf8af0e0
Author: kjlubick <kjlubick@google.com>
Date: Tue Feb 07 19:44:34 2017

Add task-list summary

This cleans up bot-list-summary as well, given the two
elements are related.

This removes the restriction server side that the end time
must be given for a count - as that just makes queries a
bit more awkward to construct. The start time is definitely
required, as counting things from the beginning of time would
time out.

BUG= 673774 

Review-Url: https://codereview.chromium.org/2676513004

[modify] https://crrev.com/eb1a0447e6c2cbc16c854ff2ea22f424bf8af0e0/appengine/swarming/handlers_endpoints.py
[modify] https://crrev.com/eb1a0447e6c2cbc16c854ff2ea22f424bf8af0e0/appengine/swarming/ui/build/elements.html
[modify] https://crrev.com/eb1a0447e6c2cbc16c854ff2ea22f424bf8af0e0/appengine/swarming/ui/res/imp/botlist/bot-list-summary.html
[modify] https://crrev.com/eb1a0447e6c2cbc16c854ff2ea22f424bf8af0e0/appengine/swarming/ui/res/imp/botlist/bot-list.html
[modify] https://crrev.com/eb1a0447e6c2cbc16c854ff2ea22f424bf8af0e0/appengine/swarming/ui/res/imp/tasklist/task-list-demo.html
[add] https://crrev.com/eb1a0447e6c2cbc16c854ff2ea22f424bf8af0e0/appengine/swarming/ui/res/imp/tasklist/task-list-summary.html
[modify] https://crrev.com/eb1a0447e6c2cbc16c854ff2ea22f424bf8af0e0/appengine/swarming/ui/res/imp/tasklist/task-list.html

Some statistics are being shown, however caching them would greatly improve performance.
Project Member

Comment 4 by bugdroid1@chromium.org, Feb 17 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/external/github.com/luci/luci-py.git/+/61230b5f8392628a96ce30eb1d1c1379e78b9cff

commit 61230b5f8392628a96ce30eb1d1c1379e78b9cff
Author: kjlubick <kjlubick@google.com>
Date: Fri Feb 17 14:53:19 2017

Add caching for task counts

The UI only allows for selection to the nearest minute, so memcache
assumes the end timestamp is also at a minute resolution.

BUG= 673774 

Review-Url: https://codereview.chromium.org/2697333002

[modify] https://crrev.com/61230b5f8392628a96ce30eb1d1c1379e78b9cff/appengine/swarming/handlers_endpoints.py

Comment 7 by kjlubick@google.com, Feb 17 2017

Status: Fixed (was: Started)
This is now live in chromium-swarm

Sign in to add a comment