Repository navigation
Conversation
…guide/dev
`user-guide/latest/` served the unreleased guide built from main, and the jar
linked there, so a released Comet pointed users at documentation for behaviour
that is not in their release.
The user guide source directory is now `dev/`. `docs/generate-versions.py`
builds main as `dev` and copies the newest release's finished HTML to
`latest/` after Sphinx, so each document is rendered once and the two
directories are byte-identical. Jar messages go through `CometDocs`, which maps
`1.2.x` to `user-guide/1.2/` and a snapshot or unknown version to `dev`, and
the plan-stability goldens normalise the version to `{version}`.
The release freeze script rewrites the guide links it generates to the branch's
own version: it runs before the release branch's version bump, so the generated
pages would otherwise embed `user-guide/dev/` links and then be served as the
archived `user-guide/X.Y/` guide.
Verified: full `docs/build.sh` on the final tree, `1.2` and `latest` identical,
222,149 local links checked across 703 pages with none missing, the
reserved-directory guard failing the build as intended, and the TPC-DS
plan-stability suites passing after the three q24 goldens adopted `{version}`.
ErikBPF
force-pushed
the
docs/7684-latest-dev
branch
from
November 24, 2026 10:36
d57a71b to
e7330c7
Compare
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.
Which issue does this PR close?
Part of #7684. This is a draft because the first publish of the alias step is still unobserved and I would like review on the rename timing.
Rationale for this change
user-guide/latest/served the unreleased docs built frommain, so a released jar's compatibility and tuning messages sent users to behavior that had not shipped. Apache Spark and Apache Iceberg serve the newest release atlatest/, which is what users expect from that name.What changes are included in this PR?
Rename
docs/source/user-guide/latesttodevand update the docname references, generated-docs paths, labeler/prettier rules, agent skills, and the release-docs script.docs/generate-versions.py: move the release versions toLATEST_RELEASED_VERSION/PREVIOUS_VERSIONS, build the main guide asdev, detect each release branch's guide directory, fail ifdocs/source/user-guide/latestexists on main, and add--alias-latest <html dir>.docs/build.sh: generate dynamic content againsttemp/user-guide/devand alias the built newest release touser-guide/latestafter Sphinx.docs/source/conf.py: drop the five redirect stubs that targeted the old dev-tree URLs.CometDocsmaps the running version to a guide directory;CometConf.COMPAT_GUIDEandTUNING_GUIDEuse it. Plan-stability goldens normalize the guide version to{version}; newCometDocsSuiteis registered in both PR build workflows.User guide index URL table and stability statement,
docs/README.md,release_process.md(one-place promotion change), andbackporting.md(branch-1.2 and older keeplatest).dev/generate-release-docs.shrewrites the guide links it generates on a release branch(
branch-X.Y) touser-guide/X.Y/. The freeze runs before the version bump, so generated pagesotherwise embed
user-guide/dev/links and are then served as the archivedX.Yguide.How are these changes tested?
Docs build, run locally on a JDK 17 box because CI never runs
docs/build.sh:docs/build.shcompleted: cloned the release branches, built the four Spark profiles, built Sphinx, and ran--alias-latest.diff -rq build/html/user-guide/1.2 build/html/user-guide/latest: no differences.href/srcattributes in 703 built pages: 0 missing (excluding the known unrendered_static/webpack-macros.htmlfragments).$COMET_VERSIONunderdev/orlatest/;user-guide/installation.htmlstill redirects tolatest/installation.html;latest/links to../dev/index.html.docs/source/user-guide/latestpresent, the generator exits 1 with the reserved-directory message.CometDocsSuite: 3 succeeded, 0 failed.CometTPCDSV1_4_PlanStabilitySuite+CometTPCDSV2_7_PlanStabilitySuite: 129 succeeded, 0 failed.dev/ci/check-suites.pyanddev/ci/check-ci-config.pypass; spotless and prettier pass.Merge note: this renames about 50 files, so it will conflict with any open docs PR. Please merge it when the queue is quiet.