Make WordPress Core

Changeset 62022


Ignore:
Timestamp:
03/13/2026 10:11:04 PM (2 weeks ago)
Author:
desrosj
Message:

Build/Test Tools: Fix installation tests for PHP <= 7.3.

In MySQL 8.0, the default authentication plugin changed from mysql_native_password to caching_sha2_password, which is not available in PHP 7.3 and earlier. The installation testing workflow currently accounts for this, but only for PHP 7.2 & 7.3.

It also does not account for a change in MySQL 8.4 which changed the related flag for controlling this from --default-authentication-plugin to --authentication-policy.

This adjusts the flags and surrounding conditions to ensure the correct ones are passed for the right combinations.

Props johnbillion.
See #64225, #64227.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/install-testing.yml

    r61875 r62022  
    8989          - db-version: '5.1'
    9090          - db-version: '5.5'
    91           # 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.
    92           - php: '7.2'
    93             db-version: '8.4'
    94           - php: '7.3'
    95             db-version: '8.4'
    9691          # Only test the latest innovation release.
    9792          - db-version: '9.0'
     
    119114          -e MYSQL_DATABASE="test_db"
    120115          --entrypoint sh ${{ matrix.db-type }}:${{ matrix.db-version }}
    121           -c "exec docker-entrypoint.sh mysqld${{ matrix.db-type == 'mysql' && contains( fromJSON('["7.2", "7.3"]'), matrix.php ) && ' --default-authentication-plugin=mysql_native_password' || '' }}"
     116          -c "exec docker-entrypoint.sh mysqld${{ matrix.db-type == 'mysql' && contains( fromJSON('["5.4", "5.5", "5.6", "7.0", "7.1", "7.2", "7.3"]'), matrix.php ) && ( matrix.db-version == '8.4' && ' --mysql-native-password=ON --authentication-policy=mysql_native_password' || ' --default-authentication-plugin=mysql_native_password' ) || '' }}"
    122117
    123118    steps:
Note: See TracChangeset for help on using the changeset viewer.