Skip to content

Commit

Permalink
Split upgrade test jobs over the spawn limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
desrosj committed Nov 22, 2024
1 parent d5f78f0 commit a2d4af1
Showing 1 changed file with 56 additions and 5 deletions.
61 changes: 56 additions & 5 deletions .github/workflows/upgrade-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ permissions: {}

jobs:
# Spawns upgrade testing from WordPress 6.x versions on PHP 8.x with MySQL.
upgrade-tests-wp-6x-php-8x-mysql:
upgrade-tests-wp-6x-php-8x-mysql-pt-1:
name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }}
uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
Expand All @@ -46,9 +46,33 @@ jobs:
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
db-type: [ 'mysql' ]
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
wp: [ '6.0', '6.1', '6.2', '6.3', '6.4', '6.5', '6.6', '6.7' ]
wp: [ '6.5', '6.6', '6.7' ]
multisite: [ false, true ]
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
db-type: ${{ matrix.db-type }}
db-version: ${{ matrix.db-version }}
wp: ${{ matrix.wp }}
new-version: ${{ inputs.new-version && inputs.new-version || 'latest' }}
multisite: ${{ matrix.multisite }}

# Spawns upgrade testing from WordPress 6.x versions on PHP 8.x with MySQL.
upgrade-tests-wp-6x-php-8x-mysql-pt-2:
name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }}
uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest' ]
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
db-type: [ 'mysql' ]
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
wp: [ '6.0', '6.1', '6.2', '6.3', '6.4' ]
multisite: [ false, true ]
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
Expand Down Expand Up @@ -131,7 +155,34 @@ jobs:
# WordPress 5.0-5.2 are excluded from PHP 8+ testing because of the following fatal errors:
# - Use of __autoload().
# - array/string offset with curly braces.
upgrade-tests-wp-5x-php-8x-mysql:
upgrade-tests-wp-5x-php-8x-mysql-pt-1:
name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }}
uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest' ]
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
db-type: [ 'mysql' ]
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
wp: [ '5.3', '5.4', '5.5' ]
multisite: [ false, true ]
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
db-type: ${{ matrix.db-type }}
db-version: ${{ matrix.db-version }}
wp: ${{ matrix.wp }}
new-version: ${{ inputs.new-version && inputs.new-version || 'latest' }}
multisite: ${{ matrix.multisite }}

# Spawns upgrade testing from WordPress 5.x versions on PHP 8.x with MySQL.
#
# WordPress 5.0-5.2 are excluded from PHP 8+ testing because of the following fatal errors:
# - Use of __autoload().
# - array/string offset with curly braces.
upgrade-tests-wp-5x-php-8x-mysql-pt-2:
name: ${{ matrix.wp }} to ${{ inputs.new-version && inputs.new-version || 'latest' }}
uses: WordPress/wordpress-develop/.github/workflows/reusable-upgrade-testing.yml@trunk
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
Expand All @@ -142,7 +193,7 @@ jobs:
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
db-type: [ 'mysql' ]
db-version: [ '5.7', '8.0', '8.4', '9.1' ]
wp: [ '5.3', '5.4', '5.5', '5.6', '5.7', '5.8', '5.9' ]
wp: [ '5.6', '5.7', '5.8', '5.9' ]
multisite: [ false, true ]
with:
os: ${{ matrix.os }}
Expand Down Expand Up @@ -219,7 +270,7 @@ jobs:
permissions:
actions: read
contents: read
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 ]
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 ]
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
with:
calling_status: ${{ contains( needs.*.result, 'cancelled' ) && 'cancelled' || contains( needs.*.result, 'failure' ) && 'failure' || 'success' }}
Expand Down

0 comments on commit a2d4af1

Please sign in to comment.