Repository navigation
ci: Windows の結合テストを com0com と serdevmock で流す - #32
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
診断用のワークフローとスクリプトは役目を終えたため消す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows のランナーはステップ内で起動したプロセスをステップの終わりに止めるため。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
文書を実際の構成(1 ステップでの起動・試験・停止、発行元の登録、FFI の確認)に合わせる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Lint summary
検査対象: 指摘はありません. Actions run: https://github.com/tomio2480/php-serial/actions/runs/43890827617/attempts/1 |
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
push 前にセルフレビューと
/security-reviewを実施しました。/security-reviewでは、信頼度 8 以上の指摘はありませんでした。概要
Windows の結合テストを GitHub Actions で流すワークフロー
integration-windows.ymlを追加します。com0com で COM10 と COM11 の対を作り、COM11 でエコーモードの serdevmock を動かします。
COM10 で
integrationグループ(3 件)を流したあと serdevmock を止め、windows-idle-portグループ(2 件)を流します。変更内容
.github/workflows/integration-windows.ymlを追加しました。tests/Integration/**、tests/fixtures/{serdevmock,windows}/**、src/PhpSerial/Platform/Windows*.phpです。php --ri ffiで有効化を確かめます。FFI が無効だと fopen 版に切り替わり、FFI 実装を試験しないまま通るためです。contents: readのみです。Actions は full SHA でピンしています。tests/Integration/start-serdevmock.ps1とstop-serdevmock.ps1を追加しました。手元でも使えます。docs/INTEGRATION_TESTING.mdの「CI での扱い」と、README の結合テストの記述を更新しました。com0com の入れ方
com0com-3.0.0.0-i386-and-x64-signed.zipを取得します。SHA256 が6e5d4359…と一致しなければ止めます。/Sで実行し、setupc.exe --silent install PortName=COM10 PortName=COM11で対を作ります。ホストランナーは Windows Server 2025 で、Secure Boot が無効でした。このため 2016 年の証明書で署名されたドライバーも読み込めます。
所要時間の実測
integration3 件windows-idle-port2 件1 分ほどで終わるため、Linux と同じく push と PR ごとに流す選択肢もあります。今回は指示どおり macOS 版に合わせました。
途中で分かったこと
PYTHONIOENCODING=utf-8を指定しています。DWORD型のビットフィールドがオフセット 0(DCBlength)に重なって読み書きされました。今のWindowsFFIはビットフィールドに触れないため影響しません。ただし今後fBinaryやフロー制御を設定するときは注意が要ります。履歴について
ブランチには試行用と診断用のコミット(「TEMP」「試行、後で削除」)が残っています。最終のツリーには診断用のファイルや一時トリガーは残っていません。squash マージを想定しています。
確認
integration3 件、windows-idle-port2 件。skip なし)。src/は変更していません。🤖 Generated with Claude Code