feat(scripts/ironbank): add release resolver for Stable and ESR releases#26080
Closed
coder-tasks[bot] wants to merge 1 commit into
Closed
feat(scripts/ironbank): add release resolver for Stable and ESR releases#26080coder-tasks[bot] wants to merge 1 commit into
coder-tasks[bot] wants to merge 1 commit into
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
Add resolve-latest-release.sh that parses the release calendar table in
docs/install/releases/index.md to identify the largest version number
among Stable and ESR releases. This replaces the previous approach of
using the GitHub "latest" tag, which only identified Stable releases.
The script supports both live fetching from GitHub and local file input,
enabling use in both CI pipelines and testing. ESR releases marked with
any ESR-related status ("Extended Support Release", "Mainline (ESR)",
"Stable (ESR)") are correctly identified.
Includes comprehensive tests covering all status combinations.
41aab40 to
b0f058e
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Adds
scripts/ironbank/resolve-latest-release.shto parse the release calendar table indocs/install/releases/index.mdand return the highest version among Stable and ESR releases.Changes
resolve-latest-release.shscript that fetches and parses the release calendar fromindex.mdon themainbranch--index-url(custom URL) and--index-file(local file) for flexibility in CI and testingresolve-latest-release_test.sh) covering 8 scenariosWhy
The Iron Bank deployment pipeline currently resolves the Coder version using the GitHub "latest" tag, which only points to the Stable release. This misses ESR (Extended Support Release) versions, which may be newer than the current Stable release and are suitable for Iron Bank deployments.
By parsing the release calendar table (maintained by
scripts/update-release-calendar.sh), the resolver correctly identifies both Stable and ESR releases and picks the largest version.How it works
docs/install/releases/index.mdfrom GitHub (or reads a local file)RELEASE_CALENDAR_START/RELEASE_CALENDAR_ENDmarkersTesting
Live run:
bash scripts/ironbank/resolve-latest-release.shcurrently outputsv2.34.0.Relates to: ENT-110