Skip to content

Make "Verify Templating" pass: regenerate the reference folders and skip the image recipe - #4

Merged
peters merged 1 commit into
finter-9.0from
fix/templating
Oct 19, 2026
Merged

peters merged 1 commit into
finter-9.0from
fix/templating

Conversation

@peters

@peters peters commented Oct 19, 2026

Copy link
Copy Markdown

Why

"Verify Templating" fails on finter-9.0 (658297b). It runs ./apply-templates.sh and then git diff --exit-code, and two things differ:

  • It regenerates 8.0/Dockerfile from the upstream template. That would replace the recipe of the published Enterprise image (enterprise package, the 8.0, 9 and dev signing keys, the MONGO_MAJOR, MONGOSH_CHANNEL and MONGO_VERSION build arguments). publish.ps1 and the "Publish image" workflow build ./8.0, so the templates must not own that folder.
  • 8.2/Dockerfile was edited by hand to 8.2.7, while versions.json still had 8.2.3 from 2025-12.

What changes

  • apply-templates.sh skips 8.0/ with a short comment. A local ./update.sh can no longer overwrite the image recipe either.
  • versions.sh runs on jq 1.7 and later again. A comment ended with /o\, and newer jq continues such a comment onto the next line, so the script failed with a syntax error. This is the same fix as upstream docker-library/mongo.
  • versions.json comes from ./versions.sh 7.0 8.0 8.2 and MongoDB's release data (downloads.mongodb.org/current.json, MSI checksums from fastdl.mongodb.org), not from a guess:
    • 7.0 is 7.0.45 (09/24/2026, a52313e1).
    • 8.0 is 8.0.34 (09/24/2026, 51db4515). Only the data changes; 8.0/ is skipped.
    • 8.2 is null, because 8.2 is past its end of life (2026-03-30 in the table of versions.sh). The newest 8.2 release is 8.2.12, from 06/26/2026.
    • The 7.0 and 8.0 entries are byte for byte the same as in upstream docker-library/mongo master (5aed6b9), which its bot made from the same source. Upstream also has 8.2 as null.
  • apply-templates.sh regenerated 7.0/, and removed 8.2/. Neither is built or published: the image comes from 8.0/ only.
  • AGENTS.md says that the template folders are regenerated and never edited by hand, and how to refresh them.

Checks

  • With the commit applied, ./apply-templates.sh in ubuntu:24.04 (gawk, jq 1.7.1) followed by git diff --exit-code gives no diff.
  • publish.ps1 and 8.0/ are unchanged, so a merge starts no publishing run.

"GitHub CI" still ends in startup_failure. That is a separate fix in its own pull request.

…kip the image recipe

The check regenerated 8.0/Dockerfile from the upstream template, which would
replace the recipe of the published Enterprise image, and 8.2/Dockerfile
named 8.2.7 while versions.json still had 8.2.3.

- apply-templates.sh skips 8.0/, the image recipe that publish.ps1 builds.
- versions.sh runs on jq 1.7 and later again: a comment that ended with a
  backslash continued onto the next line (the same fix as upstream).
- versions.json comes from versions.sh and the release data of MongoDB:
  7.0.45 and 8.0.34 (the same entries as upstream docker-library/mongo),
  and 8.2 is past its end of life, so it is null and 8.2/ goes away.
- 7.0/ is regenerated. AGENTS.md says how to refresh these folders.
@peters
peters merged commit 3925340 into finter-9.0 Oct 19, 2026
2 checks passed
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.

1 participant