]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Add retries to Smokeshow (#13151)
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 4 Jan 2025 00:26:30 +0000 (00:26 +0000)
committerGitHub <noreply@github.com>
Sat, 4 Jan 2025 00:26:30 +0000 (00:26 +0000)
.github/workflows/smokeshow.yml

index ba505985dd06023e244bfee808d7a11dc32f9779..a0ffd55e6367131e59cff91614203fcf33b50a85 100644 (file)
@@ -40,7 +40,17 @@ jobs:
           path: htmlcov
           github-token: ${{ secrets.GITHUB_TOKEN }}
           run-id: ${{ github.event.workflow_run.id }}
-      - run: smokeshow upload htmlcov
+      # Try 5 times to upload coverage to smokeshow
+      - name: Upload coverage to Smokeshow
+        run: |
+          for i in 1 2 3 4 5; do
+            if smokeshow upload htmlcov; then
+                echo "Smokeshow upload success!"
+                break
+            fi
+            echo "Smokeshow upload error, sleep 1 sec and try again."
+            sleep 1
+          done
         env:
           SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
           SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 100