Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

BinGOs (7246)

  (email not shown publicly)

System administrator, part-time Perl hacker, full-time POE [] evangelist. One day he will be made to pay for his crimes.

He has some modules on CPAN []. They may or may not be useful

Journal of BinGOs (7246)

Monday September 08, 2008
09:46 AM

Rumbles from the Machinery of FAIL

First off a developer release of POE::Component::SmokeBox should be hitting CPAN mirrors.

POE::Component::SmokeBox is a unified POE based CPAN smoke testing framework. It will eventually replace POE::Component::CPANPLUS::YACSmoke, POE::Component::CPAN::YACSmoke and POE::Component::CPAN::Reporter.

Production smoker-wise, work is ongoing to update configurations to use the latest CPANPLUS::YACSmoke and Test::Reporter. The long running smokers on Darwin and NetBSD 3.1 have already been updated, the Vmware based smokers are being updated as boxen come up in the rotation.

As mentioned during my talk at YAPC::EU in Copenhagen, I'm still working on code to perform auto-rolling of smoker configurations. I have worked through some proof-of-concept scripts that seem to do the job, but the end goal ( in my mind ) is to get this auto-rolling working with what will eventually become smokebox so that the whole process setting up the smoker and actually smoking CPAN modules can be fully automatic.

Some of the stages the auto-rolling will deal with are (assuming a CPANPLUS based smoker):

  • Take a number of parameters:
    • perl version (5.6.2, 5.8.8, etc.)
    • path to install the perl (prefix)
    • working directory (build)
    • cpan mirror url (url)
    • perl configure options (options) [arrayref]
    • email address (email)
    • mail exchanger (mx)
  • Build and install specified perl:
    • get source (fetch from url, rsync etc.)
    • extract (if applicable)
    • run Configure with options
    • run make
    • run make test
    • run make install
  • If CPANPLUS isn't already installed (ie. perl is less than 5.9.5):
    • Fetch CPANPLUS distribution
    • Extract
    • Run Makefile.PL with new perl executable
    • Run bin/cpanp-boxed -s selfupdate dependencies with the new perl
  • Setup CPANPLUS for smoke testing:
    • Configure:
      • o conf verbose 1
      • o conf email $email
      • o conf cpantest 1
      • o conf cpantest_mx $mx
      • o conf buildflags uninst=1
      • o conf makeflags UNINST=1
    • Install modules for testing:
      • YAML::Tiny
      • Test::Reporter
      • CPANPLUS::YACSmoke
  • Done >:)

The trick now is to wrap up all this into a module.

Thursday August 14, 2008
06:26 PM

Various YAPC Things

Enjoying myself at YAPC::EU in the lovely city of Copenhagen

Gave my first proper YAPC talk about CPAN Testing, the slides for which are here

I've uploaded a few pictures I've taken to my Picasa album

Must sleep

Friday August 01, 2008
10:34 AM

CPAN Testers BOF at YAPC::EU 2008

YAPCs are always a good opportunity to meet other perl users. As the organisers of this year's YAPC::EU in Copenhagen have been good enough to allow me to do a talk on CPAN Testing, Barbie and myself will be arranging a CPAN Testers Birds of Feather (BOF) session.

Barbie's original announcement:

This BOF is for anyone who is or wants to be a CPAN Tester. A chance to air any thoughts for improving CPAN testing and highlight any common pitfalls experienced by current testers. Also a chance for testers and authors to meet face to face, if they haven't already done so. Any contributions to improve the are also welcome. I would also like to take this opportunity to get group photo of all the CPAN Testers attending. Last year we had, so please come along and get your face on the front page of the site :)

This will very likely be at the end of the first day of the conference, ie. the Wednesday.

If you are attending YAPC::EU and are interested in CPAN Testing, please add your name to the wiki page

Monday July 28, 2008
09:49 AM

Environment variables that CPAN Testers use

Maybe not a definitive list, but this is what I have gleamed:

  • AUTOMATED_TESTING - Set by an automated CPAN Tester to indicate, erm, that we are running automated tests.
  • PERL_MM_USE_DEFAULT - Set so that we take the defaults to prompts in Makefile.PL and Build.PL
  • PERL5_CPAN_IS_RUNNING - appears to set this to process ID of the CPAN process.
  • PERL5_CPANPLUS_IS_RUNNING - CPANPLUS sets this to the process ID of the CPANPLUS process, note also check PERL5_CPAN_IS_RUNNING, as CPAN also sets this variable
  • PERL5_CPANPLUS_IS_VERSION - Set by CPANPLUS to indicate the version that is running
  • PERL5_CPANPLUS_VERBOSE - Set by CPANPLUS to indicate whether it is generating verbose output

Kindly pointed out by Dave Golden:

  • PERL5OPT - used by CPAN::Reporter to load Devel::Autoflush to force output from PL and test files that don't set autoflush themselves. (This has been a headache and is still in active development to find a workable solution.)
  • PERL5LIB - may or may not be set, depending on the test setup
  • PERL_CPAN_REPORTER_DIR - if set, this directory is used in place of the default .cpanreporter directory; this will affect not only the location of the default config.ini, but also the location of the CPAN::Reporter::History database and any other files that live in that directory
  • PERL_CPAN_REPORTER_CONFIG - if set, this file is used in place of the default config.ini file; it may be in any directory, regardless of the choice of configuration directory

Added by Jos Boumans:

  • PERL5_CPANPLUS_IS_EXECUTING -- set by CPANPLUS to the full path of either Build.PL or Makefile.PL while it's executing this file. This helps Module::Install understand that it is running under CPANPLUS and can delegate prereqs up to the parent process

Added by Simon Bertrang:

  • TEST_POD - enables testing of documentation
  • TEST_AUTHOR - in a few cases this enables testing in general
  • PERL_TEST_POD - another name to enable documentation tests
  • PERL_TEST_CRITIC - used to enable critic testing
  • AUTHOR_TESTING - a few authors hide tests with this, mostly documentation tests
Sunday July 27, 2008
04:44 PM

I've seen a dragonfly

Set up a new smokebox this weekend, Dragonfly BSD 2.0.


Friday July 18, 2008
05:58 AM

There is a new CPAN Smoke Tester in town

I uploaded CPANPLUS::YACSmoke recently, along with POE::Component::CPANPLUS::YACSmoke, to CPAN.

So what is the fuss and how is it so different from CPAN::YACSmoke ?

Well, it is a port/reimplementation of CPAN::YACSmoke to use a CPANPLUS::Dist distribution class called CPANPLUS::Dist::YACSmoke. This backend deals with all the stuff that CPAN::YACSmoke used to deal with, such as munging test reports, deciding whether to send reports if we have sent them already, etc, etc.

And it also handles checking whether we have reported a PASS grade already for a prereq and if so it skips running the test-suite for that prereq again.

This functionality has been in for a little while, and I felt it should be easy to implement with CPANPLUS.

That said, I did have lots of advice and patience from Jos Boumans to assist me. Cheers!

Seems good in initial testing. I'm starting to migrate my smokers over to using it and so far the speed of smoke testing has increased considerably.


Tuesday July 01, 2008
01:47 AM

Nine month project, bears fruit

Niamh Olivia Williams was born on the 25th June, 4 days ahead of schedule. >:)

Sleep is a distant memory.

Also, this made me choke myself laughing.

Tuesday April 01, 2008
02:30 AM

POE-1.0 Released

Rocco Caputo has announced that POE 1.0 is out.

And it isn't an April Fools

Monday February 11, 2008
02:14 PM

No more email delivery of cpan-testers

DrHyde pointed out on #cpantesters-discuss channel that there has been an announcement by Robert Spiers regarding the cpan-testers mailing list.

For those who receive their recent uploads notifications via email, this may be a PITA.

Some alternative mechanisms already exist:

Those are the ones I can think of off the top of my head.

Friday February 01, 2008
02:24 AM

One Millionth CPAN Test Report

Earlier this week, Dave Cantrell sent the one millionth CPAN Test Report.