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

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

Issue 2272953002: [Findit] Moving check flake parameters to config (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Updating swarming settings config example Created 4 years, 3 months 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 waterfall import waterfall_config 5 from waterfall import waterfall_config
6 from waterfall.test import wf_testcase 6 from waterfall.test import wf_testcase
7 7
8 8
9 class MastersTest(wf_testcase.WaterfallTestCase): 9 class MastersTest(wf_testcase.WaterfallTestCase):
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 def testGetSwarmingSettings(self): 91 def testGetSwarmingSettings(self):
92 self.assertEqual( 92 self.assertEqual(
93 { 93 {
94 'server_host': 'chromium-swarm.appspot.com', 94 'server_host': 'chromium-swarm.appspot.com',
95 'default_request_priority': 150, 95 'default_request_priority': 150,
96 'request_expiration_hours': 20, 96 'request_expiration_hours': 20,
97 'server_query_interval_seconds': 60, 97 'server_query_interval_seconds': 60,
98 'task_timeout_hours': 23, 98 'task_timeout_hours': 23,
99 'isolated_server': 'https://isolateserver.appspot.com', 99 'isolated_server': 'https://isolateserver.appspot.com',
100 'isolated_storage_url': 'isolateserver.storage.googleapis.com', 100 'isolated_storage_url': 'isolateserver.storage.googleapis.com',
101 'iterations_to_rerun': 10 101 'iterations_to_rerun': 10,
102 'get_swarming_task_id_timeout_seconds': 300,
103 'get_swarming_task_id_wait_seconds': 10
102 }, 104 },
103 waterfall_config.GetSwarmingSettings()) 105 waterfall_config.GetSwarmingSettings())
104 106
105 def testGetDownloadBuildDataSettings(self): 107 def testGetDownloadBuildDataSettings(self):
106 self.assertEqual( 108 self.assertEqual(
107 { 109 {
108 'download_interval_seconds': 10, 110 'download_interval_seconds': 10,
109 'memcache_master_download_expiration_seconds': 3600, 111 'memcache_master_download_expiration_seconds': 3600,
110 'use_chrome_build_extract': True 112 'use_chrome_build_extract': True
111 }, 113 },
(...skipping 14 matching lines...) Expand all
126 self.assertTrue( 128 self.assertTrue(
127 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) 129 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2'))
128 130
129 def testGetActionSettings(self): 131 def testGetActionSettings(self):
130 self.assertEqual( 132 self.assertEqual(
131 { 133 {
132 'cr_notification_build_threshold': 2, 134 'cr_notification_build_threshold': 2,
133 'cr_notification_latency_limit_minutes': 30, 135 'cr_notification_latency_limit_minutes': 30,
134 }, 136 },
135 waterfall_config.GetActionSettings()) 137 waterfall_config.GetActionSettings())
138
139 def testGetCheckFlakeSettings(self):
140 self.assertEqual(
141 {
142 'lower_flake_threshold': 0.02,
143 'upper_flake_threshold': 0.98,
144 'max_flake_in_a_row': 4,
145 'max_stable_in_a_row': 4,
146 'iterations_to_rerun': 100
147 },
148 waterfall_config.GetCheckFlakeSettings())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698