From 1477e658ec0795d1a41bcd1da7c377125f05b72d Mon Sep 17 00:00:00 2001 From: Andreas Christou Date: Fri, 23 Feb 2024 16:15:28 +0000 Subject: [PATCH] CI: Add retry for yarn install (#83317) Add retry for yarn install --- .drone.yml | 24 ++++++++++++------------ scripts/drone/steps/lib.star | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index d632880afc2..dcc5b951d6d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -124,7 +124,7 @@ steps: name: identify-runner - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -226,7 +226,7 @@ steps: name: identify-runner - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -539,7 +539,7 @@ steps: name: wire-install - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -1113,7 +1113,7 @@ steps: name: identify-runner - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -1473,7 +1473,7 @@ steps: name: identify-runner - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -1550,7 +1550,7 @@ steps: name: identify-runner - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -1609,7 +1609,7 @@ steps: name: identify-runner - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -1873,7 +1873,7 @@ steps: name: wire-install - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -2853,7 +2853,7 @@ steps: name: compile-build-cmd - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -3127,7 +3127,7 @@ steps: name: identify-runner - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -3552,7 +3552,7 @@ steps: name: identify-runner - commands: - apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python - - yarn install --immutable + - yarn install --immutable || yarn install --immutable depends_on: [] image: node:20.9.0-alpine name: yarn-install @@ -4924,6 +4924,6 @@ kind: secret name: gcr_credentials --- kind: signature -hmac: bce7b2ac72349019ec0c2ffbdca13c0591110ee53a3bfc72261df0ed05ca025a +hmac: 0d5e600881f5a8f4294cafd07f450f92f4088e1cda7254d111a635bf01f07465 ... diff --git a/scripts/drone/steps/lib.star b/scripts/drone/steps/lib.star index 9f246619131..9a010c61f2c 100644 --- a/scripts/drone/steps/lib.star +++ b/scripts/drone/steps/lib.star @@ -37,7 +37,7 @@ def yarn_install_step(): "commands": [ # Python is needed to build `esfx`, which is needed by `msagl` "apk add --update g++ make python3 && ln -sf /usr/bin/python3 /usr/bin/python", - "yarn install --immutable", + "yarn install --immutable || yarn install --immutable", ], "depends_on": [], }