[wp-trac] [WordPress Trac] #55919: Composer: Disable process timeout for PHPUnit tests

WordPress Trac noreply at wordpress.org
Sat Jun 4 19:41:57 UTC 2022


#55919: Composer: Disable process timeout for PHPUnit tests
------------------------------+--------------------
 Reporter:  SergeyBiryukov    |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  6.1
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+--------------------
 When running `npm run grunt phpunit:multisite` locally, I get an error
 around 80%:
 {{{
 The following exception is caused by a process timeout
 Check https://getcomposer.org/doc/06-config.md#process-timeout for details

 In Process.php line 1204:

   The process "'/usr/bin/php7.4' -d allow_url_fopen='1' -d
 disable_functions='' -d memory_limit='-1' ./vendor/phpunit
   /phpunit/phpunit '--verbose' '-c' 'tests/phpunit/multisite.xml'"
 exceeded the timeout of 300 seconds.


 test [--dev] [--no-dev] [--] [<args>...]

 Warning:  Use --force to continue.

 Aborted due to warnings.
 npm ERR! code ELIFECYCLE
 npm ERR! errno 3
 npm ERR! WordPress at 6.1.0 grunt: `grunt "phpunit:multisite"`
 npm ERR! Exit status 3
 npm ERR!
 npm ERR! Failed at the WordPress at 6.1.0 grunt script.
 npm ERR! This is probably not a problem with npm. There is likely
 additional logging output above.
 }}}

 This appears to be caused by Composer's default timeout of 300 seconds.
 [https://getcomposer.org/doc/06-config.md#process-timeout Disabling the
 timeout] as suggested in the documentation resolves the issue for me.

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


More information about the wp-trac mailing list