fedora-copr / log-detective-website

Data collection page for Log Detective AI
11 stars 8 forks source link

Fetching koji spec file and logs for task_id is too slow #20

Closed nikromen closed 7 months ago

nikromen commented 10 months ago

koji api docs doesn't provide a way how to fetch spec file from koji. There is also no documentation how to fetch logs with task_id (it is documented for build_id).

The issue is that spec file and logs for task_id are obtained via koji cli, which is too slow compared to directly use of the koji API.

The task is to replace koji cli parts in code with koji client. In other words: look directly to koji API source code and find a way how to obtain spec files for both task_id and build_id + how to obtain logs for task_id