cki-project / sktm

"Sonic Kernel Testing Manager" - a job scheduler for skt
GNU General Public License v2.0
0 stars 6 forks source link

Add support for standalone reporting command #108

Closed veruu closed 6 years ago

veruu commented 6 years ago

Test with commands like sktm -vv --mail-from me --mail-to someone report --assets dir-with-results

where dir-with-results is a directory containing stage results (which are not yet implemented in skt, so you'll need to create your own ones for testing purposes). Examples of content: build.log build.report build.result merge.report merge.result or applied.patch merge.report merge.result s390/ x86/ where s390/ contains build.report build.result config.gz kitty and x86/ contains build.report build.result useless-file

From the examples, useless-file is not referenced in the report text so it's not added, config.gz, applied.patch and kitty are referenced and added as attachments.

I'll add a proper directory structure definition to meta/pull6 so it's less confusing but I wanted to publish the code here before the weekend.

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 390


Changes Missing Coverage Covered Lines Changed/Added Lines %
sktm/reporter.py 125 143 87.41%
sktm/executable.py 4 32 12.5%
<!-- Total: 129 175 73.71% -->
Files with Coverage Reduction New Missed Lines %
sktm/executable.py 3 16.24%
<!-- Total: 3 -->
Totals Coverage Status
Change from base Build 382: 8.9%
Covered Lines: 463
Relevant Lines: 1095

💛 - Coveralls
veruu commented 6 years ago

This is more or less ready to review.