fix #4119 PhpDocumentor のワークフローが実行されない問題を修正 - #4522
Merged
Merged
Conversation
PhpDocumentor のワークフローが 2025年7月以降、直近18回の実行すべてで
cancelled となり、クラスリファレンスが更新されていなかった。
## 原因
ジョブが要求するランナー ubuntu-20.04 が GitHub 側で廃止されており、
ジョブがキューに滞留したまま24時間後に自動キャンセルされていた。
job labels : ["ubuntu-20.04"]
created_at : 2026-08-27T10:36:18Z
completed_at : 2026-08-28T10:36:18Z (ちょうど24時間後)
conclusion : cancelled
## 対応
- runs-on を、test.yml で稼働実績のある ubuntu-22.04 に変更
- actions/checkout を v4 に更新(v3 は Node 20 廃止の対象)
- docker イメージのタグ置換が実ファイルと一致していなかったため修正
置換元が basercms:php8.1 のままで、docker-compose.yml.default の
現在の値 basercms:php8.5 に一致せず、無効な処理となっていた。
matrix の php-version を 8.5 以外に変更しても反映されない状態だったため、
バージョン部分をパターンで指定するようにした。
- workflow_dispatch を追加し、master への push を待たずに手動で
実行確認できるようにした
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
docker-compose のイメージタグ置換(sed)が実ファイルの baserproject/basercms:... にマッチせず、matrix 指定が反映されないためです。
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
PhpDocumentor の GitHub Actions ワークフローが GitHub 側の runner 廃止等の影響で実行されず、クラスリファレンス更新が止まっていた問題(#4119)を解消するためのワークフロー修正です。
Changes:
runs-onをubuntu-20.04からubuntu-22.04に更新し、ジョブがキュー滞留でキャンセルされる問題を回避actions/checkoutを v3 → v4 に更新workflow_dispatchを追加して手動実行を可能にし、docker-compose のイメージタグ置換処理を調整
File summaries
| File | Description |
|---|---|
| .github/workflows/php_documentor.yml | runner/checkout 更新、手動トリガー追加、docker-compose 用のタグ置換処理を更新 |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
PhpDocumentor のワークフローが実行されず、クラスリファレンスが更新されていない問題(#4119)を修正しました。
原因
ジョブが要求するランナー
ubuntu-20.04が GitHub 側で廃止されていたことが原因です。ジョブがキューに滞留したまま、24時間後に自動キャンセルされていました。実行履歴を確認すると、直近18回の実行すべてが
cancelled、かついずれも開始からちょうど24時間後に終了していました。Issue に書かれていた「おそらく GitHub 側の仕様変更が影響?」という推測どおりでした。
変更内容
1. ランナーを
ubuntu-22.04に変更(本修正)test.ymlで稼働実績のあるランナーに揃えました。2.
actions/checkoutを v4 に更新v3 は Node 20 廃止の対象で、
test.ymlの CI ログでも警告が出ています。3. docker イメージのタグ置換を修正
置換元が
basercms:php8.1のままで、docker-compose.yml.defaultの現在の値basercms:php8.5に一致せず、無効な処理になっていました。現状は matrix の
php-versionが8.5で、default 側の値と偶然一致しているため結果的に動きますが、matrix を8.4などに変更しても反映されない状態でした。バージョン部分をパターン指定に変更しています。4.
workflow_dispatchを追加このワークフローは
masterへの push でのみ動くため、PR の CI では検証できません。手動実行できるようにして、リリースを待たずに動作確認できるようにしました。検証
ローカルで確認できた範囲は以下のとおりです。
referenceとデプロイ手順の整合phpdoc.dist.xmlの<output>reference</output>とcp -pr ../referenceが一致bc-phpdocker-compose.yml.defaultのcontainer_nameと一致XDEBUG_MODEの置換対象docker-compose.yml.defaultに存在することを確認未検証の点
phpDocumentor.pharのダウンロードと実行については、作業環境のネットワークポリシーがphpdoc.orgへの接続を拒否するため、ローカルで確認できていません。ジョブはこれまでランナー待ちの段階で止まっており、ダウンロード以降のステップは一度も実行されていません。そのため、ランナー修正後に別の問題が出る可能性は残ります。
マージ後、追加した
workflow_dispatchから手動実行して確認していただくのが確実です。もし後続ステップで失敗した場合は、続けて対応します。影響範囲
ワークフロー定義のみの変更で、プログラムコードへの影響はありません。
🤖 Generated with Claude Code
Generated by Claude Code