Preserve PHPUnit bootstrap integration process failures

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

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

評価

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

調査の方向性

tests/playground-phpunit-bootstrap-failure.integration.test.ts から始め、失敗した recipe-run プロセスを処理する catch パスを調べます。単独の統合テストと完全な smoke 集約を実行します。構造化された失敗 JSON が引き続き利用可能であり、空または存在しない stdout の場合には元のプロセスエラーとその診断情報が保持されれば完了です。

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

説明

Problem

When tests/playground-phpunit-bootstrap-failure.integration.test.ts receives a failed recipe-run process with empty stdout, its catch path calls JSON.parse(""). That replaces the original CLI process failure with SyntaxError: Unexpected end of JSON input, hiding stderr, exit status, timeout, and command context needed to diagnose the runtime failure.

This occurred in the full smoke aggregate while verifying #2464 and #2466. The test passes standalone, so preserving the original failure is required to diagnose any recurrence under aggregate load.

Desired outcome

Parse recipe-run output only when non-empty JSON exists. Return structured failed recipe output when available; otherwise rethrow the original process error unchanged.

Acceptance criteria

  • Empty or absent stdout does not enter JSON.parse.
  • Structured recipe failure JSON remains the primary assertion input.
  • Unstructured process failures retain their original diagnostics.
  • The standalone integration and full smoke aggregate pass.

AI assistance

GPT-5.6 Sol via OpenCode identified the masking parser after the aggregate failure and drafted this diagnostic repair under Chris Huber's direction.

主要言語
TypeScript
スター
17
フォーク
4
平均マージ
53分
マージ済み PR(30日)
114

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

Automattic/wp-codebox のほかの issue

Automattic/wp-codebox の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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