[wp-trac] [WordPress Trac] #41641: Unit testing reaching the memory limit
WordPress Trac
noreply at wordpress.org
Wed Feb 21 14:49:28 UTC 2018
#41641: Unit testing reaching the memory limit
------------------------------+------------------
Reporter: Hristo Sg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: commit | Focuses:
------------------------------+------------------
Changes (by danielbachhuber):
* keywords: => commit
* milestone: Future Release => 5.0
Comment:
An anonymous tipster that doesn't want to take credit reported:
> The excessive memory consumption looks like it's mostly down to dangling
references to `Spy_REST_Server` due to using `$this->server`, preventing
garbage collection. Removing this var and replacing with a direct call to
`rest_get_server()` gets running `phpunit --group restapi` locally down
from 466.00MB to 102.00MB, and running the whole single site test suite
from 502.20MB to 134.20MB
41641.1.diff implements such. I've verified the results locally.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41641#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list