ci: separate docs build from site publishing #7386
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 284 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.338
Real PR Conversation Timeline
1 comments
"Review active on #7386"
general
weight: 0.35
comphead
Which issue does this PR close?
Closes #7320.
Rationale for this change
The docs build installs and runs dependencies in the same job that can push to the repository. A separate writer keeps the repository write token out of the dependency build. This does not make the generated site trustworthy: a compromised builder can still change the output that is published.
What changes are included in this PR?
contents: readand disable checkout credential persistence. Keep the existing source and rendered Mermaid checks before publishing..asf.yamland.nojekyllas an artifact. A fresh job withcontents: writechecks outasf-site, downloads the artifact, and runs only the existing static copy and publication path. The caller's write permission and its main-branch guard remain unchanged..gitduring thersync --delete, explicitly copy.asf.yamlafter rsync, and touch.nojekyll, as the old publication step did. Explicitly copying the metadata matters even when old and new files have the same size and mtime.How are these changes tested?
python3 dev/ci/check-ci-config.pypassed. A separate local mutation check rejected changes to the build permission, persisted credentials, build dependency, hidden-file setting, and deploy download action.python3 dev/ci/test-docs-site-copy.pypassed against synthetic files:.gitwas retained, stale output removed, and.asf.yaml,.nojekyll, and the new page were present. Before restoring the explicit metadata copy, the same-size/same-mtime fixture showed that rsync could retain the old.asf.yaml.actionlint -shellcheck=offandgit diff --checkpassed.make formatandmakepassed on this head in an isolated Linux/JDK 17 environment. The first format attempt failed while downloading an Iceberg dependency (truncated response); one retry succeeded.