← Back to Pull requests

build: format the generated release docs with the latest prettier #7295

Closed
unknown closed this pull request without merging on Oct 28, 2026 18:54 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 14:21 UTC
Author

Which issue does this PR close?

Part of #6550. Found while generating the 1.2.0 release docs (#7292).

Rationale for this change

dev/generate-release-docs.sh formats the generated pages with npx prettier, which runs whichever prettier version is installed locally or cached. CI runs prettier --check "*/.md" with the latest prettier (npm install -g prettier). The two disagreed on the 1.2.0 docs. Generated with prettier 3.2.5, 40 of the compatibility pages failed the CI check under 3.9.10, because the newer version wants a blank line before <!--END:EXPR_COMPAT--> after a list. The fix on #7292 was a second commit that added that line to each page.

What changes are included in this PR?

  • dev/generate-release-docs.sh runs npx --yes prettier@latest, the same version CI installs, with a comment that says why.

  • docs/source/contributor-guide/release_process.md notes that the script formats with the latest prettier and so needs network access to npm.
  • How are these changes tested?

    bash -n passes on the script. I ran npx --yes prettier@latest --check over the generated pages on the 1.2.0 docs branch before and after the fix. It reported 40 files before and none after. I did not rerun the whole script with this change, because it runs five Maven builds.

    Diff: 162 lines (+121 / -41) across 2 files Reviewer: sunchao Review duration: 272m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 162 lines diff across 2 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.305
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7295"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 34.9% (LOW) · Higher = larger blast radius
    34.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 13.8% · Safe to merge
    13.8%