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

Issue 1939343002: swarming: change meaning of inputs_ref (Closed)

Created:
4 years, 7 months ago by nodir
Modified:
4 years, 7 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

swarming: change meaning of inputs_ref Currently inputs_ref implicitly specifies isolated server and namespace for isolated outputs. The problem is that a user may need to be able to specify them for non-isolated command. Change the meaning of inputs_ref from "a reference to input file tree" to "isolate server/namespace and hash of input file tree". Now (inputs_ref is not None) does not mean there is isolated input, but (inputs_ref and inputs_ref.isolated) does. In bot manifest, change "inputs_ref" to "isolated" that contains input/output settings. Add a TODO to refactor the code and update datastore schema. Update tests. R=maruel@chromium.org BUG=601022 Committed: https://github.com/luci/luci-py/commit/abdaf29b948fa7467b5f1fdaed3bfbc41a692145

Patch Set 1 #

Patch Set 2 : swarming: add outputs_target to task properties #

Patch Set 3 : include outputs_target in rpc->ndb conversion #

Patch Set 4 : nit #

Patch Set 5 : fix test #

Patch Set 6 : nit #

Total comments: 4

Patch Set 7 : rebased #

Patch Set 8 : removed outputs_target #

Patch Set 9 : sort dict keys #

Total comments: 10

Patch Set 10 : nits #

Patch Set 11 : remove FilesRef.is_ref #

Total comments: 1

Patch Set 12 : update inputs_ref checks #

Patch Set 13 : improve check #

Patch Set 14 : fix templates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -91 lines) Patch
M appengine/swarming/handlers_bot.py View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
M appengine/swarming/handlers_bot_test.py View 1 2 3 4 5 6 3 chunks +7 lines, -7 lines 0 comments Download
M appengine/swarming/server/task_request.py View 1 2 3 4 5 6 7 8 9 10 8 chunks +35 lines, -14 lines 0 comments Download
M appengine/swarming/server/task_request_test.py View 1 2 3 4 5 6 7 9 chunks +37 lines, -7 lines 0 comments Download
M appengine/swarming/swarming_bot/bot_code/task_runner.py View 1 2 3 4 5 6 7 8 9 4 chunks +20 lines, -16 lines 0 comments Download
M appengine/swarming/swarming_bot/bot_code/task_runner_test.py View 8 chunks +19 lines, -18 lines 0 comments Download
M appengine/swarming/templates/user_task.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M client/swarming.py View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -8 lines 0 comments Download
M client/tests/swarming_test.py View 1 2 3 4 5 6 7 2 chunks +18 lines, -18 lines 0 comments Download

Messages

Total messages: 41 (20 generated)
nodir
PTAL
4 years, 7 months ago (2016-05-02 23:08:00 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939343002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939343002/20001
4 years, 7 months ago (2016-05-02 23:08:15 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-02 23:11:07 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939343002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939343002/80001
4 years, 7 months ago (2016-05-03 04:23:41 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 04:26:33 UTC) #9
M-A Ruel
https://codereview.chromium.org/1939343002/diff/100001/appengine/swarming/server/task_request.py File appengine/swarming/server/task_request.py (right): https://codereview.chromium.org/1939343002/diff/100001/appengine/swarming/server/task_request.py#newcode304 appengine/swarming/server/task_request.py:304: outputs_target = ndb.LocalStructuredProperty(IsolatedOutputsTarget) Argh, in retrospect maybe I should ...
4 years, 7 months ago (2016-05-03 14:01:25 UTC) #11
nodir
https://codereview.chromium.org/1939343002/diff/100001/appengine/swarming/server/task_request.py File appengine/swarming/server/task_request.py (right): https://codereview.chromium.org/1939343002/diff/100001/appengine/swarming/server/task_request.py#newcode304 appengine/swarming/server/task_request.py:304: outputs_target = ndb.LocalStructuredProperty(IsolatedOutputsTarget) On 2016/05/03 14:01:23, M-A Ruel wrote: ...
4 years, 7 months ago (2016-05-03 16:29:31 UTC) #12
nodir
ping
4 years, 7 months ago (2016-05-03 21:43:49 UTC) #13
M-A Ruel
https://codereview.chromium.org/1939343002/diff/100001/appengine/swarming/server/task_request.py File appengine/swarming/server/task_request.py (right): https://codereview.chromium.org/1939343002/diff/100001/appengine/swarming/server/task_request.py#newcode304 appengine/swarming/server/task_request.py:304: outputs_target = ndb.LocalStructuredProperty(IsolatedOutputsTarget) On 2016/05/03 16:29:30, nodir wrote: > ...
4 years, 7 months ago (2016-05-05 11:52:10 UTC) #14
nodir
https://codereview.chromium.org/1939343002/diff/100001/appengine/swarming/server/task_request.py File appengine/swarming/server/task_request.py (right): https://codereview.chromium.org/1939343002/diff/100001/appengine/swarming/server/task_request.py#newcode304 appengine/swarming/server/task_request.py:304: outputs_target = ndb.LocalStructuredProperty(IsolatedOutputsTarget) On 2016/05/05 11:52:10, M-A Ruel wrote: ...
4 years, 7 months ago (2016-05-10 18:17:40 UTC) #19
M-A Ruel
https://codereview.chromium.org/1939343002/diff/200001/appengine/swarming/server/task_request.py File appengine/swarming/server/task_request.py (right): https://codereview.chromium.org/1939343002/diff/200001/appengine/swarming/server/task_request.py#newcode227 appengine/swarming/server/task_request.py:227: # Specifies FilesRef mode. This is not needed? https://codereview.chromium.org/1939343002/diff/200001/appengine/swarming/server/task_request.py#newcode244 ...
4 years, 7 months ago (2016-05-11 14:41:41 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939343002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939343002/260001
4 years, 7 months ago (2016-05-11 16:04:29 UTC) #23
nodir
https://codereview.chromium.org/1939343002/diff/200001/appengine/swarming/server/task_request.py File appengine/swarming/server/task_request.py (right): https://codereview.chromium.org/1939343002/diff/200001/appengine/swarming/server/task_request.py#newcode227 appengine/swarming/server/task_request.py:227: # Specifies FilesRef mode. On 2016/05/11 14:41:41, M-A Ruel ...
4 years, 7 months ago (2016-05-11 16:04:29 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-11 16:08:20 UTC) #26
M-A Ruel
2 small fixes needed before commit: - templates/user_task.html: lines 222 and 495 and the comment ...
4 years, 7 months ago (2016-05-12 13:47:03 UTC) #27
nodir
4 years, 7 months ago (2016-05-12 21:53:26 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939343002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939343002/280001
4 years, 7 months ago (2016-05-12 21:53:39 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939343002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939343002/300001
4 years, 7 months ago (2016-05-12 21:55:00 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Luci-py Presubmit on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Luci-py%20Presubmit/builds/812)
4 years, 7 months ago (2016-05-12 22:01:09 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939343002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939343002/320001
4 years, 7 months ago (2016-05-12 23:06:01 UTC) #39
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 23:09:00 UTC) #41
Message was sent while issue was closed.
Committed patchset #14 (id:320001) as
https://github.com/luci/luci-py/commit/abdaf29b948fa7467b5f1fdaed3bfbc41a692145

Powered by Google App Engine
This is Rietveld 408576698