Repository navigation
Make "Verify Templating" pass: regenerate the reference folders and skip the image recipe - #4
Merged
Merged
Conversation
…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.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
"Verify Templating" fails on
finter-9.0(658297b). It runs./apply-templates.shand thengit diff --exit-code, and two things differ:8.0/Dockerfilefrom the upstream template. That would replace the recipe of the published Enterprise image (enterprise package, the 8.0, 9 and dev signing keys, theMONGO_MAJOR,MONGOSH_CHANNELandMONGO_VERSIONbuild arguments).publish.ps1and the "Publish image" workflow build./8.0, so the templates must not own that folder.8.2/Dockerfilewas edited by hand to8.2.7, whileversions.jsonstill had8.2.3from 2025-12.What changes
apply-templates.shskips8.0/with a short comment. A local./update.shcan no longer overwrite the image recipe either.versions.shruns 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.jsoncomes from./versions.sh 7.0 8.0 8.2and MongoDB's release data (downloads.mongodb.org/current.json, MSI checksums fromfastdl.mongodb.org), not from a guess:8.0/is skipped.null, because 8.2 is past its end of life (2026-03-30 in the table ofversions.sh). The newest 8.2 release is 8.2.12, from 06/26/2026.docker-library/mongomaster(5aed6b9), which its bot made from the same source. Upstream also has 8.2 asnull.apply-templates.shregenerated7.0/, and removed8.2/. Neither is built or published: the image comes from8.0/only.Checks
./apply-templates.shinubuntu:24.04(gawk, jq 1.7.1) followed bygit diff --exit-codegives no diff.publish.ps1and8.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.