Skip to content

Make CPAN random tester safe for parallel runs#863

Merged
fglock merged 1 commit into
masterfrom
fix/cpan-random-tester-parallel-safe
Jun 18, 2026
Merged

Make CPAN random tester safe for parallel runs#863
fglock merged 1 commit into
masterfrom
fix/cpan-random-tester-parallel-safe

Conversation

@fglock

@fglock fglock commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • serialize CPAN compatibility report updates with a shared lock
  • reload and merge current .dat state before each write, then atomically replace report files
  • isolate tester logs under /tmp/cpan_random_logs/<Run-ID>/
  • document the concurrent execution behavior

Testing

  • perl -c dev/tools/cpan_random_tester.pl
  • perl dev/tools/cpan_random_tester.pl --help
  • git diff --check
  • timeout 1200 make > /tmp/make_cpan_random_parallel_safe.log 2>&1; printf 'EXIT: %s\n' $? >> /tmp/make_cpan_random_parallel_safe.log

Serialize shared CPAN compatibility report updates with a lock, reload current
state before each write, and atomically replace generated data/report files so
parallel tester instances do not drop each other's results.

Also isolate per-run logs under /tmp/cpan_random_logs/<Run-ID>/ and update the
operator docs.

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

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock merged commit c3e9fa0 into master Jun 18, 2026
2 checks passed
@fglock fglock deleted the fix/cpan-random-tester-parallel-safe branch June 18, 2026 11:27
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