Use supported arches when downloading build logs
ClosedPublic

Authored by kparal on Jan 4 2017, 3:31 PM.

Details

Summary

Some of the rpmgrill runs (e.g. [1]) started to fail with

'build.log.aarch64' -> 'unpacked/aarch64/build.log'
mv: cannot move 'build.log.aarch64' to 'unpacked/aarch64/build.log': No such file or directory

Turned out we forgot to change the method that downloads koji build logs to work with supported_archs. This patch fixes that.

[1] http://taskotron-dev.fedoraproject.org/taskmaster/builders/x86_64/builds/280195

Test Plan

runtask -i otter-browser-0.9.12-0.1.beta12git90e17b8.fc26 -t koji_build -a x86_64 -j x86_64/280195 --uuid 7cd178c8-d18e-11e6-85b9-525400cb0b45 task-rpmgrill/runtask.yml

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mkrizek retitled this revision from to Use supported arches when downloading build logs.Jan 4 2017, 3:31 PM
mkrizek updated this object.
mkrizek edited the test plan for this revision. (Show Details)
mkrizek added a reviewer: libtaskotron.
mkrizek edited the test plan for this revision. (Show Details)Jan 5 2017, 8:50 AM
mkrizek edited the test plan for this revision. (Show Details)Jan 5 2017, 2:19 PM
tflink added a comment.Jan 6 2017, 1:33 AM

The code looks good to me but I'd like to see some unit tests to cover the changes

kparal added a comment.Jan 6 2017, 8:08 AM

I'll provide a slightly tweak version, Martin, if you don't mind. I'll also cover the unit tests changes. I've worked on that code recently so I still remember it fairly well.

kparal commandeered this revision.Jan 6 2017, 4:32 PM
kparal edited reviewers, added: mkrizek; removed: kparal.
kparal updated this revision to Diff 2739.Jan 6 2017, 4:35 PM
  • make _compute_arches static, redo unit tests

Extracting the arch code into a separate method made the unit tests so much easier. Great job, Martin. What about this? I renamed it a little, made it static (because it does not need self), moved a bunch of unit tests and simplified them a lot. I don't think new unit tests are needed, since we weren't using a shared method and now we do, there's no real change in functionality in the affected methods.

mkrizek accepted this revision.Jan 6 2017, 6:25 PM
This revision is now accepted and ready to land.Jan 6 2017, 6:25 PM
tflink accepted this revision.Jan 10 2017, 5:59 AM
tflink added a reviewer: tflink.
Closed by commit rLTRN4c71982cd28a: koji_utils: use supported arches when downloading build logs (authored by Martin Krizek <mkrizek@redhat.com>, committed by Kamil Páral <kparal@redhat.com>). · Explain WhyJan 11 2017, 5:32 PM
This revision was automatically updated to reflect the committed changes.