#40 Make task output in the runner more readable
Closed: Fixed Opened by kparal.

This is how the task output looks now:

$ runtask -e xchat-2.8.8-21.fc20 -a x86_64 task-rpmlint/rpmlint.yml
[libtaskotron:logger.py:61] 2014-03-12 14:32:06 DEBUG   doing stream logging
[libtaskotron:koji_directive.py:49] 2014-03-12 14:32:07 INFO    getting koji builds for xchat-2.8.8-21.fc20 ([u'x86_64']) and downloading to /var/tmp/tmpNl7zsh
[libtaskotron:koji_utils.py:27] 2014-03-12 14:32:07 INFO    Querying Koji for a list of RPMS for: xchat-2.8.8-21.fc20
[libtaskotron:koji_utils.py:70] 2014-03-12 14:32:08 INFO    Fetching RPMs for: xchat-2.8.8-21.fc20
[libtaskotron:koji_utils.py:72] 2014-03-12 14:32:08 INFO      fetching http://kojipkgs.fedoraproject.org/packages/xchat/2.8.8/21.fc20/x86_64/xchat-2.8.8-21.fc20.x86_64.rpm
[libtaskotron:file_utils.py:80] 2014-03-12 14:32:08 INFO    Downloading: http://kojipkgs.fedoraproject.org/packages/xchat/2.8.8/21.fc20/x86_64/xchat-2.8.8-21.fc20.x86_64.rpm
xchat-2.8.8-21.fc20.x86_64.rpm                                                                                                                                                              | 952 kB  00:00:02     
[libtaskotron:koji_utils.py:72] 2014-03-12 14:32:10 INFO      fetching http://kojipkgs.fedoraproject.org/packages/xchat/2.8.8/21.fc20/x86_64/xchat-tcl-2.8.8-21.fc20.x86_64.rpm
[libtaskotron:file_utils.py:80] 2014-03-12 14:32:10 INFO    Downloading: http://kojipkgs.fedoraproject.org/packages/xchat/2.8.8/21.fc20/x86_64/xchat-tcl-2.8.8-21.fc20.x86_64.rpm
xchat-tcl-2.8.8-21.fc20.x86_64.rpm                                                                                                                                                          |  48 kB  00:00:00     
[u'xchat-2.8.8-21.fc20.x86_64.rpm', u'xchat-tcl-2.8.8-21.fc20.x86_64.rpm']
[u'xchat-2.8.8-21.fc20.x86_64.rpm', u'xchat-tcl-2.8.8-21.fc20.x86_64.rpm']
[libtaskotron:runner.py:154] 2014-03-12 14:32:14 INFO    [u"ok - rpmlint: xchat-2.8.8-21.fc20.x86_64.rpm\t# rpmlint results for xchat-2.8.8-21.fc20.x86_64.rpm\n  ---\n  error:\n  - ''\n  output:\n  - 'xchat.x86_64: W: file-not-utf8 /usr/share/doc/xchat/ChangeLog'\n  - 'xchat.x86_64: W: non-conffile-in-etc /etc/gconf/schemas/apps_xchat_url_handler.schemas'\n  - 'xchat.x86_64: W: no-manual-page-for-binary xchat'\n  - 1 packages and 0 specfiles checked; 0 errors, 3 warnings.\n  - ''\n  ...", u"ok - rpmlint: xchat-tcl-2.8.8-21.fc20.x86_64.rpm\t# rpmlint results for xchat-tcl-2.8.8-21.fc20.x86_64.rpm\n  ---\n  error:\n  - ''\n  output:\n  - 'xchat-tcl.x86_64: W: no-documentation'\n  - 1 packages and 0 specfiles checked; 0 errors, 1 warnings.\n  - ''\n  ..."]
INFO:libtaskotron:[u"ok - rpmlint: xchat-2.8.8-21.fc20.x86_64.rpm\t# rpmlint results for xchat-2.8.8-21.fc20.x86_64.rpm\n  ---\n  error:\n  - ''\n  output:\n  - 'xchat.x86_64: W: file-not-utf8 /usr/share/doc/xchat/ChangeLog'\n  - 'xchat.x86_64: W: non-conffile-in-etc /etc/gconf/schemas/apps_xchat_url_handler.schemas'\n  - 'xchat.x86_64: W: no-manual-page-for-binary xchat'\n  - 1 packages and 0 specfiles checked; 0 errors, 3 warnings.\n  - ''\n  ...", u"ok - rpmlint: xchat-tcl-2.8.8-21.fc20.x86_64.rpm\t# rpmlint results for xchat-tcl-2.8.8-21.fc20.x86_64.rpm\n  ---\n  error:\n  - ''\n  output:\n  - 'xchat-tcl.x86_64: W: no-documentation'\n  - 1 packages and 0 specfiles checked; 0 errors, 1 warnings.\n  - ''\n  ..."]

And this is how it used to look like (roughly):

$ runtask -e xchat-2.8.8-21.fc20 -a x86_64 task-rpmlint/rpmlint.yml
[libtaskotron:logger.py:61] 2014-03-12 14:34:27 DEBUG   doing stream logging
[libtaskotron:koji_directive.py:49] 2014-03-12 14:34:27 INFO    getting koji builds for xchat-2.8.8-21.fc20 ([u'x86_64']) and downloading to /var/tmp/tmpXbyNFK
[libtaskotron:koji_utils.py:27] 2014-03-12 14:34:27 INFO    Querying Koji for a list of RPMS for: xchat-2.8.8-21.fc20
[libtaskotron:koji_utils.py:70] 2014-03-12 14:34:34 INFO    Fetching RPMs for: xchat-2.8.8-21.fc20
[libtaskotron:koji_utils.py:72] 2014-03-12 14:34:34 INFO      fetching http://kojipkgs.fedoraproject.org/packages/xchat/2.8.8/21.fc20/x86_64/xchat-2.8.8-21.fc20.x86_64.rpm
[libtaskotron:file_utils.py:80] 2014-03-12 14:34:34 INFO    Downloading: http://kojipkgs.fedoraproject.org/packages/xchat/2.8.8/21.fc20/x86_64/xchat-2.8.8-21.fc20.x86_64.rpm
xchat-2.8.8-21.fc20.x86_64.rpm                                                                                                                                                              | 952 kB  00:00:09     
[libtaskotron:koji_utils.py:72] 2014-03-12 14:34:45 INFO      fetching http://kojipkgs.fedoraproject.org/packages/xchat/2.8.8/21.fc20/x86_64/xchat-tcl-2.8.8-21.fc20.x86_64.rpm
[libtaskotron:file_utils.py:80] 2014-03-12 14:34:45 INFO    Downloading: http://kojipkgs.fedoraproject.org/packages/xchat/2.8.8/21.fc20/x86_64/xchat-tcl-2.8.8-21.fc20.x86_64.rpm
xchat-tcl-2.8.8-21.fc20.x86_64.rpm                                                                                                                                                          |  48 kB  00:00:00     
[u'xchat-2.8.8-21.fc20.x86_64.rpm', u'xchat-tcl-2.8.8-21.fc20.x86_64.rpm']
[u'xchat-2.8.8-21.fc20.x86_64.rpm', u'xchat-tcl-2.8.8-21.fc20.x86_64.rpm']
ok - rpmlint: xchat-2.8.8-21.fc20.x86_64.rpm    # rpmlint results for xchat-2.8.8-21.fc20.x86_64.rpm
  ---
  error:
  - ''
  output:
  - 'xchat.x86_64: W: file-not-utf8 /usr/share/doc/xchat/ChangeLog'
  - 'xchat.x86_64: W: non-conffile-in-etc /etc/gconf/schemas/apps_xchat_url_handler.schemas'
  - 'xchat.x86_64: W: no-manual-page-for-binary xchat'
  - 1 packages and 0 specfiles checked; 0 errors, 3 warnings.
  - ''
  ...
ok - rpmlint: xchat-tcl-2.8.8-21.fc20.x86_64.rpm    # rpmlint results for xchat-tcl-2.8.8-21.fc20.x86_64.rpm
  ---
  error:
  - ''
  output:
  - 'xchat-tcl.x86_64: W: no-documentation'
  - 1 packages and 0 specfiles checked; 0 errors, 1 warnings.
  - ''
  ...

Much more readable, isn't it?

There was some regression lately. Please fix it.


This ticket had assigned some Differential requests:
D104
D47
D29

Committed, closing.

Well i found out that D29 broke output elsewhere.

Command:
$ python runtask.py -e tigervnc-1.3.0-14.fc20 -a x86_64 ../task-examplebodhi/examplebodhi.yml
results in output like this:
s
u
m
m
a
r
y
:

F
A
I
L
E
D

b
y

r
a
n
d
o
m

c
h
a
n
c
e

t
y
p
e
:

b
o
d
h
i
_
u
p
d
a
t
e

.
.
.

So I'm reopening this task.

Lukas, this is a very high priority for me now. I know you have some patch prepared, we talked about the solution. Can you please update D47 ASAP? Thanks.

Resolved in D104, closing.

Metadata