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

Side by Side Diff: appengine/findit/waterfall/test/wf_testcase.py

Issue 2526963002: [Findit] Implement retry within swarming_util.py when making server calls (Closed)
Patch Set: Addressing comments Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from google.appengine.api import users 5 from google.appengine.api import users
6 6
7 import copy 7 import copy
8 8
9 import gae_ts_mon 9 import gae_ts_mon
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 'server_host': 'chromium-swarm.appspot.com', 86 'server_host': 'chromium-swarm.appspot.com',
87 'default_request_priority': 150, 87 'default_request_priority': 150,
88 'request_expiration_hours': 20, 88 'request_expiration_hours': 20,
89 'server_query_interval_seconds': 60, 89 'server_query_interval_seconds': 60,
90 'task_timeout_hours': 23, 90 'task_timeout_hours': 23,
91 'isolated_server': 'https://isolateserver.appspot.com', 91 'isolated_server': 'https://isolateserver.appspot.com',
92 'isolated_storage_url': 'isolateserver.storage.googleapis.com', 92 'isolated_storage_url': 'isolateserver.storage.googleapis.com',
93 'iterations_to_rerun': 10, 93 'iterations_to_rerun': 10,
94 'get_swarming_task_id_timeout_seconds': 5 * 60, # 5 minutes. 94 'get_swarming_task_id_timeout_seconds': 5 * 60, # 5 minutes.
95 'get_swarming_task_id_wait_seconds': 10, 95 'get_swarming_task_id_wait_seconds': 10,
96 'server_retry_timeout_hours': 2,
97 'maximum_server_contact_retry_interval_seconds': 5 * 60, # 5 minutes.
98 'should_retry_server': False, # No retry for unit testing.
96 } 99 }
97 100
98 101
99 _DEFAULT_DOWNLOAD_BUILD_DATA_SETTINGS = { 102 _DEFAULT_DOWNLOAD_BUILD_DATA_SETTINGS = {
100 'download_interval_seconds': 10, 103 'download_interval_seconds': 10,
101 'memcache_master_download_expiration_seconds': 3600, 104 'memcache_master_download_expiration_seconds': 3600,
102 'use_chrome_build_extract': True, 105 'use_chrome_build_extract': True,
103 } 106 }
104 107
105 108
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 config_data[config_property].update(override_data) 151 config_data[config_property].update(override_data)
149 152
150 FinditConfig.Get().Update(users.User(email='admin@chromium.org'), True, 153 FinditConfig.Get().Update(users.User(email='admin@chromium.org'), True,
151 **config_data) 154 **config_data)
152 155
153 def setUp(self): 156 def setUp(self):
154 super(WaterfallTestCase, self).setUp() 157 super(WaterfallTestCase, self).setUp()
155 self.UpdateUnitTestConfigSettings() 158 self.UpdateUnitTestConfigSettings()
156 self.maxDiff = None 159 self.maxDiff = None
157 gae_ts_mon.reset_for_unittest(disable=True) 160 gae_ts_mon.reset_for_unittest(disable=True)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698