Lower the cost of each launched wp process
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Refactoring
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- php
- Bereich
- performance, testing
Rechercherichtung
Consult #384 for baseline CI timings and #257 for Xdebug conditions. Find where the framework spawns wp processes (likely PHP test harness) and add logic to disable Xdebug unless coverage/debug is set, plus an opcode cache for WP-CLI and package code while excluding per-scenario WordPress copies. Done means a draft PR shows reduced CI run times recorded against the baseline.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Almost all of the suite's run time is spent in the wp processes the scenarios launch; the Behat process itself accounts for about 3% of a run. Each wp call costs about 0.3 seconds, and the bundled commands make around 9,300 of them per suite run, plus the ones the framework makes itself.
Two things make each process more expensive than it needs to be:
- Xdebug. When Xdebug is loaded locally, every child process pays for it. Turning it off for the launched processes took a local
cache-commandrun from 126 to 98 seconds. It should stay off unless coverage is collected or step debugging is requested (see #257). - No opcode cache. Every process compiles WP-CLI and the package code from scratch, although that code does not change during a run. Caching only that code took a typical call from about 300 to 200 ms locally. The per-scenario WordPress copies must stay uncached: they are rewritten during scenarios, and a stale compiled file would change what a test exercises.
Measuring: take the baseline from #384, then open a draft PR, run the same CI jobs against it and record both results here before we decide.
- Vorherrschende Sprache
- PHP
- Sterne
- 42
- Forks
- 29
- Ø Merge
- 21 Std. 6 Min.
- Gemergte PRs (30 T.)
- 24
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus wp-cli/wp-cli-tests
-
scope:testing status:unconfirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
wp-cli/wp-cli-tests#389 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
os:windows scope:testing status:unconfirmed
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
wp-cli/wp-cli-tests#427 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug scope:testing
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 22/100
wp-cli/wp-cli-tests#426 ·
Maintainer antworten meist innerhalb von 1 Tag
-
scope:artifacts scope:distribution scope:testing
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
wp-cli/wp-cli-tests#425 ·
Maintainer antworten meist innerhalb von 1 Tag
-
scope:testing
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
wp-cli/wp-cli-tests#395 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in wp-cli/wp-cli-tests
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 3 Tagen
-
sync-en
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
[Sync EN] Formatting improvements to "Large Objects (LOBs)" docs (#6056)Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offensync-en
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Перевод устарел
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
Maintainer antworten meist innerhalb von 1 Tag
-
repo:cms
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
craftcms/cms#20613 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag