From 744c12e3578292ceb813338f95b10f01169e5c98 Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Tue, 25 Aug 2026 06:52:53 -0700 Subject: [PATCH] Retry transient Yarn install failures --- .github/workflows/job-compile-and-test.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/job-compile-and-test.yml b/.github/workflows/job-compile-and-test.yml index f3c6803b2..bfab33592 100644 --- a/.github/workflows/job-compile-and-test.yml +++ b/.github/workflows/job-compile-and-test.yml @@ -43,7 +43,22 @@ jobs: working-directory: Extension - name: Install Dependencies - run: yarn install ${{ inputs.yarn-args }} + shell: bash + env: + YARN_ARGS: ${{ inputs.yarn-args }} + run: | + read -r -a yarn_args <<< "$YARN_ARGS" + for attempt in 1 2 3; do + if yarn install "${yarn_args[@]}"; then + exit 0 + fi + if (( attempt == 3 )); then + exit 1 + fi + delay=$((attempt * 15)) + printf 'yarn install failed; retrying in %d seconds.\n' "$delay" >&2 + sleep "$delay" + done working-directory: Extension - name: Install gdb (linux)