Skip to content

Repair wp/5.2 branch Actions: Test the lowest and highest supported PHP versions - #85651

Merged
desrosj merged 1 commit into
fix-actions-5.2/upgrade-node-to-14from
fix-actions-5.2/test-php-version-matrix
Oct 29, 2026
Merged

desrosj merged 1 commit into
fix-actions-5.2/upgrade-node-to-14from
fix-actions-5.2/test-php-version-matrix

Conversation

@desrosj

@desrosj desrosj commented Oct 26, 2026

Copy link
Copy Markdown
Member

Part of #83421.

What?

Runs the PHP unit test job as a matrix on PHP 7.3, 7.0 and 5.6, the highest and lowest PHP versions WordPress 5.2 supports, instead of only on the PHP 7.1 in chriszarate/wordpress-phpunit.

Why?

WordPress 5.2 requires PHP 5.6.20 and supports up to PHP 7.3, so the plugin's PHP should be tested at both ends of that range.

How?

  • The wordpress_phpunit service in docker-compose.yml takes its image from PHPUNIT_IMAGE, defaulting to the current chriszarate/wordpress-phpunit. The default image still installs the WordPress test suite (it has svn and a MySQL client), and the test steps set PHPUNIT_IMAGE to the leg's image. The service clears the entrypoint of the wordpressdevelop/phpunit images, which expects a wordpress-develop checkout, and sets the working directory to /app.
  • Each leg uses a wordpressdevelop/phpunit image, published by the WordPress project with the PHPUnit version each PHP version needs: 7-php-7.3-fpm (PHPUnit 7.5.20), 6-php-7.0-fpm (PHPUnit 6.5.14) and 5-php-5.6-fpm (PHPUnit 5.7.27). These match the PHP and PHPUnit versions the wordpress-develop 5.2 branch tests with, and the WordPress 5.2 test suite supports PHPUnit up to 7.x.
  • PHPCS does not depend on the PHP version the tests run on, so Lint PHP only runs on the PHP 7.3 leg.

Testing Instructions

Ran bin/install-docker.sh with WP_VERSION=5.2 and then npm run test-unit-php and npm run test-unit-php-multisite locally with each leg's image and with the default image: all pass (15 tests). Check that the three PHP jobs pass.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

🤖 Generated with Claude Code

@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 26, 2026
@desrosj desrosj self-assigned this Oct 26, 2026
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e2dd6133-9172-47d8-9d34-65d7a5fe356f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • 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.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>
Co-authored-by: lucatume <lucatume@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@desrosj
desrosj force-pushed the fix-actions-5.2/test-php-version-matrix branch from ec9b5a3 to ab29a26 Compare October 29, 2026 12:48
@desrosj
desrosj merged commit 152cfcc into wp/5.2 Oct 29, 2026
11 of 25 checks passed
@desrosj
desrosj deleted the fix-actions-5.2/test-php-version-matrix branch October 29, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants