#NEWLINE# def process( self , fp ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# contents = json . load ( fp ) #NEWLINE# if ( contents [ 'job_step_id' ] != self . step . id . hex ) : #NEWLINE# #INDENT# self . logger . warning ( 'manifest.json had wrong step id (build=%s): expected %s but got %s' , self . step . job . build_id . hex , self . step . id . hex , contents [ 'job_step_id' ] ) #NEWLINE# self . _add_failure_reason ( ) #NEWLINE# #UNINDENT# #UNINDENT# except Exception : #NEWLINE# #INDENT# self . logger . warning ( 'Failed to parse manifest.json; (build=%s, step=%s)' , self . step . job . build_id . hex , self . step . id . hex , exc_info = True ) #NEWLINE# self . _add_failure_reason ( )