[wp-trac] [WordPress Trac] #57189: The PHP tests initialize very slowly in wp-env
WordPress Trac
noreply at wordpress.org
Tue Oct 8 00:12:46 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:
------------------------------+---------------------
Changes (by desrosj):
* keywords: has-patch => has-patch commit
Comment:
> 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.
xDebug ''should'' already be
[https://core.trac.wordpress.org/browser/trunk/.env.example?rev=59194#L20
disabled by default], and it should
[https://core.trac.wordpress.org/browser/trunk/.github/workflows/reusable-
phpunit-tests-v3.yml?rev=59194#L187 only be enabled when running] the
`xdebug` group. The only other time I'm aware of it being enabled is when
generating the code coverage report
I'll leave this a few more days for any further feedback, but will circle
back to commit [attachment:"57189.diff"] later this week if there's no
objection.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57189#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list