Skip to content

Commit 7142138

Browse files
committed
Merge branch 'trunk' into patch/63135
2 parents fa0fe85 + ebace79 commit 7142138

File tree

242 files changed

+3310
-2092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+3310
-2092
lines changed

.github/workflows/install-testing.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ jobs:
9292
db-version: '8.4'
9393
# Only test the latest innovation release.
9494
- db-version: '9.0'
95+
- db-version: '9.1'
96+
- db-version: '9.2'
9597
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
9698
- php: '7.2'
97-
db-version: '9.1'
99+
db-version: '9.3'
98100
- php: '7.3'
99-
db-version: '9.1'
101+
db-version: '9.3'
100102

101103
services:
102104
database:

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,13 @@ jobs:
9797
- db-version: '5.5'
9898
# Only test the latest innovation release.
9999
- db-version: '9.0'
100+
- db-version: '9.1'
101+
- db-version: '9.2'
100102
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
101103
- php: '7.2'
102-
db-version: '9.1'
104+
db-version: '9.3'
103105
- php: '7.3'
104-
db-version: '9.1'
106+
db-version: '9.3'
105107

106108
with:
107109
os: ${{ matrix.os }}

.github/workflows/phpunit-tests.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
#
5454
# Creates a PHPUnit test job for each PHP/MySQL combination.
5555
#
56+
# Though MySQL 5.5 and 5.6 are still supported by WordPress, they are not currently tested here because the Docker
57+
# images do not work. Testing against MariaDB 5.5 provides a reasonable level of MySQL 5.5 testing (see MariaDB matrix
58+
# below for more details).
59+
#
5660
test-with-mysql:
5761
name: PHP ${{ matrix.php }}
5862
uses: ./.github/workflows/reusable-phpunit-tests-v3.yml
@@ -124,6 +128,10 @@ jobs:
124128
#
125129
# Creates a PHPUnit test job for each PHP/MariaDB combination.
126130
#
131+
# All LTS versions of MariaDB supported by WordPress with greater than 1% usage according to w.org/stats should be
132+
# tested. The exception to this rule is version 5.5. That release was intended as a drop-in replacement for MySQL.
133+
# Because the MySQL 5.5 Docker containers do not work, this ensures some level of MySQL 5.5 testing.
134+
#
127135
test-with-mariadb:
128136
name: PHP ${{ matrix.php }}
129137
uses: ./.github/workflows/reusable-phpunit-tests-v3.yml
@@ -168,11 +176,11 @@ jobs:
168176
#
169177
# Creates PHPUnit test jobs to test MariaDB and MySQL innovation releases.
170178
#
171-
# Though innovation releases are deemed "production grade" and never receive LTS status, they include new features
172-
# and updates that will be included in the next LTS version.
179+
# Though innovation releases are deemed "production grade", they never receive LTS status. However, they include new
180+
# features and updates that will be included in the next LTS version.
173181
#
174-
# Because upstream support for innovation releases gets dropped when a new one is released, only the most recent
175-
# innovation version is tested.
182+
# Because upstream support for innovation releases is dropped when a new one is released (including security updates),
183+
# only the most recent innovation version is tested.
176184
#
177185
test-innovation-releases:
178186
name: PHP ${{ matrix.php }}
@@ -187,22 +195,22 @@ jobs:
187195
os: [ ubuntu-24.04 ]
188196
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
189197
db-type: [ 'mysql', 'mariadb' ]
190-
db-version: [ '9.1', '11.6' ]
198+
db-version: [ '9.3', '11.7' ]
191199
multisite: [ false, true ]
192200
memcached: [ false ]
193201
db-innovation: [ true ]
194202

195203
exclude:
196204
# MySQL 9.0+ will not work on PHP <= 7.3 because mysql_native_password was removed. See https://core.trac.wordpress.org/ticket/61218.
197205
- php: '7.2'
198-
db-version: '9.1'
206+
db-version: '9.3'
199207
- php: '7.3'
200-
db-version: '9.1'
208+
db-version: '9.3'
201209
# Exclude version combinations that don't exist.
202210
- db-type: 'mariadb'
203-
db-version: '9.1'
211+
db-version: '9.3'
204212
- db-type: 'mysql'
205-
db-version: '11.6'
213+
db-version: '11.7'
206214
with:
207215
os: ${{ matrix.os }}
208216
php: ${{ matrix.php }}
@@ -217,6 +225,8 @@ jobs:
217225
#
218226
# Runs specific individual test groups.
219227
#
228+
# These tests are run against the most recent LTS version of MySQL.
229+
#
220230
specific-test-groups:
221231
name: ${{ matrix.phpunit-test-groups }}
222232
uses: ./.github/workflows/reusable-phpunit-tests-v3.yml

.github/workflows/pull-request-comments.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
- All changes will be lost when refreshing the page.
159159
- A fresh instance is created each time the link below is clicked.
160160
- Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
161-
it's possible that the most recent build failed, or has not completed. Check the [list of workflow runs to be sure](https://github.com/WordPress/wordpress-develop/actions/workflows/wordpress-playground.yml).
161+
it's possible that the most recent build failed, or has not completed. Check the [list of workflow runs to be sure](https://github.com/WordPress/wordpress-develop/actions/workflows/test-build-processes.yml).
162162
163163
For more details about these limitations and more, check out the [Limitations page](https://wordpress.github.io/wordpress-playground/limitations/) in the WordPress Playground documentation.
164164

.github/workflows/reusable-cleanup-pull-requests.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,32 @@ jobs:
5050
with:
5151
script: |
5252
const fixedList = "${{ steps.trac-tickets.outputs.fixed_list }}".split(' ').filter(Boolean);
53-
5453
let prNumbers = [];
5554
5655
for (const ticket of fixedList) {
57-
const tracTicketUrl = `https://core.trac.wordpress.org/ticket/${ ticket }`;
58-
const corePrefix = `Core-${ ticket }`;
59-
const query = `is:pr is:open repo:${ context.repo.owner }/${ context.repo.repo } in:body ${ tracTicketUrl } OR ${ corePrefix }`;
60-
const result = await github.rest.search.issuesAndPullRequests({ q: query });
56+
const tracTicketUrl = `https://core.trac.wordpress.org/ticket/${ticket}`;
57+
const corePrefix = `Core-${ticket}`;
58+
59+
const query = `
60+
query($searchQuery: String!) {
61+
search(query: $searchQuery, type: ISSUE_ADVANCED, first: 20) {
62+
nodes {
63+
... on PullRequest {
64+
number
65+
state
66+
}
67+
}
68+
}
69+
}
70+
`;
71+
72+
const searchQuery = `repo:${context.repo.owner}/${context.repo.repo} is:pr is:open in:body ( "${tracTicketUrl}" OR "${corePrefix}" )`;
73+
74+
const result = await github.graphql(query, {
75+
searchQuery,
76+
});
6177
62-
prNumbers = prNumbers.concat(result.data.items.map(pr => pr.number));
78+
prNumbers.push(...result.search.nodes.map(pr => pr.number));
6379
}
6480
6581
return prNumbers;

.github/workflows/reusable-test-local-docker-environment-v1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
run: npm run env:restart
156156

157157
- name: Test a CLI command
158-
run: npm run env:cli wp option get siteurl
158+
run: npm run env:cli option get siteurl
159159

160160
- name: Test logs command
161161
run: npm run env:logs

.github/workflows/test-old-branches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
permissions: {}
2626

2727
env:
28-
CURRENTLY_SUPPORTED_BRANCH: '6.7'
28+
CURRENTLY_SUPPORTED_BRANCH: '6.8'
2929

3030
jobs:
3131
dispatch-workflows-for-old-branches:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
db-type: [ 'mysql' ]
6565
db-version: [ '5.7', '8.4' ]
6666
# WordPress 4.9 is the oldest version that supports PHP 7.2.
67-
wp: [ '4.9', '6.5', '6.7', '6.8-RC1' ]
67+
wp: [ '4.9', '6.6', '6.7', '6.8' ]
6868
multisite: [ false, true ]
6969

7070
exclude:

.github/workflows/upgrade-testing.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
os: [ 'ubuntu-24.04' ]
6666
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
6767
db-type: [ 'mysql' ]
68-
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
69-
wp: [ '6.6', '6.7' ]
68+
db-version: [ '5.7', '8.0', '8.4', '9.3' ]
69+
wp: [ '6.7', '6.8' ]
7070
multisite: [ false, true ]
7171

7272
exclude:
@@ -77,9 +77,9 @@ jobs:
7777
db-version: '8.4'
7878
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
7979
- php: '7.2'
80-
db-version: '9.1'
80+
db-version: '9.3'
8181
- php: '7.3'
82-
db-version: '9.1'
82+
db-version: '9.3'
8383
with:
8484
os: ${{ matrix.os }}
8585
php: ${{ matrix.php }}
@@ -101,7 +101,7 @@ jobs:
101101
php: [ '7.2', '7.4', '8.0', '8.4' ]
102102
db-type: [ 'mysql' ]
103103
db-version: [ '5.7', '8.4' ]
104-
wp: [ '6.0', '6.1', '6.2', '6.3', '6.4', '6.5' ]
104+
wp: [ '6.0', '6.1', '6.2', '6.3', '6.4', '6.5', '6.6' ]
105105
multisite: [ false, true ]
106106

107107
exclude:
@@ -243,7 +243,7 @@ jobs:
243243
os: [ 'ubuntu-24.04' ]
244244
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
245245
db-type: [ 'mysql' ]
246-
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
246+
db-version: [ '5.7', '8.0', '8.4', '9.3' ]
247247
wp: [ '4.1' ]
248248
multisite: [ false, true ]
249249

@@ -255,9 +255,9 @@ jobs:
255255
db-version: '8.4'
256256
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
257257
- php: '7.2'
258-
db-version: '9.1'
258+
db-version: '9.3'
259259
- php: '7.3'
260-
db-version: '9.1'
260+
db-version: '9.3'
261261
with:
262262
os: ${{ matrix.os }}
263263
php: ${{ matrix.php }}

.version-support-mysql.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"6-9": [
3+
"9.3",
4+
"9.2",
35
"9.1",
46
"9.0",
57
"8.4",

0 commit comments

Comments
 (0)