526
sub _report_timeout {
528
if ($result->{exit_value} == 9) {
529
my $config_obj = CPAN::Reporter::Config::_open_config_file();
531
$config = CPAN::Reporter::Config::_get_config_options( $config_obj )
534
if ($config->{'_store_problems_in_dir'}) {
535
my $distribution = $result->{dist}->base_id;
536
my $file = "e9.$distribution.${\(time)}.$$.log";
537
if (open my $to_log_fh, '>>', $config->{'_store_problems_in_dir'}.'/'.$file) {
538
print $to_log_fh $distribution,"\n";
539
print $to_log_fh "stage: ",$result->{phase},"\n";
540
print $to_log_fh $Config{archname},"\n";
541
print $to_log_fh _report_text( $result );
543
$CPAN::Frontend->mywarn( "CPAN::Reporter: writing ".
544
$config->{'_store_problems_in_dir'}.'/'.$file. " failed\n");
547
if ($config->{'_problem_log'}) {
548
my $distribution = $result->{dist}->base_id;
549
if (open my $to_log_fh, '>>', $config->{'_problem_log'}) {
550
print $to_log_fh "$result->{phase} $distribution $Config{archname}\n";
552
$CPAN::Frontend->mywarn( "CPAN::Reporter: writing ".
553
$config->{'_store_problems_in_dir'}. " failed\n");
525
559
#--------------------------------------------------------------------------#
526
560
# _downgrade_known_causes
527
561
# Downgrade failure/unknown grade if we can determine a cause
545
579
_expand_result( $result );
581
_report_timeout( $result );
547
583
# if process was halted with a signal, just set for discard and return
548
584
if ( $result->{exit_value} & 127 ) {
549
585
$result->{grade} = 'discard';
562
598
$harness_error++;
565
if( $line =~ /Perl .*? required.*?--this is only/ims ||
601
if( $line =~ /(?<!skipped: )Perl .*? required.*?--this is only/ims ||
602
#?<! - quick hack for https://github.com/cpan-testers/CPAN-Reporter/issues/23
566
603
$line =~ /Perl version .*? or higher required\. We run/ims || #EU::MM
567
604
$line =~ /ERROR: perl: Version .*? is installed, but we need version/ims ||
568
605
$line =~ /ERROR: perl \(.*?\) is installed, but we need version/ims ||
1707
Using command_timeout on Linux may cause problems. See
1708
L<https://rt.cpan.org/Ticket/Display.html?id=62310>
1670
1710
Please report any bugs or feature using the CPAN Request Tracker.
1671
1711
Bugs can be submitted through the web interface at
1672
1712
L<http://rt.cpan.org/Dist/Display.html?Queue=CPAN-Reporter>
1794
Ed J <mohawk2@users.noreply.github.com>
1752
1798
Kent Fredric <kentfredric@gmail.com>
1756
1802
Matthew Musgrove <mr.muskrat@gmail.com>
1806
Scott Wiersdorf <scott@perlcode.org>
1810
Slaven Rezic <slaven@rezic.de>
1760
1814
=head1 COPYRIGHT AND LICENSE