config: add supported_arches
ClosedPublic

Authored by kparal on Oct 26 2016, 2:54 PM.

Details

Summary

This allows supported_arches to be configured, which should be used by
our directives (like koji) to decide which architectures to act upon
(e.g. which binary RPMs to download). This option defaults to primary
Fedora architectures.

Koji calls had a special parameter arches=['all'] which used to
download all available RPMs. It now downloads all available *supported*
RPMs (per config.supported_arches). This allows dynamic configuration
on a server to handle only specific architectures (or extend handling
beyond just primary ones). Tasks can still download "non-supported"
architectures if they list them explictly.

This patch was triggered by redefining how secondary (now alternate)
architectures are handled in Fedora. All alternate arches will now be
built and served from the primary Koji instance, thus the need to adjust
this in libtaskotron. Read more at:

Test Plan

tried changing supported_arches and looked whether task-rpmlint downloads the correct RPMs

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 config: add supported_arches.Oct 26 2016, 2:54 PM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added a reviewer: libtaskotron.
mkrizek accepted this revision.Oct 27 2016, 10:42 AM
mkrizek added a reviewer: mkrizek.
mkrizek added a subscriber: mkrizek.

LGTM

This revision is now accepted and ready to land.Oct 27 2016, 10:42 AM
kparal updated this revision to Diff 2653.Oct 27 2016, 11:52 AM

rebase, fix a unit test

jskladan accepted this revision.Oct 31 2016, 8:52 AM
jskladan added a reviewer: jskladan.
This revision was automatically updated to reflect the committed changes.