logjuicer / logjuicer

LogJuicer extracts anomalies from log
https://logjuicer.github.io
Apache License 2.0
17 stars 5 forks source link

Add support for koji build url #93

Open TristanCacqueray opened 9 months ago

TristanCacqueray commented 9 months ago

The goal of this task is to enable baseline discovery for koji url. When given such target: https://kojipkgs.fedoraproject.org//work/tasks/9471/112959471/build.log , LogJuicer should try to find previous success build and perform the analysis seamlessly.

TristanCacqueray commented 9 months ago

Trying the API doesn't seem to work as expected. Here is a build result: https://koji.fedoraproject.org/koji/taskinfo?taskID=112979475

Getting the build id:

$ curl -X POST https://koji.fedoraproject.org/kojihub -d "<?xml version='1.0'?><methodCall><methodName>findBuildID</methodName><param><value><int>112979475</int></value></param></methodCall>" 

<?xml version='1.0'?><methodResponse><params><param>
  <value><int>112979475</int></value>
</param></params></methodResponse>

But, getting the build logs:

$ curl -X POST https://koji.fedoraproject.org/kojihub -d "<?xml version='1.0'?><methodCall><methodName>getBuildLogs</methodName><param><value><int>112979475</int></value></param></methodCall>" 

<?xml version='1.0'?><methodResponse><fault><value><struct><member>
  <name>faultCode</name>
  <value><int>1000</int></value>
</member><member>
  <name>faultString</name>
  <value><string>No such build: 112979475</string></value>
</member></struct></value></fault></methodResponse>
TristanCacqueray commented 9 months ago

Issues has been reported upstream: https://pagure.io/koji/issue/4007