[CI] MakeMaker dependency inspection exceeds Unix timeout

Offen Anfängerfreundlich
#2,230 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
72/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, java, perl
Bereich
testing

Rechercherichtung

Beginne in src/main/perl/lib/CPAN/FindDependencies/MakeMaker.pm und untersuche, wie $process_timeout ausgewählt und an PerlOnJava::Process::run_process übergeben wird. Lies unit/zz_perlonjava_process.t, insbesondere Test 11, und führe den MakeMaker-Extraktionstest unter Ubuntu und Windows aus. Fertig ist die Arbeit, wenn ein begrenztes Timeout den normalen Start auf ausgelasteter Linux-CI ermöglicht, während ein tatsächlich hängender Kindprozess weiterhin ein Timeout auslöst.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Perl
Sterne
67
Forks
9
Ø Merge
6 Std. 45 Min.
Gemergte PRs (30 T.)
104

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fglock/PerlOnJava

Alle Issues in fglock/PerlOnJava

Ähnliche Issues

Weitere Issues zu Perl

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.