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

WordPress Trac noreply at wordpress.org
Mon Oct 14 12:18:05 UTC 2024


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

Comment (by desrosj):

 There was some discussion on the PR around potentially moving the command
 to the `env:install` task instead.

 @hellofromTonya posed it as a potential optimization to the suggested
 approach and not an objection to using `env:start`, so I think it's
 reasonable to move forward with the PR as is. Here were my thoughts around
 using `env:install` for easy reference since the comment did not make it's
 way over to Trac.

 > Once someone runs `env:install`, they won't be re-running that command
 unless they are recreating their environment from scratch. When this is on
 `env:start` or `test:php`, composer update is run ensuring the latest
 versions are always installed before running tests.

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


More information about the wp-trac mailing list