Repository navigation
fix(ci): retry the status page deploy when the artifact is not yet listed - #1607
Conversation
…sted Status page runs projectbluefin#83-projectbluefin#86 on main uploaded the github-pages artifact and then failed in deploy-pages a few hundred milliseconds later with "Found 0 artifact(s)" / "No artifacts named \"github-pages\" were found for this workflow run". The artifact service listing lags the upload (actions/deploy-pages#451); the actions pins for upload and deploy are unchanged since the last green run (projectbluefin#82). Retry only the deploy step after 5, 20 and 60 s. Re-uploading or re-running the job adds a second github-pages artifact and fails the lookup for good. Assisted-by: Claude Opus via GitHub Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hanthor The full list of commands accepted by this bot can be found here. Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Summary: This change makes the project's public status page publish reliably again. For the last four runs the publish step failed: it looked for the freshly built page a fraction of a second too early, before GitHub's file listing had caught up. The fix waits and tries again up to three times, without rebuilding anything, and still fails loudly if every try misses. It looks correct and safe to merge. One small wording gap in the docs is noted below.
I read the PR head d0e5bfd and the files around it. I ran tests.test_site (26 tests, OK), generate-site-data.py --check (current), check-skill-index.sh (passes, only the existing size warnings) and tests.test_sync_trigger (OK) against the head tarball.
Why the retry logic holds (.github/workflows/pages.yml:59-81):
continue-on-errormakes a failed step's conclusionsuccess, so the implicitsuccess()in eachif: steps.<id>.outcome == 'failure'lets the next retry run. A cancelled run skips the retries.- The last retry (
:79-81) has nocontinue-on-error, so the job fails if all four attempts miss. - The upload (
:48) appears once. The environment URL (:31) takespage_urlfrom whichever attempt succeeded. - The workflow permissions (
:15-18), triggers and action SHAs are unchanged. The retries reuse the same pinneddeploy-pagesSHA.
The new test (tests/test_site.py:251-262) enforces each of these points. One limit: tests.test_site runs only inside pages.yml, on pushes to main. No PR check ran it here, so the run that merging triggers is the real end-to-end check, as the body says.
No findings from: correctness, security, intent-alignment, style.
Confidence: 5/5 (safe)
-- hive: agent=reviewer backend=claude model=claude-opus-5-5 effort=medium claude=2.1.327
| reconciliation delay plus GitHub scheduling delays, not immediate CI-green | ||
| handling. Existing review, check, and queue protections are unchanged. | ||
| - `.github/workflows/pages.yml` -- pushes to `main` touching `site/`, the | ||
| two manifests or `scripts/generate-site-data.py`, and manual dispatch, |
There was a problem hiding this comment.
docs-currency (low): this trigger list leaves out the workflow file itself. pages.yml:11 also runs on pushes that touch .github/workflows/pages.yml, and the PR body relies on that for the end-to-end check after merge.
| two manifests or `scripts/generate-site-data.py`, and manual dispatch, | |
| two manifests, `scripts/generate-site-data.py` or this workflow, and manual dispatch, |
|
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor. ℹ️ Sentinel: informational, author is trusted (owner), merge is not blocked. Head
No |
Problem
The Status page workflow has failed its last four runs on
main(#83 45307609826, #84 45502128328, #85 45551801779, #86 45854892765); the last green run was #82 (44961125658, 11-21). Every step beforeactions/deploy-pagespasses. From run 45854892765:#83–#85 log the same
Found 0 artifact(s)0.4–0.7 s after their upload finalized. The artifact does exist:gh api repos/projectbluefin/utah/actions/runs/45854892765/artifactsreturns15135327636 github-pages 290158 bytes, expired=false.Cause
This is not a Pages, environment or permissions setting, and not an action pin.
upload-pages-artifact(fc324d3, v5.0.0),upload-artifact(bbbca2d),configure-pages(45bfe01) anddeploy-pages(368f825, v5.0.1) are the same SHAs in #82 and #83. The only workflow change between them is theactions/checkoutv5.1.0 → v7.0.1 bump (#1496). checkout does not touch artifacts, so I think that timing is a coincidence [inference].deploy-pagesv5.0.1 lists the run's artifacts once, through the artifact service, and that listing can lag a finalized upload by seconds and sometimes up to ~46 s. This is actions/deploy-pages#451, which has reports from other repositories on the same days (for example 2026-11-24, also withfc324d3and368f825). The upstream fix, actions/deploy-pages#455, is open and has not been released.Change
pages.yml: the deploy step getscontinue-on-error, and up to three retries ofdeploy-pagesrun after 5, 20 and 60 s. The last retry has nocontinue-on-error, so the job still fails if all four attempts miss. The environment URL takespage_urlfrom whichever attempt succeeded. The upload is never repeated. A secondgithub-pagesartifact in the run makes every later lookup fail withMultiple artifacts named "github-pages", which is also why "re-run failed jobs" cannot recover a failed run (reported in Feature request: addnvtopto NVIDIA images #451). ci(build): retry deploying to Pages instead of waiting for the artifact renovatebot/renovate#48395 uses the same workaround.tests/test_site.py: checks that the workflow uploads exactly once, has more than one deploy attempt, has nocontinue-on-erroron the last attempt, and reads every attempt'spage_urlinto the environment URL.docs/skills/ci-workflows.md: addspages.ymlto the workflow list, including this failure mode and the advice to re-dispatch the workflow rather than re-run the job. The skill catalog was regenerated.Because the change touches
pages.yml, merging it triggers a Status page run, which is the end-to-end check.Assisted-by: Claude Opus via GitHub Copilot