Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Make transform-duration contract failures diagnostic

オープン 初心者向け
#775 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
php
領域
testing-qa

調査の方向性

php-transformer/tests/contract/run.php:3649 から開始し、PHP 8.1.34 で正規のコントラクト失敗を再現します。get_debug_type() と var_export() を使用して、観測されたメトリックの診断出力を追加し、その後、対象のコントラクトテストを実行して、動作変更が引き続き妥当かどうかを記録します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
PHP
スター
21
フォーク
2
平均マージ
8時間 19分
マージ済み PR(30日)
679

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Automattic/blocks-engine のほかの issue

Automattic/blocks-engine の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。