Qixiang Wan
d83e6897ca
Change ModuleBuild.context to db column
...
1. Changed ModuleBuild's context property to db column, it's
non-nullable and default value is '00000000' to keep it consistent
with previous behaviour.
2. Changed ModuleBuild.contexts_from_mmd to return a tuple of
(ref_build_context, build_context, runtime_context, context).
3. Updated tests affected by this change.
2018-04-28 11:46:31 +08:00
Jan Kaluza
8d1d439737
Generate 'context' from hash based on buildrequires/requires stream. Reuse components only from module with the same stream_build_context.
2018-04-24 15:45:26 +02:00
Jan Kaluza
9b6fd2ba39
Split utils.py to multiple files based on the methods use-case.
2018-04-03 09:58:57 -04:00
mprahl
eb0b2e1c38
Add the database resolver plugin
2018-04-03 09:58:57 -04:00
mprahl
f5530d9b16
Fix flake8 errors made by jkaluza
2018-02-09 09:12:00 -05:00
Jan Kaluza
6a5d7267fd
Save another 20s in tests.
2018-02-09 11:46:12 +01:00
mprahl
575c2b8f05
Make the poller not resume paused module builds if there was recent activity on the build
...
This fixes an issue that occurs when someone submits a module build and most of its components
get reused and the poller just so happens to try to resume the build.
2018-02-06 10:45:07 -05:00
mprahl
8f024e6b04
Remove the dependency on vcrpy in unit tests and modernize some of the test data
2018-02-05 22:17:18 -05:00
mprahl
e91d09f7ca
Change the format of the unit tests to pytest
2018-01-31 16:34:21 -05:00
Ralph Bean
01c8295269
Add an incrementing prefix to the dist_hash.
...
For #823 .
2018-01-17 16:54:02 -05:00
mprahl
a67b53f5c3
Add a "context" field on component and module releases in Koji for uniqueness for when Module Stream Expansion is implemented
2018-01-16 10:36:09 -05:00
mprahl
6925187f9f
Improve the stale builds poller handler test
2017-12-11 13:27:30 -05:00
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
8431d2698b
Explicit imports of builders in the test suite.
2017-11-10 16:03:14 -05: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
8e41f9f335
Try to reuse all components in the batch before starting it
2017-10-23 15:33:57 -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
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
Jan Kaluza
22758419c0
Delete build target after config.koji_target_delete_time seconds.
2017-05-11 14:43:05 +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 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 Kaluza
3318f48fc3
Fix the process_paused_module_builds in poller
2017-03-17 15:57:52 +01:00