fix(docs): handle failed release-notes fetch in home.html Hugo build - #15700
Merged
Conversation
home.html fetched the latest GitHub release via resources.GetRemote without wrapping it in `try`, so an unauthenticated GitHub API rate-limit response (403 Forbidden) on CI runners aborted the entire docs build. Wrap the fetch in `try` and fall back to an empty release name (no changelog chip) with a warnf, mirroring the existing resilient handling in _partials/header/header.html. The other GetRemote callers (header.html, _markup/render-image.html) already handle errors this way. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
blakeaowens
approved these changes
Aug 18, 2026
devGregA
approved these changes
Aug 18, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Aug 18, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 18, 2026
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.
[sc-14595]
Problem
The
deployjob in.github/workflows/validate_docs_build.yml(and thegithub-pagesdeploy) intermittently fails because Hugo'sresources.GetRemotefetches the latest GitHub release at build time and gets a 403 Forbidden (unauthenticated GitHub API rate limit on shared Actions runners).docs/layouts/home.htmlcalledresources.GetRemotewithout wrapping it intry, so a non-200 response aborted the entire site build:Fix
Wrap the fetch in
tryand fall back to an empty release name (the changelog chip is simply omitted) with awarnf, mirroring the resilient handling already indocs/layouts/_partials/header/header.html.Grepped every
resources.GetRemotecaller underdocs/:layouts/home.html— was unguarded → fixed herelayouts/_partials/header/header.html— already wrapped intry, no changelayouts/_markup/render-image.html— already wrapped intry, no changehome.htmlwas the only caller that could fail the build.Verification
Local build with the production config (
hugo --minify --gc --config config/production/hugo.toml):WARN Release notes fetch returned no resource ...and completes with exit 0 instead of erroring. URL restored afterward.🤖 Generated with Claude Code