[wp-trac] [WordPress Trac] #57189: The PHP tests initialize very slowly in wp-env
WordPress Trac
noreply at wordpress.org
Fri Jan 10 18:40:29 UTC 2025
#57189: The PHP tests initialize very slowly in wp-env
------------------------------+----------------------
Reporter: azaozz | Owner: desrosj
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+----------------------
Comment (by flixos90):
@desrosj The `npm run env:start` command just failed for me, indirectly
due to this change. I assume there is some instability going on with
packagist.org, as that's causing the `composer update` call to fail on my
machine.
Obviously that's out of our control, but I wonder whether we could wrap
the `composer update` call so that, if it fails, this is reported as a
warning? It was a bit confusing to see it happen as part of the
`env:start` command because it made me think something went wrong with
starting the container, but it's actually just this command, which isn't
truly needed to start the container.
I agree with the rationale to move it to the `env:start` command that was
discussed here, but maybe we should make it a bit more resilient as it's
sort of optional for the start of the Docker container itself.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57189#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list