Skip to content

fix(ci): wait for the Pages artifact to be listed before deploying - #1833

Closed
Mearman wants to merge 1 commit into
mainfrom
fix/pages-deploy-artifact
Closed

Mearman wants to merge 1 commit into
mainfrom
fix/pages-deploy-artifact

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 waits until the run's artifact list shows the uploaded github-pages artifact before actions/deploy-pages looks it up.

Why

Two consecutive main runs failed at deploy-pages with No artifacts named "github-pages" were found for this workflow run, after upload-pages-artifact had reported the artifact finalised in the same second. The log said Found 2 artifact(s) (the earlier coverage and Playwright artifacts) and the REST API lists github-pages for the same run. The last green run used the same action SHAs and the same step timing and found 4, so the results-service listing lags the finalise intermittently. Refs #1831 only for the timing of the first failure; it does not close it.

Notes for review

A pull request cannot run this job (it needs github.ref == 'refs/heads/main' on a push), so the PR proves only that the workflow still validates. Only the merge to main exercises the new step. The wait polls the REST list, which is not the same service as deploy-pages' lookup, so if the next main run still fails the cause is not a listing lag and needs the action's own debug log.


  • Commits are conventional.
  • A behaviour change has a test that fails without it: not testable outside a main push.

deploy-pages looks the artifact up through the Actions results service
straight after upload-pages-artifact finalises it. On two consecutive
main runs that listing returned only the earlier coverage and Playwright
artifacts, so the deploy failed with "No artifacts named github-pages
were found" although the REST API listed the artifact moments later.

Poll the run's artifact list until github-pages appears, bounded so a
genuinely missing artifact still fails the job.
@Mearman
Mearman marked this pull request as ready for review November 25, 2026 08:24
@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 commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

Closing without merging. The two failures it targeted were intermittent: the same run's Pages job succeeded on its third attempt (a re-run of the failed job with debug logging, commit 40918c9, no change to the code or settings), so main CI is green. The pre-poll also could not affect the second failure form, a 400 from the Pages service itself ('Unable to find artifact'), and the REST listing it polls is not the route deploy-pages reads. If it recurs, the fix to evidence is a retry of the deploy step, with the run ids of the failures.

@Mearman Mearman closed this Nov 25, 2026
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