Skip to content

Perl imports skip POD and __END__ text; plack/Plack as 2nd Perl import-graph repo (Part of #3798) - #6586

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/3798-20261025T0421Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/3798-20261025T0421Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3798 (Perl second repo slice).

What

  • plack/Plack @ 9599edb added as the 2nd Perl repo of the import-graph corpus.
  • Perl's import capture now blanks POD blocks and everything after __END__ / __DATA__ (import_capture_blank in perl.py, the hook Kotlin/Java/Scala already use). A use Plack::Builder; in a =head1 SYNOPSIS block was an import edge.
  • Baseline and graph comparison ledger regenerated; golden masters re-blessed.

Numbers (import_graph_accuracy, perl)

repos resolvable imports engine edges precision recall
before (HTTP-Message only) 1 49 47 97.9% 100%
Plack added, no fix 2 397 422 92.4% 99.2%
Plack added, with fix 2 397 395 98.7% 99.2%

32 false edges before the fix (29 POD/__END__ SYNOPSIS use lines); 5 remain.

Class / Sibling gaps

Class: non-code surface read as an import because Perl's code stream keeps POD (known gap in perl.py, lexical_family is line_exclusive) and _dependency_capture is unanchored. Members handled here: POD blocks (closed and unterminated openers), __END__, __DATA__; each has a test (test_perl_pod_imports_3798.py, including a bounded-time check). Deliberately not stripped from code_stream, so no other Perl signal moves.
Sibling gaps: (1) use inside heredoc/string bodies in .t files (5 FP in Plack: apache2.t, cgibin_exec.t, wrapcgi_exec.t, framing.t, harakiri.t), a different mechanism (heredoc masking); (2) 3 FN truth-names-several-files (use lib plus a module resolving to 2 files). No burned estate program needs either. Ruby =begin/=end and Raku =begin pod were not scanned for the same leak.

Golden

Drift limited to the Perl crucible groups (bugzilla, exiftool, spamassassin) import edges and the values derived from them (coordinates, pagerank, fingerprints). Blessed with golden-lock.sh crucible_check.py --update --yes.

Gates

pr_gates --fast 7/7; --ratchets 9 pass, 0 fail, 0 skipped; graph tool tests, perl tests pass. No call-graph impact (Perl is not in the call-graph corpus). No workflow change.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 25, 2026 04:34
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 04:36
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant