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

Issue 2463483002: swarming: allow privileged users to schedule high priority tasks (Closed)

Created:
4 years, 1 month ago by nodir
Modified:
4 years, 1 month ago
Reviewers:
Vadim Sh., M-A Ruel
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

swarming: allow privileged users to schedule high priority tasks allow privileged users to schedule tasks with priority < 100 Context is crbug.com/660446 R=maruel@chromium.org, vadimsh@chromium.org BUG=660446 Committed: https://github.com/luci/luci-py/commit/f6ed6fef610f312800f5644ca0c4889d67fd2b20

Patch Set 1 #

Total comments: 2

Patch Set 2 : swarming-high-priority-tasks with s #

Patch Set 3 : allow privileged users to schedule high priority tasks #

Patch Set 4 : allow privileged users to schedule high priority tasks #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M appengine/swarming/handlers_endpoints.py View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/swarming/handlers_frontend.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M appengine/swarming/server/acl.py View 1 2 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 19 (8 generated)
nodir
PTAL
4 years, 1 month ago (2016-10-28 19:09:29 UTC) #1
Vadim Sh.
lgtm with nit please also fix typo in CL name and description https://codereview.chromium.org/2463483002/diff/1/appengine/swarming/server/acl.py File appengine/swarming/server/acl.py ...
4 years, 1 month ago (2016-10-28 19:48:44 UTC) #2
nodir
https://codereview.chromium.org/2463483002/diff/1/appengine/swarming/server/acl.py File appengine/swarming/server/acl.py (right): https://codereview.chromium.org/2463483002/diff/1/appengine/swarming/server/acl.py#newcode21 appengine/swarming/server/acl.py:21: HIGH_PRIORITY_TASKS_GROUP = 'swarming-high-priority-task' On 2016/10/28 19:48:44, Vadim Sh. wrote: ...
4 years, 1 month ago (2016-10-28 20:00:14 UTC) #5
nodir
repurposed the CL a bit
4 years, 1 month ago (2016-10-31 21:45:18 UTC) #7
Vadim Sh.
lgtm
4 years, 1 month ago (2016-10-31 21:46:14 UTC) #8
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/2463483002/40001
4 years, 1 month ago (2016-10-31 21:48:21 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Luci-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/32358a1fc758c410)
4 years, 1 month ago (2016-10-31 21:51:30 UTC) #12
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/2463483002/60001
4 years, 1 month ago (2016-10-31 22:05:24 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://github.com/luci/luci-py/commit/f6ed6fef610f312800f5644ca0c4889d67fd2b20
4 years, 1 month ago (2016-10-31 22:09:25 UTC) #17
M-A Ruel
https://codereview.chromium.org/2463483002/diff/60001/appengine/swarming/server/acl.py File appengine/swarming/server/acl.py (right): https://codereview.chromium.org/2463483002/diff/60001/appengine/swarming/server/acl.py#newcode60 appengine/swarming/server/acl.py:60: def is_bot_or_privileged_user(): ^^ :/
4 years, 1 month ago (2016-10-31 22:11:20 UTC) #18
nodir
4 years, 1 month ago (2016-10-31 22:18:15 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2463483002/diff/60001/appengine/swarming/serv...
File appengine/swarming/server/acl.py (right):

https://codereview.chromium.org/2463483002/diff/60001/appengine/swarming/serv...
appengine/swarming/server/acl.py:60: def is_bot_or_privileged_user():
On 2016/10/31 22:11:20, M-A Ruel wrote:
> ^^ :/

it looks like you are proposing to call this function in other files, but in
that case the knowledge "who can schedule high priority tasks" is in many
places, rather than one.

I could use is_bot_or_privileged_user in can_schedule_high_priority_tasks.
the function seems to be marked to be deprecated though

Powered by Google App Engine
This is Rietveld 408576698