#712 RFE: Provide more info through getTaskInfo
Closed: Invalid Opened by skisela.

I am working on a tool that automatizes usage of koji. It takes advantage of session.getTaskInfo info provided after the task has completed.
Would it be possible to add return code of the (failed)build or the message providing more info about the error such as the GUI provides?

Eg. BuildError: error building package (arch noarch), mock exited with status 30; see root.log for more information

Maybe the same thing could be achieved by adding the information to the getBuild returned dictionary.


Would getTaskResult call helps in your case?

@skisela Is above replying helpful for you?

Here is a full example how to fetch result in same way web ui does. If it is not sufficient, feel free to reach me on IRC.

import koji
c = koji.ClientSession('https://koji.fedoraproject.org/kojihub')
try:
    x = c.getTaskResult(23827234)
except Exception as result:
    if hasattr(result, 'faultString'):
        s = result.faultString.strip()
    else:
        s = "%s: %s" % (result.__class__.__name__, str(result))
    print(s)

Closing issue for now as 'invalid' as it needs no code change.

Metadata Update from @tkopecek:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/712

Please continue any further discussion there.

Metadata