[wp-trac] [WordPress Trac] #56615: Running `build` scripts on Windows machines produces different results

WordPress Trac noreply at wordpress.org
Sun Sep 25 01:16:59 UTC 2022


#56615: Running `build` scripts on Windows machines produces different results
-------------------------------------+-----------------------
 Reporter:  desrosj                  |       Owner:  gziolo
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  6.1
Component:  Build/Test Tools         |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------
Changes (by jrf):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Eh... I'm not sure what you all were trying to do here, but commit [54289]
 breaks [https://make.wordpress.org/core/handbook/testing/automated-
 testing/phpunit/#test-running-workflow-options three out of the four]
 previously supported test workflows.

 I won't bore you with the full error log, but the short version comes down
 to this:

 {{{
 Warning: include(path/to/WP/src/wp-includes/assets/script-loader-react-
 refresh-entry.php): Failed to open stream: No such file or directory in
 path/to/WP/src/wp-includes/script-loader.php on line 241

 Warning: include(): Failed opening 'path/to/WP/src/wp-includes/assets
 /script-loader-react-refresh-entry.php' for inclusion
 (include_path='.;C:\php\pear') in path/to/WP/src/wp-includes/script-
 loader.php
  on line 241

 Warning: include(path/to/WP/src/wp-includes/assets/script-loader-
 packages.php): Failed to open stream: No such file or directory in
 path/to/WP/src/wp-includes/script-loader.php on line 276

 Warning: include(): Failed opening 'path/to/WP/src/wp-includes/assets
 /script-loader-packages.php' for inclusion (include_path='.;C:\php\pear')
 in path/to/WP/src/wp-includes/script-loader.php on line 27
 6

 Warning: foreach() argument must be of type array|object, bool given in
 path/to/WP/src/wp-includes/script-loader.php on line 278
 }}}


 This also impacts integration tests for plugins and themes, so as far as
 I'm concerned, this commit needs to be reverted until a more stable
 solution has been created.

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


More information about the wp-trac mailing list