Nick Coghlan
d159350fff
Default to reverse ordering by ID in APIs
...
Adjusts the affected tests to assume the
exact current set of default test data.
These tests were also testing the exact
same query URL, so they've been consolidated
into a single test.
2017-10-31 09:15:08 -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
mprahl
f5de140521
Schedule components based on build time
2017-10-23 15:33:57 -04:00
mprahl
8e41f9f335
Try to reuse all components in the batch before starting it
2017-10-23 15:33:57 -04:00
mprahl
28470ec46c
Don't reassign the value of the modulemd when resuming a build
2017-10-16 14:45:04 -04:00
Jakub Kadlcik
e6a23cfd64
Record components through the backend after module submission
2017-10-16 14:45:04 -04:00
Jakub Kadlcik
7730f0a0ee
Allow to inject database session object
2017-10-16 14:45:04 -04:00
mprahl
27250263ea
Default verbose to on ordering by id in the module-builds API
2017-10-05 16:17:18 -04:00
Jan Kaluza
ff216e1ba9
Do not count reused components to concurrent component builds threshold
2017-09-19 16:10:07 +02:00
Jan Kaluza
83628ec74f
Add 'requires' of 'build-required' modules to buildroot when building module.
2017-09-08 09:25:44 +02:00
Igor Gnatenko
ee1176f444
utils: unbreak building packages when tests are skipped
...
Just replacing %check macro is ¤&%¤#%&¤%¤. I'm not going to
add any more words on it.
It breaks building many packages.
Fixes: 5391e7c9af
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org >
2017-09-03 12:22:11 +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
09b3f32dbb
Fix #619 : Support for module YAML file validation within a SCM repository
2017-08-07 13:10:53 +02:00
Filip Valder
7ef2975984
PEP8 fixes
2017-07-17 18:29:10 +02:00
Jan Kaluza
439767cbcf
Tag the component to final tag in case it is built, but not tagged.
2017-07-13 13:37:10 -04:00
Ralph Bean
af6be26f34
Add lots of logging to component-reuse logic.
...
We had a build today that did not re-use its components when we expected
it to. I looked at the logs, but didn't have any information to help
figure out why this happened.
These log statements should help for the next time.
2017-07-11 13:03:13 -04:00
Yashvardhan Nanavati
d79a9584c7
Find module build using attributes of a component build in koji
2017-07-07 14:37:43 -04:00
mprahl
3e819abcb6
Include the query arguments in the pagination metadata
2017-07-06 09:09:17 -04:00
Jan Kaluža
646775d14d
Merge #588 Fix #580 : add --skiptests option to mbs-build and manage.py build_module_locally
2017-06-16 06:39:41 +00:00
Filip Valder
5391e7c9af
add --skiptests option to mbs-build and manage.py build_module_locally
2017-06-09 15:20:30 +02:00
Jan Kaluza
4b16cf9a64
Fix various bugs in 'mbs-build local'
2017-06-07 13:16:26 +02:00
Jan Kaluza
a07b44411c
Set the state_reason when format_mmd raises in frontend and do not overwrite the state_reason in backend.
2017-06-06 14:49:49 +02:00
Jan Kaluza
b4c0f49e4b
Fix get_reusable_component in case when database returns components in different order than what we have in MBS.
2017-06-05 15:03:59 +02:00
Ralph Bean
2ab6193987
Rename consecutive to concurrent.
...
Fixes #574 .
2017-05-31 13:54:11 -04:00
Jan Kaluža
acc74bd6e0
Merge #565 Support 'order_by' and 'order_desc_by' in filter_module_builds(...)
2017-05-25 13:14:32 +00:00
Jan Kaluza
b082c81c20
Support 'order_by' and 'order_desc_by' in filter_module_builds(...)
2017-05-23 09:52:19 +02:00
Jan Kaluža
7d024e17c3
Merge #564 Fix fedmsg issue on Copr
2017-05-22 19:43:26 +00:00
Jakub Kadlčík
ae10620897
Allow to set NUM_CONSECUTIVE_BUILDS to 0 as infinite
...
Thank you @jkaluza for this piece of code
2017-05-22 20:02:13 +02:00
Jakub Kadlčík
3817914963
Revert "Set concurrent treshold for copr same as for mock"
...
This reverts commit 6bea509833 .
2017-05-22 20:00:06 +02:00
Jakub Kadlčík
6bea509833
Set concurrent treshold for copr same as for mock
2017-05-22 18:08:51 +02:00
Jan Kaluza
af2d2f8ad1
Do not reuse components when rpm macros change
2017-05-22 13:42:02 +02:00
Jan Kaluza
186295bf17
Skip the batch when there are no components to build.
2017-05-10 09:10:14 +02:00
Jan Kaluža
85554e519a
Merge #520 Do not build module-build-macros when all the components will be reused from previous module build.
2017-05-02 10:12:50 +00:00
Jan Kaluza
024877592c
Do not build module-build-macros when all the components will be reused from previous module build.
2017-05-02 12:09:23 +02:00
mprahl
6f44a995f4
Raise an error when a module includes a module with the same component
2017-04-24 08:55:25 -04:00
Nils Philippsen
78384504f7
allow plain local paths in the place of SCM URLs
...
Translate local paths into valid file:// URLs before further processing.
2017-04-21 12:54:06 +02:00
Nils Philippsen
b711d3fe5d
pep8: remove trailing white space
2017-04-21 12:54:06 +02:00
Nils Philippsen
ec2be36d6e
pep8: don't surround '=' with spaces for keyword args
2017-04-21 12:54:06 +02:00
Jan Kaluža
297d72c1e1
Merge #510 Do not replace branch names in mmd.components.rpms.ref by the commit hash, use our private mmd.xmd.mbs namespace to store that info.
2017-04-20 19:05:19 +00:00
Jan Kaluza
f8bb6e8e99
Fix another place where test results depend on the yaml parsing order.
2017-04-19 12:30:39 +02:00
Jakub Kadlčík
b0ae5f98ef
Have default NSV for modules submitted by yaml file
2017-04-18 08:23:38 +02:00
Jan Kaluza
c828f60444
Do not replace branch names in mmd.components.rpms.ref by the commit hash, use our private mmd.xmd.mbs namespace to store that info.
2017-04-13 08:36:04 +02:00
Ralph Bean
fae7848fa4
Allow querying for module builds by koji tag.
...
This way, if a component build fails and you want to find out who
submitted it, you can track the:
koji build -> koji tag -> module build -> owner
2017-04-10 14:32:08 -04:00
Jan Kaluza
626c0ad99a
Get only active modules as a dependency of another modules
2017-04-07 17:52:45 +02:00
mprahl
eb6187ff1f
Only check if a component is reusable from a previous module build with the same name and stream
2017-04-07 08:28:32 -04:00
Jakub Kadlčík
0753c6be2d
Move validate_optional_params to BaseHandler
2017-03-30 11:21:39 +02:00
Jakub Kadlčík
ec0ed91d45
Allow to submit owner when NO_AUTH
2017-03-30 11:01:13 +02:00
Jan Kaluža
8bdb151840
Merge #360 Fix format_mmd function for empty scmurl
2017-03-28 14:06:17 +00:00
Jan Kaluža
dceff4c0c7
Merge #464 Do not create new batch for included module if it is not requested by its buildorder.
2017-03-28 14:05:16 +00:00