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

Issue 2220373003: Allow botlist API call to respond to quarantined: and is_dead: (Closed)

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

Description

Allow botlist API call to respond to quarantined: and is_dead: Supports "true", "false", and "none" for both cases BUG=631047 Committed: https://github.com/luci/luci-py/commit/7144f145b3226faac134b5adffd91dce1844ebc0

Patch Set 1 #

Total comments: 3

Patch Set 2 : Change BotsRequest to have quarantined and is_dead #

Total comments: 2

Patch Set 3 : update count to support is_dead and quarantined #

Total comments: 12

Patch Set 4 : Refactor to hardcode known results #

Total comments: 14

Patch Set 5 : Fix presubmit #

Patch Set 6 : Fix count for false checks #

Patch Set 7 : Fix one edge case #

Total comments: 13

Patch Set 8 : Address comments #

Patch Set 9 : Make BotsCountRequest #

Patch Set 10 : Make BotsCountRequest #

Total comments: 2

Patch Set 11 : Address nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -52 lines) Patch
M appengine/swarming/handlers_endpoints.py View 1 2 3 4 5 6 7 8 9 4 chunks +20 lines, -19 lines 0 comments Download
M appengine/swarming/handlers_endpoints_test.py View 1 2 3 4 5 6 7 8 5 chunks +148 lines, -33 lines 0 comments Download
M appengine/swarming/index.yaml View 3 1 chunk +11 lines, -0 lines 0 comments Download
M appengine/swarming/server/bot_management.py View 1 2 3 4 5 6 7 2 chunks +25 lines, -0 lines 0 comments Download
M appengine/swarming/server/bot_management_test.py View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M appengine/swarming/swarming_rpcs.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
kjlubick
4 years, 4 months ago (2016-08-08 17:15:15 UTC) #2
M-A Ruel
https://codereview.chromium.org/2220373003/diff/1/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/1/appengine/swarming/handlers_endpoints.py#newcode630 appengine/swarming/handlers_endpoints.py:630: if parts[0] == 'quarantined': Please change BotsRequest with formal ...
4 years, 4 months ago (2016-08-08 19:29:51 UTC) #3
kjlubick
https://codereview.chromium.org/2220373003/diff/1/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/1/appengine/swarming/handlers_endpoints.py#newcode630 appengine/swarming/handlers_endpoints.py:630: if parts[0] == 'quarantined': On 2016/08/08 at 19:29:51, M-A ...
4 years, 4 months ago (2016-08-08 20:12:05 UTC) #4
M-A Ruel
https://codereview.chromium.org/2220373003/diff/1/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/1/appengine/swarming/handlers_endpoints.py#newcode630 appengine/swarming/handlers_endpoints.py:630: if parts[0] == 'quarantined': On 2016/08/08 20:12:05, kjlubick wrote: ...
4 years, 4 months ago (2016-08-08 20:28:00 UTC) #5
kjlubick
https://codereview.chromium.org/2220373003/diff/20001/appengine/swarming/swarming_rpcs.py File appengine/swarming/swarming_rpcs.py (right): https://codereview.chromium.org/2220373003/diff/20001/appengine/swarming/swarming_rpcs.py#newcode311 appengine/swarming/swarming_rpcs.py:311: quarantined = messages.StringField(4, default='none') On 2016/08/08 at 20:28:00, M-A ...
4 years, 4 months ago (2016-08-09 13:27:55 UTC) #6
M-A Ruel
https://codereview.chromium.org/2220373003/diff/40001/appengine/swarming/handlers_endpoints_test.py File appengine/swarming/handlers_endpoints_test.py (right): https://codereview.chromium.org/2220373003/diff/40001/appengine/swarming/handlers_endpoints_test.py#newcode1380 appengine/swarming/handlers_endpoints_test.py:1380: self.maxDiff = None remove before committing, note that calling ...
4 years, 4 months ago (2016-08-09 13:57:27 UTC) #7
M-A Ruel
https://codereview.chromium.org/2220373003/diff/40001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/40001/appengine/swarming/handlers_endpoints.py#newcode612 appengine/swarming/handlers_endpoints.py:612: def _build_query(self, request, now): """Returns a ndb.Query for BotInfo ...
4 years, 4 months ago (2016-08-09 17:10:35 UTC) #8
kjlubick
https://codereview.chromium.org/2220373003/diff/40001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/40001/appengine/swarming/handlers_endpoints.py#newcode612 appengine/swarming/handlers_endpoints.py:612: def _build_query(self, request, now): On 2016/08/09 at 17:10:34, M-A ...
4 years, 4 months ago (2016-08-09 17:41:32 UTC) #9
M-A Ruel
https://codereview.chromium.org/2220373003/diff/60001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/60001/appengine/swarming/handlers_endpoints.py#newcode612 appengine/swarming/handlers_endpoints.py:612: def _filter_dimensions(self, q, request): maybe worth passing request.dimensions as ...
4 years, 4 months ago (2016-08-09 18:05:27 UTC) #10
kjlubick
https://codereview.chromium.org/2220373003/diff/60001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/60001/appengine/swarming/handlers_endpoints.py#newcode612 appengine/swarming/handlers_endpoints.py:612: def _filter_dimensions(self, q, request): On 2016/08/09 at 18:05:27, M-A ...
4 years, 4 months ago (2016-08-09 19:25:04 UTC) #11
M-A Ruel
https://codereview.chromium.org/2220373003/diff/120001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/120001/appengine/swarming/handlers_endpoints.py#newcode627 appengine/swarming/handlers_endpoints.py:627: q = bot_management.filter_availability(q, request.quarantined, I don't like this kind ...
4 years, 4 months ago (2016-08-09 20:23:14 UTC) #12
kjlubick
https://codereview.chromium.org/2220373003/diff/120001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/120001/appengine/swarming/handlers_endpoints.py#newcode627 appengine/swarming/handlers_endpoints.py:627: q = bot_management.filter_availability(q, request.quarantined, On 2016/08/09 at 20:23:13, M-A ...
4 years, 4 months ago (2016-08-09 20:44:44 UTC) #13
M-A Ruel
https://codereview.chromium.org/2220373003/diff/120001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/120001/appengine/swarming/handlers_endpoints.py#newcode641 appengine/swarming/handlers_endpoints.py:641: swarming_rpcs.BotsRequest, swarming_rpcs.BotsCount, On 2016/08/09 20:44:43, kjlubick wrote: > On ...
4 years, 4 months ago (2016-08-09 21:15:32 UTC) #14
kjlubick
On 2016/08/09 at 21:15:32, maruel wrote: > https://codereview.chromium.org/2220373003/diff/120001/appengine/swarming/handlers_endpoints.py > File appengine/swarming/handlers_endpoints.py (right): > > https://codereview.chromium.org/2220373003/diff/120001/appengine/swarming/handlers_endpoints.py#newcode641 ...
4 years, 4 months ago (2016-08-10 12:22:20 UTC) #15
M-A Ruel
lgtm https://codereview.chromium.org/2220373003/diff/180001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2220373003/diff/180001/appengine/swarming/handlers_endpoints.py#newcode668 appengine/swarming/handlers_endpoints.py:668: remove https://codereview.chromium.org/2220373003/diff/180001/appengine/swarming/swarming_rpcs.py File appengine/swarming/swarming_rpcs.py (right): https://codereview.chromium.org/2220373003/diff/180001/appengine/swarming/swarming_rpcs.py#newcode335 appengine/swarming/swarming_rpcs.py:335: add ...
4 years, 4 months ago (2016-08-10 12:38:33 UTC) #16
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/2220373003/200001
4 years, 4 months ago (2016-08-10 13:18:17 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 13:21:35 UTC) #21
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://github.com/luci/luci-py/commit/7144f145b3226faac134b5adffd91dce1844ebc0

Powered by Google App Engine
This is Rietveld 408576698