CPAN::Testers::Schema::Result::Stats - The basic statistics information extracted from test reports
version 0.025
my $schema = CPAN::Testers::Schema->connect( $dsn, $user, $pass ); # Retrieve a row my $row = $schema->resultset( 'Stats' )->first; # pass from doug@example.com (Doug Bell) using Perl 5.20.1 on darwin say sprintf "%s from %s using Perl %s on %s", $row->state, $row->tester, $row->perl, $row->osname; # Create a new row my %new_row_data = ( state => 'fail', guid => '00000000-0000-0000-0000-000000000000', tester => 'doug@example.com (Doug Bell)', postdate => '201608', dist => 'My-Dist', version => '0.001', platform => 'darwin-2level', perl => '5.22.0', osname => 'darwin', osvers => '10.8.0', fulldate => '201608120401', type => 2, uploadid => 287102, ); my $new_row = $schema->resultset( 'Stats' )->insert( \%new_row_data );
This table (cpanstats in the database) hold the basic, vital statistics extracted from test reports. This data is used to generate reports for the web application and web APIs.
cpanstats
See ATTRIBUTES below for the full list of attributes.
ATTRIBUTES
This data is built from the Metabase by the CPAN::Testers::Data::Generator.
The ID of the row. Auto-generated.
The UUID of this report from the Metabase, stored in standard hex string representation.
The state of the report. One of:
pass
The tests passed and everything went well.
fail
The tests ran but failed.
na
This dist is incompatible with the tester's Perl or OS.
unknown
The state could not be determined.
invalid reports, which are marked that way by dist authors when the problem is on the tester's machine, are handled by the "type" field.
invalid
A truncated date, consisting only of the year and month in YYYYMM format.
YYYYMM
The e-mail address of the tester who sent this report, optionally with the tester's name as a comment (doug@example.com (Doug Bell)).
doug@example.com (Doug Bell)
The distribution that was tested.
The version of the distribution.
The Perl platform string (from $Config{archname}).
platform
$Config{archname}
The version of Perl that was used to run the tests (from $Config{version}).
$Config{version}
The name of the operating system (from $Config{osname}).
$Config{osname}
The version of the operating system (from $Config{osvers}).
$Config{osvers}
The full date of the report, with hours and minutes, in YYYYMMDDHHNN format.
YYYYMMDDHHNN
A field that declares the status of this row. The only current possibilities are:
The ID of the upload that created this dist. Related to the uploadid field in the uploads table (see CPAN::Testers::Schema::Result::Uploads).
uploadid
uploads
Get the related row in the `uploads` table. See CPAN::Testers::Schema::Result::Upload.
Get the related metadata about the Perl version this report is for. See CPAN::Testers::Schema::Result::PerlVersion.
The name of the distribution that was tested.
The version of the distribution that was tested.
The language and version the test was executed with
The platform the test was run on
The report grade. One of 'pass', 'fail', 'na', 'unknown'.
The name of the tester who sent the report
DBIx::Class::Row, CPAN::Testers::Schema
Oriol Soriano <oriolsoriano@gmail.com>
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2018 by Oriol Soriano, Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install CPAN::Testers::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Testers::Schema
CPAN shell
perl -MCPAN -e shell install CPAN::Testers::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.