Skip to content

Discover announced PHP patches for manual releases - #66

Merged
baschny merged 1 commit into
masterfrom
codex/manual-php-release-discovery
Oct 21, 2026
Merged

baschny merged 1 commit into
masterfrom
codex/manual-php-release-discovery

Conversation

@baschny

@baschny baschny commented Oct 21, 2026

Copy link
Copy Markdown
Member

Why

Releasing patched images for a PHP security update (like today's 8.4.27 / 8.3.36 / 8.2.35) meant reading the announcement and typing an expected-versions JSON map into the workflow. That was error-prone and the release couldn't start until someone had done it.

What changes

  • Publish images to Docker Hub no longer takes inputs. The resolver (--latest-releases) reads the latest patch for each configured branch from php.net's release JSON.
  • Branches php.net no longer lists as supported (currently 8.1) are skipped for publishing and noted in the job summary. They still build in PR/test runs.
  • The release run waits up to one hour (--wait-seconds 3600, job timeout 75 min) for the official php:X.Y-fpm images to have the announced patch on both AMD64 and ARM64, then pins the base digests for the rest of the run.
  • Bad or missing php.net metadata fails preparation. It never falls back to publishing an older base image.
  • build-only.yml drops its optional expected-versions input.
  • README and AGENTS.md describe the new release flow.

Validation

  • make test-resolver: 26 tests pass, 13 of them new (php.net discovery, EOL skip, network failures, bounded wait/timeout).
  • actionlint 1.7.7 on .github/workflows/*.yml: clean.
  • Live python3 scripts/resolve-bases.py --latest-releases resolved 8.4.27, 8.3.36 and 8.2.35 on AMD64 + ARM64 and skipped 8.1.

Note

pecl.php.net is currently returning intermittent 500/504 errors, which also breaks image builds (see #65). PR CI may fail for that reason, not because of this change.

🤖 Generated with Claude Code

Typing an expected-version JSON map for every security release was
error-prone and blocked on someone reading the announcement. Release
runs now read the latest patch of each configured branch from php.net,
skip branches php.net no longer supports, and wait up to an hour for
the official Docker images to carry those exact patches on AMD64 and
ARM64. Missing or invalid release metadata fails preparation instead
of falling back to an older base image.
@baschny
baschny merged commit 5d57cbe into master Oct 21, 2026
7 of 9 checks passed
@baschny
baschny deleted the codex/manual-php-release-discovery branch October 21, 2026 23:36
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