Skip to content

Commit a2d4af1

Browse files
committed
Split upgrade test jobs over the spawn limit.
1 parent d5f78f0 commit a2d4af1

File tree

1 file changed

+56
-5
lines changed

1 file changed

+56
-5
lines changed

.github/workflows/upgrade-testing.yml

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ permissions: {}
3333

3434
jobs:
3535
# Spawns upgrade testing from WordPress 6.x versions on PHP 8.x with MySQL.
36-
upgrade-tests-wp-6x-php-8x-mysql:
36+
upgrade-tests-wp-6x-php-8x-mysql-pt-1:
3737
name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }}
3838
uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk
3939
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
@@ -46,9 +46,33 @@ jobs:
4646
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
4747
db-type: [ 'mysql' ]
4848
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
49-
wp: [ '6.0', '6.1', '6.2', '6.3', '6.4', '6.5', '6.6', '6.7' ]
49+
wp: [ '6.5', '6.6', '6.7' ]
5050
multisite: [ false, true ]
51+
with:
52+
os: ${{ matrix.os }}
53+
php: ${{ matrix.php }}
54+
db-type: ${{ matrix.db-type }}
55+
db-version: ${{ matrix.db-version }}
56+
wp: ${{ matrix.wp }}
57+
new-version: ${{ inputs.new-version && inputs.new-version || 'latest' }}
58+
multisite: ${{ matrix.multisite }}
5159

60+
# Spawns upgrade testing from WordPress 6.x versions on PHP 8.x with MySQL.
61+
upgrade-tests-wp-6x-php-8x-mysql-pt-2:
62+
name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }}
63+
uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk
64+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
65+
permissions:
66+
contents: read
67+
strategy:
68+
fail-fast: false
69+
matrix:
70+
os: [ 'ubuntu-latest' ]
71+
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
72+
db-type: [ 'mysql' ]
73+
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
74+
wp: [ '6.0', '6.1', '6.2', '6.3', '6.4' ]
75+
multisite: [ false, true ]
5276
with:
5377
os: ${{ matrix.os }}
5478
php: ${{ matrix.php }}
@@ -131,7 +155,34 @@ jobs:
131155
# WordPress 5.0-5.2 are excluded from PHP 8+ testing because of the following fatal errors:
132156
# - Use of __autoload().
133157
# - array/string offset with curly braces.
134-
upgrade-tests-wp-5x-php-8x-mysql:
158+
upgrade-tests-wp-5x-php-8x-mysql-pt-1:
159+
name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }}
160+
uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk
161+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
162+
strategy:
163+
fail-fast: false
164+
matrix:
165+
os: [ 'ubuntu-latest' ]
166+
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
167+
db-type: [ 'mysql' ]
168+
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
169+
wp: [ '5.3', '5.4', '5.5' ]
170+
multisite: [ false, true ]
171+
with:
172+
os: ${{ matrix.os }}
173+
php: ${{ matrix.php }}
174+
db-type: ${{ matrix.db-type }}
175+
db-version: ${{ matrix.db-version }}
176+
wp: ${{ matrix.wp }}
177+
new-version: ${{ inputs.new-version && inputs.new-version || 'latest' }}
178+
multisite: ${{ matrix.multisite }}
179+
180+
# Spawns upgrade testing from WordPress 5.x versions on PHP 8.x with MySQL.
181+
#
182+
# WordPress 5.0-5.2 are excluded from PHP 8+ testing because of the following fatal errors:
183+
# - Use of __autoload().
184+
# - array/string offset with curly braces.
185+
upgrade-tests-wp-5x-php-8x-mysql-pt-2:
135186
name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }}
136187
uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk
137188
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
@@ -142,7 +193,7 @@ jobs:
142193
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
143194
db-type: [ 'mysql' ]
144195
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
145-
wp: [ '5.3', '5.4', '5.5', '5.6', '5.7', '5.8', '5.9' ]
196+
wp: [ '5.6', '5.7', '5.8', '5.9' ]
146197
multisite: [ false, true ]
147198
with:
148199
os: ${{ matrix.os }}
@@ -219,7 +270,7 @@ jobs:
219270
permissions:
220271
actions: read
221272
contents: read
222-
needs: [ upgrade-tests-wp-6x-php-8x-mysql, upgrade-tests-wp-6x-php-7x-mysql, upgrade-tests-wp-5x-php-7x-mysql, upgrade-tests-wp-5x-php-8x-mysql, upgrade-tests-wp-4x-php-7x-mysql, upgrade-tests-wp-4x-php-8x-mysql ]
273+
needs: [ upgrade-tests-wp-6x-php-8x-mysql-pt-1, upgrade-tests-wp-6x-php-8x-mysql-pt-2, upgrade-tests-wp-6x-php-7x-mysql, upgrade-tests-wp-5x-php-7x-mysql, upgrade-tests-wp-5x-php-8x-mysql-pt-1, upgrade-tests-wp-5x-php-8x-mysql-pt-2, upgrade-tests-wp-4x-php-7x-mysql, upgrade-tests-wp-4x-php-8x-mysql ]
223274
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
224275
with:
225276
calling_status: ${{ contains( needs.*.result, 'cancelled' ) && 'cancelled' || contains( needs.*.result, 'failure' ) && 'failure' || 'success' }}

0 commit comments

Comments
 (0)