 3588f1b8c5
			
		
	
	
		3588f1b8c5
		
			
		
	
	
	
	
		
			
			`brew test-bot` can occasionally spend a long time doing nothing when testing dependents.[^1] This is because it takes a long time to work out that there is nothing to do. To fix this, let's adjust `brew determine-test-runners` to pass on only the list of formulae for which there is work to be done so that `brew test-bot` doesn't need to waste time working this out. [^1]: For example, it spends about 15 minutes doing nothing at https://github.com/Homebrew/homebrew-core/actions/runs/10500178069/job/29133091332?pr=180185
		
			
				
	
	
		
			36 lines
		
	
	
		
			767 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			767 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # typed: strict
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| class LinuxRunnerSpec < T::Struct
 | |
|   const :name, String
 | |
|   const :runner, String
 | |
|   const :container, T::Hash[Symbol, String]
 | |
|   const :workdir, String
 | |
|   const :timeout, Integer
 | |
|   const :cleanup, T::Boolean
 | |
|   prop  :testing_formulae, T::Array[String], default: []
 | |
| 
 | |
|   sig {
 | |
|     returns({
 | |
|       name:             String,
 | |
|       runner:           String,
 | |
|       container:        T::Hash[Symbol, String],
 | |
|       workdir:          String,
 | |
|       timeout:          Integer,
 | |
|       cleanup:          T::Boolean,
 | |
|       testing_formulae: String,
 | |
|     })
 | |
|   }
 | |
|   def to_h
 | |
|     {
 | |
|       name:,
 | |
|       runner:,
 | |
|       container:,
 | |
|       workdir:,
 | |
|       timeout:,
 | |
|       cleanup:,
 | |
|       testing_formulae: testing_formulae.join(","),
 | |
|     }
 | |
|   end
 | |
| end
 |