fix: remove hard dependency on deprecated Test2::Harness::Util::IPC#399
Draft
Koan-Bot wants to merge 1 commit into
Draft
fix: remove hard dependency on deprecated Test2::Harness::Util::IPC#399Koan-Bot wants to merge 1 commit into
Koan-Bot wants to merge 1 commit into
Conversation
Test2::Harness::Util::IPC was renamed to Test2::Harness::IPC::Util. The old module is now a broken deprecation shim that dies on load, causing t/import.t, t/plugin.t, and t/trace.t to fail (GH cpan-authors#325). Fix all three dependency declaration points: - Makefile.PL: remove BUILD_REQUIRES entry - cpanfile: remove test requires entry - t/lib/Test/TMF.pm: try new module first, fall back to old, skip gracefully if neither is available Closes cpan-authors#325. Supersedes cpan-authors#338. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10933ec to
b021860
Compare
This was referenced May 15, 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
Remove the hard
BUILD_REQUIRES/cpanfiledependency onTest2::Harness::Util::IPC(deprecated, now a broken shim) and maket/lib/Test/TMF.pmhandle both old and new module names gracefully.Why
Test2::Harness::Util::IPCwas renamed toTest2::Harness::IPC::Util. The old module is now a deprecation shim thatdies on load, causingt/import.t,t/plugin.t, andt/trace.tto fail with exit 255. This is the root cause of #325 (cpanel-perl build failure) and affects any installation where only the new module is present.How
Test2::Harness::Util::IPCentry fromBUILD_REQUIRESrequireslineTest2::Harness::IPC::Util), fall back to old, skip tests gracefully if neither is availableTesting
The 3 affected tests (
import.t,plugin.t,trace.t) will now skip cleanly when neither IPC module is available, instead of dying. All other tests are unaffected.Closes #325. Supersedes #338 (includes the same TMF.pm fix plus the missing Makefile.PL/cpanfile changes).
🤖 Generated with Claude Code