mprahl
02e11b9b39
Don't try to untag stale module builds that don't have any completed components
2017-11-20 10:38:56 -05:00
mprahl
ef5dc64f2b
Transition stale failed builds to the "garbage" state and untag their components
2017-11-17 12:07:51 -05:00
Ralph Bean
318117c0c5
Make our builders into setuptools plugins.
2017-11-13 11:16:13 -05:00
Ralph Bean
8431d2698b
Explicit imports of builders in the test suite.
2017-11-10 16:03:14 -05:00
mprahl
bb0dde9936
Only complete the module build when *all components are tagged* and a KojiRepoRegen message is received
2017-11-10 08:33:53 -05:00
mprahl
b0eada3e33
Fix KojiContentGenerator from a bug in PR 771
2017-11-10 08:33:53 -05:00
mprahl
a8421568f9
Fix Flake8 errors
2017-11-08 08:45:58 -05:00
mprahl
d8f126e978
Allow resuming from a failure during the "init" phase
...
This also shifts build failure transitions from individual functions
in utils.py to the init module handler.
2017-11-06 14:15:12 -05:00
mprahl
45cce653eb
Add the ability to specify different rebuild methods
2017-11-01 15:39:43 -04: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
Igor Gnatenko
1e6708b34f
MockedSCM -> FakeSCM
...
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org >
2017-10-18 17:37:13 +02:00
mprahl
62d438651a
Fix tests
2017-10-16 15:09:42 -04:00
Ralph Bean
6150000d1e
Scan for modules stuck in the wait state.
...
And fake a message to get them building again.
But only if they look to have been stuck for more than 10 minutes.
2017-09-29 14:13:58 -04:00
Jan Kaluza
ad6874b0e6
Fix #670 - Tag Content Generator Koji build to special tag based on the base module stream
2017-09-25 08:36:29 +02:00
Ralph Bean
5e08d2ffe4
Introduce pluggable backends.
...
This allows an operator to write a custom messaging backend to handle
whatever transport and format.
2017-09-19 13:13:40 -04:00
Mike Bonnet
2a3aea9c97
add tests for MBSConsumer
2017-09-19 13:12:45 -04:00
Jan Kaluza
999baa2992
Wait for components to be tagged also in final tag before marking module as done.
2017-09-15 15:25:29 +02:00
Filip Valder
3cb41aa5dc
Changes in MBS restful API:
...
- Refactor MBS API code
- Unify module-/component_build API philosophy/design/approach
- Naming fixes
- _utc_datetime_to_iso moved from ModuleBuildAPI and is now a module-level function.
- Existing v1 API remains unchanged. ComponentBuildAPI now supports individual component build listing + verbose mode.
- documented in README
- various component_build API tests added
2017-09-11 14:48:22 +02:00
Jan Kaluza
dfdd924bbf
Always regen repository when starting module build to not wait on kojira.
2017-08-18 09:39:07 +02:00
Jan Kaluza
4bbb0cc416
Create module-build-macros component just once - do not duplicate it for each resubmition of a module.
2017-08-08 06:52:28 +02:00
Filip Valder
7ef2975984
PEP8 fixes
2017-07-17 18:29:10 +02:00
Jan Kaluza
1621c1e4fd
Create app_context before database session.
2017-07-11 09:41:55 +02:00
Stanislav Ochotnicky
40074b088e
Fix test for logging change
...
Change of configuration to enable logging by default caused the test to
fail because mocked object had no id. This change fixes the test and
sets up cleanup for logs
2017-07-04 08:51:53 +02:00
Jan Kaluza
f27b0ddb81
Regenerate the repo when module-build-macros is reused to ensure it is in the buildroot.
2017-05-24 14:26:08 +02:00
Jan Kaluza
22758419c0
Delete build target after config.koji_target_delete_time seconds.
2017-05-11 14:43:05 +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
Nils Philippsen
ec2be36d6e
pep8: don't surround '=' with spaces for keyword args
2017-04-21 12:54:06 +02:00
Jan Kaluza
9e6e199a22
Use db.session.refresh instead of expunge and fix typo in create_builder
2017-04-12 07:25:00 +02:00
Jan Kaluza
9a193c36af
Do not start new batch in poller when new_repo is running
2017-04-11 19:51:55 +02:00
Jan Kaluža
a4de06bc40
Merge #493 Start newRepo only when all the COMPLETE components have been tagged and there are no unbuilt components in a batch
2017-04-07 13:25:13 +00:00
Jan Kaluza
cdf06ad999
Start newRepo only when all the COMPLETE components have been tagged and there are no unbuilt components in a batch
2017-04-07 11:34:16 +02:00
Jakub Kadlčík
469cbc8846
Fix failing test after separating builders
...
Thanks to @jkaluza for this patch
2017-04-07 08:22:59 +02:00
Jakub Kadlčík
6a3de70e8f
Use the real testing config not mock
2017-04-07 08:22:59 +02:00
Jan Kaluza
8bbe2d359f
Trigger newRepo by MBS instead of waiting on Kojira in case when we have sucessfully tagged all the components
2017-04-06 17:19:35 +02:00
Jan Kaluza
061d346d7c
Revert "Trigger newRepo manually when Kojira does not manage to build it in 20 minutes."
...
This reverts commit 2fcd66ad53 .
2017-04-05 12:41:29 +02:00
Jan Kaluza
2fcd66ad53
Trigger newRepo manually when Kojira does not manage to build it in 20 minutes.
2017-04-05 10:18:31 +02: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
Jan Kaluza
298bf63120
Fix #409 - Remove koji_tag_inherit_from and whitelist all the components we are going to build instead.
2017-03-14 11:28:47 +01:00
Filip Valder
6b343896dd
s/rida/mbs/
2017-02-28 17:59:02 +01:00
Matt Prahl
8577d5f307
Fix and cleanup tests
2017-02-21 14:22:30 -05:00
Filip Valder
818a3feb6f
check Koji active tasks for component relicts (same NVR) from previous (terminated) builds
2017-02-08 15:56:41 +01:00
Jan Kaluza
4acc1d69aa
Use vcrpy for tests to simulate PDC responses.
2017-01-12 11:52:49 +01:00
Matt Prahl
61a724d0d9
Use the database in test_repo_done.py tests
2016-12-12 09:00:44 -05:00
Jan Kaluza
9aca8057a3
Handle the exception in builder.build(...) code and do not mark whole module as failed - mark just the particular component.
2016-11-18 19:09:03 +01:00