Skip to content

ci(docs): retry the GitHub Pages deployment when it fails - #361

Merged
shunsuke-shimomura merged 1 commit into
mainfrom
ci/retry-pages-deploy
Nov 26, 2026
Merged

shunsuke-shimomura merged 1 commit into
mainfrom
ci/retry-pages-deploy

Conversation

@shunsuke-shimomura

@shunsuke-shimomura shunsuke-shimomura commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Description

The Documentation workflow has failed on 11 of the last 30 pushes to main (for example
run 45717608248). The build and the artifact upload succeed
every time; only the actions/deploy-pages step fails, in one of two ways:

  1. No artifacts named "github-pages" were found for this workflow run (10 of the 11 failures). deploy-pages looks
    the artifact up once, about 0.3 s after upload-pages-artifact finalizes it, and the artifact service has not listed
    it yet (Found 0 artifact(s)). This is an upstream race:
    actions/deploy-pages#451. Reports there measure the delay
    before the artifact shows up at 0.5 s to about 46 s. The fix,
    actions/deploy-pages#455, retries the lookup, but it is not
    merged yet, and v5.0.1 is still the latest release.
  2. Deployment failed, try again later. (run 45717608248). The artifact was found and the deployment created, but
    Pages reported it failed. This is a transient failure on the Pages side
    (actions/deploy-pages#418).

Re-running the failed job does not help: it uploads a second github-pages artifact, and the lookup then fails with
Multiple artifacts named "github-pages". The failures are frequent now because Renovate auto-merges and pushes to
main many times a day.

This pull request retries only the deployment step, with continue-on-error, after waiting 5 s, 20 s and 60 s, the same
workaround renovatebot/renovate#48395 uses. The environment URL
takes the page_url of whichever attempt succeeded. A comment in the workflow says to remove the retries once
actions/deploy-pages#455 is released.

Test results

  • prek run --files .github/workflows/docs.yaml (yamllint and the other hooks) passes.
  • zizmor --offline .github/workflows/docs.yaml reports no findings.
  • actionlint runs in Repository check on this pull request.
  • The workflow runs only on pushes to main, so the retries are first exercised after this is merged.

Impact

  • Only .github/workflows/docs.yaml changes. The site and its build do not change.
  • When the first deployment succeeds, nothing changes. When it fails, the job waits up to 85 s in total before it gives
    up, which is still within the 10-minute job timeout.

Supplementary information

🤖 Generated with Claude Code

`deploy-pages` looks up the `github-pages` artifact once, right after
`upload-pages-artifact` finalizes it, and the artifact service may not
list it yet (actions/deploy-pages#451). Pages also fails a deployment
now and then with "Deployment failed, try again later". Retry only the
deployment after 5 s, 20 s and 60 s, since re-running the job uploads a
second artifact and makes the lookup fail with two.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 42af057 and b71f501.

Files selected for processing: 1

  • .github/workflows/docs.yaml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added sys::SE システムズエンジニアリング ci ⚙️ Changes to CI workflows and removed sys::SE システムズエンジニアリング labels Nov 26, 2026
@shunsuke-shimomura
shunsuke-shimomura merged commit eeaf558 into main Nov 26, 2026
42 checks passed
@shunsuke-shimomura
shunsuke-shimomura deleted the ci/retry-pages-deploy branch November 26, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci ⚙️ Changes to CI workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant