File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,9 @@ def init_listeners(self):
143
143
self .listeners .append (self .fail_watcher )
144
144
if watch_hang :
145
145
warn_timeout = 60.0 if args .long else 10.0
146
- no_output_timeout = float (args .no_output_timeout or 120 )
147
146
hang_watcher = listeners .HangWatcher (
148
147
output_watcher .not_done_worker_ids , self .kill_all_workers ,
149
- warn_timeout , no_output_timeout )
148
+ warn_timeout , float ( args . no_output_timeout ) )
150
149
self .listeners .append (hang_watcher )
151
150
152
151
def run_max_workers (self ):
Original file line number Diff line number Diff line change @@ -193,15 +193,15 @@ def __init__(self):
193
193
parser .add_argument (
194
194
"--test-timeout" ,
195
195
dest = "test_timeout" ,
196
- default = 110 ,
196
+ default = env_int ( 'TEST_TIMEOUT' , 110 ) ,
197
197
type = int ,
198
198
help = """Break the test process with kill signal if the test runs
199
199
longer than this amount of seconds. Default: 110 [seconds].""" )
200
200
201
201
parser .add_argument (
202
202
"--no-output-timeout" ,
203
203
dest = "no_output_timeout" ,
204
- default = 0 ,
204
+ default = env_int ( 'NO_OUTPUT_TIMEOUT' , 120 ) ,
205
205
type = int ,
206
206
help = """Exit if there was no output from workers during this
207
207
amount of seconds. Set it to -1 to disable hang detection.
@@ -212,7 +212,7 @@ def __init__(self):
212
212
parser .add_argument (
213
213
"--replication-sync-timeout" ,
214
214
dest = "replication_sync_timeout" ,
215
- default = 100 ,
215
+ default = env_int ( 'REPLICATION_SYNC_TIMEOUT' , 100 ) ,
216
216
type = int ,
217
217
help = """The number of seconds that a replica will wait when
218
218
trying to sync with a master in a cluster, or a quorum of
Original file line number Diff line number Diff line change 73
73
def main_loop_parallel ():
74
74
color_stdout ("Started {0}\n " .format (" " .join (sys .argv )), schema = 'tr_text' )
75
75
76
- jobs = lib .Options ().args .jobs
76
+ args = lib .Options ().args
77
+ jobs = args .jobs
77
78
if jobs < 1 :
78
79
# faster result I got was with 2 * cpu_count
79
80
jobs = 2 * multiprocessing .cpu_count ()
@@ -83,6 +84,16 @@ def main_loop_parallel():
83
84
schema = 'tr_text' )
84
85
randomize = True
85
86
87
+ color_stdout ("Timeout options:\n " , schema = 'tr_text' )
88
+ color_stdout ('-' * 19 , "\n " , schema = 'separator' )
89
+ color_stdout ("REPLICATION_SYNC_TIMEOUT:" . ljust (26 ) + "{}\n " .
90
+ format (args .replication_sync_timeout ), schema = 'tr_text' )
91
+ color_stdout ("TEST_TIMEOUT:" . ljust (26 ) + "{}\n " .
92
+ format (args .test_timeout ), schema = 'tr_text' )
93
+ color_stdout ("NO_OUTPUT_TIMEOUT:" . ljust (26 ) + "{}\n " .
94
+ format (args .no_output_timeout ), schema = 'tr_text' )
95
+ color_stdout ("\n " , schema = 'tr_text' )
96
+
86
97
task_groups = lib .worker .get_task_groups ()
87
98
if lib .Options ().args .reproduce :
88
99
task_groups = lib .worker .reproduce_task_groups (task_groups )
You can’t perform that action at this time.
0 commit comments