Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Dist::Zilla::Plugin::TrialVersionComment fails and times out

Aperta
#1,508 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
perl
Ambito
tooling

Direzione di ricerca

The issue is in Dist::Zilla::Plugin::TrialVersionComment's integration with PPI under PerlOnJava. Start by examining the plugin's source, particularly the transformation of version assignments. Reproduce the failure using the CPAN test run details. Focus on object lifecycle and refcount issues noted in the repository's PPI support documentation. Create a minimal test case that isolates the problem without modifying upstream tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:backend area:cpan-port bug

Summary

Dist::Zilla::Plugin::TrialVersionComment-0.007 fails under PerlOnJava in
the CPAN compatibility run.

Evidence

  • CPAN run: 20260924-085657-82687

  • Failing test: t/01-basic.t

  • System Perl oracle: all 15 test files passed, 30 tests total.

  • PerlOnJava: the test command exceeded the 300-second runtime limit.

  • Before the timeout, the plugin produced:

    our $VERSION = '; # TRIAL
    

    The expected output preserves the version literal:

    our $VERSION = '0.001'; # TRIAL
    

The minimal standalone PPI parse/mutate/serialize operation reproduces the
expected output under PerlOnJava, so this appears to require the
Dist::Zilla/PPI integration path rather than being a generic PPI round-trip
failure.

Investigation notes

The repository's PPI support notes already identify unresolved PerlOnJava
object-lifecycle/refcount/DESTROY problems that may explain both the
corrupted transformed content and the long-running test process. This issue
should be reduced to a project-owned minimal reproducer before implementing a
fix; do not change the upstream test.

Acceptance criteria

  • Identify the root cause in the Dist::Zilla/PPI integration or PerlOnJava
    runtime.
  • Add a permanent focused regression test that passes under system Perl and
    both PerlOnJava backends where applicable.
  • Make the plugin's version assignment transformation preserve the original
    version literal and complete within normal test time.
  • Re-run the full Dist::Zilla::Plugin::TrialVersionComment test suite.
Lingua principale
Perl
Stelle
64
Fork
6
Merge medio
5h 38m
PR unite (30g)
170

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fglock/PerlOnJava

Tutte le issue di fglock/PerlOnJava

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.