Skip to content

fix(ci): retry the status page deploy when the artifact is not yet listed - #1607

Merged
hanthor merged 1 commit into
projectbluefin:mainfrom
hanthor:fix/status-pages-deploy
Nov 27, 2026
Merged

hanthor merged 1 commit into
projectbluefin:mainfrom
hanthor:fix/status-pages-deploy

Conversation

@hanthor

@hanthor hanthor commented Nov 27, 2026

Copy link
Copy Markdown
Member

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 before actions/deploy-pages passes. From run 45854892765:

16:02:22.2639519Z Artifact github-pages successfully finalized. Artifact ID 15135327636
16:02:22.4882784Z Fetching artifact metadata for "github-pages" in this workflow run
16:02:22.5625003Z Found 0 artifact(s)
16:02:22.5645260Z ##[error]Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time.
16:02:22.6919124Z ##[error]Error: No artifacts named "github-pages" were found for this workflow run. Ensure artifacts are uploaded with actions/upload-artifact@v4 or later.

#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/artifacts returns 15135327636 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) and deploy-pages (368f825, v5.0.1) are the same SHAs in #82 and #83. The only workflow change between them is the actions/checkout v5.1.0 → v7.0.1 bump (#1496). checkout does not touch artifacts, so I think that timing is a coincidence [inference]. deploy-pages v5.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 with fc324d3 and 368f825). The upstream fix, actions/deploy-pages#455, is open and has not been released.

Change

  • pages.yml: the deploy step gets continue-on-error, and up to three retries of deploy-pages run after 5, 20 and 60 s. The last retry has no continue-on-error, so the job still fails if all four attempts miss. The environment URL takes page_url from whichever attempt succeeded. The upload is never repeated. A second github-pages artifact in the run makes every later lookup fail with Multiple artifacts named "github-pages", which is also why "re-run failed jobs" cannot recover a failed run (reported in Feature request: add nvtop to 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 no continue-on-error on the last attempt, and reads every attempt's page_url into the environment URL.
  • docs/skills/ci-workflows.md: adds pages.yml to 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

…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>
@mergeraptor
mergeraptor Bot requested review from Danathar and castrojo November 27, 2026 02:13
@mergeraptor mergeraptor Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 27, 2026
@mergeraptor

mergeraptor Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hivecommons-hive hivecommons-hive Bot added author/clanker A contributor's own hive authored this PR under their login no-dco A commit is missing Signed-off-by — run `git rebase --signoff` role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Nov 27, 2026
@hanthor
hanthor enabled auto-merge November 27, 2026 02:15

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-error makes a failed step's conclusion success, so the implicit success() in each if: steps.<id>.outcome == 'failure' lets the next retry run. A cancelled run skips the retries.
  • The last retry (:79-81) has no continue-on-error, so the job fails if all four attempts miss.
  • The upload (:48) appears once. The environment URL (:31) takes page_url from whichever attempt succeeded.
  • The workflow permissions (:15-18), triggers and action SHAs are unchanged. The retries reuse the same pinned deploy-pages SHA.

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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
two manifests or `scripts/generate-site-data.py`, and manual dispatch,
two manifests, `scripts/generate-site-data.py` or this workflow, and manual dispatch,

@hivecommons-hive hivecommons-hive Bot added stage/060-reviewed Review swarm verdict approve; a gate is still pending (CI running, soak not started) and removed stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Nov 27, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor

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 d0e5bfdbc04b matched:

  • sensitive_path: changes 1 sensitive path(s) (.github/workflows/pages.yml)
  • ci_gate_weakening: CI configuration is deleted, softened or has gate checks removed (.github/workflows/pages.yml)

No sentinel-alert label was added. The finding is recorded in the dashboard Security tab and /api/sentinel; set sentinel.trusted_authors_block: true to block trusted authors too.

@hanthor
hanthor added this pull request to the merge queue Nov 27, 2026
Merged via the queue into projectbluefin:main with commit 0b1ab6f Nov 27, 2026
45 checks passed
@hanthor
hanthor deleted the fix/status-pages-deploy branch November 27, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. author/clanker A contributor's own hive authored this PR under their login no-dco A commit is missing Signed-off-by — run `git rebase --signoff` role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/060-reviewed Review swarm verdict approve; a gate is still pending (CI running, soak not started)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant