Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-26.04
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
url: ${{ steps.deploy.outputs.page_url || steps.deploy_retry_1.outputs.page_url || steps.deploy_retry_2.outputs.page_url || steps.deploy_retry_3.outputs.page_url }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -48,5 +48,34 @@ jobs:
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: site

# deploy-pages looks the artifact up by name once, through the artifact
# service, and that listing can lag the upload by seconds to a minute:
# "Found 0 artifact(s)" right after "successfully finalized"
# (actions/deploy-pages#451). Retry the deploy, never the upload: a
# second upload in the run makes the lookup fail with two artifacts,
# which is also why re-running the job cannot recover. Drop the retries
# once actions/deploy-pages#455 ships in a release.
- id: deploy
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
continue-on-error: true
- name: Wait for the artifact listing
if: steps.deploy.outcome == 'failure'
run: sleep 5
- id: deploy_retry_1
if: steps.deploy.outcome == 'failure'
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
continue-on-error: true
- name: Wait for the artifact listing
if: steps.deploy_retry_1.outcome == 'failure'
run: sleep 20
- id: deploy_retry_2
if: steps.deploy_retry_1.outcome == 'failure'
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
continue-on-error: true
- name: Wait for the artifact listing
if: steps.deploy_retry_2.outcome == 'failure'
run: sleep 60
- id: deploy_retry_3
if: steps.deploy_retry_2.outcome == 'failure'
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
16 changes: 14 additions & 2 deletions docs/skills/ci-workflows.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: ci-workflows
version: "1.4"
last_updated: "2026-11-22"
version: "1.5"
last_updated: "2026-11-27"
id: ci-workflows
one_line_purpose: Navigate Utah's build, promote, and sync workflow topology.
entry_point: docs/skills/ci-workflows.md
Expand Down Expand Up @@ -203,6 +203,18 @@ post-build verification workflows, not the complete workflow inventory:
The four-hour backstop trades scheduled runner use for up to four hours of
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,

publish the status page to GitHub Pages in one job: check the committed
package data, run `tests.test_site`, upload `site/` once, deploy. Right
after the upload, `actions/deploy-pages` can list no artifact (`Found 0
artifact(s)` then `No artifacts named "github-pages"`; actions/deploy-pages#451,
runs #83–#86 in November 2026), so the deploy step is retried after 5, 20
and 60 s. Never retry the upload and never re-run the failed job: a second
`github-pages` artifact in the run fails every later lookup with `Multiple
artifacts`. Re-dispatch the workflow instead. `tests/test_site.py` holds
the single upload and the retries; drop them once actions/deploy-pages#455
is released.

CI delegates builds, vulnerability reporting, keyless signatures, provenance,
and caching to `projectbluefin/actions@v1` (originated as a `docs/building.md`
Expand Down
4 changes: 2 additions & 2 deletions docs/skills/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"promotion"
],
"description": "Build and contract jobs, promotion, branch sync, parity and extension update workflows, reusable actions and Renovate pins. Use when editing GitHub Actions or debugging CI.",
"version": "1.4",
"last_updated": "2026-11-22",
"version": "1.5",
"last_updated": "2026-11-27",
"doc_type": "reference"
},
{
Expand Down
13 changes: 13 additions & 0 deletions tests/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,19 @@ def test_actions_are_sha_pinned(self):
def test_deployment_is_not_cancelled_mid_upload(self):
self.assertIn("cancel-in-progress: false", self.workflow)

def test_deployment_retries_without_reuploading(self):
# deploy-pages can miss an artifact finalized moments earlier
# (actions/deploy-pages#451). Only the deploy may repeat: a second
# upload makes every later lookup fail on two artifacts.
self.assertEqual(self.workflow.count("actions/upload-pages-artifact@"), 1)
self.assertGreater(self.workflow.count("actions/deploy-pages@"), 1)
last = self.workflow.rsplit("actions/deploy-pages@", 1)[1]
self.assertNotIn("continue-on-error", last)
url = re.search(r"url: (\$\{\{.*\}\})", self.workflow).group(1)
for step in re.findall(r"- id: (deploy\w*)", self.workflow):
with self.subTest(step=step):
self.assertIn(f"steps.{step}.outputs.page_url", url)


class ScriptBehaviourTests(unittest.TestCase):
"""Execute the page's own functions instead of reading them.
Expand Down
Loading