File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999 env :
100100 FRONTEND_URL : https://${{ inputs.hostname }}
101101 REDIRECT_URL : https://${{ inputs.redirect_url }}
102+ SMOKE_MAX_RETRIES : " 5"
103+ SMOKE_RETRY_DELAY : " 5000"
104+ SMOKE_MAX_RETRY_DELAY : " 40000"
102105 run : |
103106 npm ci
104107 npm run smoke
Original file line number Diff line number Diff line change @@ -23,7 +23,13 @@ const MAX_RETRIES = (() => {
2323} ) ( ) ;
2424
2525const MIN_RETRY_DELAY_MS = 100 ;
26- const MAX_RETRY_DELAY_MS = 30_000 ;
26+ const MAX_RETRY_DELAY_MS = ( ( ) => {
27+ const parsed = Number . parseInt ( process . env . SMOKE_MAX_RETRY_DELAY ?? "30000" , 10 ) ;
28+ if ( Number . isFinite ( parsed ) && parsed >= MIN_RETRY_DELAY_MS ) {
29+ return parsed ;
30+ }
31+ return 30_000 ;
32+ } ) ( ) ;
2733const RETRY_DELAY_MS = ( ( ) => {
2834 const parsed = Number . parseInt ( process . env . SMOKE_RETRY_DELAY ?? "1000" , 10 ) ;
2935 if ( ! Number . isFinite ( parsed ) || parsed < MIN_RETRY_DELAY_MS ) {
You can’t perform that action at this time.
0 commit comments