Valerij Maljulin
52a600be40
Make sync_koji_build_tags poller working only with the builds that are in build state for some time
...
This fixes #1271
Signed-off-by: Valerij Maljulin <vmaljuli@redhat.com >
2019-05-30 18:01:18 +02:00
Valerij Maljulin
13afde0124
Fix for test_sync_koji_build_tags
...
Signed-off-by: Valerij Maljulin <vmaljuli@redhat.com >
2019-05-30 12:53:25 +02:00
Valerij Maljulin
87d3a39607
A poller for Greenwave
...
Signed-off-by: Valerij Maljulin <vmaljuli@redhat.com >
2019-05-22 13:20:26 +02:00
mprahl
66c3f82160
Format the coding style across the codebase using "black" and manual tweaks
...
The main benefit of this commit is that the use of double quotes
is now consistent.
2019-04-26 00:32:13 -04:00
Mike Bonnet
dcd38db5e0
hide the missing krbV module
2019-02-08 17:43:43 +00:00
Jan Kaluza
3c7f8b7006
Handle lost message from Koji informing MBS about Component being tagged into Koji tag.
...
Adds new meethod checking the "tagged" and "tagged_in_final" attributes of
"complete" ComponentBuilds in the current batch of module builds
in "building" state against the Koji.
In case the Koji shows the build as tagged/tagged_in_final,
the fake "tagged" message is added to work queue.
2019-01-02 09:33:42 +01:00
mprahl
25122cb53e
Modify MBS to use a separate Kerberos context per thread so both threads can use the thread keyring to store the Kerberos cache
...
This commit includes the backport of the changes to `krb_login` in
https://pagure.io/koji/pull-request/1187 . This change is required
for our separate threads to use a separate Kerberos context per thread.
2018-12-18 16:05:55 -05:00
Jan Kaluza
bcfead0809
In case module is stuck in 'init' state for more than 10 minutes, send fake MBSModule msg.
...
This fixes issues when UMB message delivery from frontend to backend fails
for whatever reason...
We do the same thing for 'wait' state already, so this commit just extends
it to 'init' state too.
2018-12-18 08:06:31 +01:00
Chenxiong Qi
cbb8156311
Add tests for use of anonymous koji session
...
This patch also clean and rewrite some tests that are relative to use
anonymous koji session.
Signed-off-by: Chenxiong Qi <cqi@redhat.com >
2018-12-07 18:37:36 +08:00
Martin Curlej
5a3d3d99d3
ISSUE-991: Added a method to the producer that will move stuck builds into 'failed' state
...
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
2018-08-30 16:02:24 +02:00
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