From 089a29e00f3462249d5db5da297eec133e82be4f Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 30 Oct 2025 13:19:59 +0100 Subject: [PATCH] workflows/pr: retry for 422 in prepare I recently tried to increase retries to 3 to fix the 422 "Sorry, this diff is taking too long to generate" errors that appear frequently as of late. Little did I know that, this specific status code would not be retried by default. Thus, try again. --- .github/workflows/pr.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1ba548a4c44e..56017f0b4943 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -42,6 +42,11 @@ jobs: uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: retries: 3 + # The default for this includes code 422, which happens regularly for us when comparing commits: + # 422 - Server Error: Sorry, this diff is taking too long to generate. + # Listing all other values from here to effectively remove 422: + # https://github.com/octokit/plugin-retry.js/blob/9a2443746c350b3beedec35cf26e197ea318a261/src/index.ts#L14 + retry-exempt-status-codes: 400,401,403,404 script: | require('./ci/github-script/prepare.js')({ github,