Skip to content

Commit 9c51d32

Browse files
committed
Remove 7.2 and 7.3 from testing and the local development environment.
1 parent 9f72abf commit 9c51d32

12 files changed

Lines changed: 14 additions & 147 deletions

.github/workflows/install-testing.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,10 @@ jobs:
8585
- db-version: '5.0'
8686
- db-version: '5.1'
8787
- db-version: '5.5'
88-
# The PHP <= 7.3/MySQL 8.4 jobs currently fail due to mysql_native_password being disabled by default. See https://core.trac.wordpress.org/ticket/61218.
89-
- php: '7.2'
90-
db-version: '8.4'
91-
- php: '7.3'
92-
db-version: '8.4'
9388
# Only test the latest innovation release.
9489
- db-version: '9.0'
9590
- db-version: '9.1'
9691
- db-version: '9.2'
97-
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
98-
- php: '7.2'
99-
db-version: '9.3'
100-
- php: '7.3'
101-
db-version: '9.3'
10292

10393
services:
10494
database:
@@ -113,7 +103,7 @@ jobs:
113103
-e MYSQL_ROOT_PASSWORD="root"
114104
-e MYSQL_DATABASE="test_db"
115105
--entrypoint sh ${{ matrix.db-type }}:${{ matrix.db-version }}
116-
-c "exec docker-entrypoint.sh mysqld${{ matrix.db-type == 'mysql' && contains( fromJSON('["7.2", "7.3"]'), matrix.php ) && ' --default-authentication-plugin=mysql_native_password' || '' }}"
106+
-c "exec docker-entrypoint.sh mysqld"
117107
118108
steps:
119109
- name: Set up PHP ${{ matrix.php }}

.github/workflows/local-docker-environment.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ jobs:
9999
- db-version: '9.0'
100100
- db-version: '9.1'
101101
- db-version: '9.2'
102-
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
103-
- php: '7.2'
104-
db-version: '9.3'
105-
- php: '7.3'
106-
db-version: '9.3'
107102

108103
with:
109104
os: ${{ matrix.os }}

.github/workflows/phpunit-tests.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
fail-fast: false
6969
matrix:
7070
os: [ ubuntu-24.04 ]
71-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
71+
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
7272
db-type: [ 'mysql' ]
7373
db-version: [ '5.7', '8.0', '8.4' ]
7474
tests-domain: [ 'example.org' ]
@@ -145,7 +145,7 @@ jobs:
145145
fail-fast: false
146146
matrix:
147147
os: [ ubuntu-24.04 ]
148-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
148+
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
149149
db-type: [ 'mariadb' ]
150150
db-version: [ '5.5', '10.3', '10.4', '10.5', '10.6', '10.11', '11.4', '11.8' ]
151151
multisite: [ false, true ]
@@ -195,19 +195,14 @@ jobs:
195195
fail-fast: false
196196
matrix:
197197
os: [ ubuntu-24.04 ]
198-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
198+
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
199199
db-type: [ 'mysql', 'mariadb' ]
200200
db-version: [ '9.3', '11.7' ]
201201
multisite: [ false, true ]
202202
memcached: [ false ]
203203
db-innovation: [ true ]
204204

205205
exclude:
206-
# MySQL 9.0+ will not work on PHP <= 7.3 because mysql_native_password was removed. See https://core.trac.wordpress.org/ticket/61218.
207-
- php: '7.2'
208-
db-version: '9.3'
209-
- php: '7.3'
210-
db-version: '9.3'
211206
# Exclude version combinations that don't exist.
212207
- db-type: 'mariadb'
213208
db-version: '9.3'
@@ -239,7 +234,7 @@ jobs:
239234
strategy:
240235
fail-fast: false
241236
matrix:
242-
php: [ '7.2', '7.4', '8.0', '8.4' ]
237+
php: [ '7.4', '8.0', '8.4' ]
243238
db-type: [ 'mysql' ]
244239
db-version: [ '8.4' ]
245240
phpunit-test-groups: [ 'html-api-html5lib-tests' ]

.github/workflows/reusable-upgrade-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
-e MYSQL_ROOT_PASSWORD="root"
7676
-e MYSQL_DATABASE="test_db"
7777
--entrypoint sh ${{ inputs.db-type }}:${{ inputs.db-version }}
78-
-c "exec docker-entrypoint.sh mysqld${{ inputs.db-type == 'mysql' && contains( fromJSON('["7.2", "7.3"]'), inputs.php ) && ' --default-authentication-plugin=mysql_native_password' || '' }}"
78+
-c "exec docker-entrypoint.sh mysqld"
7979
8080
steps:
8181
- name: Set up PHP ${{ inputs.php }}

.github/workflows/upgrade-develop-testing.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,12 @@ jobs:
6060
fail-fast: false
6161
matrix:
6262
os: [ 'ubuntu-24.04' ]
63-
php: [ '7.2', '8.4' ]
63+
php: [ '7.4', '8.4' ]
6464
db-type: [ 'mysql' ]
6565
db-version: [ '5.7', '8.4' ]
66-
# WordPress 4.9 is the oldest version that supports PHP 7.2.
67-
wp: [ '4.9', '6.6', '6.7', '6.8' ]
66+
# WordPress 5.3 is the oldest version that supports PHP 7.4.
67+
wp: [ '5.3', '6.6', '6.7', '6.8' ]
6868
multisite: [ false, true ]
69-
70-
exclude:
71-
# The PHP <= 7.3/MySQL 8.4 jobs currently fail due to mysql_native_password being disabled by default. See https://core.trac.wordpress.org/ticket/61218.
72-
- php: '7.2'
73-
db-version: '8.4'
74-
# WordPress 4.9 does not support PHP 8.4.
75-
- php: '8.4'
76-
wp: '4.9'
7769
with:
7870
os: ${{ matrix.os }}
7971
php: ${{ matrix.php }}

.github/workflows/upgrade-testing.yml

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,11 @@ jobs:
6363
fail-fast: false
6464
matrix:
6565
os: [ 'ubuntu-24.04' ]
66-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
66+
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
6767
db-type: [ 'mysql' ]
6868
db-version: [ '5.7', '8.0', '8.4', '9.3' ]
6969
wp: [ '6.7', '6.8' ]
7070
multisite: [ false, true ]
71-
72-
exclude:
73-
# The PHP <= 7.3/MySQL 8.4 jobs currently fail due to mysql_native_password being disabled by default. See https://core.trac.wordpress.org/ticket/61218.
74-
- php: '7.2'
75-
db-version: '8.4'
76-
- php: '7.3'
77-
db-version: '8.4'
78-
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
79-
- php: '7.2'
80-
db-version: '9.3'
81-
- php: '7.3'
82-
db-version: '9.3'
8371
with:
8472
os: ${{ matrix.os }}
8573
php: ${{ matrix.php }}
@@ -98,16 +86,11 @@ jobs:
9886
fail-fast: false
9987
matrix:
10088
os: [ 'ubuntu-24.04' ]
101-
php: [ '7.2', '7.4', '8.0', '8.4' ]
89+
php: [ '7.4', '8.0', '8.4' ]
10290
db-type: [ 'mysql' ]
10391
db-version: [ '5.7', '8.4' ]
10492
wp: [ '6.0', '6.3', '6.4', '6.5' ]
10593
multisite: [ false, true ]
106-
107-
exclude:
108-
# The PHP <= 7.3/MySQL 8.4 jobs currently fail due to mysql_native_password being disabled by default. See https://core.trac.wordpress.org/ticket/61218.
109-
- php: '7.2'
110-
db-version: '8.4'
11194
with:
11295
os: ${{ matrix.os }}
11396
php: ${{ matrix.php }}
@@ -117,7 +100,7 @@ jobs:
117100
new-version: ${{ inputs.new-version && inputs.new-version || 'latest' }}
118101
multisite: ${{ matrix.multisite }}
119102

120-
# Tests 5.x releases where the WordPress database version changed on the oldest and newest supported versions of PHP 7.
103+
# Tests 5.x releases where the WordPress database version changed on the only supported version of PHP 7.
121104
upgrade-tests-wp-5x-php-7x-mysql:
122105
name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }}
123106
uses: ./.github/workflows/reusable-upgrade-testing.yml
@@ -126,16 +109,11 @@ jobs:
126109
fail-fast: false
127110
matrix:
128111
os: [ 'ubuntu-24.04' ]
129-
php: [ '7.2', '7.4' ]
112+
php: [ '7.4' ]
130113
db-type: [ 'mysql' ]
131114
db-version: [ '5.7', '8.4' ]
132115
wp: [ '5.0', '5.1', '5.3', '5.4', '5.5', '5.6', '5.9' ]
133116
multisite: [ false, true ]
134-
135-
exclude:
136-
# The PHP <= 7.3/MySQL 8.4 jobs currently fail due to mysql_native_password being disabled by default. See https://core.trac.wordpress.org/ticket/61218.
137-
- php: '7.2'
138-
db-version: '8.4'
139117
with:
140118
os: ${{ matrix.os }}
141119
php: ${{ matrix.php }}
@@ -186,23 +164,11 @@ jobs:
186164
fail-fast: false
187165
matrix:
188166
os: [ 'ubuntu-24.04' ]
189-
php: [ '7.2', '7.3', '7.4' ]
167+
php: [ '7.4' ]
190168
db-type: [ 'mysql' ]
191169
db-version: [ '5.7', '8.0', '8.4', '9.3' ]
192170
wp: [ '4.7' ]
193171
multisite: [ false, true ]
194-
195-
exclude:
196-
# The PHP <= 7.3/MySQL 8.4 jobs currently fail due to mysql_native_password being disabled by default. See https://core.trac.wordpress.org/ticket/61218.
197-
- php: '7.2'
198-
db-version: '8.4'
199-
- php: '7.3'
200-
db-version: '8.4'
201-
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
202-
- php: '7.2'
203-
db-version: '9.3'
204-
- php: '7.3'
205-
db-version: '9.3'
206172
with:
207173
os: ${{ matrix.os }}
208174
php: ${{ matrix.php }}

docker-compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ services:
7979
- ./tools/local-env/mysql-init.sql:/docker-entrypoint-initdb.d/mysql-init.sql
8080
- mysql:/var/lib/mysql
8181

82-
# For compatibility with PHP versions that don't support the caching_sha2_password auth plugin used in MySQL 8.0.
83-
command: ${LOCAL_DB_AUTH_OPTION-}
84-
8582
healthcheck:
8683
test: [
8784
'CMD-SHELL',

tools/local-env/mysql-old-php.conf

Lines changed: 0 additions & 20 deletions
This file was deleted.

tools/local-env/old-php-mysql-84.override.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

tools/local-env/scripts/install.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ const local_env_utils = require( './utils' );
99

1010
dotenvExpand.expand( dotenv.config() );
1111

12-
// Determine if a non-default database authentication plugin needs to be used.
13-
local_env_utils.determine_auth_option();
14-
1512
// Create wp-config.php.
1613
wp_cli( `config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --force --config-file="wp-config.php"` );
1714

0 commit comments

Comments
 (0)