From a9152287dc1bf90932a067c630a2f58a165eb166 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Mon, 27 Jul 2026 17:00:13 -0700 Subject: [PATCH] Build/Test Tools: Trim the PHPUnit matrix to boundary PHP versions in the 6.8 branch. The 6.8 PHPUnit matrix runs the full PHP axis (7.2 through 8.4) across three job groups, about 198 matrix jobs, while trunk and 7.0 were trimmed to boundary versions. During a security release several branches run at once, and 6.8's full matrix is the single largest contributor to the concurrent-job peak. Trim the PHP axis to the highest and lowest of each major (7.2, 7.4, 8.0, 8.4), matching trunk and 7.0. The intermediate versions still run on trunk and the weekly scheduled full matrix, so coverage holds. See #65736, see #64083. Props lance.willett@automattic.com. --- .github/workflows/phpunit-tests.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index ecb571f62bcc6..344e86956cd55 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -64,7 +64,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-24.04 ] - php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] + php: [ '7.2', '7.4', '8.0', '8.4' ] db-type: [ 'mysql' ] db-version: [ '5.7', '8.0', '8.4' ] tests-domain: [ 'example.org' ] @@ -135,7 +135,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-24.04 ] - php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] + php: [ '7.2', '7.4', '8.0', '8.4' ] db-type: [ 'mariadb' ] db-version: [ '5.5', '10.3', '10.4', '10.5', '10.6', '10.11', '11.4' ] multisite: [ false, true ] @@ -185,7 +185,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-24.04 ] - php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] + php: [ '7.2', '7.4', '8.0', '8.4' ] db-type: [ 'mysql', 'mariadb' ] db-version: [ '9.1', '11.6' ] multisite: [ false, true ] @@ -196,8 +196,6 @@ jobs: # MySQL 9.0+ will not work on PHP <= 7.3 because mysql_native_password was removed. See https://core.trac.wordpress.org/ticket/61218. - php: '7.2' db-version: '9.1' - - php: '7.3' - db-version: '9.1' # Exclude version combinations that don't exist. - db-type: 'mariadb' db-version: '9.1'