Run Behat in throwaway containers when Docker is available
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Read #390 to see the worker design and #384 for the baseline timing. The repo likely needs a Dockerfile for a tuned PHP image without Xdebug, and changes to the test runner to launch throwaway containers per worker. Done when a draft PR runs CI jobs with containerized Behat and shows snapshot restore working. Fallback to regular runner must remain when Docker is absent.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When Docker is available, a run could happen in throwaway containers, one per worker from #390. The container is not faster by itself: PHP ran at the same speed inside and outside of it in local tests. What it allows without root on the host is what makes the difference:
- the temporary directories and the database in memory, with no disk syncs;
- copy-on-write snapshots of the cached WordPress install instead of a full copy for every scenario (about 6 ms instead of about 90 ms to set up and tear down);
- a separate network per worker, so scenarios using fixed ports can run in parallel;
- a known toolchain, so every declared test requirement is present.
Starting a container takes about 0.3 to 0.5 seconds and every docker exec about 50 to 75 ms. Running the whole Behat process of a worker inside one container avoids that cost per command. The container's PHP version has to match the one the vendor folder was installed for.
Steps:
- Provide an image tuned for the test runs, without Xdebug unless coverage is requested.
- Run each worker of #390 in its own throwaway container, falling back to the regular runner when Docker is not available.
- Restore the cached WordPress install as a snapshot instead of a copy.
To reproduce a failure, it is enough to rerun that single scenario in a container that is kept.
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
- 18h 52m
- PR unite (30g)
- 27
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
-
needs-triage Platform(Default)
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
ai-driven-fuzzing bug claude Major
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Issue: ready for confirmation Reported on 2.4.9 Triage: Dev.Experience
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
magento/magento2#41773 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni
-
[BUG] Add bounds validation for numberOfContestants in TeamsGroup::apiCreate()Forse già presa @RAJJADHAV10 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
omegaup/omegaup#10512 · 1 commento ·
I maintainer di solito rispondono entro 5 giorni
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sorocharge/sorocharge-php#14 ·