Skip to content

chore(apps/docs): rotate the version list for v2.40 - #429

Merged
nickvigilante merged 1 commit into
mainfrom
vigilante/rotate-versions-2-40
Dec 3, 2026
Merged

nickvigilante merged 1 commit into
mainfrom
vigilante/rotate-versions-2-40

Conversation

@nickvigilante

Copy link
Copy Markdown
Collaborator

Merge order

Independent. After it merges, republish main and the 2.40 line (the reconciler does this on its next run, or dispatch it) so the site root and the support matrix follow; the details are under Design.

Summary

v2.40.0 was released on 2026-12-01 and both release/2.40 and v2.40.0 were published, but coder.com/docs still serves v2.39 at the root and lists 2.40 as unsupported. The publisher takes the mainline, channels and support matrix from the hand-maintained list in apps/docs/lib/versions.ts, and nobody had rotated it (the v2.38 rotation was #205 and the v2.39 one #305). This PR rotates it.

Design

I took the channels from the engine's own release-schedule logic (buildReleaseSchedule in @coder/docs-config, which the Releases page uses), run against live GitHub data on 2026-12-03, and not from the previous pattern. That logic makes stable the minor of GitHub's latest release (v2.39.5), mainline the minor above it, security the minor below it, and an ESR minor supported for 365 days from its first GA:

Line Before After
2.40 not listed (published, but unsupported and not at the root) mainline, latest, v2.40.0
2.39 mainline stable, v2.39.5
2.38 stable security, v2.38.11
2.37 security removed: leaves support
2.34 esr esr, v2.34.22
2.29 esr removed: its ESR window ended on 2026-12-02, 365 days after v2.29.0 on 2025-12-02
main development unchanged

Removed lines stay published and reachable by URL; they only drop out of the support matrix. coder/coder's esr_versions.txt lists 2.34 and 2.40, so 2.40 will keep ESR support after it leaves mainline; the list has a single channel per line, so that is a change for the day 2.40 stops being mainline, and the automation planned in DOCS-1931 will derive it.

When the mainline moves, the publisher republishes the previous mainline (2.39) under its own prefix, as plan.mjs already does. The root, the version selector and versions.json change when main and the 2.40 line are next published with the new list.

QA

After this merges and the publish runs:

  1. Open https://coder.com/docs/ and read the version selector at the top of the sidebar. Expected: it shows "v2.40" with the mainline badge, and the list below it has v2.39 (stable), v2.38 (security) and v2.34 (esr), with no v2.37 or v2.29.
  2. Open https://coder.com/docs/v2.39/ and https://coder.com/docs/v2.37/ . Expected: both still load, v2.39 labelled stable.
  3. Open https://coder.com/docs/versions.json . Expected: mainline is "2.40", 2.40 is supported with root: true, and 2.39 is root: false.

Not verified in Firefox.

Pages to compare

What to check Production Preview
Version selector and mainline https://coder.com/docs/ n/a: the version list only takes effect through the publisher, so check production after the publish
Support matrix https://coder.com/docs/versions.json n/a

Testing

@coder/docs-site passes 403 of 404 tests (one skipped) with the packages built. I changed only the list; no test pins its contents. I did not run a publish. The channels come from the schedule logic above and were not confirmed with the release owners.

Upstream

No. This is our own deploy configuration.

Follow-up: https://linear.app/codercom/issue/DOCS-1931/feed-the-docs-version-list-from-codercoders-releases-so-it-is-never replaces the hand-edited list with one derived from coder/coder's releases.


🤖 Built with AI assistance.

v2.40.0 is released and GitHub's latest release is v2.39.5, so by the
release schedule 2.40 is mainline, 2.39 stable and 2.38 security.
The publisher reads the mainline and the support matrix from this list,
so until now the site kept serving 2.39 at the root and listed 2.40 as
unsupported. 2.37 leaves support, and 2.29's extended support ended on
2026-12-02, 365 days after v2.29.0.
Each remaining line is pinned to its newest patch release.

Assisted-by: AI
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
coder-docs Skipped Skipped Dec 3, 2026 2:02pm UTC

Request Review

@nickvigilante
nickvigilante marked this pull request as ready for review December 3, 2026 14:03
@nickvigilante
nickvigilante requested a review from a team as a code owner December 3, 2026 14:03

@kriscarter13 kriscarter13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the diff against coder/coder's releases: v2.40.0 shipped Dec 1, v2.39.5 is the current latest release, and v2.29's ESR window ended Dec 2 (v2.29.0 was Dec 2, 2025), so the rotation matches the dates. Approving from the docs side. Channel assignments come from the schedule logic, so worth a quick nod from release owners if anyone wants to double-check 2.37 leaving support.

@nickvigilante
nickvigilante merged commit 0b9abe6 into main Dec 3, 2026
36 of 38 checks passed
@nickvigilante
nickvigilante deleted the vigilante/rotate-versions-2-40 branch December 3, 2026 14:38

This branch is waiting to be deployed

1 inactive and 1 waiting deployments
docs-preview — d15cb4d4 Waiting Dec 3, 2026 by nickvigilante via preview / deploy preview #154
Preview — d15cb4d4 Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants