Filip Valder
6412a7fc0f
use module owner for whitelisting Koji packages
2017-03-31 15:19:46 +02:00
Filip Valder
80f78c7e2e
rename to match what it actually does
2017-03-31 15:19:46 +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
Filip Valder
e6d80c0293
introduce tox & pytest as well as other stuff (flake8, bandit and prepare for future automated build&release steps)
2017-03-31 11:15:32 +02:00
Jan Kaluža
0b12e85e97
Merge #466 Introduce 'admins' config option and allow users defined there to cancel any module build.
2017-03-29 12:46:45 +00:00
Jan Kaluža
f7c8478d9c
Merge #448 Copr builder improvements #2
2017-03-29 12:09:43 +00:00
Jan Kaluza
c5f9d713cc
Introduce 'admins' config option and allow users defined there to cancel any module build.
2017-03-29 12:58:44 +02:00
Jakub Kadlčík
70b3782231
Fake repo.done message without publishing it
2017-03-28 19:13:38 +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
Jakub Kadlčík
e00797873e
Remove the dumped modulemd file after requests
2017-03-23 20:02:31 +01:00
Jakub Kadlčík
ffbec05c63
Update CoprBuildEnd docstring
2017-03-23 19:56:00 +01:00
Matt Prahl
2561930833
Merge #457 Create the builder in components.py handler only when we really need it.
2017-03-23 16:11:18 +00:00
Jan Kaluza
b1217921aa
Create the build in components.py handler only when we really need it.
2017-03-23 15:28:24 +01:00
Jan Kaluza
296d69b609
Handle all exceptions in the consumer handlers.
2017-03-23 14:59:38 +01:00
Jan Kaluza
4a6d961d66
Handle situation when all component builds in a batch fail
2017-03-23 14:25:20 +01:00
Jan Kaluza
b4d87c4e25
Retry communication with PDC on RuntimeError exception and increase the timeout to 120 seconds
2017-03-23 12:56:12 +01:00
Jan Kaluža
9c5a97bbd2
Merge #453 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 08:59:51 +00: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
Matt Prahl
ba28bfed6d
Merge #452 Fix UnboundLocalError.
2017-03-22 17:51:01 +00:00
Ralph Bean
aabd28b148
Fix UnboundLocalError.
...
I have hotfixed this in production on mbs-backend01::
Traceback (most recent call last):
File "module_build_service/scheduler/consumer.py", line 134, in consume
self.process_message(session, msg)
File "module_build_service/scheduler/consumer.py", line 224, in process_message
for event in further_work:
UnboundLocalError: local variable 'further_work' referenced before assignment
2017-03-22 13:10:34 -04: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 Kaluža
a2ba358c71
Merge #447 Do not allow starting next batch if the Koji is still building new repo.
2017-03-22 13:43:07 +00: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
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
Jakub Kadlčík
81ff98cfed
Not fail when there is no scmurl
2017-03-21 14:52:22 +01:00
Jakub Kadlčík
a24b49e162
Generate buildsys.repo.done locally
2017-03-21 07:59:35 +01:00
Jakub Kadlčík
6ec3a63517
Remove waiting till all builds are finished (old fedmsg workaround)
2017-03-21 07:50:54 +01:00
Jakub Kadlčík
61b74293b1
Rather extend koji message so we can have additional arguments for copr
2017-03-21 07:47:25 +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
Jakub Kadlčík
3de12fee23
Create record about module and build it separately
2017-03-20 17:57:33 +01:00
Jan Kaluza
1c16c78cf9
Try to continue batch build only when there are some components to build
2017-03-17 18:55:54 +01:00
Jan Kaluza
163ee311de
Expire the build object to force its refresh from database
2017-03-17 18:50:25 +01:00
Jan Kaluža
25340aecd9
Merge #445 Fix the process_paused_module_builds in poller.
2017-03-17 15:14:25 +00:00
Jan Kaluza
3318f48fc3
Fix the process_paused_module_builds in poller
2017-03-17 15:57:52 +01:00
Jan Kaluža
27e4c3868a
Merge #444 Mark module build as failed if one of the components fail
2017-03-17 14:20:31 +00:00
Jan Kaluza
5aa6360595
Mark module build as failed if one of the components fail
2017-03-17 15:14:41 +01:00
Matt Prahl
3736a0dd6a
Merge #443 Do not try to tag builds which have been already tagged in a tag.
2017-03-17 13:55:00 +00:00
Jan Kaluza
10811e41dc
Do not tag packages which belong to -build tag to final tag.
2017-03-17 14:41:11 +01:00
Jan Kaluža
6aa50ebd24
Merge #437 Add tests for 'continue' part of start_next_batch and component resubmit
2017-03-17 13:22:11 +00:00
Jan Kaluza
0fb8bd221f
Reset batch counter and state_reason when resubmiting module
2017-03-17 12:11:08 +01:00
Jan Kaluza
c06d900e62
Do not try to tag builds which have been already tagged in a tag
2017-03-17 11:29:38 +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
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