@@ -242,7 +242,7 @@ def get_projects(suite):
242
242
243
243
def get_configs (suite ):
244
244
if suite == 'full' :
245
- return ['debug' , 'debug-opt' , 'wmo-onone ' , 'release' ]
245
+ return ['debug-batch ' , 'release' ]
246
246
elif suite == 'smoketest' :
247
247
return ['debug' , 'release' ]
248
248
else :
@@ -263,6 +263,9 @@ def get_actual_config_and_flags(config, stats):
263
263
elif config == 'debug-opt' :
264
264
flags += ' -O '
265
265
config = 'debug'
266
+ elif config == 'debug-batch' :
267
+ flags += ' -enable-batch-mode '
268
+ config = 'debug'
266
269
return (config , flags )
267
270
268
271
@@ -289,7 +292,6 @@ def execute_runner(instance, workspace, configs, args):
289
292
'--swiftc' , swiftc_path ,
290
293
'--projects' , projects ,
291
294
'--build-config' , config ,
292
- '--swift-version' , '3' ,
293
295
'--include-actions' , actions ,
294
296
'--swift-branch' , args .swift_branch ,
295
297
'--add-swift-flags' , flags ,
@@ -359,9 +361,14 @@ def all_driver_stats_files(configs, args):
359
361
for f in files :
360
362
m = re .match (r'stats-\d+-swift-driver-([^-]+).*\.json' , f )
361
363
if m :
362
- with open (os .path .join (root , f )) as fp :
363
- j = json .load (fp )
364
- yield (m .group (1 ), j )
364
+ try :
365
+ with open (os .path .join (root , f )) as fp :
366
+ j = json .load (fp )
367
+ yield (m .group (1 ), j )
368
+ except ValueError :
369
+ # Something sufficiently bad happened that
370
+ # we can't read the json: build a fake one.
371
+ yield (m .group (1 ), {})
365
372
366
373
367
374
def find_module_statuses (configs , args ):
@@ -549,7 +556,11 @@ def parse_args():
549
556
help = 'cperf suite to run' ,
550
557
default = 'smoketest' )
551
558
parser .add_argument ("--verbose" ,
552
- action = 'store_true' )
559
+ action = 'store_true' ,
560
+ default = True )
561
+ parser .add_argument ("--quiet" ,
562
+ action = 'store_false' ,
563
+ dest = 'verbose' )
553
564
parser .add_argument ('--skip-build' ,
554
565
action = 'store_true' )
555
566
parser .add_argument ('--skip-runner' ,
@@ -570,7 +581,7 @@ def parse_args():
570
581
parser .add_argument ('--new-swiftc' ,
571
582
type = str , default = None )
572
583
parser .add_argument ('--repetitions' ,
573
- type = int , default = 3 )
584
+ type = int , default = 2 )
574
585
parser .add_argument ('--show-baselines' ,
575
586
type = bool , default = False )
576
587
parser .add_argument ('--group-by-module' ,
0 commit comments