File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,15 @@ export async function attemptBuildAndTest(
6464 progress ,
6565 ) ;
6666 let repairAttempts = 0 ;
67- const maxRepairAttempts = ( await env . executor . shouldRepairFailedBuilds ( evalID ) )
68- ? ( config . maxBuildRepairAttempts ?? DEFAULT_MAX_BUILD_REPAIR_ATTEMPTS )
69- : 0 ;
70- const maxTestRepairAttempts = config . maxTestRepairAttempts ?? DEFAULT_MAX_TEST_REPAIR_ATTEMPTS ;
67+ let maxRepairAttempts : number ;
68+ let maxTestRepairAttempts : number ;
69+
70+ if ( await env . executor . shouldRepairFailedBuilds ( evalID ) ) {
71+ maxRepairAttempts = config . maxBuildRepairAttempts ?? DEFAULT_MAX_BUILD_REPAIR_ATTEMPTS ;
72+ maxTestRepairAttempts = config . maxTestRepairAttempts ?? DEFAULT_MAX_TEST_REPAIR_ATTEMPTS ;
73+ } else {
74+ maxRepairAttempts = maxTestRepairAttempts = 0 ;
75+ }
7176
7277 const initialAttempt = {
7378 outputFiles : initialResponse . files ,
You can’t perform that action at this time.
0 commit comments