03 Feb 2018 19:30:28 UTC
- Distribution: CPAN-Testers-Backend
- Module version: 0.005
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (12)
- Testers (47 / 9 / 92)
- KwaliteeBus factor: 1
- 40.29% Coverage
- License: perl_5
- Perl: v5.24.0
- Activity24 month
- Download (30.07KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- SEE ALSO
- COPYRIGHT AND LICENSE
CPAN::Testers::Backend::ProcessReports - Process an incoming test report into useful statistics
beam run <container> <task> [--force | -f] [<reportid>...]
This module is a Beam::Runnable task that reads incoming test reports from testers and produces the basic stats needed for the common reporting on the website and via e-mail. This is the first step in processing test data: All other tasks require this step to be completed.
A CPAN::Testers::Schema object to access the database.
A DBI object connected to the Metabase cache. This is a legacy database needed for some parts of the web app and backend. When these parts are updated to use the new test reports, we can remove this attribute.
Returns a list of CPAN::Testers::Schema::Result::TestReport objects for reports that are not in the cpanstats table.
@reports = $self->find_reports; @reports = $self->find_reports( @ids );
Find all the test reports to be processed by this module, optionally limited only to the IDs passed-in. Returns a list of CPAN::Testers::Schema::Result::TestReport objects.
$self->write_metabase_cache( $report_row, $stat_row );
Write the report to the legacy metabase cache. This cache is used for some of the web apps and some of the backend processes. Until those processes are changed to use the new test report format, we need to maintain the old metabase cache.
Once the legacy metabase cache is removed, this method can be removed
$self->write_builder_update( $stat_row );
Write entries to the
page_requeststable to tell the legacy webapp report builders that they need to update the static data caches for this distribution and this distribution's author.
The IDs of reports to process. If specified, the report will be processed whether or not it was processed already (like
Force re-processing of all reports. This will process all of the test reports again, so it may be prudent to limit to a set of test reports using the
Doug Bell <firstname.lastname@example.org>
This software is copyright (c) 2017 by 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.
Module Install Instructions
To install CPAN::Testers::Backend, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install CPAN::Testers::Backend
For more information on module installation, please visit the detailed CPAN module installation guide.