← Back to Pull requests

t/TEST: run tests generated during build #24918

Closed
unknown closed this pull request without merging on Oct 11, 2026 12:46 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 14:17 UTC
Author

In https://github.com/Perl/perl5/issues/24855, @tonycoz noted that make test currently runs no tests for dist/Devel-PPPort/. Subsequently we determined that these tests ceased being run several years ago when that library's tests were re-written so as to be generated from components supplied by that library rather than from t/.t files listed in MANIFEST.

This patch (in 3 commits) modifies t/TEST so as to run 'generated' tests after tests listed in MANIFEST have completed.

To make the distinction between what I am calling manifested_tests and generated_tests clear, certain variables in t/TEST were renamed -- and for consistency, the corresponding variables in t/harness and t/porting/test_testlist.t were also renamed. For example, what heretofore we called @tests has been renamed to @manifested_tests.

Certain other changes were made in t/TEST to bring that program up-to-date with what have been considered as Perl best practices since at least 2005.

Each of these commits was evaluated using several different ways of invoking tests, selected from these variants:

./perl -Ilib t/porting/test_testlist.t
./perl -Ilib t/TEST    -dump_manifested_tests
./perl -Ilib t/TEST    -dump_manifested_tests | wc -l
./perl -Ilib t/TEST    -dump_manifested_tests | grep PPPort
./perl -Ilib t/harness -dump_manifested_tests
./perl -Ilib t/harness -dump_manifested_tests | wc -l
./perl -Ilib t/harness -dump_manifested_tests | grep PPPort
TEST_FILES="porting/test_testlist.t" make test
TEST_FILES="porting/test_testlist.t" ./runtests choose
TEST_FILES="porting/test_testlist.t" make test_harness
cd t;./perl harness -v porting/test_testlist.t; cd -
make test_porting
make test
make test_harness
TESTFILE=harness ./runtests choose

I would anticipate making similar changes in t/harness so as to be able to run generated tests as part of make test_harness -- but let's leave that for a later pull request.

Thank you very much.

-------------------------------------------------------------------------------
This set of changes requires a perldelta entry, which I'll supply after code review.

Diff: 271 lines (+203 / -68) across 3 files Reviewer: bulk88 Review duration: 5669m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 271 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.335
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #24918"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.5% (MEDIUM) · Higher = larger blast radius
39.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.6% · Safe to merge
15.6%
Repository