only print unrecognized errors in gate
Change-Id: I9ef432c2104e5cd0e1a760816e055263f7c465c7
This commit is contained in:
		@@ -115,12 +115,16 @@ class RecheckWatch(threading.Thread):
 | 
				
			|||||||
                                                        LPCACHEDIR)
 | 
					                                                        LPCACHEDIR)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def new_error(self, channel, event):
 | 
					    def new_error(self, channel, event):
 | 
				
			||||||
        msg = ('%s change: %s failed %s in the %s queue with an unrecognized '
 | 
					        # only on gate fails
 | 
				
			||||||
               'error' % (event.project,
 | 
					        queue = event.queue()
 | 
				
			||||||
                          event.url,
 | 
					        if queue == "gate":
 | 
				
			||||||
                          ', '.join(event.failed_jobs),
 | 
					            msg = ('%s change: %s failed %s in the %s queue with'
 | 
				
			||||||
                          event.queue()))
 | 
					                   ' an unrecognized error' %
 | 
				
			||||||
        self.print_msg(channel, msg)
 | 
					                   (event.project,
 | 
				
			||||||
 | 
					                    event.url,
 | 
				
			||||||
 | 
					                    ', '.join(event.failed_jobs),
 | 
				
			||||||
 | 
					                    queue))
 | 
				
			||||||
 | 
					            self.print_msg(channel, msg)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def error_found(self, channel, event):
 | 
					    def error_found(self, channel, event):
 | 
				
			||||||
        msg = ('%s change: %s failed %s because of: %s' % (
 | 
					        msg = ('%s change: %s failed %s because of: %s' % (
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user