#3887 Is it possible to use getTaskInfo on wrapperRPM tasks?
Closed: Invalid by dcantrell. Opened by dcantrell.

I use getTaskInfo via XML-RPC in rpminspect when users pass a build task ID (this is useful for scratch builds where users want to run rpminspect on those RPMs). But I recently noticed that it does not work for wrapperRPM tasks. It only returns information for 'build' tasks.

The request I have is to be able to take wrapperRPM task IDs in Koji and have rpminspect figure out the associated RPMs and download them to run the various checks on. For example, this task: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=54486121

Maybe I am overlooking something, but I don't know what other call I could use besides getTaskInfo.

Thanks.


$ brew list-api |grep -A7 getTaskInfo
getTaskInfo(task_id, request=False, strict=False)
  description: Get information about a task
        :param int task_id: Task id
        :param bool request: if True, return also task's request
        :param bool strict: raise exception, if task is not found
        :returns dict: task info

You can use getTaskInfo with any task id, but only with task ids. It does not accept build ids and will interpret any integer as a task id.

Metadata Update from @mikem:
- Custom field Size adjusted to None

calling getTaskInfo with 54486121 works for me and pulls up the expected data. This is how the cli and the web ui fetch task info.

If you have a build id, you can call getBuild with that id and if the build has an associated task, it will be in the return. E.g.

$ brew call getBuild 2629994 |grep task_id
 'task_id': 54486121,

I think I see what I did on my end. Entirely my mistake. Thanks for the clarification too.

Metadata Update from @dcantrell:
- 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/3887

Please continue any further discussion there.

Metadata