[CI] MakeMaker dependency inspection exceeds Unix timeout

Aberta Para iniciantes
#2,230 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
72/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
github-actions, java, perl
Domínio
testing

Direção de pesquisa

Comece em src/main/perl/lib/CPAN/FindDependencies/MakeMaker.pm e inspecione como $process_timeout é selecionado e passado para PerlOnJava::Process::run_process. Leia unit/zz_perlonjava_process.t, especialmente o teste 11, e execute o teste de extração do MakeMaker no Ubuntu e no Windows. O trabalho estará concluído quando um timeout limitado permitir a inicialização normal em uma CI Linux sobrecarregada, enquanto um processo filho realmente travado continuar atingindo o timeout.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Perl
Estrelas
67
Forks
9
Merge médio
6h 45min
PRs com merge (30d)
104

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de fglock/PerlOnJava

Todas as issues de fglock/PerlOnJava

Issues semelhantes

Mais issues de Perl

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.