mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 02:24:24 +00:00 
			
		
		
		
	More optimizations to not query unused baseline results
This commit is contained in:
		
							parent
							
								
									479662c63e
								
							
						
					
					
						commit
						de19e280b2
					
				@ -1284,9 +1284,6 @@ class AutopkgtestPolicy(BasePolicy):
 | 
			
		||||
        target_suite = self.suite_info.target_suite
 | 
			
		||||
        binaries_info = target_suite.binaries[arch]
 | 
			
		||||
 | 
			
		||||
        # determine current test result status
 | 
			
		||||
        baseline_result = self.result_in_baseline(src, arch)[0]
 | 
			
		||||
 | 
			
		||||
        # determine current test result status
 | 
			
		||||
        until = self.find_max_lower_force_reset_test(src, ver, arch)
 | 
			
		||||
 | 
			
		||||
@ -1312,6 +1309,9 @@ class AutopkgtestPolicy(BasePolicy):
 | 
			
		||||
            run_id = r[2]
 | 
			
		||||
 | 
			
		||||
            if r[0] in {Result.FAIL, Result.OLD_FAIL}:
 | 
			
		||||
                # determine current test result status
 | 
			
		||||
                baseline_result = self.result_in_baseline(src, arch)[0]
 | 
			
		||||
 | 
			
		||||
                if baseline_result == Result.FAIL:
 | 
			
		||||
                    result = 'ALWAYSFAIL'
 | 
			
		||||
                elif baseline_result in {Result.NONE, Result.OLD_FAIL}:
 | 
			
		||||
@ -1369,6 +1369,7 @@ class AutopkgtestPolicy(BasePolicy):
 | 
			
		||||
        except KeyError:
 | 
			
		||||
            # no result for src/arch; still running?
 | 
			
		||||
            if arch in self.pending_tests.get(trigger, {}).get(src, []):
 | 
			
		||||
                baseline_result = self.result_in_baseline(src, arch)[0]
 | 
			
		||||
                if baseline_result != Result.FAIL and not self.has_force_badtest(src, ver, arch):
 | 
			
		||||
                    result = 'RUNNING'
 | 
			
		||||
                else:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user