Allow commit message and revision to be passed through an environment variable
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza con la búsqueda existente de .git y .svn del reportero de pruebas y, después, inspecciona el workflow de GitHub Actions donde github.event.head_commit.message está disponible. Se considera terminado cuando el reportero puede usar los valores de mensaje de commit y revisión proporcionados por el entorno, manteniendo la búsqueda de directorios como fallback.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
WordPress Core currently runs PHPUnit tests in two steps.
The first step checks out the WordPress repo, installs NPM, builds WP for use, and then zips everything to upload as an artifact on the workflow run. After that, individual jobs are created for various PHP/Memcached combinations to run the PHPUnit tests by downloading the previously built artifact. This prevents every job from needing to perform these steps.
However, the .git folder is not packaged and included in the artifact to save space (and it's no longer needed anyway).
When the test reporter submits results, it scans for .git and .svn directories to grab the commit message and revision number to associate the results with. In order for this to work successfully, the Git repo needs to be reconnected to the codebase (see Core revision 49786).
The GitHub Action runner provides this information through the github workflow context. In the case of a push trigger event, the context would be github.event.head_commit.message (see https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads#push).
If the runner first checked for environment variables and fell back to searching for those directories as a second option, that information could be passed to the reporter without having to reestablish the directory as a Git repository.
- Lenguaje dominante
- PHP
- Estrellas
- 77
- Forks
- 79
- Merge medio
- 4 d 19 h
- PR fusionados (30 d)
- 3
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 WordPress/phpunit-test-runner
-
The PHP version check in prepare.php still allows PHP 7.2 and 7.3Posiblemente ocupada @ekamran la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
WordPress/phpunit-test-runner#359 ·
Los mantenedores suelen responder en 2 días
-
make testrunner.sh in host-tools directoryPosiblemente ocupada @iarif4u la tomó hace 17 días. AbiertoContributorDay tooling WCUS26
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
WordPress/phpunit-test-runner#260 · 4 comentarios ·
Los mantenedores suelen responder en 2 días
-
create host-tools directory in root folderPosiblemente ocupada @iarif4u la tomó hace 17 días. AbiertoContributorDay tooling WCUS26
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
WordPress/phpunit-test-runner#259 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
A database password with a quote or a backslash breaks wp-tests-config.phpPosiblemente ocupada @ekamran la tomó hace 7 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
WordPress/phpunit-test-runner#354 ·
Los mantenedores suelen responder en 2 días
-
Error: Error uploading results: Invalid parameter(s): message (HTTP status 400)`Posiblemente ocupada @ekamran la tomó hace 19 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
WordPress/phpunit-test-runner#335 · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de WordPress/phpunit-test-runner
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Automattic/blocks-engine#3090 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
macOS
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
beyondcode/herd-community#1771 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
-
module: user interface priority: high severity: minor type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día