[CI] MakeMaker dependency inspection exceeds Unix timeout

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

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

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

評価

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

調査の方向性

src/main/perl/lib/CPAN/FindDependencies/MakeMaker.pmから始めて、$process_timeoutがどのように選択され、PerlOnJava::Process::run_processに渡されるかを調べてください。unit/zz_perlonjava_process.t、特にテスト11を読み、UbuntuとWindowsでMakeMakerの抽出テストを実行してください。負荷の高いLinux CIでも通常の起動を可能にする一方で、本当にハングした子プロセスは引き続きタイムアウトする、上限のあるタイムアウトが実現したら完了です。

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

説明

area:cpan-port area:performance bug

Summary

The Ubuntu CI run for PR #2229 failed unit/zz_perlonjava_process.t test 11, MakeMaker dependency extraction uses the shared process service. The test's CPAN::FindDependencies::MakeMaker::getreqs_from_mm child exceeded its deadline while running a generated Makefile.PL.

Root cause

src/main/perl/lib/CPAN/FindDependencies/MakeMaker.pm sets $process_timeout to 10 seconds on non-Windows platforms and 60 seconds on Windows. It invokes [ $^X, 'Makefile.PL' ] through PerlOnJava::Process::run_process. Under PerlOnJava, $^X starts another JVM; cold startup and ExtUtils::MakeMaker initialization can exceed the 10-second Unix deadline on a loaded CI runner. The test then receives the string Makefile.PL didn't finish in a reasonable time instead of the expected prerequisite hash.

Evidence

  • Ubuntu CI for PR #2229, run 46352999616, job 141630544101: unit/zz_perlonjava_process.t failed after 31.446 seconds; TAP tests 1–10 passed and test 11 failed. The failure output identifies Makefile.PL didn't finish in a reasonable time.
  • The CI job took 40m17s overall, while nice -n 19 make passed locally on the same PR commit.
  • The current master implementation still has the 10-second non-Windows timeout.
  • Commit 4990f9b74 on perf/issue-1846-method-parity changed this timeout to 120 seconds after a CI report that the child JVM exceeded the former 10-second deadline. That change is not present on master.

Follow-up

Choose and document a bounded startup allowance that works on loaded Linux CI runners, retain timeout coverage for genuinely hung children, and validate the MakeMaker extraction test on Ubuntu and Windows. Do not skip the test or remove its timeout.

主要言語
Perl
スター
67
フォーク
9
平均マージ
6時間 45分
マージ済み PR(30日)
104

環境構築

はじめの一歩

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

fglock/PerlOnJava のほかの issue

fglock/PerlOnJava の issue をすべて見る

似ている issue

Perl の issue をもっと見る

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

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