- SEE ALSO
- COPYRIGHT AND LICENSE
CPAN::Testers::Schema::Result::Stats - The basic statistics information extracted from test reports
my $schema = CPAN::Testers::Schema->connect( $dsn, $user, $pass ); # Retrieve a row my $row = $schema->resultset( 'Stats' )->first; # pass from email@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 => 'firstname.lastname@example.org (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.
ATTRIBUTES below for the full list of 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:
The tests passed and everything went well.
The tests ran but failed.
This dist is incompatible with the tester's Perl or OS.
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.
A truncated date, consisting only of the year and month in
The e-mail address of the tester who sent this report, optionally with the tester's name as a comment (
email@example.com (Doug Bell)).
The distribution that was tested.
The version of the distribution.
platform string (from
The version of Perl that was used to run the tests (from
The name of the operating system (from
The version of the operating system (from
The full date of the report, with hours and minutes, in
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).
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
Oriol Soriano <firstname.lastname@example.org>
Doug Bell <email@example.com>
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.