push-md: e2e suite only exercises the unscoped source, not the built (scoped) zip
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- bash, docker, git, github-actions, php
- Área
- build-system, ci-cd, testing
Línea de trabajo
Empieza con bin/build-plugins.sh, bin/run-push-md-playground.sh, bin/inspect-push-md-zip.sh y el workflow push-md-e2e.yml existente para seguir cómo se construye y ejecuta el flujo actual con el código fuente montado. Añade una ruta nueva de Playground que instale dist/plugins/push-md.zip y, después, ejecuta el flujo existente de clonado, edición de Markdown, commit y push. Se considera terminado cuando el artefacto delimitado se carga funcionalmente, el push se completa sin un error fatal ni un error de bad line length character y la ruta del artefacto se ejecuta en CI.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
The push-md e2e suite never functionally imports the built (scoped) plugin zip — it mounts the unscoped source tree directly. This is the testing gap that let the scoping regression in #68 (fixed by #69) ship in v0.6.6 / v0.6.7 uncaught: clone worked, but the first Markdown import/push fataled on the scoped build, and no automated test loaded the scoped artifact.
Details
bin/run-push-md-playground.sh boots Playground against the live source, not the release artifact:
--mount="$ROOT_DIR:/workspace"
--mount="$ROOT_DIR/vendor:/wordpress/wp-content/vendor"
--mount="$ROOT_DIR/components:/wordpress/wp-content/components"
--mount="$ROOT_DIR/plugins/push-md:/wordpress/wp-content/plugins/push-md"
So the e2e flow runs with:
- the unscoped namespaces (
Nette\…,League\…, …), where inline qualified references resolve fine, and - the dev bootstrap / composer autoloader, not the generated/scoped
php-toolkit/vendor/composer/*classmap.
bin/build-plugins.sh produces the scoped dist/plugins/push-md.zip, but it's only checked structurally by bin/inspect-push-md-zip.sh (file presence + content greps). Nothing ever loads the scoped classes through their autoloader and pushes Markdown, so a scoping bug that fatals at class-load time passes every gate.
Proposed follow-up
Add an e2e path that exercises the built zip:
bash bin/build-plugins.shto producedist/plugins/push-md.zip.- Install that zip on a fresh Playground site (a blueprint step that installs the artifact, rather than mounting source).
- Run the existing import/push flow:
git clone …/wp-json/git/v1/md.git, edit apost/*.md, commit,git push. - Assert success (no
bad line length character: <br, no PHP fatal in the receive-pack response).
Wire this into CI (e.g. push-md-e2e.yml) so every change that touches the scoper, prune list, or bundle layout is validated against the shipped artifact.
Notes
- #69 already adds a cheap static canary in
inspect-push-md-zip.sh(rejects in-class traituseof a scoped name missing a leading backslash). This issue is about the functional gate that a static grep can't cover. - Keep the unscoped-source e2e too (fast inner loop); the scoped-zip run is the release-artifact gate.
Follow-up to #69 / #68.
- Lenguaje dominante
- PHP
- Estrellas
- 22
- Forks
- 5
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
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 Automattic/php-toolkit
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Automattic/php-toolkit#89 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Automattic/php-toolkit#102 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
Automattic/php-toolkit#95 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Automattic/php-toolkit#91 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Automattic/php-toolkit#88 ·
Todos los issues de Automattic/php-toolkit
Issues similares
-
Solved site promotion gate fails on runner PHP patch drift (expects 8.2.33, runner installs 8.2.34) Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Automattic/blocks-engine#2161 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Automattic/static-site-importer#1824 ·
-
[Chore] Keep one viget-block-generator skill and replicate it, instead of four tracked copies Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Cannot reset column width Abierto0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
0. Needs triage 35-feedback bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100