fix(ci): retry transient Playwright dependency downloads
AI Review / review (pull_request) Successful in 13s
Verify / verify (push) Failing after 5m58s
Verify / verify (pull_request) Failing after 13m45s

This commit is contained in:
Jayway Liu
2026-11-01 10:12:59 +08:00
parent 0a55d4c3f7
commit 8683ae3f15
+10 -1
View File
@@ -82,7 +82,16 @@ jobs:
- run: uv run python manage.py bootstrap --username admin --organization CI
env:
BOOTSTRAP_PASSWORD: ${{ env.E2E_PASSWORD }}
- run: npx playwright install --with-deps chromium
- name: Install Playwright Chromium
run: |
for attempt in 1 2 3; do
npx playwright install --with-deps chromium && exit 0
if [ "$attempt" -lt 3 ]; then
echo "::warning::Playwright 安装第 ${attempt} 次失败,15 秒后重试"
sleep 15
fi
done
exit 1
- name: Browser regression
shell: bash
run: |