Make WordPress Core

Changeset 54072


Ignore:
Timestamp:
09/05/2022 06:55:08 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Do not allow tests to fail for select PHP 8.1 test runs.

This affects the following test groups:

  • Ajax tests
  • ms-files tests
  • External HTTP tests
  • Xdebug tests

The tests being run in these particular test groups are passing on PHP 8.1, however, the test runs are still allowed to “continue on error”. This creates the risk that new PHP 8.1 incompatibilities will be introduced without anyone noticing.

By no longer allowing these test runs to “continue on error”, that risk is removed.

Follow-up to [51588], [51604], [53922].

Props jrf.
See #55656, #55652.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/phpunit-tests.yml

    r54039 r54072  
    200200      - name: Run AJAX tests
    201201        if: ${{ ! matrix.split_slow }}
    202         continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }}
     202        continue-on-error: ${{ matrix.php == '8.2' }}
    203203        run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax
    204204
    205205      - name: Run ms-files tests as a multisite install
    206206        if: ${{ matrix.multisite && ! matrix.split_slow }}
    207         continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }}
     207        continue-on-error: ${{ matrix.php == '8.2' }}
    208208        run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c tests/phpunit/multisite.xml --group ms-files
    209209
    210210      - name: Run external HTTP tests
    211211        if: ${{ ! matrix.multisite && ! matrix.split_slow }}
    212         continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }}
     212        continue-on-error: ${{ matrix.php == '8.2' }}
    213213        run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group external-http
    214214
     
    216216      - name: Run (Xdebug) tests
    217217        if: ${{ ! matrix.split_slow && matrix.php != '8.2' }}
    218         continue-on-error: ${{ matrix.php == '8.1' }}
    219218        run: LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__
    220219
Note: See TracChangeset for help on using the changeset viewer.