Repository navigation
Stop publishing wordpress-dev under the -wordpress tags - #8
Merged
Merged
Conversation
merge-frankenphp-dependent downloaded each variant's per-arch digests with the glob digest-fpdep-<ver>-<variant>-*. For wordpress that also matched wordpress-dev's artifacts, so since 05833ad every <ver>-frankenphp-wordpress tag listed four images: its own two plus wordpress-dev's. Which one a host pulled depended on manifest order, so production pulls could get the dev image (no disable_functions, timestamp revalidation, git/npm), and on stale parents an old PHP. wordpress-dev also built in the same matrix as wordpress, which it is FROM, so it always built on the previously published -wordpress. - Download each arch's digest by exact artifact name and require exactly two digests before creating the manifest, so a failed arch leg fails the merge instead of publishing a single-arch tag. - Move wordpress-dev into its own build/merge stage after merge-frankenphp-dependent. - Pin every derived build's FROM to the parent this run pushed, via a build context mapped to the parent's -<sha> tag. If the parent didn't publish, the child fails instead of building on the stale image.
merge-frankenphp-base still globbed digest-fpbase-<ver>-* with no count check, so a failed base arch leg published a single-arch <ver>-frankenphp tag. Download both arches by name and require two digests, as the dependent merges now do. Also correct the build-contexts comment: the -<sha> tag is per commit, not per run, so a later run at the same commit can build on an earlier run's parent.
Member
Author
Review round 1 (one round, matching #7)A fresh-context reviewer read the workflow and tested
actionlint reports no errors after the fix. Per the one-round limit, the fix wasn't sent for a second review. |
Dockerfile.wordpress-dev is only ever FROM <ver>-frankenphp-wordpress, so the -latest mapping (and the comment explaining it) was unused, and the wordpress-dev merge carried the wordpress-glob history comment that only applies to the dependent merge.
Member
Author
Round 1 addendumThe reviewer's
|
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
After #7 merged, the published
-wordpressand-wordpress-devtags turned out to be mixed and partly unpatched. Two workflow bugs cause this. Both predate #7.1.
-wordpresstags also contain the wordpress-dev images (since 05833ad, 2026-08-27).merge-frankenphp-dependentcollects digests with the globdigest-fpdep-<ver>-<variant>-*. Forwordpressthat also matchesdigest-fpdep-<ver>-wordpress-dev-<arch>, so each<ver>-frankenphp-wordpressmanifest lists four images instead of two: its own amd64/arm64 plus wordpress-dev's. Which one a host pulls depends on manifest order. Right now, for example,8.3-frankenphp-wordpressand8.5-frankenphp-wordpressresolve on amd64 to wordpress-dev images running PHP 8.3.30 and 8.5.2. Those images are unpatched, and they also lack the wordpress hardening:PHP_DISABLE_FUNCTIONSis empty, OPcache revalidates timestamps, and git and npm are installed.2. wordpress-dev races wordpress. wordpress-dev is
FROM …-frankenphp-wordpress, but it built in the same matrix as wordpress, so it always built on the previously published wordpress image. Combined with (1), that kept recycling old images.A failed arch leg also used to publish a single-arch manifest silently, because the glob just matched whatever artifacts existed.
What
…-amd64and…-arm64by exact artifact name, then requires exactly two digests beforeimagetools create. A failed leg now fails the merge and leaves the previous tag in place.build-frankenphp-wordpress-devandmerge-frankenphp-wordpress-devrun aftermerge-frankenphp-dependent.FROMto the parent image published for this commit, using abuild-contextsmapping from the floating tag (and its-latestform, which 8.5's Dockerfiles use) to the parent's-<sha>tag. If no run at this commit published the parent, the child fails instead of building on a stale image. The tag is per commit, not per run, so a later run at the same commit can still build on an earlier run's parent. Those runs use the same Dockerfiles, so that's acceptable. The parent always rebuilds when the child does, becausechanged_filesis a single string, socontains(…, 'php/<v>/frankenphp/Dockerfile')also matchesDockerfile.*.Testing
actionlintreports no errors. The only new shellcheck note is informational (ls | wc -lon hex-named digest files).build-contextsoverride of a fullghcr.io/aliasproject/php:<tag>reference replaces theFROM, an unused mapping is ignored, and a missing-<sha>tag fails the build ("not found").main. The first real run is the post-merge dispatch below.After merging
Run Build and Push Docker Images on
mainwithbuild_php_82–build_php_85. That republishes every frankenphp tag for 8.2–8.5 correctly. Then check that each-wordpress/-wordpress-devindex has exactly two platform manifests reporting the patched PHP.Separately, pecl.php.net has been returning intermittent HTTP 500s today, which failed several wordpress legs. If a leg fails on that, re-run the failed jobs.