Skip to content

Commit 3ec8f19

Browse files
authored
Merge pull request #8207 from sagemathinc/software-env-culling-2025
software envs: remove old, only keep one "stable", and weed out many others
2 parents 78f193e + da4445a commit 3ec8f19

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

src/packages/frontend/cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
"timetravel",
3232
"undelete",
3333
"undeleting",
34-
"tolerations"
34+
"tolerations",
35+
"rtypes",
36+
"rclass"
3537
],
3638
"ignoreWords": [
3739
"LLMs",

src/packages/util/compute-images.ts

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// the "/customize" endpoint does not send a suitable "software" field.
88
// check frontend/customize.tsx for more details.
99

10+
import { without } from "lodash";
1011
import * as schema from "./db-schema";
1112

1213
// WARNING! Do not remove this from the public api. **It is used by kucalc
@@ -21,8 +22,8 @@ const GROUPS = [
2122
"Ubuntu 24.04",
2223
"Ubuntu 22.04",
2324
"Ubuntu 20.04",
24-
"Ubuntu 18.04",
25-
"Ubuntu 16.04",
25+
"Ubuntu 18.04", // empty
26+
"Ubuntu 16.04", // empty
2627
] as const;
2728

2829
type Group = (typeof GROUPS)[number];
@@ -78,6 +79,7 @@ const COMPUTE_IMAGES: { [key: string]: ComputeImageProd } = {
7879
short: "Ubuntu 22.04 (Testing)",
7980
descr: "Upcoming Ubuntu 22.04 based software stack",
8081
group: "Ubuntu 22.04",
82+
hidden: true,
8183
},
8284
default: {
8385
order: 1,
@@ -124,17 +126,25 @@ const COMPUTE_IMAGES: { [key: string]: ComputeImageProd } = {
124126
group: "Ubuntu 20.04",
125127
hidden: true,
126128
},
129+
"ubuntu2204-2024-11-25": {
130+
title: "Ubuntu 22.04 (2024-11-25)",
131+
short: "2024-11-25",
132+
descr: "Frozen on 2024-11-25 and no longer updated",
133+
group: "Ubuntu 22.04",
134+
},
127135
"ubuntu2204-2024-08-01": {
128136
title: "Ubuntu 22.04 (2024-08-01)",
129137
short: "2024-08-01",
130138
descr: "Frozen on 2024-08-01 and no longer updated",
131139
group: "Ubuntu 22.04",
140+
hidden: true,
132141
},
133142
"ubuntu2204-2024-05-13": {
134143
title: "Ubuntu 22.04 (2024-05-13)",
135144
short: "2024-05-13",
136145
descr: "Frozen on 2024-05-13 and no longer updated",
137146
group: "Ubuntu 22.04",
147+
hidden: true,
138148
},
139149
"ubuntu2204-2024-02-07": {
140150
title: "Ubuntu 22.04 (2024-02-07)",
@@ -147,60 +157,70 @@ const COMPUTE_IMAGES: { [key: string]: ComputeImageProd } = {
147157
short: "2023-01-09",
148158
descr: "Frozen on 2023-01-09 and no longer updated",
149159
group: "Ubuntu 22.04",
160+
hidden: true,
150161
},
151162
"ubuntu2204-2023-04-19": {
152163
title: "Ubuntu 22.04 (2023-04-19)",
153164
short: "2023-04-19",
154165
descr: "Frozen on 2023-04-19 and no longer updated",
155166
group: "Ubuntu 22.04",
167+
hidden: true,
156168
},
157169
"ubuntu2204-2023-05-15": {
158170
title: "Ubuntu 22.04 (2023-05-15)",
159171
short: "2023-05-15",
160172
descr: "Frozen on 2023-05-15 and no longer updated",
161173
group: "Ubuntu 22.04",
174+
hidden: true,
162175
},
163176
"ubuntu2204-2023-09-11": {
164177
title: "Ubuntu 22.04 (2023-09-11)",
165178
short: "2023-09-11",
166179
descr: "Frozen on 2023-09-11 and no longer updated",
167180
group: "Ubuntu 22.04",
181+
hidden: true,
168182
},
169183
[UBUNTU2004_DEV]: {
170184
title: "Ubuntu 20.04 (Testing)",
171185
short: "Testing",
172186
descr: "Upcoming software changes – could be broken!",
173187
group: "Ubuntu 20.04",
188+
hidden: true,
174189
},
175190
"ubuntu2004-2020-10-28": {
176191
title: "Ubuntu 20.04 (2020-10-28)",
177192
short: "2020-10-28",
178193
group: "Ubuntu 20.04",
179194
descr: "Frozen on 2020-10-28 and no longer updated",
195+
hidden: true,
180196
},
181197
"ubuntu2004-2020-12-09": {
182198
title: "Ubuntu 20.04 (2020-12-09)",
183199
short: "2020-12-09",
184200
group: "Ubuntu 20.04",
185201
descr: "Frozen on 2020-12-09 and no longer updated",
202+
hidden: true,
186203
},
187204
"ubuntu2004-2021-02-01": {
188205
title: "Ubuntu 20.04 (2021-02-01)",
189206
short: "2021-02-01",
190207
group: "Ubuntu 20.04",
191208
descr: "Frozen on 2021-02-01 and no longer updated",
209+
hidden: true,
192210
},
193211
"ubuntu2004-2021-05-31": {
194212
title: "Ubuntu 20.04 (2021-05-31)",
195213
short: "2021-05-31",
196214
group: "Ubuntu 20.04",
197215
descr: "Frozen on 2021-05-31 and no longer updated",
216+
hidden: true,
198217
},
199218
"ubuntu2004-2021-08-13": {
200219
title: "Ubuntu 20.04 (2021-08-13)",
201220
short: "2021-08-13",
202221
group: "Ubuntu 20.04",
203222
descr: "Frozen on 2021-08-13 and no longer updated",
223+
hidden: true,
204224
},
205225
"ubuntu2004-2021-10-10": {
206226
title: "Ubuntu 20.04 (2021-10-10)",
@@ -213,12 +233,14 @@ const COMPUTE_IMAGES: { [key: string]: ComputeImageProd } = {
213233
short: "2022-04-19",
214234
group: "Ubuntu 20.04",
215235
descr: "Frozen on 2022-04-19 and no longer updated",
236+
hidden: true,
216237
},
217238
"ubuntu2004-2022-08-17": {
218239
title: "Ubuntu 20.04 (2022-08-17)",
219240
short: "2022-08-17",
220241
group: "Ubuntu 20.04",
221242
descr: "Frozen on 2022-08-17 and no longer updated",
243+
hidden: true,
222244
},
223245
"ubuntu2004-2022-11-25": {
224246
title: "Ubuntu 20.04 (2022-11-25)",
@@ -247,55 +269,63 @@ const COMPUTE_IMAGES: { [key: string]: ComputeImageProd } = {
247269
short: "2018-08-27",
248270
descr: "Frozen on 2018-08-27 and no longer updated",
249271
group: "Ubuntu 18.04",
272+
hidden: true,
250273
},
251274
"stable-2019-01-12": {
252275
title: "Ubuntu 18.04 @ 2019-01-12",
253276
short: "2019-01-12",
254277
descr: "Frozen on 2019-01-12 and no longer updated",
255278
group: "Ubuntu 18.04",
279+
hidden: true,
256280
},
257281
"stable-2019-07-15": {
258282
title: "Ubuntu 18.04 @ 2019-07-15",
259283
short: "2019-07-15",
260284
descr: "Frozen on 2019-07-15 and no longer updated",
261285
group: "Ubuntu 18.04",
286+
hidden: true,
262287
},
263288
"stable-2019-10-25_ro": {
264289
title: "Ubuntu 18.04 @ 2019-10-25",
265290
short: "2019-10-25",
266291
descr: "Frozen on 2019-10-25 and no longer updated",
267292
group: "Ubuntu 18.04",
293+
hidden: true,
268294
},
269295
"stable-2019-12-15_ro": {
270296
title: "Ubuntu 18.04 @ 2019-12-15",
271297
short: "2019-12-15",
272298
descr: "Frozen on 2019-12-15 and no longer updated",
273299
group: "Ubuntu 18.04",
300+
hidden: true,
274301
},
275302
"stable-2020-01-26_ro": {
276303
title: "Ubuntu 18.04 @ 2020-01-26",
277304
short: "2020-01-26",
278305
descr: "Frozen on 2020-01-26 and no longer updated",
279306
group: "Ubuntu 18.04",
307+
hidden: true,
280308
},
281309
"stable-2020-07-31": {
282310
title: "Ubuntu 18.04 @ 2020-07-31",
283311
short: "2020-07-31",
284312
descr: "Frozen on 2020-07-31 and no longer updated",
285313
group: "Ubuntu 18.04",
314+
hidden: true,
286315
},
287316
old: {
288317
order: 10,
289318
title: "Old Ubuntu 16.04",
290319
short: "Old software image",
291320
descr: "In use until Summer 2018. No longer maintained!",
292321
group: "Ubuntu 16.04",
322+
hidden: true,
293323
},
294324
} as const;
295325

296326
export const FALLBACK_SOFTWARE_ENV = {
297327
default: DEFAULT_COMPUTE_IMAGE,
298-
groups: GROUPS,
328+
groups: without(GROUPS, "Ubuntu 18.04", "Ubuntu 16.04"),
299329
environments: COMPUTE_IMAGES,
300330
} as const;
301331

0 commit comments

Comments
 (0)