Skip to content

Update setup-php to 2.40.0 for the macOS release build - #14

Merged
oschwald merged 1 commit into
mainfrom
wstorey/eng-5610-geoip2-php-fix-macos-ci-by-updating-setup-php-to-2400
Oct 11, 2026
Merged

oschwald merged 1 commit into
mainfrom
wstorey/eng-5610-geoip2-php-fix-macos-ci-by-updating-setup-php-to-2400

Conversation

@horgh

@horgh horgh commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

The macos job in release.yml installs PHP on macos-26 with setup-php 2.37.2. The same setup fails now in GeoIP2-php, minfraud-api-php and web-service-common-php CI. This workflow runs on pull requests, so this PR tests the macOS release legs with 2.40.0.

Cause

setup-php 2.37.2 installs PHP on macOS from the live shivammathur/php Homebrew tap. It resets Homebrew to origin/main, sets HOMEBREW_NO_INSTALL_FROM_API=1, and hides the brew output. Homebrew changes from 2026-10-07 to 2026-10-09 broke this path. setup-php 2.40.0 fixes it:

The same update for GeoIP2-php is maxmind/GeoIP2-php#351.

Change

Pin shivammathur/setup-php to 2.40.0 in release.yml. Dependabot's 7-day cooldown would delay this update until 2026-10-19.

ENG-5610

🤖 Generated with Claude Code

setup-php 2.37.2 installs PHP on macOS from the live Homebrew tap. It
resets Homebrew to origin/main and hides the brew output. Homebrew
changes from 2026-10-07 to 2026-10-09 broke this path. The macos-26
release job uses it.

setup-php 2.40.0 resolves tap formula aliases before it calls brew and
uses the Homebrew API when homebrew-core is not tapped. It also installs
prebuilt PHP builds on macOS.

Dependabot's 7-day cooldown would delay this update until 2026-10-19.

ENG-5610

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 11, 2026 15:48
@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 880fec44-0705-459f-b671-5bef167b4c09

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The pinned SHA correctly corresponds to setup-php 2.40.0 and the change is narrowly scoped.

0 open findings

What changed in this PR

Updates the macOS release workflow to restore PHP installation compatibility.

Changes:

  • Pins setup-php 2.40.0 using its verified commit SHA.
File Description
.github/​workflows/​release.yml Updates setup-php for macOS release builds.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@oschwald
oschwald merged commit 27e7708 into main Oct 11, 2026
35 checks passed
@oschwald
oschwald deleted the wstorey/eng-5610-geoip2-php-fix-macos-ci-by-updating-setup-php-to-2400 branch October 11, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants