[wp-trac] [WordPress Trac] #52241: Infinite loop in clean_dirsize_cache()

WordPress Trac noreply at wordpress.org
Sun Sep 26 03:09:34 UTC 2021


#52241: Infinite loop in clean_dirsize_cache()
-------------------------------------------------+-------------------------
 Reporter:  raubvogel                            |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.9
Component:  Filesystem API                       |     Version:  5.6
 Severity:  major                                |  Resolution:
 Keywords:  needs-unit-tests has-patch needs-    |     Focuses:  multisite
  testing early                                  |
-------------------------------------------------+-------------------------

Comment (by jrf):

 @SergeyBiryukov was kind enough to point me to this ticket.

 FYI: I ran into this exact same issue the other day trying to debug a PHP
 8.1 deprecation, where as soon as I put the fix in place and run the tests
 in isolation, the tests go into an infinite loop.

 Basically the existing `Tests_Multisite_Dirsize_Cache` tests when run
 stand-alone on a Windows system already cover the problem when run with
 the multisite config, i.e. `-c tests/phpunit/multisite.xml`.

 I haven't investigated yet why the issue doesn't occur in a full test run,
 but there may be a hidden dependency on some other test which prevents the
 infinite loop (which is even worse).

 We should consider adding test runs against Windows and Mac to the CI
 builds. I suspect that will be a lot easier if we remove the Docker lock-
 in from the CI, but I suppose that's for another issue.

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


More information about the wp-trac mailing list