[wp-trac] [WordPress Trac] #48145: Random PHP test failures

WordPress Trac noreply at wordpress.org
Mon Dec 9 10:39:51 UTC 2019


#48145: Random PHP test failures
------------------------------+---------------------
 Reporter:  SergeyBiryukov    |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  low               |   Milestone:  5.4
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"46830" 46830]:
 {{{
 #!CommitTicketReference repository="" revision="46830"
 Tests: Pad incrementors used in factories with leading zeros to make sure
 MySQL sorting works as expected.

 Previously, tests could create sequential objects with names like `Term
 99`, `Term 100`, which by default would be returned in reverse order when
 sorted by name alphabetically, causing seemingly random test failures that
 are extremely hard to debug.

 See #48145.
 }}}

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


More information about the wp-trac mailing list