feat: add smoker recipe for Perl CI smoke testing#58
Draft
troglodyne-bot wants to merge 1 commit into
Draft
Conversation
New Provisioner::Recipe::smoker clones a list of GitHub repos (owner/repo shortnames or full HTTPS URLs) and runs the standard ExtUtils::MakeMaker test workflow — cpanm --installdeps, perl Makefile.PL, make test — via the updated smoke_perl_modules.pl helper. System deps cover the native libraries needed by tCMS and related Troglodyne-Internet-Widgets XS modules (SQLite, libmagic, libxml2, OpenSSL, inotify/seccomp stack). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
teodesian
reviewed
Jun 2, 2026
|
|
||
| =head2 DESCRIPTION | ||
|
|
||
| Clones a list of GitHub repositories and runs the standard ExtUtils::MakeMaker |
Contributor
There was a problem hiding this comment.
This is not useful compared to what Provisioner::Recipe::admincode provides.
What would be useful is something that looks at the provided CPAN users (such as me, TEODESIAN) and scrapes out the repo urls from the meta.yml in their dist tarballs, clones all of them and then smokes, with the option to report to cpantesters.
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
New
Provisioner::Recipe::smokerthat provisions a machine capable ofcloning and smoke-testing ExtUtils::MakeMaker-based Perl repos.
Why
Troglodyne-Internet-Widgets repos (tCMS, tPSGI, …) need a repeatable CI
smoke environment. This recipe gives you a provisioned host that clones
any list of repos and runs the standard
perl Makefile.PL && make testworkflow, including all native deps the XS modules require.
How
lib/Provisioner/Recipe/smoker.pm— new recipe. Accepts areposlist (shortnames like
Troglodyne-Internet-Widgets/tCMSor full HTTPSURLs), normalises them to full URLs, extracts clone-dir names, and defaults
basedirto/opt/smoke. System deps cover the full XS build stack(SQLite, libmagic, libxml2, OpenSSL, seccomp/inotify, etc.).
templates/smoker.tt— makefile fragment that clones (orgit pull --ff-only) each repo and then callssmoke_perl_modules.plwith theright cpanm (prefers the custom perl from the
perlrecipe, falls backto system cpanm).
scripts/smoke_perl_modules.pl— updated to run the proper MakeMakerworkflow:
cpanm --installdeps,perl Makefile.PL,make test.Previously used
prove -vm t/which bypassed the generated Makefile.Example recipes.yaml snippet
Testing
perl -Ilib -c lib/Provisioner/Recipe/smoker.pm— syntax OKperl -c scripts/smoke_perl_modules.pl— syntax OK(koan.tt, tpsgi.tt) for correct
$$VARescaping in make context.🤖 Generated with Claude Code