[wp-trac] [WordPress Trac] #56817: Investigate new test failure in PHP 8.2

WordPress Trac noreply at wordpress.org
Thu Oct 13 15:23:30 UTC 2022


#56817: Investigate new test failure in PHP 8.2
--------------------------+-------------------------
 Reporter:  desrosj       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.1
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-------------------------
 There's a new unit test failure being reported on PHP 8.2 all of a sudden.


 {{{
 There was 1 failure:

 1) Tests_Functions::test_wp_check_filetype_and_ext_with_filtered_woff
 Failed asserting that two arrays are identical.
 --- Expected
 +++ Actual
 @@ @@
  Array &0 (
 -    'ext' => 'woff'
 -    'type' => 'application/font-woff'
 +    'ext' => false
 +    'type' => false
      'proper_filename' => false
  )

 /var/www/tests/phpunit/tests/functions.php:1428
 /var/www/vendor/bin/phpunit:123
 }}}

 After some investigation, this seems to be caused by the PHP 8.2 Docker
 container used during testing.

 The containers are usually rebuilt weekly on Sunday, ensuring the latest
 point releases (or beta/RC versions in this case) are used. Unfortunately,
 GitHub disables workflows that run on `schedule` when a repository does
 not have activity for a period of time, so this had not run since August
 27th.

 After re-enabling the workflow, the containers were rebuilt and pushed.
 This updated the version of PHP 8.2 from [https://github.com/WordPress
 /wordpress-develop/actions/runs/3235163484/jobs/5299215778#step:14:22 beta
 3] to [https://github.com/WordPress/wordpress-
 develop/actions/runs/3243209049/jobs/5317894067#step:14:31 RC3].

 The timing also lines up. The [https://github.com/WordPress/wordpress-
 develop/actions/runs/3235865669 first failure] occurred approximately 1.5
 hours after the containers were updated.

 Something changed between `8.2.0beta3` and `8.2.0RC3` that's causing this
 failure.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56817>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list