#NEWLINE# def run( self ) : #NEWLINE# #INDENT# log . info ( 'Collecting revisions to run' ) #NEWLINE# revisions = self . _get_revisions_to_run ( ) #NEWLINE# ran_revisions = [ ] #NEWLINE# log . info ( ( 'Running benchmarks for %d revisions' % ( len ( revisions ) , ) ) ) #NEWLINE# for rev in revisions : #NEWLINE# #INDENT# if ( self . use_blacklist and ( rev in self . blacklist ) ) : #NEWLINE# #INDENT# log . warn ( ( 'Skipping blacklisted %s' % n_active ) ) #NEWLINE# continue #NEWLINE# #UNINDENT# ( any_succeeded , n_active ) = self . _run_and_write_results ( rev ) #NEWLINE# ran_revisions . append ( ( rev , ( any_succeeded , n_active ) ) ) #NEWLINE# log . debug ( '%s succeeded among %d active benchmarks' , { #NEWLINE# #INDENT# True : 'Some' , #NEWLINE# False : 'None' , #NEWLINE# #UNINDENT# } [ any_succeeded ] , n_active ) #NEWLINE# if ( ( not any_succeeded ) and ( n_active > 0 ) ) : #NEWLINE# #INDENT# self . bench_repo . hard_clean ( ) #NEWLINE# ( any_succeeded2 , n_active ) = self . _run_and_write_results ( rev ) #NEWLINE# if ( ( not any_succeeded2 ) and ( n_active > 5 ) and self . use_blacklist ) : #NEWLINE# #INDENT# log . warn ( ( 'Blacklisting %s' % rev ) ) #NEWLINE# self . db . add_rev_blacklist ( rev ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ran_revisions