Repository navigation
fix(ci): retry the Pages deployment once when the artifact lookup lags the upload - #1836
Merged
Merged
Conversation
…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
marked this pull request as ready for review
November 25, 2026 10:03
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
The
deploy-sitejob in.github/workflows/ci.yml. The firstactions/deploy-pages@v5step now hascontinue-on-error: true. If it fails, the job waits 30 seconds and runsdeploy-pagesa second time against the artifact the run already uploaded. The job'spage_urloutput and the environmenturlcome 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-artifactfinalises 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_countandreporting_intervalinputs 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-sitejob passes on its first attempt or on the retry step, which I will read after the merge.