On Jan 25, 2008 9:52 AM, Kidney Bingos <[EMAIL PROTECTED]> wrote: > It was because of this stuff that I wrote POE::Component::CPAN::YACSmoke in > the end. Waking up of a morning to find that the smoker had been sat > waiting on somebodies Makefile.PL for user input > > The way PoCo-CPAN-YACSmoke handles idle timeouts is to simply kill off > the whole current smoke process. And no report is therefore sent.
CPAN::Reporter has had timeout support in its record_command() function for a while. The current repository version (will be 1.07_06) adds a 'command_timeout' config option that always applies if CPAN doesn't specify an inactivity timeout (and applies to make and test phases as well). In writing tests for killing inactive processes (oh, what fun), I did find some bugs in the implementation that _06 addresses. Overall, because CPAN.pm gives CPAN::Reporter responsibility for running the command, I have good control for managing timeouts and still handling reports. CPAN::Reporter::Smoker will use that to automatically "do-the-right-thing". > As for hitting CTRL-C during testing modules interactively ( rather than > smoking ), if I do this CPANPLUS will prompt me to edit the report and I > envdeavour to add some comment to report as to why I found it necessary to > do that. I'll look into what that would take. If it's easier than saving to a temp file, I might go that way. David