[wp-trac] [WordPress Trac] #57189: The PHP tests initialize very slowly in wp-env

WordPress Trac noreply at wordpress.org
Mon Sep 25 20:23:21 UTC 2023


#57189: The PHP tests initialize very slowly in wp-env
------------------------------+---------------------
 Reporter:  azaozz            |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  6.4
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------
Changes (by desrosj):

 * keywords:  needs-patch => has-patch


Comment:

 I think this is still important to have because of the edge cases detailed
 in #53945.

 What about moving this to the `env:start` command? That would handle the
 scenarios that ticket aimed to solve and would not run `composer update`
 every time tests run. Arguably that's the more appropriate time to run
 that command anyway since `npm run env:restart` is required if the desired
 PHP version is changed. It also seems to run much faster.

 If the consensus is to remove it I'm not opposed. But we'll need to
 provide better documentation around when to run the command and what the
 indicators are when it needs to be run.

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


More information about the wp-trac mailing list