← Back to Pull requests

SOLR-18119: Generate changes HTML only for releases #5180

Closed
unknown closed this pull request without merging on Oct 27, 2026 16:25 UTC
View on GitHub
unknown unknown commented on Oct 18, 2026 18:53 UTC
Author

🤖 AI text below 🤖 (posted on behalf of Nick Shanin)

Jenkins

*The Solr-Smoketest- snapshot jobs need a new step before assembleRelease, or they fail after this merges.

  • The smoke tester requires a Changes.html link (smokeTestRelease.py, testChanges). These jobs run assembleRelease directly, so they must first run python3 -u dev-tools/scripts/changes2html.py CHANGELOG.md --output-dir solr/documentation/build/site/changes.

  • The job definitions are not in this repository, so they need that step before the next nightly run after this merges.
  • What happens today

    The documentation build generates Changes.html through a Gradle task that silently skips when python3 is missing.

  • At the merge base, changes-to-html.gradle wires the task into the docs build; without python3 it logs a warning and succeeds with no HTML. This change deletes that file.

  • Generation belongs to the release process: the release distribution carries Changes.html under changes/.
  • What this change does

    Changes.html is generated during release preparation by the release tooling, using the Python renderer moved out of the Gradle build.

  • Removes the Gradle task, its root apply line, the documentation dependency, and the distribution's changesHtml configuration. No Gradle task invokes python3 after this change.

  • changes2html.py and its three stylesheets move to dev-tools/scripts. The stylesheets gain ASF license headers so RAT passes. The script gains an --output-dir mode and an importable write function; without the flag it prints to stdout as before.

  • buildAndPushRelease.py generates Changes.html into the site tree after its clean check, and releaseWizard.yaml runs the script directly instead of the Gradle task.

  • assembleRelease no longer checks for the generated files. The release smoke tester already requires the Changes.html link on every run, and the release wizard runs it before the vote, so a release without the file is caught there.

  • The reference guide's site link check ignores relative links to changes/Changes.html, since the file exists only in a release build. The pattern also matches the double-slash form used on two upgrade-notes pages.

  • The dev-docs notes saying check needs python3 are removed.
  • Proof

    Verified at head 89c8e184 on 2026-10-19, except where noted.

    Follow-up at head f5bc3791 (2026-10-23): the three moved stylesheets no longer carry the license header the move added; per the review note that dev-tools is not released, each file is now byte-identical to its original under gradle/documentation/changes-to-html. No functional change; the verification below is unaffected.

  • tidy leaves no changes, :rat passes, and the distribution project configures.

  • The changelog fragment passes the changelog validator.

  • :solr:solr-ref-guide:checkSiteLinks passes with the new ignore and fails without it. The single-slash pattern changes/Changes\.html still fails, because two pages link with changes//Changes.html.

  • The moved script at this head generates Changes.html with SHA-256 b3539c06a3111c4c6026ee863fe0f7a2e0dfd292a5e7da1f99bb0178559634ea, byte-identical to the output the deleted Gradle task produced at the merge base (re-run on 2026-10-19, with the stylesheet license headers in place).

  • Not run: the smoke tester and assembleRelease. The smoke test's check is read from smokeTestRelease.py.
  • Limits

    This changes release packaging and removes Changes.html from local documentation output.*

  • A direct assembleRelease run without the generated file now succeeds and produces a release without Changes.html. Only the smoke tester catches that.

  • A missing changelog file now exits 2 (argparse) instead of 1; no caller depends on the old code.

  • No automated test runs changes2html.py.
  • Changelog

    One fragment, type other: the release tooling generates Changes.html, and local builds no longer render it.

    ---

    AI-generated description. Nick Shanin directed the work and takes responsibility for this contribution.*

    Diff: 554 lines (+415 / -139) across 6 files Reviewer: nick-boss-tech Review duration: 12811m
    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 · 554 lines diff across 6 files
    0.48
    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.378
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5180"
    general weight: 0.35
    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: 48.1% (MEDIUM) · Higher = larger blast radius
    48.1%
    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: 19% · Safe to merge
    19%
    Repository