fix(docs): restore the versioned docs build used by pages #636
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 527 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.375
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #636"
general
weight: 0.35
rikatz
Problem
The
pagesworkflow has failed on every run since 2026-10-26 — the last green run was 2026-10-19. Consequences:0.5.0. The chart published with v0.6.0-rc.1 is attached to the release but is not installable viahelm repo, becausecr indexnever ran.hack/build-versioned-docs.shis only invoked bypages.yml, so the breakage was invisible to PR CI.Two independent regressions
Both share a pattern: a change fixed the local preview path and left the production path behind.
1. Missing
--user 0:0— fails on the first version built7de6641(Docsy 0.14.3 → 0.18.0) addedUSER hugo(uid 1000) todocs/Dockerfileand added--user 0:0to the Makefile'sdocs.apianddocs.chroma, but not to this script. On Linux the bind-mounted worktree is owned by the invoking user, so uid 1000 cannot createapi.mdunder it:Hugo then fails the same way on its build lock (
open /src/.hugo_build.lock: permission denied).Both runs already
chowntheir output back to the host user — which only ever made sense as root, confirming the original intent. Docker Desktop on macOS masks the ownership mismatch, which is why this was never seen locally.2. Missing
hugo.container.yaml— fails ondev/HEAD onlyDocsy 0.18 takes Bootstrap and Font Awesome from npm instead of vendoring them.
docs/hugo.container.yaml(added in6ea4416) is what mounts them from/deps/node_modulesintoassets/vendor, and it was wired intodocs.serveonly. Without it:It is passed conditionally:
v0.4.0andv0.5.0predate the file and vendor their own Bootstrap via Docsy 0.14, and Hugo errors on a config that does not exist in the tree. The per-version override stays last so it still wins on conflicts.This one was hidden behind the first: the build died on the first version and never reached
dev.Verification
Reproduced both failures against a uid-1001-owned worktree on a Linux filesystem (macOS/Docker Desktop and Colima both mask the uid mismatch, so neither reproduces it):
| Step | Before | After |
|---|---|---|
|
crd-ref-docs|permission denied— byte-identical to the CI log | generated, owned by the host uid ||
hugo(tagged refs) |.hugo_build.lock: permission denied| 33 pages ||
hugo(dev/HEAD) |Can't find stylesheet to import— reproduced with no--userflag, so independent of fix 1 | 36 pages |Then
make docs.buildend to end, exit 0:latest(v0.5.0),v0.4(v0.4.0) anddevall buildnavbarclasses present)latestdocs/staticdoes not exist at HEAD, so thestatic/webfontsmount inhugo.container.yamldrops nothing; older refs do not use that config at all.After merge
Merging triggers
pages, which should rebuild the site and index the v0.6.0-rc.1 chart (cr index --release-name-template "v{{ .Version }}"resolves chart0.6.0-rc.1→ tagv0.6.0-rc.1, which is published and carries a.tgz). Worth confirming the run is green and thathelm search repo ... --develshows0.6.0-rc.1.Note this also means the fix cannot be verified by PR CI —
pages.ymlruns only on push tomainandworkflow_dispatch.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Versioned documentation builds now handle generated file permissions more consistently, keeping output accessible after container-based generation. Builds use the base configuration, include an optional configuration when available for a version, and apply version-specific overrides last so each version uses its intended settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->