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
Jan Kaluza
f66de75272
Do not create new batch for included module if it is not requested by its buildorder.
2017-03-28 15:45:36 +02:00
Jan Kaluza
597973da98
For mock backend, build all the components in batch in single continue_batch_build call.
2017-03-28 15:44:01 +02: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
09601cfbb6
Do not allow starting next batch if the Koji is still building new repo.
2017-03-22 14:40:18 +01:00
Jakub Kadlčík
81ff98cfed
Not fail when there is no scmurl
2017-03-21 14:52:22 +01:00
Jakub Kadlčík
d13adc81df
Filter only module builds with scmurl
2017-03-20 19:51:50 +01:00
Jakub Kadlčík
95dee6c463
Not fail when 'ref' is missing
2017-03-20 19:46:14 +01:00
Jakub Kadlčík
9b02605370
Fix format_mmd function for empty scmurl
2017-03-20 19:46:10 +01:00
Jan Kaluza
0fb8bd221f
Reset batch counter and state_reason when resubmiting module
2017-03-17 12:11:08 +01:00
Jan Kaluza
830b1dd111
Add tests for 'continue' part of start_next_batch and component resubmit
2017-03-16 11:20:51 +01:00
Jan Kaluza
f97d53d640
Remove unnecessary check in start_next_batch_build and do not increment module.batch before all the checks are done.
2017-03-15 14:15:15 +01:00
Jan Kaluza
97706324a7
Fix the module fail when num_consecutive_builds limit is met and tagging issue when all the builds are reused in a single batch
2017-03-15 11:55:55 +01:00
Jan Kaluža
ec5ea320fc
Merge #426 Bugfixes caused by frontend expecting even branch
2017-03-14 17:36:49 +00:00
Jakub Kadlčík
e88c881039
Cast branch to string or otherwise it fails
2017-03-14 15:19:01 +01:00
Ralph Bean
a8314cba09
Merge #425 Use the 403 Forbidden result in case the user is unauthorized
2017-03-14 13:11:10 +00:00
Jan Kaluza
0543e2c9ca
Fix #421 - Build next component immediatelly after the previous component build is finished.
2017-03-14 08:36:30 +01:00
Patrick Uiterwijk
a4763ee316
Use the 403 Forbidden result in case the user is unauthorized
...
The difference between 401 Unauthorized and 403 Forbidden is that 403 Forbidden is "permanent":
it indicates that the user was authenticated correctly, but was not allowed to access this endpoint.
In contrast, 401 Unauthorized means that the request as posted was not allowed, but if the user
were to try again with (new) authorization tokens, it might actually succeed.
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com >
2017-03-13 07:34:36 +00:00
Jan Kaluza
8a9b3bdca5
Always white-list included modules repository in _fetch_mmd.
2017-03-13 08:02:41 +01:00
Jan Kaluza
b569fa6c21
Fix #405 - Fix num_consecutive_builds.
2017-03-09 08:59:09 +01:00
Jan Kaluza
4b3e295e48
Expect 'branch' while handling submission of module and use it to set the stream of module. Also verify that the commit hash belongs to that branch.
2017-03-07 11:25:06 +01:00
Jan Kaluza
8aa3ce3c27
Add MODULES_ALLOW_REPOSITORY and MODULES_DEFAULT_REPOSITORY with the same meaning as RPMS_* equivalents.
2017-03-03 15:36:10 +01:00