| Summary: | add wiki reporting to public AB | ||
|---|---|---|---|
| Product: | [Infrastructure] AutoBuilder | Reporter: | Alexandru Georgescu <alexandru.c.georgescu> |
| Component: | autobuilder | Assignee: | Unassigned <unassigned> |
| Status: | RESOLVED OBSOLETE | QA Contact: | Alexandru Georgescu <alexandru.c.georgescu> |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | alexandru.c.georgescu, elizabeth.flanagan, infras.ab.watcher, Infras.watcher, joshuagloe |
| Version: | 1.9 | ||
| Target Milestone: | 2.3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Alexandru Georgescu
2015-08-21 09:02:58 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. (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 This issue is obsoleted by our work on a test reporting tool |