Skip to content

Commit fdc89c8

Browse files
ci: retry bootstrap step (#1240)
1 parent b38f8ea commit fdc89c8

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,26 @@ jobs:
157157
echo "PLEXAPI_AUTH_SERVER_TOKEN=${{ secrets.PLEXAPI_AUTH_SERVER_TOKEN }}" >> $GITHUB_ENV
158158
159159
- name: Bootstrap ${{ matrix.plex }} Plex server
160-
run: |
161-
. venv/bin/activate
162-
python \
163-
-u tools/plex-bootstraptest.py \
164-
--destination plex \
165-
--advertise-ip 127.0.0.1 \
166-
--bootstrap-timeout 540 \
167-
--docker-tag ${{ env.PLEX_CONTAINER_TAG }} \
168-
--${{ matrix.plex }}
160+
uses: nick-fields/[email protected]
161+
with:
162+
max_attempts: 3
163+
timeout_minutes: 2
164+
command: |
165+
. venv/bin/activate
166+
python \
167+
-u tools/plex-bootstraptest.py \
168+
--destination plex \
169+
--advertise-ip 127.0.0.1 \
170+
--bootstrap-timeout 540 \
171+
--docker-tag ${{ env.PLEX_CONTAINER_TAG }} \
172+
--${{ matrix.plex }}
173+
on_retry_command: |
174+
if ["${{ matrix.plex }}" == "claimed"]; then
175+
python -u tools/plex-teardowntest.py
176+
fi
177+
178+
# remove docker container
179+
docker rm -f $(docker ps --latest)
169180
170181
- name: Main tests with ${{ matrix.plex }} server
171182
env:

0 commit comments

Comments
 (0)