Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Make transform-duration contract failures diagnostic

Abierto Apto para principiantes
#775 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Tranquilo
Stack tecnológico
php
Área
testing-qa

Línea de trabajo

Empieza en php-transformer/tests/contract/run.php:3649 y reproduce el fallo canónico del contrato en PHP 8.1.34. Añade salida de diagnóstico para la métrica observada usando get_debug_type() y var_export(), después ejecuta la prueba de contrato específica y registra si el cambio de comportamiento sigue estando justificado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Context

PR #774 has one failed job: Actions run 30728968900, Composer validate and test job 91445697666. The same run's unrelated Generic visual parity tools and WordPress site plan integration gates passed.

Observed failure

The failed job installed PHP 8.1.34 and reported only:

FAIL: HTML metrics expose transform duration
Script php tests/contract/run.php handling the test:canonical event returned with error code 1

The assertion is php-transformer/tests/contract/run.php:3649:

$assert(is_float($result['metrics']['transform_duration_ms'] ?? null), 'HTML metrics expose transform duration');

The producer is php-transformer/src/HtmlToBlocks/HtmlTransformer.php:835. Both the assertion and producer lines are unchanged from origin/trunk (the PR changes exist elsewhere in those files).

At the exact PR head e39372f7160f6c519d2ebe9891fca1ec4d063993, the local value is 3.821458 and its type is float; local composer test passes. The simple-html fixture used by this assertion does not exercise the PR's button path.

Requested diagnostic work

Before changing behavior, make this canonical-contract failure print the observed metric value and type, including get_debug_type() and var_export() output, so CI failures are actionable. Reproduce under the CI PHP version (8.1.34) and capture the diagnostic result before deciding whether any behavior change is warranted.

AI assistance disclosure

gpt-5.6-sol using OpenCode prepared this diagnostic report and coordinated the targeted CI rerun. Chris Huber remains responsible for every line and decision.

Lenguaje dominante
PHP
Estrellas
22
Forks
3
Merge medio
6 h 51 min
PR fusionados (30 d)
759

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Automattic/blocks-engine

Todos los issues de Automattic/blocks-engine

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.