Skip to content

Commit 0b78e21

Browse files
authored
Retry addition of the PPA (infra) (#2448)
Retry addition of the PPA LP is not reliable enough on SHR. I click retry pretty often sadly
1 parent e647807 commit 0b78e21

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

.github/workflows/deb_validator.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,13 @@ jobs:
8787
persist-credentials: false
8888
# needed by providers that pull checkbox-support
8989
- name: Install PPA and dependencies
90-
run: |
91-
sudo add-apt-repository ppa:checkbox-dev/edge
92-
sudo apt-get update
93-
sudo apt-get install -qq -y dpkg-dev fakeroot
90+
uses: Wandalen/wretry.action@71a909ebf09f3ffdc6f42a17bd54ecb43481da49
91+
with:
92+
attempt_limit: 3
93+
command: |
94+
sudo add-apt-repository ppa:checkbox-dev/edge
95+
sudo apt-get update
96+
sudo apt-get install -qq -y dpkg-dev fakeroot
9497
- name: Prepare installation
9598
env:
9699
MATRIX_PATH: ${{ matrix.path }}

.github/workflows/tox-checkbox.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,17 @@ jobs:
135135
- name: Install dependencies
136136
env:
137137
PYTHON_VERSION: ${{ matrix.python }}
138-
run: |
139-
sudo add-apt-repository ppa:deadsnakes/ppa
140-
# python3.5 and python3.6 are no longer in deadsnakes for focal
141-
# we pushed them to the Checkbox PPA instead
142-
sudo add-apt-repository ppa:checkbox-dev/edge
143-
sudo apt-get update
144-
sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev shellcheck libpcsclite-dev swig
145-
pip install tox
138+
uses: Wandalen/wretry.action@71a909ebf09f3ffdc6f42a17bd54ecb43481da49
139+
with:
140+
attempt_limit: 3
141+
command: |
142+
sudo add-apt-repository ppa:deadsnakes/ppa
143+
# python3.5 and python3.6 are no longer in deadsnakes for focal
144+
# we pushed them to the Checkbox PPA instead
145+
sudo add-apt-repository ppa:checkbox-dev/edge
146+
sudo apt-get update
147+
sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev shellcheck libpcsclite-dev swig
148+
pip install tox
146149
- name: Run tox
147150
run: tox -e${{ matrix.tox_env_name }}
148151
- name: Print out the codecov flag

0 commit comments

Comments
 (0)