From a48eeeb47438b155d14c1d206bd3c6736d48fda4 Mon Sep 17 00:00:00 2001 From: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com> Date: Fri, 13 Nov 2026 22:39:39 -0800 Subject: [PATCH] CI: retry the Pages deploy once when the artifact is not listed yet Same change as Swift #76, C #24 and LM #421, which MLX did not get: MLX main 68ccd6e's Pages deploy failed with "No artifacts named github-pages were found" right after upload-pages-artifact finished in the same job (deploy-pages lists the run's artifacts as soon as it starts, and that list can lag the upload). Let the first try fail without failing the job; only when it failed before it created a deployment (no page_url), wait 20 seconds and run the same pinned deploy-pages once more. A second failure fails the job as before. No permission or pin changes. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/forkdiff-pages.yml | 17 ++++++++++++++++- FORKDIFF.md | 4 +++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/forkdiff-pages.yml b/.github/workflows/forkdiff-pages.yml index ceb6ae3d5c..6777acc29a 100644 --- a/.github/workflows/forkdiff-pages.yml +++ b/.github/workflows/forkdiff-pages.yml @@ -68,7 +68,7 @@ jobs: needs: render environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + url: ${{ steps.deployment.outputs.page_url || steps.deployment-retry.outputs.page_url }} runs-on: ubuntu-latest timeout-minutes: 20 permissions: @@ -114,7 +114,22 @@ jobs: with: path: tmp/pages + # deploy-pages looks the github-pages artifact up in this run's artifact + # list as soon as it starts, and that list can lag the upload above: the + # first try then fails with "No artifacts named github-pages were found" + # (seen on 2026-11-14). Only when the first try failed before it created a + # deployment (no page_url), wait and try once more. - name: Deploy to GitHub Pages if: steps.pages.outputs.enabled == 'true' id: deployment + continue-on-error: true + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 + + - name: Wait before the second try + if: steps.pages.outputs.enabled == 'true' && steps.deployment.outcome == 'failure' && steps.deployment.outputs.page_url == '' + run: sleep 20 + + - name: Deploy to GitHub Pages (second try) + if: steps.pages.outputs.enabled == 'true' && steps.deployment.outcome == 'failure' && steps.deployment.outputs.page_url == '' + id: deployment-retry uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 diff --git a/FORKDIFF.md b/FORKDIFF.md index 16534abb85..b4fefc827f 100644 --- a/FORKDIFF.md +++ b/FORKDIFF.md @@ -42,7 +42,9 @@ script under PRoot, built from pinned source with its missing ARM64 `faccessat2` entry added. PRoot fakes root through ptrace and is not an isolation boundary; the job VM is. The Fedora x86_64 job keeps its hosted runner: emulating x86 on ARM was not qualified. The GitHub-hosted Pages job still packages and publishes -the rendered artifact through its protected environment. The disabled native CodeQL workflow keeps its separate routing +the rendered artifact through its protected environment. If its first deploy +fails before it creates a deployment (the packaged artifact is not listed yet), +it waits 20 seconds and tries once more. The disabled native CodeQL workflow keeps its separate routing and activation rules. ## The gate