Skip to content

Fix main's red CI: macOS Composer on PHP 8.4 and the setup-php pin comment - #1102

Merged
Mikola Lysenko (mikolalysenko) merged 4 commits into
mainfrom
ci/composer-macos-php84
Oct 8, 2026
Merged

Mikola Lysenko (mikolalysenko) merged 4 commits into
mainfrom
ci/composer-macos-php84

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Every Composer compatibility run since 2026-10-07 23:51Z fails its macOS composer 2.10.3 / php 8.5 cell in "Setup PHP". The 10 most recent runs all failed there, on main and on PRs (e.g. main run 37712459222):

php: command not found
✗ PHP Could not setup PHP 8.5

On 10-07, Homebrew's PHP formulas were reshuffled when PHP 8.6 was published (shivammathur/homebrew-php). Since then, setup-php 2.37.2 (our pinned version, the latest stable) can't install PHP 8.5 on macOS. The other macOS cells (PHP 8.1 and 8.3) still pass.

Fix

Run the macOS 2.10.3 cell on PHP 8.4, which Composer 2.10.3 supports. Ubuntu and Windows keep the 2.10.3 / 8.5 cell, so PHP 8.5 is still covered. The macOS row in docs/testing/composer-compatibility.md is updated to match.

Validation

The macOS legs no longer run on PRs (#1093), so I dispatched the workflow on this branch: run 37715262908 (result in a follow-up comment).

Also: zizmor ref-version-mismatch on ci.yml

The org's Audit GHA Workflows check now fails any merge group that touches workflows (for example #1050, run 37749840803). It flags ci.yml:1400, shivammathur/setup-php@f3e473d1 # v2: the upstream v2 tag has moved off that commit. f3e473d1 is tag 2.37.2 (verified with the GitHub API), so the comment now says # 2.37.2, matching composer-compatibility.yml. The pin itself is unchanged. #1058 has the same one-line fix, but it is a much larger PR.

🤖 Generated with Claude Code


Note

Low Risk
CI matrix and documentation only; no application or patch logic changes.

Overview
Fixes failing macOS Composer compatibility CI after Homebrew/setup-php stopped providing PHP 8.5 once PHP 8.6 landed (Setup PHP step: php: command not found).

The native-macos matrix cell for Composer 2.10.3 now runs on PHP 8.4 instead of 8.5, with an inline comment documenting the setup-php limitation. Ubuntu and Windows still use 2.10.3 / 8.5, so PHP 8.5 coverage is unchanged overall. The macOS row in docs/testing/composer-compatibility.md is updated to 2.10.3 (8.4).

Reviewed by Cursor Bugbot for commit b4cba52. Configure here.

Since 2026-10-07 23:51Z every Composer compatibility run has failed
its macOS 2.10.3 / PHP 8.5 cell in "Setup PHP": setup-php 2.37.2
cannot install PHP 8.5 from Homebrew now that PHP 8.6 has shipped
("php: command not found", "Could not setup PHP 8.5"). This keeps
main red on every push.

Run that cell on PHP 8.4, which Composer 2.10.3 supports. Ubuntu and
Windows keep the 2.10.3 / PHP 8.5 cell, so 8.5 is still covered.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@mikolalysenko Mikola Lysenko (mikolalysenko) added the ci-janitor Opened by the CI janitor routine (flakes, redundant tests, CI perf) label Oct 8, 2026
@mikolalysenko

Copy link
Copy Markdown
Collaborator Author

Validation: dispatched run 37715262908 on this branch. All three macOS cells passed: composer 2.10.3 / php 8.4, 2.2.30 / php 8.3 and 1.10.28 / php 8.1.

The upstream v2 tag moved off f3e473d1, so zizmor's ref-version-mismatch
audit now fails every merge group that touches workflows. f3e473d1 is
2.37.2, the label composer-compatibility.yml already uses.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@mikolalysenko Mikola Lysenko (mikolalysenko) changed the title Run the macOS Composer 2.10.3 cell on PHP 8.4 Fix main's red CI: macOS Composer on PHP 8.4 and the setup-php pin comment Oct 8, 2026
@mikolalysenko
Mikola Lysenko (mikolalysenko) added this pull request to the merge queue Oct 8, 2026
Merged via the queue into main with commit 33cc8ee Oct 8, 2026
211 checks passed
@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the ci/composer-macos-php84 branch October 8, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-janitor Opened by the CI janitor routine (flakes, redundant tests, CI perf)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants