[wp-trac] [WordPress Trac] #57189: The PHP tests initialize very slowly in wp-env
WordPress Trac
noreply at wordpress.org
Mon Oct 7 22:47:50 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 | Focuses:
------------------------------+---------------------
Comment (by peterwilsoncc):
Replying to [comment:14 desrosj]:
> There is one unintended consequence of moving `composer update` to
`env:start`: the command runs even when you don't require the Composer
packages.
>
> One scenario this comes up is in the E2E test workflow. But even then it
only seems to add 5-10 seconds to the corresponding step (assuming network
speeds are identical pulling containers, which is unlikely). It seems like
this could be an OK trade off, though.
As it's a dev environment, I think it's fine to run them on `env:start`.
That will ensure that `phpcs` is available for developers.
I know having xDebug enabled can slow the php tests down a lot, much more
than a few seconds, so it may be worth looking at that too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57189#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list