fix: handle Test2::Harness::Util::IPC deprecation#338
Draft
Koan-Bot wants to merge 2 commits intocpan-authors:mainfrom
Draft
fix: handle Test2::Harness::Util::IPC deprecation#338Koan-Bot wants to merge 2 commits intocpan-authors:mainfrom
Koan-Bot wants to merge 2 commits intocpan-authors:mainfrom
Conversation
Test2::Harness::Util::IPC was deprecated and replaced by Test2::Harness::IPC::Util in newer versions. On cpanel-perl 5.42, the deprecated module dies at compile time, causing import.t, plugin.t, and trace.t to fail. Try the new module first, fall back to the old one. Closes cpan-authors#325 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
CI Impact Note: This PR fixes a systemic CI failure affecting all 34 open PRs. The Merging this would unblock CI across the board (after rebasing the affected branches). |
On Perl 5.20 Docker images, the old Test2::Harness::Util::IPC is now a broken deprecation shim (fails to compile) and the replacement Test2::Harness::IPC::Util isn't installed. This caused t/import.t, t/plugin.t, and t/trace.t to crash with exit 255 on 5.20 (and other Perl versions as images update). Instead of dying when neither module is available, set a flag and have Test::TMF's import() plan skip_all so dependent tests are gracefully skipped rather than failing the entire test suite. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fix Test::TMF test helper to handle deprecated/broken Test2::Harness IPC module gracefully.
Why
Test2::Harness::Util::IPCwas deprecated in favor ofTest2::Harness::IPC::Util. Docker images forperldocker/perl-testerhave been updated, causingt/import.t,t/plugin.t, andt/trace.tto crash (exit 255) across all Perl versions in CI. This blocks all 34 open PRs and also affects cpanel-perl builds (issue #325).On Perl 5.20 specifically, the old module exists as a broken deprecation shim and the new one isn't installed — neither can be loaded.
How
$RUN_CMD_AVAILABLE = 0instead of dyingimport()callsplan(skip_all => ...)when run_cmd is unavailable — tests skip gracefully rather than failing the buildTesting
Fixes #325.
🤖 Generated with Claude Code