Commit Graph

42 Commits

Author SHA1 Message Date
Jan Kaluza
83628ec74f Add 'requires' of 'build-required' modules to buildroot when building module. 2017-09-08 09:25:44 +02:00
Jan Kaluza
4f4a6c92b0 Use PDC ordering to get the latest module. 2017-09-07 09:16:19 +02:00
Jan Kaluza
aac4227eb8 Add 'mbs-build local [[--add-local-build n:s:v], ...]' to use local builds as dependency. 2017-08-17 10:00:19 +02:00
Filip Valder
7ef2975984 PEP8 fixes 2017-07-17 18:29:10 +02:00
Jan Kaluza
4b16cf9a64 Fix various bugs in 'mbs-build local' 2017-06-07 13:16:26 +02:00
Jan Kaluza
4c5732957c include %module_name, %module_stream and %module_version in the module-build-macros and fix sending active=True in pdc.py 2017-03-31 15:18:53 +02:00
Jan Kaluza
f52249decd Return only the direct build-requires of a module in get_module_build_dependencies and remove module_depsolving_wrapper, because it is not needed anymore. 2017-03-23 09:54:35 +01:00
Jan Kaluza
1487fd01f2 Remove is_waiting_for_repo_regen and use buildroot_ready instead. Do not get buildroot dependencies from the buildrequires recursively. Do not validate Koji tags to inherit. 2017-03-22 17:29:05 +01:00
Jan Kaluza
a9fdf08c6f Do not fetch profiles in resolve_profiles recursively. When we are building a module, we just need profiles from build-requires of this particular module, but not all the modules downstream. 2017-03-22 09:29:08 +01:00
Ralph Bean
40e3f75735 Merge #431 [Waits on upgrade of PDC and pdc-updater] Query only for active deps in PDC. 2017-03-16 17:05:51 +00:00
Ralph Bean
11c915ca3f Query for only "active" deps in PDC.
See #407.
2017-03-14 20:11:01 -04:00
Ralph Bean
92d29d727a Style. 2017-03-14 13:13:10 -04:00
Ralph Bean
141ffa8a17 Delete get_module_runtime_dependencies
It isn't really in use anywhere.

Fixes #378.
2017-03-14 12:58:12 -04:00
Ralph Bean
ae8d453da3 Use mmd.xmd for exact pinning of dep tags. 2017-03-02 11:59:46 -05:00
Ralph Bean
8d2b7729bd Restore the original functionality, even if it is weird. 2017-03-02 11:23:04 -05:00
Ralph Bean
724599fb77 Fix the depsolving wrapper.
It was try to convert koji tags back to modules locally, which caused
errors with the new bootstrap tag.
2017-03-02 11:16:43 -05:00
Matt Prahl
385045d778 Reuse components from previous module builds 2017-02-21 14:22:30 -05:00
Matt Prahl
a5cc4eb280 Add a module's commit hash, scmurl, and the buildrequires' commit hashes, stream, and version in the modulemd 2017-02-21 09:53:05 -05:00
Matt Prahl
08444ced95 Add additional error checking to get_module_modulemd 2017-02-21 09:32:10 -05:00
Matt Prahl
3156921a02 Support new nomenclature on get_module function when passing in a modulemd 2017-02-21 09:32:09 -05:00
Ralph Bean
bebf50f78c Haste makes waste. 2017-02-16 10:41:40 -05:00
Ralph Bean
2819b65204 Remove unused import. 2017-02-16 10:30:08 -05:00
Ralph Bean
b37ff40758 Handle still more variations in the pdcclient api. 2017-02-16 10:30:02 -05:00
Ralph Bean
67e3947a9b Handle changing PDCClient API.
I hit this in staging.  Some versions of the pdc-client library have a
different signature for PDCClient.  We need to specify these as keyword
arguments so we don't get spooky failures with accidental values.
2017-02-15 19:42:36 -05:00
Jan Kaluza
ca754903ac Fail in resolve_profiles in case dependency cannot be found in PDC 2017-01-11 10:30:28 +01:00
Jan Kaluza
dda47acab7 Fix #276 - Use PDC to resolve buildroot components instead of MBS database 2017-01-10 14:29:54 +01:00
Jan Kaluza
04899d7bc7 Choose the module with highest release number from PDC results when variant_release is not defined. 2016-12-09 12:54:10 +01:00
Jan Kaluza
dd3eb61b53 Fix #223, #224 - Use generated Mock config, define local RPM repository there and make it available in Mock chroot after batch is built. 2016-11-25 12:15:32 +01:00
Matt Prahl
3073fc2859 Merge #190 New-style PDC deps. 2016-11-15 15:37:03 +00:00
Ralph Bean
7a39a8f160 New-style PDC deps.
This is only one half of the modulemd-1.0 changes needed around PDC.

This was done to get module handling their dependencies when they are
defined in terms of streams instead of NVRs.

In PDC we used to store the dep as one whole string, i.e.::

    base-runtime-0.25-11

Now we're going to store them with some more structure, since we can't
assume monotonically increasing version values::

    dependency: base-runtime
    stream: master

Pull-requests to PDC and PDC-updater are forthcoming.
2016-11-14 19:34:39 -05:00
Ralph Bean
f9b2821f7f Some better logging around PDC stuff.
I spent a while debugging these interactions tonight and the log
statements definitely helped to figure it out.
2016-11-14 19:33:25 -05:00
Jakub Kadlčík
8c65718daa Drop get_module_repo function since it is in GenericBuilder 2016-11-10 13:27:46 -05:00
Jan Kaluza
7f898307f5 Remove 'module-' prefix from koji_tag in module_depsolving_wrapper 2016-10-27 13:47:13 +02:00
Ralph Bean
d9722e9ed6 Move CoprClient imports inside the functions where they are referenced. 2016-10-25 15:15:16 -04:00
Ralph Bean
77befa7dad Make CoprClient import optional.
Also, fix one last reference to the old rida module name that I noticed while I was in there.
2016-10-25 15:15:16 -04:00
Courtney Pacheco
4127a8c3c3 Adding test to view_test.py and fixing prior commit for 'pdc.py' 2016-10-25 04:44:45 -04:00
Courtney Pacheco
29733e02e5 Modifying test requirements & updating pdc.py to use the new 'module_build_service' name in place of 'rida' 2016-10-25 03:43:20 -04:00
Jakub Kadlčík
900b9dd88d Use rida.conf for specifying path to copr config 2016-10-24 20:46:50 +02:00
Jakub Kadlčík
64ae340122 Use python-copr to get DNF repo URL 2016-10-24 20:46:49 +02:00
Jakub Kadlčík
f28d69dc83 Use Copr API to get DNF repo URL 2016-10-24 20:46:49 +02:00
Jakub Kadlčík
b70ee8ea1f Add get_module_repo function with only Copr implementation 2016-10-24 20:46:49 +02:00
Matt Prahl
b4082dc551 Rename module from rida to module_build_service
Rename routes from /rida/1/module-builds/ to /module-build-service/1/module-builds/
2016-10-24 10:30:23 -04:00