mprahl
599c881714
Add the ability to query by the base modules a module build buildrequires
...
Future use cases will require the ability to find compatible module builds
to buildrequire based on the base module the module used to build. This
commit adds an association table that will contain module build IDs
and the base module they buildrequire.
Addresses FACTORY-3353
2018-10-17 07:47:31 -04:00
Valerij Maljulin
7f60db545a
renaming koji_arches to arches
...
Signed-off-by: Valerij Maljulin <vmaljuli@redhat.com >
2018-10-15 15:29:50 +02:00
Chenxiong Qi
520a979d3d
Add singleton system_resolver
...
system_resolver is created based on loaded configuration, which could
avoid calls like `GenericResolver.create(conf)` repeatedly in the code.
However, if some cases need to create a specific resolver explicitly,
`GenericResolver.create` could be called with addition argument, for
example db or mbs is passed to argument backend in tests.
Signed-off-by: Chenxiong Qi <cqi@redhat.com >
2018-09-28 11:00:52 +08:00
Jan Kaluza
56fe201c33
Fill in the 'filterer_rpms' in backend to not access Koji from frontend.
2018-08-21 07:58:52 +02:00
Jan Kaluza
f0b35be067
Add BASE_MODULE_KOJI_ARCHES to override default Koji arches.
2018-08-14 13:18:56 +02:00
mprahl
d54422adeb
Don't filter RPMs of reused components from a module that depends on itself
...
If a module has filters set and it buildrequires itself, issues occur
during component reuse. In that event, the filtered RPMs from the
previous module build will not be available in the buildroot because the NVRs
in the filters will match the RPMs from the reused component.
Co-authored-by: Jan Kaluza <jkaluza@redhat.com >
2018-08-13 11:13:40 -04:00
Jan Kaluza
6d2e4bbffa
Fix filters generation
2018-08-09 15:16:13 +02:00
Martin Curlej
dfe7660519
Removed PDC dependency from MBS and replaced it with MBS prod instance.
...
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
Removed pdc from comments.
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
Adding missing files.
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
Updated PR according to review.
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
Local modules builds now
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
Removed copr from config
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
Fixed bugs
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
2018-07-04 10:13:18 +02:00
Mikolaj Izdebski
0d29633da9
Make repo_include_all setting configurable in xmd
...
Previously MBS configured all Koji build tags with
repo_include_all=True extra option. But for some modules it was
desired to be able to have tags with repo_include_all=False.
Fixes #957
2018-06-29 17:06:58 +02:00
mprahl
74e4c99984
Support the modulemd buildopts.rpms.whitelist option
2018-06-27 07:05:06 -04:00
Owen W. Taylor
ddee4f840b
MockModuleBuilder: add artifacts to artifacts not components
...
The built RPM artifacts were being added to the components list (the
RPMs to build) instead of the proper artifacts section. Also, they
need to be in NEVRA format, so use 'rpm -qf' to query the epochs from
the built artifacts.
2018-05-30 15:47:14 -04:00
mprahl
15a7e322a6
Fallback to the old Koji tag format for the target when the tag name is too long
2018-05-08 09:11:22 -04:00
Jan Kaluza
c1c95fc963
Allow defining list of packages which are blocked in the -build tag until they are built in a module.
2018-04-13 12:57:27 +02:00
Jan Kaluza
5d91c97386
Allow defining list of packages which are blocked in the -build tag until they are built in a module.
2018-04-12 09:45:57 +02:00
mprahl
caadb13f0e
Remove the COPR tests
...
The COPR tests were causing failures and since most of them were
skipped and haven't been updated in a long time, let's just delete
them.
2018-04-03 09:58:57 -04:00
Jan Kaluza
e5e9a24fce
Allow adding bool to XMD. Fix flake8 issues.
2018-04-03 09:58:57 -04:00
mprahl
eb0b2e1c38
Add the database resolver plugin
2018-04-03 09:58:57 -04:00
mprahl
f0852d9009
Port to libmodulemd and support v2 modulemd without module stream expansion
2018-04-03 09:58:57 -04:00
Yash Nanavati
ed25afd9ec
Code changes for Python 3 support
2018-03-04 03:22:38 -05:00
Yash Nanavati
1d3fd2af64
Minor changes towards Python 3 Compatability
2018-02-28 09:01:51 -05:00
mprahl
f5530d9b16
Fix flake8 errors made by jkaluza
2018-02-09 09:12:00 -05:00
Jan Kaluza
6a5d7267fd
Save another 20s in tests.
2018-02-09 11:46:12 +01:00
mprahl
e91d09f7ca
Change the format of the unit tests to pytest
2018-01-31 16:34:21 -05:00
mprahl
df594da8a5
Remove the Koji proxyuser functionality
2018-01-30 11:49:03 -05:00
Filip Valder
5b4a8f6240
New: Resolver API for pluggable resolvers
2018-01-29 15:54:19 +01:00
Ralph Bean
01c8295269
Add an incrementing prefix to the dist_hash.
...
For #823 .
2018-01-17 16:54:02 -05:00
mprahl
a67b53f5c3
Add a "context" field on component and module releases in Koji for uniqueness for when Module Stream Expansion is implemented
2018-01-16 10:36:09 -05:00
mprahl
c0ec0f82c1
Remove urlgrabber as a dependency
2018-01-03 10:21:37 -05:00
mprahl
a54045e518
Don't run KojiModuleBuilder.buildroot_connect in the stale module builds poller
2017-12-11 13:27:30 -05:00
Jan Kaluza
7de120c17b
Get the weight of Koji tasks and use it to sort the components in a batch instead of builds time.
2017-11-28 10:52:17 -05:00
mprahl
e4be54a838
Skip COPR tests that now fail since PR #765
2017-11-28 09:56:51 -05:00
mprahl
30ef85af01
Fix "instant complete" builds and reusing all components
2017-11-27 16:20:28 -05:00
Ralph Bean
8431d2698b
Explicit imports of builders in the test suite.
2017-11-10 16:03:14 -05:00
mprahl
a8421568f9
Fix Flake8 errors
2017-11-08 08:45:58 -05:00
Martin Curlej
1eb3c653dd
Changed the filters so they execute when everything is build
...
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
2017-10-31 16:04:31 -04:00
Jan Kaluza
b56f56a486
Use dogpile.cache to cache the default_buildroot_groups result
2017-10-26 14:03:23 +02:00
Martin Curlej
60b3d97c97
flake8 cleanup
...
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
removed some noqa tags
2017-10-25 12:13:59 +02:00
Jakub Kadlcik
8db83b11ab
Mock also _create_chroot_safe so nothing is really created
2017-09-09 13:51:07 +02:00
Jakub Kadlcik
d39ebf5ccb
Mock CoprClient.create_project method
...
So the python-copr-1.79-1 is not required for the chroots= parameter
2017-09-09 13:45:52 +02:00
Jakub Kadlcik
7353d4ce0b
Copr uses latest-Fedora-Modular-26 repo
2017-09-09 13:43:45 +02:00
Jakub Kadlcik
58af071602
Not depend on values order
2017-09-09 13:43:42 +02:00
Jakub Kadlcik
de26b5614e
Dont require copr config file
2017-09-09 10:07:42 +02:00
Jakub Kadlcik
f492e096b6
Fix mock path to copr module builder
2017-09-09 10:07:42 +02:00
Jakub Kadlcik
06e2d2b688
Move copr tests to proper directory
2017-09-09 10:07:42 +02:00
Jan Kaluza
ac92a389d6
Fix module dist_tag separator in tests
2017-08-31 10:46:42 -04:00
Filip Valder
7ef2975984
PEP8 fixes
2017-07-17 18:29:10 +02:00
Ralph Bean
bb56e4f057
Refactor get_build_by_artifact so that it always returns the same kind of dict.
2017-07-14 09:21:52 -04:00
Ralph Bean
d9b1576353
Tests for _get_build_by_artifact.
...
Tests for https://pagure.io/fm-orchestrator/pull-request/583
2017-07-13 14:09:37 -04:00
Ralph Bean
4c60030d31
Use a real module dist_tag here instead of module_x (for believability!)
2017-07-13 14:01:52 -04:00
Ralph Bean
ed0db4ddea
Indentation.
2017-07-13 14:01:27 -04:00