Reset and restore the test database without starting client processes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Inspect the framework's database setup code that invokes the mysql client per scenario, likely in the Behat test bootstrap. Read #384 to capture baseline CI timings before changing anything. Done means a single persistent connection handles drop/create/restore per suite and the drafted PR shows reduced times recorded in this issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The framework runs its own database bookkeeping through a new mysql client process each time. Per scenario that means a connection test and a DROP DATABASE before it starts. Scenarios that install WordPress add a CREATE DATABASE and an import of the cached install dump. Each client process costs about 25 ms before it does any work, and the import costs about 260 ms.
Steps:
- Test the database connection once per suite instead of once per scenario.
- Run the drop and create statements over a single persistent connection from the Behat process.
- Restore the cached install over that same connection.
Locally this brought a trivial query from 28 ms to 0.2 ms, and the import from 258 to 191 ms on a regular database (79 to 15 ms on an in-memory one). The database ends up in the same state as before.
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.
- Lingua principale
- PHP
- Stelle
- 42
- Fork
- 29
- Merge medio
- 21h 6m
- PR unite (30g)
- 24
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wp-cli/wp-cli-tests
-
scope:testing status:unconfirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
wp-cli/wp-cli-tests#389 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
os:windows scope:testing status:unconfirmed
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
wp-cli/wp-cli-tests#427 ·
I maintainer di solito rispondono entro 1 giorno
-
bug scope:testing
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
wp-cli/wp-cli-tests#426 ·
I maintainer di solito rispondono entro 1 giorno
-
scope:artifacts scope:distribution scope:testing
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
wp-cli/wp-cli-tests#425 ·
I maintainer di solito rispondono entro 1 giorno
-
scope:testing
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
wp-cli/wp-cli-tests#395 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di wp-cli/wp-cli-tests
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 3 giorni
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
[Sync EN] Formatting improvements to "Large Objects (LOBs)" docs (#6056)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertasync-en
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Перевод устарел
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
repo:cms
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
craftcms/cms#20613 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno