#45 taskotron email error reporting: report the correct step when the task fails
Closed: Fixed Opened by kparal.

I received this email error report:

Build status: FAILURE
Buildslave for this Build:  taskotron-client28
Complete logs for all build steps:  http://taskotron-dev.fedoraproject.org/taskmaster/builders/x86_64/builds/6245
Build Reason:   scheduler
Detailed log of last build step: http://taskotron-dev.fedoraproject.org/taskmaster/builders/x86_64/builds/6245/steps/runtask/logs/stdio
Last 80 lines of "runtask.stdio"
[libtaskotron:runner.py:207] 2014-08-16 01:45:04 DEBUG   Parsed arguments: Namespace(arch=['x86_64'], debug=False, item='cab-0.1.9-12.fc21', jobid='x86_64/6245', task=['rpmlint.yml'], type='koji_build')
[libtaskotron:config.py:93] 2014-08-16 01:45:04 DEBUG   Using config file: /etc/taskotron/taskotron.yaml
[libtaskotron:config.py:64] 2014-08-16 01:45:04 DEBUG   Using config profile: production
[libtaskotron:koji_directive.py:133] 2014-08-16 01:45:04 INFO    Getting RPMs for koji build cab-0.1.9-12.fc21 (['x86_64', 'noarch']) and downloading to /var/tmp/taskotron/task-_xG201
[libtaskotron:koji_utils.py:116] 2014-08-16 01:45:05 INFO    Querying Koji for a list of RPMS for: cab-0.1.9-12.fc21
[libtaskotron:koji_utils.py:166] 2014-08-16 01:45:05 INFO    Fetching 1 RPMs for: cab-0.1.9-12.fc21
[libtaskotron:python_directive.py:154] 2014-08-16 01:45:05 INFO    Executing Python: run_rpmlint.run() with args {'workdir': '/var/tmp/taskotron/task-_xG201'}
[libtaskotron:runner.py:226] 2014-08-16 01:45:06 INFO    Check execution finished. Showing stored variables:
[libtaskotron:runner.py:228] 2014-08-16 01:45:06 INFO    ${rpmlint_output}:
TAP version 13
1..1
ok - $CHECKNAME for Koji build cab-0.1.9-12.fc21.x86_64.rpm
  ---
  details:
    output: |
      cab.x86_64: W: spelling-error %description -l en_US ghc -> chg
      cab.x86_64: W: no-manual-page-for-binary cab
      1 packages and 0 specfiles checked; 0 errors, 2 warnings.
  item: cab-0.1.9-12.fc21.x86_64.rpm
  outcome: PASSED
  summary: RPMLINT PASSED for cab-0.1.9-12.fc21.x86_64.rpm
  type: koji_build
  ...
-The Buildbot

As you can see, there is nothing wrong in it. But the build really failed, just in a different step:
http://taskotron-dev.fedoraproject.org/taskmaster/builders/x86_64/builds/6245/

Please adjust the email report to tell us in which particular step the build failed, instead of just assuming runtask step. If it's possible. Thanks.


The email should now contain logs of each task that failed. Closing, we can reopen if we're not satisfied with the results.

Metadata Update from @kparal:
- Issue tagged with: infrastructure

Metadata