Skip to content

Commit 15d739e

Browse files
authored
Merge pull request #736 from infosiftr/eol-rapid
Adjust upstream version filtering to allow Rapid Releases again
2 parents 12330e1 + c71ac3a commit 15d739e

File tree

8 files changed

+99
-88
lines changed

8 files changed

+99
-88
lines changed

6.0/Dockerfile renamed to 8.2/Dockerfile

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

6.0/windows/nanoserver-ltsc2022/Dockerfile renamed to 8.2/windows/nanoserver-ltsc2022/Dockerfile

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

6.0/windows/windowsservercore-ltsc2022/Dockerfile renamed to 8.2/windows/windowsservercore-ltsc2022/Dockerfile

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

6.0/windows/windowsservercore-ltsc2025/Dockerfile renamed to 8.2/windows/windowsservercore-ltsc2025/Dockerfile

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generate-stackbrew-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -Eeuo pipefail
33

44
declare -A aliases=(
5-
[8.0]='8 latest'
5+
[8.2]='8 latest'
66
[7.0]='7'
77
[6.0]='6'
88
)

versions.json

Lines changed: 47 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
{
2-
"6.0": {
3-
"changes": "https://jira.mongodb.org/issues/?jql=project%20%3D%20SERVER%20AND%20fixVersion%20%3D%20%226.0.26%22%20ORDER%20BY%20status%20DESC%2C%20priority%20DESC",
4-
"date": "08/14/2025",
5-
"githash": "0c4ec4b6005f75582ce208fc800f09f561b6c2e8",
2+
"7.0": {
3+
"changes": "https://jira.mongodb.org/issues/?jql=project%20%3D%20SERVER%20AND%20fixVersion%20%3D%20%227.0.25%22%20ORDER%20BY%20status%20DESC%2C%20priority%20DESC",
4+
"date": "09/30/2025",
5+
"eol": "2027-08-31",
6+
"githash": "96dce3da49b8d2e9e0d328048cb56930eb1bdb2b",
67
"linux": "ubuntu2204",
7-
"notes": "https://docs.mongodb.org/master/release-notes/6.0/",
8+
"notes": "https://docs.mongodb.org/master/release-notes/7.0/",
89
"pgp": [
910
{
1011
"fingerprints": [
11-
"39BD841E4BE5FB195A65400E6A26B1AE64C3C388"
12+
"E58830201F7DD82CD808AA84160D26BB1785BA38"
1213
],
13-
"url": "https://pgp.mongodb.com/server-6.0.asc"
14+
"url": "https://pgp.mongodb.com/server-7.0.asc"
1415
}
1516
],
1617
"targets": {
17-
"debian10": {
18+
"debian11": {
1819
"arches": [
1920
"amd64"
2021
],
21-
"image": "debian:buster-slim",
22-
"suite": "buster"
22+
"image": "debian:bullseye-slim",
23+
"suite": "bullseye"
2324
},
24-
"debian11": {
25+
"debian12": {
2526
"arches": [
2627
"amd64"
2728
],
28-
"image": "debian:bullseye-slim",
29-
"suite": "bullseye"
29+
"image": "debian:bookworm-slim",
30+
"suite": "bookworm"
3031
},
3132
"ubuntu2004": {
3233
"arches": [
@@ -53,40 +54,34 @@
5354
"Router",
5455
"ServerNoService"
5556
],
56-
"msi": "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.26-signed.msi",
57-
"sha256": "b32578a8d982810c6a9a0b2f962bd45053701d97415f901030b796ec93dea75a",
57+
"msi": "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.25-signed.msi",
58+
"sha256": "a6e4b64f4130bd82642eafc83a3644ebb7425c0c26ce7d445ed95da4a9767613",
5859
"variants": [
5960
"windowsservercore-ltsc2025",
6061
"windowsservercore-ltsc2022",
6162
"nanoserver-ltsc2022"
6263
]
6364
}
6465
},
65-
"version": "6.0.26"
66+
"version": "7.0.25"
6667
},
67-
"6.0-rc": null,
68-
"7.0": {
69-
"changes": "https://jira.mongodb.org/issues/?jql=project%20%3D%20SERVER%20AND%20fixVersion%20%3D%20%227.0.25%22%20ORDER%20BY%20status%20DESC%2C%20priority%20DESC",
68+
"7.0-rc": null,
69+
"8.0": {
70+
"changes": "https://jira.mongodb.org/issues/?jql=project%20%3D%20SERVER%20AND%20fixVersion%20%3D%20%228.0.15%22%20ORDER%20BY%20status%20DESC%2C%20priority%20DESC",
7071
"date": "09/30/2025",
71-
"githash": "96dce3da49b8d2e9e0d328048cb56930eb1bdb2b",
72-
"linux": "ubuntu2204",
73-
"notes": "https://docs.mongodb.org/master/release-notes/7.0/",
72+
"eol": "2029-10-31",
73+
"githash": "f79b970f08f60c41491003cd55a3dd459a279c39",
74+
"linux": "ubuntu2404",
75+
"notes": "https://docs.mongodb.org/master/release-notes/8.0/",
7476
"pgp": [
7577
{
7678
"fingerprints": [
77-
"E58830201F7DD82CD808AA84160D26BB1785BA38"
79+
"4B0752C1BCA238C0B4EE14DC41DE058A4E7DCA05"
7880
],
79-
"url": "https://pgp.mongodb.com/server-7.0.asc"
81+
"url": "https://pgp.mongodb.com/server-8.0.asc"
8082
}
8183
],
8284
"targets": {
83-
"debian11": {
84-
"arches": [
85-
"amd64"
86-
],
87-
"image": "debian:bullseye-slim",
88-
"suite": "bullseye"
89-
},
9085
"debian12": {
9186
"arches": [
9287
"amd64"
@@ -110,6 +105,14 @@
110105
"image": "ubuntu:jammy",
111106
"suite": "jammy"
112107
},
108+
"ubuntu2404": {
109+
"arches": [
110+
"amd64",
111+
"arm64v8"
112+
],
113+
"image": "ubuntu:noble",
114+
"suite": "noble"
115+
},
113116
"windows": {
114117
"arches": [
115118
"amd64"
@@ -119,24 +122,25 @@
119122
"Router",
120123
"ServerNoService"
121124
],
122-
"msi": "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.25-signed.msi",
123-
"sha256": "a6e4b64f4130bd82642eafc83a3644ebb7425c0c26ce7d445ed95da4a9767613",
125+
"msi": "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.0.15-signed.msi",
126+
"sha256": "212be476297cf2b93e0d1279506780aaf5e67865e0ba342e740d1bc9ff772557",
124127
"variants": [
125128
"windowsservercore-ltsc2025",
126129
"windowsservercore-ltsc2022",
127130
"nanoserver-ltsc2022"
128131
]
129132
}
130133
},
131-
"version": "7.0.25"
134+
"version": "8.0.15"
132135
},
133-
"7.0-rc": null,
134-
"8.0": {
135-
"changes": "https://jira.mongodb.org/issues/?jql=project%20%3D%20SERVER%20AND%20fixVersion%20%3D%20%228.0.15%22%20ORDER%20BY%20status%20DESC%2C%20priority%20DESC",
136+
"8.0-rc": null,
137+
"8.2": {
138+
"changes": "https://jira.mongodb.org/issues/?jql=project%20%3D%20SERVER%20AND%20fixVersion%20%3D%20%228.2.1%22%20ORDER%20BY%20status%20DESC%2C%20priority%20DESC",
136139
"date": "09/30/2025",
137-
"githash": "f79b970f08f60c41491003cd55a3dd459a279c39",
140+
"eol": "2026-03-30",
141+
"githash": "3312bdcf28aa65f5930005e21c2cb130f648b8c3",
138142
"linux": "ubuntu2404",
139-
"notes": "https://docs.mongodb.org/master/release-notes/8.0/",
143+
"notes": "https://docs.mongodb.org/master/release-notes/8.2/",
140144
"pgp": [
141145
{
142146
"fingerprints": [
@@ -186,16 +190,16 @@
186190
"Router",
187191
"ServerNoService"
188192
],
189-
"msi": "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.0.15-signed.msi",
190-
"sha256": "212be476297cf2b93e0d1279506780aaf5e67865e0ba342e740d1bc9ff772557",
193+
"msi": "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-8.2.1-signed.msi",
194+
"sha256": "b005cfd5655f0e752d80fa83a6a37be231ab57639dd2f75cf9647ad315701386",
191195
"variants": [
192196
"windowsservercore-ltsc2025",
193197
"windowsservercore-ltsc2022",
194198
"nanoserver-ltsc2022"
195199
]
196200
}
197201
},
198-
"version": "8.0.15"
202+
"version": "8.2.1"
199203
},
200-
"8.0-rc": null
204+
"8.2-rc": null
201205
}

versions.sh

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,27 @@ shell="$(
4242
meta: .,
4343
}
4444
45-
# filter out EOL versions
46-
# (for some reason "current.json" still lists all these, and as of 2021-05-13 there is not an included way to differentiate them)
47-
| select(.version as $v | [
48-
# https://www.mongodb.com/support-policy/lifecycles
49-
"3.0", # February 2018
50-
"3.2", # September 2018
51-
"3.4", # January 2020
52-
"3.6", # April 2021
53-
"4.0", # April 2022
54-
"4.2", # April 2023
55-
empty
56-
] | index($v) | not)
57-
58-
# filter out so-called "rapid releases": https://docs.mongodb.com/upcoming/reference/versioning/
59-
# "Rapid Releases are designed for use with MongoDB Atlas, and are not generally supported for use in an on-premise capacity."
45+
# inject upstream EOL dates
46+
| .meta.eol = (
47+
.version
48+
| rtrimstr("-rc")
49+
| {
50+
# https://www.mongodb.com/support-policy/lifecycles
51+
# (only needs to list versions that currently exist in "current.json" that we are scraping, and only because they do not get removed promptly at EOL)
52+
53+
"8.0": "2029-10-31",
54+
"7.0": "2027-08-31",
55+
"6.0": "2025-07-31",
56+
57+
# "Rapid Releases" and "Minor Releases"
58+
"8.2": "2026-03-30",
59+
}[.]
60+
)
61+
# ... so we can filter out EOL versions (because "current.json" continues to list them for some period of time, but with no explicitly differentiating metadata about their EOL state)
6062
| select(
61-
(.version | split("[.-]"; "")) as $splitVersion
62-
| ($splitVersion[0] | tonumber) >= 5 and ($splitVersion[1] | tonumber) > 0
63-
| not
63+
.meta.eol
64+
| not or . >= (now | strftime("%Y-%m-%d"))
65+
# (ie, only keep versions whose EOL status is unknown because we need to update the table above or versions we know are not yet EOL)
6466
)
6567
]
6668
@@ -123,23 +125,24 @@ for version in "${versions[@]}"; do
123125
_jq --slurpfile pgpKeys pgp-keys.json '{ (env.version): (
124126
$pgpKeys[0] as $pgp
125127
| (env.version | rtrimstr("-rc")) as $rcVersion
126-
| with_entries(select(.key as $key | [
128+
| with_entries(select(IN(.key;
127129
# interesting bits of raw upstream metadata
128130
"changes",
129131
"date",
130132
"githash",
131133
"notes",
132134
"version",
135+
"eol", # not exactly "upstream" metadata, but metadata from upstream that we carefully injected
133136
empty
134-
] | index($key)))
137+
)))
135138
+ {
136139
pgp: [
137140
if env.version != $rcVersion then
138141
# the "testing" repository (used for RCs) has a dedicated PGP key (but still needs the "release" key for the release line)
139142
$pgp.dev
140143
else empty end,
141144
142-
$pgp[$rcVersion],
145+
$pgp[$rcVersion | sub("[.][0-9]+$"; ".0")], # normalizing 8.x to 8.0 because "Rapid Releases" use the key of the most recent major
143146
144147
empty
145148
],

0 commit comments

Comments
 (0)