@@ -219,6 +219,9 @@ function timeoutForProfile(
219219 if ( typeof timeout === "number" ) {
220220 return timeout ;
221221 }
222+ if ( timeout === "${{ matrix.group.timeout_minutes || 60 }}" ) {
223+ return 60 ;
224+ }
222225 const match = timeout ?. match (
223226 / ^ \$ \{ \{ i n p u t s \. (?: r e l e a s e _ p r o f i l e | r e l e a s e _ t e s t _ p r o f i l e ) = = ' f u l l ' & & ( [ 0 - 9 ] + ) \| \| ( [ 0 - 9 ] + ) \} \} $ / u,
224227 ) ;
@@ -238,6 +241,9 @@ function evaluatedJobTimeouts(path: string, jobName: string, job: WorkflowJob):
238241 timeoutForProfile ( timeout , profile ) ,
239242 ) ;
240243 }
244+ if ( timeout === "${{ matrix.group.timeout_minutes || 60 }}" ) {
245+ return [ 60 , 90 ] ;
246+ }
241247 if ( timeout !== "${{ matrix.timeout_minutes }}" ) {
242248 throw new Error ( `Unsupported timeout for ${ path } :${ jobName } : ${ String ( timeout ) } ` ) ;
243249 }
@@ -6342,16 +6348,22 @@ wait_for_run plugin-clawhub-new.yml 123 "${expectedSha}" || status=$?
63426348 timeoutForProfile ( liveE2e . jobs ?. validate_selected_ref ?. [ "timeout-minutes" ] , profile ) ,
63436349 timeoutForProfile ( liveE2e . jobs ?. prepare_docker_e2e_image ?. [ "timeout-minutes" ] , profile ) ,
63446350 timeoutForProfile ( liveE2e . jobs ?. docker_e2e_image_ready ?. [ "timeout-minutes" ] , profile ) ,
6345- timeoutForProfile ( liveE2e . jobs ?. validate_docker_lanes ?. [ "timeout-minutes" ] , profile ) ,
6351+ Math . max (
6352+ ...evaluatedJobTimeouts (
6353+ LIVE_E2E_WORKFLOW ,
6354+ "validate_docker_lanes" ,
6355+ workflowJob ( LIVE_E2E_WORKFLOW , "validate_docker_lanes" ) ,
6356+ ) ,
6357+ ) ,
63466358 timeoutForProfile ( packageAcceptance . jobs ?. summary ?. [ "timeout-minutes" ] , profile ) ,
63476359 timeoutForProfile ( releaseChecks . jobs ?. summary ?. [ "timeout-minutes" ] , profile ) ,
63486360 ] ,
63496361 ] ) ,
63506362 ) as Record < ( typeof profiles ) [ number ] , number [ ] > ;
63516363 expect ( releasePackagePaths ) . toEqual ( {
6352- beta : [ 30 , 15 , 60 , 10 , 30 , 60 , 5 , 60 , 5 , 5 ] ,
6353- stable : [ 30 , 15 , 60 , 10 , 30 , 60 , 5 , 60 , 5 , 5 ] ,
6354- full : [ 30 , 15 , 60 , 10 , 30 , 90 , 5 , 60 , 5 , 5 ] ,
6364+ beta : [ 30 , 15 , 60 , 10 , 30 , 60 , 5 , 90 , 5 , 5 ] ,
6365+ stable : [ 30 , 15 , 60 , 10 , 30 , 60 , 5 , 90 , 5 , 5 ] ,
6366+ full : [ 30 , 15 , 60 , 10 , 30 , 90 , 5 , 90 , 5 , 5 ] ,
63556367 } ) ;
63566368 const releaseChecksParent = workflowJob ( FULL_RELEASE_VALIDATION_WORKFLOW , "release_checks" ) ;
63576369 expect ( releaseChecksParent [ "runs-on" ] ) . toBe ( "blacksmith-4vcpu-ubuntu-2404" ) ;
@@ -6361,7 +6373,7 @@ wait_for_run plugin-clawhub-new.yml 123 "${expectedSha}" || status=$?
63616373 stable : releasePackagePaths . stable . reduce ( ( total , timeout ) => total + timeout , 0 ) ,
63626374 full : releasePackagePaths . full . reduce ( ( total , timeout ) => total + timeout , 0 ) ,
63636375 } ;
6364- expect ( releasePackageTimeouts ) . toEqual ( { beta : 280 , stable : 280 , full : 310 } ) ;
6376+ expect ( releasePackageTimeouts ) . toEqual ( { beta : 310 , stable : 310 , full : 340 } ) ;
63656377 for ( const [ profile , childTimeout ] of Object . entries ( releasePackageTimeouts ) ) {
63666378 expect ( childTimeout , `release-package:${ profile } ` ) . toBeLessThanOrEqual ( 420 ) ;
63676379 expect ( 420 - childTimeout , `release-package:${ profile } ` ) . toBeGreaterThanOrEqual ( 60 ) ;
0 commit comments