Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions .github/workflows/ui_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,17 @@ jobs:
- name: Install Playwright system dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true' # <-- Re-enable condition
working-directory: ./apps/laboratory/
run: pnpm playwright:install-deps
run: |
for attempt in 1 2 3; do
echo "playwright:install-deps attempt $attempt/3"
if pnpm playwright:install-deps; then
Comment on lines +303 to +306

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We used to do this before, but then realised retries can actually bypass certain bugs.

Would it be possible to retry on test level rather than on playwright level?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This retry is for the dep install, not the tests themselves. If this step fails, then there is no test to run

exit 0
fi
echo "Attempt $attempt failed (likely a transient apt mirror timeout) - retrying in 15s..."
sleep 15
done
echo "playwright:install-deps failed after 3 attempts"
exit 1

- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true' # <-- Re-enable condition
Expand Down Expand Up @@ -429,7 +439,17 @@ jobs:
- name: Install Playwright system dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true' # <-- Re-enable condition
working-directory: ./apps/laboratory/
run: pnpm playwright:install-deps
run: |
for attempt in 1 2 3; do
echo "playwright:install-deps attempt $attempt/3"
if pnpm playwright:install-deps; then
exit 0
fi
echo "Attempt $attempt failed (likely a transient apt mirror timeout) - retrying in 15s..."
sleep 15
done
echo "playwright:install-deps failed after 3 attempts"
exit 1

- name: Download all shard blob reports
uses: actions/download-artifact@v4
Expand Down
Loading