[wp-trac] [WordPress Trac] #58825: Run automated performance workflows using production environment vars
WordPress Trac
noreply at wordpress.org
Mon Jul 17 19:45:55 UTC 2023
#58825: Run automated performance workflows using production environment vars
------------------------------+-------------------------
Reporter: joemcgill | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.3
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
Focuses: performance |
------------------------------+-------------------------
The automated performance tests that run as part of
[https://github.com/WordPress/wordpress-
develop/blob/trunk/.github/workflows/performance.yml this workflow] use
the Docker environment bundled in the Core repo to set up an environment
for testing. However, this environment gets configured using the included
`.env` configuration file, which is meant for setting up an environment
for WordPress core development, not production, including setting
environment variables like `WP_DEBUG` and `SCRIPT_DEBUG` to true, and
`WP_DEVELOPMENT_MODE` to `core`, all of which can cause side effects that
skew performance results.
To get a better picture of how changes are effecting WP performance in
standard production configurations, the Docker environment should be
configured with the following environment variables (at minimum):
* `WP_DEBUG` === `false`
* `SCRIPT_DEBUG` === `false`
* `WP_DEVELOPMENT_MODE` === `''`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58825>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list