The release calendar in `docs/reference/releases.md` still lists 2.29 as
an Extended Support Release after the v2.40.0 release, and lists 2.40 as
plain `Mainline` instead of `Mainline (ESR)`.
`releasetui` (`scripts/releaser/docs.go`) only moves rows along the
Mainline, Stable, Security Support, and Not Supported chain. It never
reads `scripts/release_channels/esr_versions.txt`, so rows marked
`Extended Support Release` never change, and new ESRs never get the
`(ESR)` suffix. #32843 updated that file to replace 2.29 with 2.40
before #32858 regenerated the calendar, but the calendar ignored the
change.
- `updateCalendar` now loads the active ESR set from `esr_versions.txt`,
the same file the backport workflow and
`scripts/update-release-calendar.sh` use, and re-derives the ESR
statuses on every run.
- Fixes the current calendar: 2.29 becomes `Not Supported` and 2.40
becomes `Mainline (ESR)`.
- Adds a regression test that replays the v2.40.0 release against the
calendar from before #32858.
Refs #32843, #32858
<details>
<summary>Implementation notes</summary>
- On each run, `updateCalendar` removes any ESR markers to get each
row's base status, applies the normal channel transitions, and then
re-applies the markers from `esr_versions.txt`. An active ESR shows
`Extended Support Release` once it leaves the standard channels and
`<Channel> (ESR)` while it is still in one. A retired ESR goes back to
`Not Supported`.
- ESR markers are applied before `trimOldestNotSupported`, so an active
ESR such as 2.34 is never trimmed. Retired ESRs are trimmed like any
other unsupported row.
- Patch releases also re-apply the markers, so the calendar corrects
itself after any change to `esr_versions.txt`.
- The broad `strings.Contains(r.Status, "Stable")` match for the old
`Stable + ESR` format is replaced with an exact match, because ESR
suffixes are now removed before the transitions run.
- The hand-edited calendar keeps 2.29 as a `Not Supported` row so
readers can see that it reached end of life. The next minor release
trims it automatically.
</details>
---
> [!NOTE]
> Generated by Coder Agents on behalf of @Lisa-Fiander.