From 7df441a3893f04fce502765c3d3a63ee9cf6f78c Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 11 Dec 2024 11:33:41 -0800 Subject: [PATCH] Wrap yarn install with retry for Testdriver and Build Helper (#1494) Yarn Install (specifically the `sharp` builds) are flaky on Windows. I'm adding a retry around this step to prevent unnecessary failures --- .github/workflows/build-helper.yml | 11 ++++++++--- .github/workflows/testdriver.yml | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-helper.yml b/.github/workflows/build-helper.yml index c0ac82acc..ec92aaae6 100644 --- a/.github/workflows/build-helper.yml +++ b/.github/workflows/build-helper.yml @@ -63,9 +63,14 @@ jobs: with: node-version: ${{env.NODE_VERSION}} - name: Install Yarn - run: | - corepack enable - yarn install + uses: nick-fields/retry@v3 + with: + command: | + corepack enable + yarn install + timeout_minutes: 5 + retry_on: error + max_attempts: 3 - name: Install Task uses: arduino/setup-task@v2 with: diff --git a/.github/workflows/testdriver.yml b/.github/workflows/testdriver.yml index 2a9cbb37c..13cb19d83 100644 --- a/.github/workflows/testdriver.yml +++ b/.github/workflows/testdriver.yml @@ -47,9 +47,14 @@ jobs: with: node-version: ${{env.NODE_VERSION}} - name: Install Yarn - run: | - corepack enable - yarn install + uses: nick-fields/retry@v3 + with: + command: | + corepack enable + yarn install + timeout_minutes: 5 + retry_on: error + max_attempts: 3 - name: Install Task uses: arduino/setup-task@v2 with: