All the details like source file, line number or full date are still
in taskotron.log. But on stream it's more pleasant to read a shorter
version, taking less space from the left side.
On stream, the full date is also visible in the Execution started and
Execution finished lines.
This was an idea we had with @mkrizek yesterday.
If we need to grep logs for important messages and the details need to
be there for this purpose, I assume we would grep taskotron.log anyway,
not stream. But maybe I'm wrong?
Before:
$ runtask -i htop-1.0.3-4.fc21 -t koji_build ../task-rpmlint/rpmlint.yml [libtaskotron:runner.py:241] 2015-04-21 15:21:47 INFO Execution started at: 2015-04-21 15:21:47 UTC [libtaskotron:runner.py:242] 2015-04-21 15:21:47 DEBUG Using libtaskotron 0.3.14 [libtaskotron:runner.py:247] 2015-04-21 15:21:47 DEBUG Parsed arguments: Namespace(arch=None, debug=False, item='htop-1.0.3-4.fc21', jobid='-1', override=[], task=['../task-rpmlint/rpmlint.yml'], type='koji_build', uuid='20150421_152147_045182') [libtaskotron:config.py:92] 2015-04-21 15:21:47 DEBUG Using config file: /etc/taskotron/taskotron.yaml [libtaskotron:config.py:63] 2015-04-21 15:21:47 DEBUG Using config profile: development [libtaskotron:runner.py:51] 2015-04-21 15:21:47 INFO Task artifacts will be saved in: /var/lib/taskotron/artifacts/20150421_152147_045182 [libtaskotron:koji_utils.py:139] 2015-04-21 15:21:47 INFO Querying Koji for a list of RPMS for: htop-1.0.3-4.fc21 [libtaskotron:koji_utils.py:202] 2015-04-21 15:21:48 INFO Fetching 4 RPMs for: htop-1.0.3-4.fc21 (into /var/tmp/taskotron/task-F69sxf) [libtaskotron:python_directive.py:154] 2015-04-21 15:21:50 INFO Executing Python: run_rpmlint.run() with args {'workdir': '/var/tmp/taskotron/task-F69sxf', 'koji_build': 'htop-1.0.3-4.fc21'} htop.armv7hl: E: incorrect-fsf-address /usr/share/doc/htop/COPYING htop.i686: E: incorrect-fsf-address /usr/share/doc/htop/COPYING htop.x86_64: E: incorrect-fsf-address /usr/share/doc/htop/COPYING 4 packages and 0 specfiles checked; 3 errors, 0 warnings. [libtaskotron:resultsdb_directive.py:183] 2015-04-21 15:21:54 INFO Reporting to ResultsDB is disabled. Once enabled, the following would get reported: not ok - rpmlint for Koji build htop-1.0.3-4.fc21 # FAIL --- item: htop-1.0.3-4.fc21 outcome: FAILED summary: rpmlint FAILED for htop-1.0.3-4.fc21 type: koji_build ... [libtaskotron:resultsdb_directive.py:184] 2015-04-21 15:21:54 INFO Hint: Enabling debug output allows you to see unstripped values during variable export. [libtaskotron:runner.py:267] 2015-04-21 15:21:54 INFO Execution finished at: 2015-04-21 15:21:54 UTC
After:
$ runtask -i htop-1.0.3-4.fc21 -t koji_build ../task-rpmlint/rpmlint.yml [libtaskotron] 15:22:07 INFO Execution started at: 2015-04-21 15:22:07 UTC [libtaskotron] 15:22:07 DEBUG Using libtaskotron 0.3.14 [libtaskotron] 15:22:07 DEBUG Parsed arguments: Namespace(arch=None, debug=False, item='htop-1.0.3-4.fc21', jobid='-1', override=[], task=['../task-rpmlint/rpmlint.yml'], type='koji_build', uuid='20150421_152207_511092') [libtaskotron] 15:22:07 DEBUG Using config file: /etc/taskotron/taskotron.yaml [libtaskotron] 15:22:07 DEBUG Using config profile: development [libtaskotron] 15:22:07 INFO Task artifacts will be saved in: /var/lib/taskotron/artifacts/20150421_152207_511092 [libtaskotron] 15:22:07 INFO Querying Koji for a list of RPMS for: htop-1.0.3-4.fc21 [libtaskotron] 15:22:08 INFO Fetching 4 RPMs for: htop-1.0.3-4.fc21 (into /var/tmp/taskotron/task-1cdcn3) [libtaskotron] 15:22:10 INFO Executing Python: run_rpmlint.run() with args {'workdir': '/var/tmp/taskotron/task-1cdcn3', 'koji_build': 'htop-1.0.3-4.fc21'} htop.armv7hl: E: incorrect-fsf-address /usr/share/doc/htop/COPYING htop.i686: E: incorrect-fsf-address /usr/share/doc/htop/COPYING htop.x86_64: E: incorrect-fsf-address /usr/share/doc/htop/COPYING 4 packages and 0 specfiles checked; 3 errors, 0 warnings. [libtaskotron] 15:22:14 INFO Reporting to ResultsDB is disabled. Once enabled, the following would get reported: not ok - rpmlint for Koji build htop-1.0.3-4.fc21 # FAIL --- item: htop-1.0.3-4.fc21 outcome: FAILED summary: rpmlint FAILED for htop-1.0.3-4.fc21 type: koji_build ... [libtaskotron] 15:22:14 INFO Hint: Enabling debug output allows you to see unstripped values during variable export. [libtaskotron] 15:22:14 INFO Execution finished at: 2015-04-21 15:22:14 UTC
What do you think?