<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Michael</title>
    <link rel="alternate" type="text/html" href="http://blogs.perl.org/users/michael/" />
    <link rel="self" type="application/atom+xml" href="http://blogs.perl.org/users/michael/atom.xml" />
    <id>tag:blogs.perl.org,2009-11-03:/users/michael//1157</id>
    <updated>2012-12-16T18:43:47Z</updated>
    <subtitle>A blog about the Perl programming language</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.38</generator>

<entry>
    <title>Smoke testing on Windows</title>
    <link rel="alternate" type="text/html" href="http://blogs.perl.org/users/michael/2012/12/smoke-testing-on-windows.html" />
    <id>tag:blogs.perl.org,2012:/users/michael//1157.4130</id>

    <published>2012-12-16T16:01:10Z</published>
    <updated>2012-12-16T18:43:47Z</updated>

    <summary>As a Perl programmer on Windows, I&apos;ve often had moments of supreme frustration. I can&apos;t use SSH or SFTP from Perl, and I can&apos;t use some of the mail handling modules. When I got started back in the early years...</summary>
    <author>
        <name>Michael Roberts</name>
        <uri>http://www.vivtek.com</uri>
    </author>
    
    <category term="smoketesting" label="smoke testing" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="windows" label="Windows" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.perl.org/users/michael/">
        <![CDATA[<p>As a Perl programmer on Windows, I've often had moments of supreme frustration.  I can't use SSH or SFTP from Perl, and I can't use some of the mail handling modules. When I got started back in the early years of the century, I couldn't even use CPAN; I had to compile my own Perl and accept the fact that tests just mostly had no chance of working.  Over the past year or two, however, especially as I've come to rely on CPANtesters for my own modules, I've started to realize that one reason for this is the lack of dense testing of modules on Windows.  (Yeah, Paul Evans had <a href="http://leonerds-code.blogspot.com/2012/07/dear-perl-users-on-windows.html">something to do</a> with that realization, too.)</p>

<p>But then Gábor Szabó <a href="https://plus.google.com/102810219707784087582/posts/L32Z6jDhu3o">posted on Google+</a> that he hoped to make it to #20 on the Windows smoke tester leaderboard.  (As of today, he's at #19 - congrats!)</p>

<p>Wait.  There's a leaderboard?<br />
</p>]]>
        <![CDATA[<p>OK, so I'm a bad person, but that was the final straw.</p>

<p>As it so happens, I have a couple of antediluvian laptops lying around. The whole family upgraded this last year and our last mass laptop purchase was in 2004, so let me be the first to confirm that smoke testing doesn't require the latest in hardware.  Two laptops running XP and nothing else but the smoke tester can crank through a <em>lot</em> of smoke in less time than you think - I started testing five days ago, and I'm #6 on the leaderboard for Windows for the month.</p>

<p>Sadly, that says more about the number of people smoke testing on Windows than about how cool I am.</p>

<p>And the pathetic thing is this: it ain't hard.  Not even close to hard.  The <a href="http://wiki.cpantesters.org/wiki/QuickStart">CPANtester Wiki Quick Start instructions</a> work perfectly.  Just do that, and seriously, you're good to go.</p>

<p>In my case, I also set up TightVNC on both of the testing laptops so I could just stick them downstairs in the nice cool garage and check in on them periodically from my desk where it's warm.</p>

<p>There are still some adjustments.  CPAN::Reporter::Smoker is very, very close to being unattended-capable, but it's not 100%.  I'm seeing test processes hang every now and then (POE seems to be a problem for some reason, but I haven't been organized enough to keep records yet - hey, I'm still in my first week!), and the only recourse is to quit the smoker and start again.</p>

<p>By default, CPAN::Reporter::Smoker loads every prerequisite anew for every test.  For frequently-used prerequisites, this is a colossal waste of time.  If you want to just crank through CPAN, by all means set <a href="http://search.cpan.org/~dagolden/CPAN-Reporter-Smoker/lib/CPAN/Reporter/Smoker.pm#Avoiding_repetitive_prerequisite_testing">trust_test_report_history</a>.</p>

<p>But even with that, so far neither of my smoker machines has gotten further than about 170 modules into CPAN without having to be restarted.  This is a serious problem.  The smoker sorts by age; new modules are tested first, which normally makes sense, as newly submitted modules need testing and are more likely to be fixed if tests fail.  (For that reason, CPAN::Reporter::Smoker checks for new submissions every 12 hours and runs those before continuing down the list.)</p>

<p>But if your goal, like mine, is to increase the test coverage for <em>all</em> of CPAN, then 170 modules out of over 27,000 isn't quite enough.  My current plan involves trying two tweaks: first, I need to stop testing modules that hang (for that to work, I have to detect hangs better).  Second, I probably need to ignore new submissions; to do that, I'll have to use MiniCPAN to make a local mirror.</p>

<p>To do that right, I should actually download a MiniCPAN and then <em>delete modules once tested</em> so I can restart a smoker and not retest everything it's already done.  But I can't delete a prerequisite for another module - so before doing that, I'll have to do a prerequisite analysis of CPAN.</p>

<p>So that's the state of Windows smoking here at headquarters, currently in sunny Budapest.  I wouldn't say no to suggestions.<br />
</p>]]>
    </content>
</entry>

</feed>
