Show HTML artifacts inline as iframes
Tests can now attach custom artifacts via tmt 1.18's new "custom results.yaml" feature [1]. Common cases are a specialized viewer for this kind of test, or things like a code coverage report. These are useful to display inline, so render them as iframe.
If there are HTML artifacts, don't render any other test logs inline, assuming that the more specific viewer will take care of that. That reduces distraction/clutter and increases screen space.
The iframe height is a bit difficult: When it is on a different origin, we cannot even inspect it; and even if we can, the size changes dynamically, and it's hard to follow events from an iframe. So just pin it at 80% of our own page height, which is a good enough initial viewer. For more viewing space, users can always click the link to get it on a full page.
[1] https://tmt.readthedocs.io/en/latest/spec/tests.html#result
There are currently no TMT tests which have any additional/custom artifacts (or HTML ones). These are only supported since last Friday's TF release with TMT 1.19. But I'd like to use this feature to support custom viewers for rpminspect and other tests in a generic way. Note that this first requires some reworking rpminspect-runner, but it would be nice for this feature to be ready once that lands.
You can see this change against a custom Jenkins run against the above rpminspect-runner PR here: https://piware.de/tmp/results.html?url=https://artifacts.dev.testing-farm.io/8afa91d6-64e0-475f-85b9-2eb689c068d0/
Together with some further work (MR !29 (merged) and MR !27 (merged)) it will look like this: https://piware.de/tmp/results-rearrange.html?url=https://artifacts.dev.testing-farm.io/8afa91d6-64e0-475f-85b9-2eb689c068d0/#artifacts-localhost:x86_64:/rpminspect
@msrb FYI