resultsdb_directive: change default log link to artifactsdir
ClosedPublic

Authored by kparal on Jun 15 2017, 4:06 PM.

Details

Summary

This changes the default log link visible in resultsdb from task stdio
output to artifactsdir directory (which contains stdio, debug log and
others). This only applies if the task hasn't set artifact in
resultyaml (that overrides the default).

The reasoning is that taskotron stdio has grown larger and larger and
nowadays it's very hard to find relevant task output inside it anyways.
Tasks really need to create specialized logs at least in case of failure
(and all existing ones do). The new default is much better for
a) people debugging a problem - because they have clear access to all
available files
b) tasks with multiple log files which don't want to set any of them as
default (because it would make accessing the other ones much harder) -
with the new solution they see all artifacts in a directory view

Test Plan

I tested this with local resultsdb instance and the generated URLs seem correct. However, further verification from reviewers is very welcome.

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal created this revision.Jun 15 2017, 4:06 PM

As an example, say rpmdeplint doesn't set custom artifact in resultyaml (which it does). The default link would go from:
https://taskotron.fedoraproject.org/artifacts/all/43567c16-54c3-11e7-b089-5254008e42f6/task_output/taskotron.log.gz
to:
https://taskotron.fedoraproject.org/artifacts/all/43567c16-54c3-11e7-b089-5254008e42f6/
(Please note that taskotron logs should be in that root dir, instead of being in task_output, it's a bug).

Ping @tflink @mkrizek @jskladan.

mkrizek accepted this revision.Jun 19 2017, 12:04 PM
This revision is now accepted and ready to land.Jun 19 2017, 12:04 PM
jskladan accepted this revision.Jun 19 2017, 12:23 PM
This revision was automatically updated to reflect the committed changes.