Bug 8193 - add wiki reporting to public AB
Summary: add wiki reporting to public AB
Status: RESOLVED OBSOLETE
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: 1.9
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.3
Assignee: Unassigned
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-08-21 09:02 UTC by Alexandru Georgescu
Modified: 2016-10-27 15:12 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2015-08-21 09:02:58 UTC
QA has a script that creates reporting on selftest, sanity tests on the public wiki. 
The reports can be accessed here: https://wiki.yoctoproject.org/wiki/QA_sanity_history

The script can be added after a test suite is being run on the public AB, and send the results to the wiki.
Comment 1 Lucian Musat 2015-09-09 11:28:13 UTC
I see two problems here. First the tables that we create uses some information from the LAVA server, like previous test runs. This information is not available on the public autobuilder. That is fine, we can modify the script to not show a comparison with the previous run, but only the current passrate.

The second problem is that the mediawiki api is having issues with the json module that is default in python. For it to work I had to make some modifications in python on the lava server and I don't know if that's something that is feasible on the public autobuilder.
Comment 2 Joshua Lock 2016-06-10 10:33:22 UTC
(In reply to comment #1)
> The second problem is that the mediawiki api is having issues with the json
> module that is default in python. For it to work I had to make some
> modifications in python on the lava server and I don't know if that's
> something that is feasible on the public autobuilder.

Our wiki returns JSON with a UTF-8 BOM, the json module will load that so long as it is taught that the text is encoded with 'utf-8-sig'.

When I was working on the buildlogger (which writes wiki content) I used Python requests and so long as I made sure the response object had the correct encoding set everything works as expected.

See http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder/tree/bin/buildlogger#n78
Comment 3 Joshua Lock 2016-10-27 15:12:27 UTC
This issue is obsoleted by our work on a test reporting tool