[CI] MakeMaker dependency inspection exceeds Unix timeout
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
调研方向
从 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 内容生成。
描述
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.tfailed after 31.446 seconds; TAP tests 1–10 passed and test 11 failed. The failure output identifiesMakefile.PL didn't finish in a reasonable time. - The CI job took 40m17s overall, while
nice -n 19 makepassed locally on the same PR commit. - The current master implementation still has the 10-second non-Windows timeout.
- Commit
4990f9b74onperf/issue-1846-method-paritychanged 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 分钟
- 30 天内合并 PR
- 104
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fglock/PerlOnJava 的其他 Issue
-
area:runtime documentation enhancement
难度 2/5 1-3 小时 新手友好度 72/100
fglock/PerlOnJava#1579 ·
维护者通常 1 天内回复
-
area:ownership area:performance area:runtime bug
难度 5/5 一周以上 新手友好度 35/100
fglock/PerlOnJava#2232 ·
维护者通常 1 天内回复
-
area:backend area:cpan-port area:runtime bug
难度 4/5 3-5 天 新手友好度 72/100
fglock/PerlOnJava#2231 ·
维护者通常 1 天内回复
-
area:parser area:runtime area:unicode bug
难度 5/5 一周以上 新手友好度 38/100
fglock/PerlOnJava#2228 ·
维护者通常 1 天内回复
-
area:cpan-port area:runtime bug
难度 3/5 1-2 天 新手友好度 70/100
fglock/PerlOnJava#2227 ·
维护者通常 1 天内回复
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
[doc] perlsub wrongly says that `"sub { ... }" creates a new subroutine each time it is executed'未关闭documentation Needs Triage
难度 2/5 1-3 小时 新手友好度 69/100
维护者通常 1 天内回复
-
docs(api): /api/v3/external_sources spec is missing lc and section_title可能已有人在做 @subhwastaken 今天认领。 未关闭
难度 1/5 1-3 小时 新手友好度 82/100
openfoodfacts/openfoodfacts-server#15626 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 67/100
LMS-Community/slimserver#1742 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 62/100
brucemiller/LaTeXML#2894 ·