Skip to content

Fix CPAN random tester regressions#852

Merged
fglock merged 2 commits into
masterfrom
fix/cpan-random-regressions
Jun 9, 2026
Merged

Fix CPAN random tester regressions#852
fglock merged 2 commits into
masterfrom
fix/cpan-random-regressions

Conversation

@fglock

@fglock fglock commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix caller stack reporting for generated accessors when a tied hash callback runs after the Java stack frame has disappeared.
  • Add a regression covering Sub::Util::set_subname accessors with tied hash FETCH and Test::More context depth.
  • Add a PerlOnJava distropref for Test::SharedFork so downstream pure-Perl tests can stage it while skipping its fork-only upstream tests.

Verification

  • prove src/test/resources/unit/caller_line_number.t
  • timeout 1200 make
  • Full CPAN retest with timeout 900 ./jcpan -t ... for:
    • IO::Scalar
    • ExtUtils::CBuilder
    • Test::Differences
    • Test::Most
    • DateTime::Calendar::TauStation
    • DateTime::Format::RFC3501
    • LWP::Protocol::https
    • HTTP::Cookies
    • Class::Accessor::Fast
    • Module::Build::Pluggable

Final CPAN summary: /tmp/cpan-regressions-final-summary.txt

fglock and others added 2 commits June 9, 2026 13:17
Fix caller stack reporting for generated accessors whose Java stack frame is no longer visible during tied hash FETCH callbacks. This restores Test2/Test::More context depth behavior for Class::Accessor::Fast.

Add a Test::SharedFork distropref so CPAN can stage the module for downstream consumers while skipping its fork-only upstream tests on PerlOnJava.

Generated with Codex
https://openai.com/codex

Co-Authored-By: Codex <codex@openai.com>
Only synthesize out-of-stack caller frames from the active RuntimeCode stack when an explicitly renamed CV is active and the selected active frame has a real subroutine name. This preserves the Class::Accessor::Fast Test2 context fix without fabricating top-level or ordinary Test::Builder frames.

Generated with Codex
https://openai.com/codex

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock merged commit 5050827 into master Jun 9, 2026
2 checks passed
@fglock fglock deleted the fix/cpan-random-regressions branch June 9, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant