From 436876e07079d6cc604c1177ff328d164c77bad2 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 1 Nov 2025 19:44:30 +0100 Subject: [PATCH] workflows/pull-request-target: increase retries for prepare step We still get plenty of errors in the prepare step for the diff requests to take way too long - let's increase the number of retries massively now. These are repeated with exponential backoff, so hopefully they will succeed with some cooldown, when GitHub had time to compute the right diff in the background. --- .github/workflows/pull-request-target.yml | 2 +- .github/workflows/test.yml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request-target.yml b/.github/workflows/pull-request-target.yml index d73f6fdc7e5c..76a77c7942e5 100644 --- a/.github/workflows/pull-request-target.yml +++ b/.github/workflows/pull-request-target.yml @@ -45,7 +45,7 @@ jobs: - id: prepare uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: - retries: 3 + retries: 10 # 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: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c0451a54754..b9369de2af3d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,12 @@ jobs: - id: prepare uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: - retries: 3 + retries: 10 + # 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,