[CI] MakeMaker dependency inspection exceeds Unix timeout

Abierto Apto para principiantes
#2,230 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, java, perl
Área
testing

Línea de trabajo

Empieza en src/main/perl/lib/CPAN/FindDependencies/MakeMaker.pm e inspecciona cómo se selecciona $process_timeout y se pasa a PerlOnJava::Process::run_process. Lee unit/zz_perlonjava_process.t, especialmente la prueba 11, y ejecuta la prueba de extracción de MakeMaker en Ubuntu y Windows. El trabajo estará terminado cuando un tiempo de espera limitado permita un inicio normal en una CI de Linux con carga, mientras que un proceso hijo realmente bloqueado siga agotando el tiempo de espera.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Perl
Estrellas
67
Forks
9
Merge medio
6 h 45 min
PR fusionados (30 d)
104

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de fglock/PerlOnJava

Todos los issues de fglock/PerlOnJava

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.