Skip to content

fix(ci): retry the Pages deployment once when the artifact lookup lags the upload - #1836

Merged
Mearman merged 1 commit into
mainfrom
fix/pages-deploy-retry
Nov 25, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/pages-deploy-retry

Conversation

@Mearman

@Mearman Mearman commented Nov 25, 2026

Copy link
Copy Markdown
Member

What this changes

The deploy-site job in .github/workflows/ci.yml. The first actions/deploy-pages@v5 step now has continue-on-error: true. If it fails, the job waits 30 seconds and runs deploy-pages a second time against the artifact the run already uploaded. The job's page_url output and the environment url come from whichever step succeeded.

Why

Every main push since 25 November 07:42 UTC fails the first deploy attempt with "No artifacts named github-pages were found for this workflow run", about half a second after upload-pages-artifact finalises the artifact. The action reads artifacts through the Actions results service, which lags the upload; the REST listing already shows the artifact. This is a mitigation of that GitHub-side timing fault, not a fix for it, and the step can be removed once a deploy no longer needs it.

Refs: runs 45566697672, 45568970524 and the run on dcd7f25.

Notes for review

The action's timeout, error_count and reporting_interval inputs only govern status polling after the deployment is created, so none of them handles the artifact lookup; hence the retry step. The "Remove prior github-pages artifacts" step runs before the upload, so the retry still finds the artifact. An earlier attempt polled the REST listing, which is not the service the action reads.

The job only runs on main, so this PR cannot exercise it. The merge proves the change when the next main run's deploy-site job passes on its first attempt or on the retry step, which I will read after the merge.


  • Commits are conventional, and each package-affecting commit is scoped to the package it changes.
  • A behaviour change has a test that fails without it: not testable outside main, see above.
  • No breaking change.

…s the upload

actions/deploy-pages reads the uploaded artifact through the Actions results service, which can
lag the upload-pages-artifact finalisation, so the first lookup fails with "No artifacts named
github-pages were found for this workflow run". The action's timeout, error_count and
reporting_interval inputs only govern status polling after the deployment exists, so none of
them covers that lookup.

The first deploy-pages step now continues on error. On failure the job waits briefly and runs
deploy-pages again against the artifact this run already uploaded. The cleanup step runs before
the upload, so it does not remove that artifact. The page_url output and environment url come
from whichever step succeeded.

Refs: runs 45566697672 and 45568970524
@Mearman
Mearman marked this pull request as ready for review November 25, 2026 10:03
@claude

claude Bot commented Nov 25, 2026

Copy link
Copy Markdown

⚠️ PR Steward hasn't started: your organization has no extra usage available to pay for it, so it isn't working on this pull request.

If your organization's extra usage balance is empty or was never set up, an Owner of your Claude organization can add extra usage credits at claude.ai/admin-settings/usage. If your organization's monthly spend limit for extra usage is $0 or was reached, an Owner can raise it on the same page. If neither applies, contact Anthropic support.

Once that's fixed, PR Steward starts at the next push to this pull request.

Settings

@Mearman
Mearman added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit e18da78 Nov 25, 2026
31 checks passed
@Mearman
Mearman deleted the fix/pages-deploy-retry branch November 25, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant