diff --git a/.github/actions/javascript/authorChecklist/index.js b/.github/actions/javascript/authorChecklist/index.js index 7f9b05a286c3..4276ea0ba6fc 100644 --- a/.github/actions/javascript/authorChecklist/index.js +++ b/.github/actions/javascript/authorChecklist/index.js @@ -139,11 +139,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/awaitStagingDeploys/index.js b/.github/actions/javascript/awaitStagingDeploys/index.js index 4ea17b8b29e5..bc8510ba5bc6 100644 --- a/.github/actions/javascript/awaitStagingDeploys/index.js +++ b/.github/actions/javascript/awaitStagingDeploys/index.js @@ -177,11 +177,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/checkDeployBlockers/index.js b/.github/actions/javascript/checkDeployBlockers/index.js index 8b8a401ba592..ca368f0cff29 100644 --- a/.github/actions/javascript/checkDeployBlockers/index.js +++ b/.github/actions/javascript/checkDeployBlockers/index.js @@ -144,11 +144,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js index 5fcd41200f47..3aa948813b78 100644 --- a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js +++ b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js @@ -386,11 +386,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/getDeployPullRequestList/index.js b/.github/actions/javascript/getDeployPullRequestList/index.js index 2d3b51f58f2e..0c8243d5ff6f 100644 --- a/.github/actions/javascript/getDeployPullRequestList/index.js +++ b/.github/actions/javascript/getDeployPullRequestList/index.js @@ -320,11 +320,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/getPullRequestDetails/index.js b/.github/actions/javascript/getPullRequestDetails/index.js index 7105946b2c73..28e0a65db686 100644 --- a/.github/actions/javascript/getPullRequestDetails/index.js +++ b/.github/actions/javascript/getPullRequestDetails/index.js @@ -189,11 +189,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/getReleaseBody/index.js b/.github/actions/javascript/getReleaseBody/index.js index 84ef8fff3685..460ac29d724e 100644 --- a/.github/actions/javascript/getReleaseBody/index.js +++ b/.github/actions/javascript/getReleaseBody/index.js @@ -131,11 +131,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/isStagingDeployLocked/index.js b/.github/actions/javascript/isStagingDeployLocked/index.js index 9a44f0418d27..9bcb3f24e7ac 100644 --- a/.github/actions/javascript/isStagingDeployLocked/index.js +++ b/.github/actions/javascript/isStagingDeployLocked/index.js @@ -95,11 +95,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/markPullRequestsAsDeployed/index.js b/.github/actions/javascript/markPullRequestsAsDeployed/index.js index 22ce69749265..38a45bda5054 100644 --- a/.github/actions/javascript/markPullRequestsAsDeployed/index.js +++ b/.github/actions/javascript/markPullRequestsAsDeployed/index.js @@ -272,11 +272,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/postTestBuildComment/index.js b/.github/actions/javascript/postTestBuildComment/index.js index 2291b2f3cec2..5da6c7ed667a 100644 --- a/.github/actions/javascript/postTestBuildComment/index.js +++ b/.github/actions/javascript/postTestBuildComment/index.js @@ -139,11 +139,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/reopenIssueWithComment/index.js b/.github/actions/javascript/reopenIssueWithComment/index.js index 536afba4b408..3efa2664a4c5 100644 --- a/.github/actions/javascript/reopenIssueWithComment/index.js +++ b/.github/actions/javascript/reopenIssueWithComment/index.js @@ -108,11 +108,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/reviewerChecklist/index.js b/.github/actions/javascript/reviewerChecklist/index.js index abb9deb48b92..fc4ba728220b 100644 --- a/.github/actions/javascript/reviewerChecklist/index.js +++ b/.github/actions/javascript/reviewerChecklist/index.js @@ -174,11 +174,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/triggerWorkflowAndWait/index.js b/.github/actions/javascript/triggerWorkflowAndWait/index.js index 413dec66a4f4..39bd36fed887 100644 --- a/.github/actions/javascript/triggerWorkflowAndWait/index.js +++ b/.github/actions/javascript/triggerWorkflowAndWait/index.js @@ -273,11 +273,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/actions/javascript/verifySignedCommits/index.js b/.github/actions/javascript/verifySignedCommits/index.js index 664c51fefd61..df8ca5b31bad 100644 --- a/.github/actions/javascript/verifySignedCommits/index.js +++ b/.github/actions/javascript/verifySignedCommits/index.js @@ -97,11 +97,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; } diff --git a/.github/libs/GithubUtils.js b/.github/libs/GithubUtils.js index 2677a8e68fec..ea81dc6e1136 100644 --- a/.github/libs/GithubUtils.js +++ b/.github/libs/GithubUtils.js @@ -32,11 +32,12 @@ class GithubUtils { this.internalOctokit = new Octokit( getOctokitOptions(token, { throttle: { + retryAfterBaseValue: 2000, onRateLimit: (retryAfter, options) => { console.warn(`Request quota exhausted for request ${options.method} ${options.url}`); - // Retry once after hitting a rate limit error, then give up - if (options.request.retryCount <= 1) { + // Retry five times when hitting a rate limit error, then give up + if (options.request.retryCount <= 5) { console.log(`Retrying after ${retryAfter} seconds!`); return true; }