Skip to content

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

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

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

Conversation

@desrosj

@desrosj desrosj commented Oct 26, 2026

Copy link
Copy Markdown
Member

Part of #83420.

What?

Runs the PHP unit tests on PHP 5.6, 7.0 and 7.4, each single site and multisite, instead of only on the wordpress-develop local environment's default PHP version (7.4).

Why?

WordPress 5.3 supports PHP 5.6 through 7.4, so the plugin code on this branch has to run on all of them. Testing only PHP 7.4 would miss anything that breaks on the PHP versions at the bottom of that range.

How?

The matrix tests the lowest and highest supported minor version of each major PHP version WordPress 5.3 supports: 5.6 is the only supported PHP 5 version, and 7.0 and 7.4 bound PHP 7. The range comes from $required_php_version = '5.6.20' in src/wp-includes/version.php on wordpress-develop's 5.3 branch, and the PHP Compatibility and WordPress Versions handbook page, which lists 5.3 as compatible with PHP 5.6 to 7.4 and not with 8.0. wordpress-develop's own phpunit-tests.yml on its 5.3 branch tests the same three versions.

LOCAL_PHP selects the php, cli and phpunit images of the wordpress-develop local environment. The composer.lock in wordpress-develop locks PHPUnit 7.5, which requires PHP 7.1, so on PHP 5.6 and 7.0 PHPUnit ^5.7 is installed along with the PHPUnit Polyfills instead. As in wordpress-develop's own CI, the tests run each image's bundled PHPUnit (5.7.27, 6.5.14 and 7.5.20); the Composer-installed PHPUnit is only there for the Polyfills and the autoloader.

Testing Instructions

The workflow runs on this pull request: check that the six PHP jobs run and pass. actionlint reports nothing for the workflow.

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: d9f32286-c78c-4f5d-b0a5-1c391e0b133f

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.3/test-php-version-matrix branch from afc72ca to d5df4c5 Compare October 27, 2026 21:03
@desrosj
desrosj force-pushed the fix-actions-5.3/test-php-version-matrix branch from d5df4c5 to a145363 Compare October 29, 2026 12:48
@desrosj
desrosj merged commit 412f90c into wp/5.3 Oct 29, 2026
17 of 35 checks passed
@desrosj
desrosj deleted the fix-actions-5.3/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