Run Behat in throwaway containers when Docker is available
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- PHP
- Estrellas
- 42
- Forks
- 28
- Merge medio
- 17 h 14 min
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wp-cli/wp-cli-tests
-
scope:testing status:unconfirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
wp-cli/wp-cli-tests#389 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Epic: Explicit test requirementsAbiertoscope:testing
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
wp-cli/wp-cli-tests#395 ·
Los mantenedores suelen responder en 1 día
-
Epic: Faster Behat test runsAbiertoscope:testing
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
wp-cli/wp-cli-tests#394 ·
Los mantenedores suelen responder en 1 día
-
bug scope:testing
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
wp-cli/wp-cli-tests#393 ·
Los mantenedores suelen responder en 1 día
-
scope:testing
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
wp-cli/wp-cli-tests#392 ·
Los mantenedores suelen responder en 1 día
Todos los issues de wp-cli/wp-cli-tests
Issues similares
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
grokability/snipe-it#19996 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Add a dark themeAbiertogood first issue laravel-appointment-reminders
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Text to Speech fails on Windows: the temp file path loses its backslashes when stored in post metaPosiblemente ocupada @azizulhasan la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día