koji: allow to exclude arches
ClosedPublic

Authored by kparal on May 20 2016, 3:03 PM.

Details

Summary

You can now exclude arches in koji_directive or koji_utils. This is
useful for task-abicheck, which doesn't need to download noarch RPMs.

This also modified arch_utils to include a mapping from base arches to
binary arches, and improved behavior in koji_utils when the user
requests only base arches to be downloaded - we now correctly convert it
to concrete binary arches, because that's what Koji requires as input.

As a minor point, typo in armv7hl has been fixed.

Test Plan

unit tests adjusted, tested manually with modified task-abicheck

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.
kparal retitled this revision from to koji: allow to exclude arches.May 20 2016, 3:03 PM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added a reviewer: libtaskotron.
jskladan accepted this revision.May 20 2016, 3:18 PM
jskladan added a reviewer: jskladan.
jskladan added a subscriber: jskladan.
jskladan added inline comments.
libtaskotron/directives/koji_directive.py
166–172

I guess the self. for these variables (plus self.target_dir) is for testing purposes, as it really does not make much sense otherwise. Or is there any other reason?

This revision is now accepted and ready to land.May 20 2016, 3:18 PM
tflink accepted this revision.May 20 2016, 3:53 PM
tflink added a reviewer: tflink.
kparal added inline comments.May 24 2016, 11:45 AM
libtaskotron/directives/koji_directive.py
166–172

I don't see it being used in testing. I think originally this was split into several methods and that's why all the variables were saved as class attributes. Is that a problem? I think it doesn't really matter at all.

jskladan added inline comments.May 24 2016, 11:55 AM
libtaskotron/directives/koji_directive.py
166–172

If it does not matter, then please remove the self. from those variables. Creating instance attributes at "random" places (without a serious reason) is one of the no-nos in Python. Thx

kparal added inline comments.May 24 2016, 12:31 PM
libtaskotron/directives/koji_directive.py
166–172

I'll make it a follow-up patch. Do you have any article explaining this in more detail?

This revision was automatically updated to reflect the committed changes.