[wp-trac] [WordPress Trac] #50902: Build/CI: fix running of the unit tests on PHP 8/nightly

WordPress Trac noreply at wordpress.org
Wed Aug 12 15:56:46 UTC 2020


#50902: Build/CI: fix running of the unit tests on PHP 8/nightly
-----------------------------------+-------------------------------
 Reporter:  jrf                    |       Owner:  SergeyBiryukov
     Type:  task (blessed)         |      Status:  reviewing
 Priority:  normal                 |   Milestone:  5.6
Component:  Build/Test Tools       |     Version:
 Severity:  major                  |  Resolution:
 Keywords:  has-patch php8 commit  |     Focuses:  coding-standards
-----------------------------------+-------------------------------

Comment (by jrf):

 @jorbin Thanks for looking this over.

 Regarding the chaining - I was actually thinking of doing that just in the
 `script` part of the `.travis.yml`, not in the `matrix`.

 Maybe a combination would actually work best ?
 What about having one extra build per PHP version & splitting the test
 runs across the two builds, for instance divided between single-site test
 runs and multi-site test runs ?

 I agree moving the implementation of that to a separate ticket would be
 best.

 As for PHP 8/nightly: I've had a look at some of the current test failures
 and there are some which we won't be able to solve in WP as they are
 related to code in PHPUnit dependencies, most notably the mocking
 implementation, so unless we have each test run in a separate condition
 within the Travis `script` part (possibly in the matrix), only the first
 test run will ever be executed (and even when the WP native issues have
 been solved, it will fail on things outside the scope of WP).

 Fixing that part ''does'' belong with this ticket.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50902#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list