Skip to content

Fix cpan random tester output buffering#859

Merged
fglock merged 1 commit into
masterfrom
fix/cpan-random-output-spool
Jun 13, 2026
Merged

Fix cpan random tester output buffering#859
fglock merged 1 commit into
masterfrom
fix/cpan-random-output-spool

Conversation

@fglock

@fglock fglock commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Stream cpan_random_tester.pl child output directly to the per-module log file instead of buffering full jcpan output in memory.
  • Add a streaming log parser for CPAN result blocks so large chatty test runs stay bounded in memory.
  • Keep a 1 MB output tail for fallback diagnostics and suppress sandbox-only ps exec noise during timeout cleanup fallback.

Test Plan

  • perl -c dev/tools/cpan_random_tester.pl
  • Fake large-log jcpan harness recorded Chatty::Pass from a 2.49 MB log.
  • Fake timeout jcpan harness ignored SIGTERM; runner escalated to SIGKILL, recorded a timeout, and exited normally.
  • git diff --check
  • make

Generated with Codex

Stream jcpan output directly to each target log and parse results from the log file instead of keeping the entire target output in memory. Keep only a bounded tail for fallback diagnostics so chatty long-running CPAN tests do not grow the tester process until it is killed by the OS.

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock merged commit cc8aa95 into master Jun 13, 2026
2 checks passed
@fglock fglock deleted the fix/cpan-random-output-spool branch June 13, 2026 18:02
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