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

Issue 2526963002: [Findit] Implement retry within swarming_util.py when making server calls (Closed)

Created:
4 years ago by lijeffrey
Modified:
4 years ago
Reviewers:
chanli, stgao
CC:
chromium-reviews, infra-reviews+infra_chromium.org, stgao, Sharu Jiang
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

[Findit] Implement retry within swarming_util.py when making server calls BUG=668262 Committed: https://chromium.googlesource.com/infra/infra/+/4d4e14a7bb428645ef77f04659f0b582b31466fc

Patch Set 1 #

Patch Set 2 : Self-review #

Total comments: 18

Patch Set 3 : Addressing comments Rebase #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -68 lines) Patch
M appengine/findit/handlers/config.py View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M appengine/findit/handlers/test/config_test.py View 1 2 3 chunks +50 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py View 1 2 3 chunks +15 lines, -8 lines 0 comments Download
M appengine/findit/waterfall/swarming_util.py View 1 2 3 chunks +101 lines, -44 lines 4 comments Download
M appengine/findit/waterfall/test/process_base_swarming_task_result_pipeline_test.py View 1 2 4 chunks +43 lines, -11 lines 0 comments Download
M appengine/findit/waterfall/test/swarming_util_test.py View 1 2 2 chunks +21 lines, -1 line 0 comments Download
M appengine/findit/waterfall/test/waterfall_config_test.py View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M appengine/findit/waterfall/test/wf_testcase.py View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
lijeffrey
ptal
4 years ago (2016-11-23 21:09:43 UTC) #3
chanli
https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py#newcode98 appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py:98: task.status = analysis_status.ERROR This status is not saved in ...
4 years ago (2016-11-23 23:45:32 UTC) #4
chanli
https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py#newcode127 appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py:127: tests_statuses = self._CheckTestsRunStatuses(output_json, *call_args) On 2016/11/23 23:45:32, chanli wrote: ...
4 years ago (2016-11-28 23:44:18 UTC) #5
lijeffrey
Comments addressed, no code changes so far https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py#newcode98 appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py:98: task.status = ...
4 years ago (2016-11-28 23:55:25 UTC) #6
chanli
https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py#newcode98 appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py:98: task.status = analysis_status.ERROR On 2016/11/28 23:55:24, lijeffrey wrote: > ...
4 years ago (2016-11-29 18:49:38 UTC) #7
lijeffrey
https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py#newcode98 appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py:98: task.status = analysis_status.ERROR On 2016/11/29 18:49:38, chanli wrote: > ...
4 years ago (2016-11-30 18:18:48 UTC) #8
chanli
lgtm with 2 nits. https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py#newcode98 appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py:98: task.status = analysis_status.ERROR On 2016/11/30 ...
4 years ago (2016-11-30 18:53:29 UTC) #9
lijeffrey
https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py File appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py (right): https://codereview.chromium.org/2526963002/diff/20001/appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py#newcode123 appengine/findit/waterfall/process_base_swarming_task_result_pipeline.py:123: if not output_json: On 2016/11/30 18:53:29, chanli wrote: > ...
4 years ago (2016-11-30 20:12:11 UTC) #10
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/2526963002/40001
4 years ago (2016-11-30 20:13:03 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/infra/infra/+/4d4e14a7bb428645ef77f04659f0b582b31466fc
4 years ago (2016-11-30 20:28:22 UTC) #16
stgao
https://codereview.chromium.org/2526963002/diff/40001/appengine/findit/waterfall/swarming_util.py File appengine/findit/waterfall/swarming_util.py (right): https://codereview.chromium.org/2526963002/diff/40001/appengine/findit/waterfall/swarming_util.py#newcode99 appengine/findit/waterfall/swarming_util.py:99: swarming_task (WfSwarmingTask, FlakeSwarmingTask): An optional swarming This seems invalid ...
4 years ago (2016-12-01 20:33:47 UTC) #18
lijeffrey
4 years ago (2016-12-01 20:51:12 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2526963002/diff/40001/appengine/findit/waterf...
File appengine/findit/waterfall/swarming_util.py (right):

https://codereview.chromium.org/2526963002/diff/40001/appengine/findit/waterf...
appengine/findit/waterfall/swarming_util.py:99: swarming_task (WfSwarmingTask,
FlakeSwarmingTask): An optional swarming
On 2016/12/01 20:33:46, stgao (slow on Monday) wrote:
> This seems invalid now.

Good catch, originally I had designed this to consume a swarming task that can
capture the error but ended up putting that logic in the calling function
instead. I will remove this line in a follow up CL.

https://codereview.chromium.org/2526963002/diff/40001/appengine/findit/waterf...
appengine/findit/waterfall/swarming_util.py:119: post_data =
json.dumps(post_data, sort_keys=True, separators=(',', ':'))
On 2016/12/01 20:33:46, stgao (slow on Monday) wrote:
> Why we need to sort?

Chan may be more familiar with how post_data needs to be formatted, my change is
only to move this particular line it outside of the while loop/try statement so
it's not regenerated each time.

Powered by Google App Engine
This is Rietveld 408576698