#417 Integrate rpminspect's viewer.html in Fedora Zuul CI
Opened by fbo. Modified

In order to integrate the viewer.html 1, a new role needs to be created in zuul-distro-jobs 2 similar to rpminspect-html-report or this same role must be adjusted to support the additional viewer.

The role should:
- Fetch the last version of viewer.html from github
- Copy the viewer.html file in the same directory than result.json
- Return the zuul artifact link to the viewer.html


Metadata Update from @fbo:
- Issue tagged with: Zuul CI

@fbo please let me know if you have questions/difficulty with deploying this. There was not really much to it on the Fedora side, it's more or less just copying results.html as an artifact next to the log.

FTR: copying the log as artifact for every test run instead of deploying it centrally and letting it point to a result.json URL was a design decision. It's small, and this allows results.html or results.json to evolve without having to worry about backwards compatibility. It also avoids Content-Security-Policy issues when trying to show an artifact from a differerent domain name.

That said, the format hasn't changed in months, so if you prefer to not copy it around so often, that also works.

Thanks @martinpitt for the inputs, I'll let you know when I have a change ready to review for adding the viewer. However I cannot give you an estimate about when I'll be able to implement this.

Also, if someone is interested to work on this I'll be happy to provide guidance.

Metadata