@@ -703,7 +703,7 @@ def compile_bench(self):
703
703
python = None
704
704
705
705
failed = self .run_benchmark (python )
706
- if not failed and self .conf .upload :
706
+ if self .conf .upload :
707
707
self .upload ()
708
708
return failed
709
709
@@ -867,7 +867,6 @@ def __init__(self, config_filename, options):
867
867
self .setup_log ('compile_all' )
868
868
self .outputs = []
869
869
self .skipped = []
870
- self .uploaded = []
871
870
self .failed = []
872
871
self .timings = []
873
872
self .logger = logging .getLogger ()
@@ -908,11 +907,8 @@ def benchmark(self, revision, branch):
908
907
# Ony update the repository once
909
908
self .conf .update = False
910
909
911
- if exitcode == 0 :
912
- if self .conf .upload :
913
- self .uploaded .append (key )
914
- else :
915
- self .outputs .append (key )
910
+ if exitcode == 0 or exitcode == EXIT_BENCH_ERROR :
911
+ self .outputs .append ((key , exitcode == EXIT_BENCH_ERROR ))
916
912
self .timings .append (dt )
917
913
else :
918
914
self .failed .append (key )
@@ -921,11 +917,12 @@ def report(self):
921
917
for key in self .skipped :
922
918
self .logger .error ("Skipped: %s" % key )
923
919
924
- for key in self .outputs :
925
- self .logger .error ("Tested: %s" % key )
926
-
927
- for key in self .uploaded :
928
- self .logger .error ("Tested and uploaded: %s" % key )
920
+ for key , success in self .outputs :
921
+ if success :
922
+ success_message = "All benchmarks succeeded"
923
+ else :
924
+ success_message = "Some benchmarks failed"
925
+ self .logger .error ("Tested: %s (%s)" % (key , success_message ))
929
926
930
927
for key in self .failed :
931
928
text = "FAILED: %s" % key
0 commit comments