Commit graph

35 commits

Author SHA1 Message Date
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
be535c2854 python-modernize -f libmodernize.fixes.fix_imports_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
7f6b717eb6 python-modernize -f libmodernize.fixes.fix_import 2018-07-11 17:37:39 -04:00
Tomas Kopecek
bcee24e50c python-modernize -f libmodernize.fixes.fix_dict_six 2018-07-11 17:37:39 -04:00
Mike McLean
91b306e108 Avoid failing at import time if krbV module is missing
Several parts of Koji already handled this absence gracefully. This change
extends that behavior to all places where krbV is imported.
2018-04-02 16:38:27 -04:00
Tomas Kopecek
5712c8efb6 Don't raise error on unserializable data 2018-03-21 15:08:26 -04:00
Tomas Kopecek
3bfcc6a66e json serialize additional types in protonmsg
Fixes: https://pagure.io/koji/issue/741
2018-03-21 15:08:26 -04:00
Yuming Zhu
4dd529c6e6 use hasPerm to check permission in save_failed_tree
fixes #709
2017-11-17 15:56:39 +08:00
Tomas Kopecek
379ec8ae63 python-modernize -f lib2to3.fixes.file . -w 2017-10-31 16:05:16 +01:00
Tomas Kopecek
5b23fb1629 consolidate safe_rmtree, rmtree and shutil.rmtree
shutil.rmtree should be avoided in almost all cases
safe_rmtree has its usage in tasks module, but innards are replaced with
koji.util.rmtree, so we don't have two implementations of same task

Related: https://pagure.io/koji/issue/648
2017-10-30 12:09:04 -04:00
Mike Bonnet
661dd3a70c protonmsg: include the arch in the headers of rpm sign messages
Including the arch in the headers may be useful for filtering.
2017-10-25 12:01:08 -04:00
Mike Bonnet
c6a1e0952a protonmsg: don't send rpm.sign messages when the sigkey is empty
When a build completes, we store the original, unsigned rpm headers
to disk. This results in the postRPMSign callback being called, and
a rpm.sign message being sent with an empty sigkey. The intended
sematics of the rpm.sign message is to notify a service when an rpm
has been signed. Therefore, we should not be sending a message when
the sigkey is empty.
2017-10-24 21:20:24 -04:00
Mike McLean
4a35b8a283 don't require an explicit test_mode setting in config 2017-10-05 16:15:23 -04:00
Mike McLean
78162b5543 test mode for messagebus plugin 2017-10-05 16:15:23 -04:00
Mike McLean
2a6c04635f messagebus plugin: avoid duplicate context updates 2017-10-05 16:15:23 -04:00
Mike McLean
261224311c fix config handling 2017-10-05 16:15:23 -04:00
Mike McLean
ac5cbf1682 defer messagebus sync 2017-10-05 16:15:23 -04:00
Mike McLean
42b567b327 clear message cache after sending 2017-10-05 16:15:23 -04:00
Mike McLean
ec53e01547 defer message sending until after commit 2017-10-05 16:15:23 -04:00
Mike McLean
bce4e28ed8 protonmsg plugin: test mode 2017-08-25 00:10:10 -04:00
Mike McLean
1df193ea2b use datetime compatibility for messagebug and protonmsg plugins 2017-08-07 12:41:40 -04:00
Mike McLean
d1ab4ed287 refactor 2017-03-30 09:25:51 -04:00
Tomas Kopecek
660779c848 Fail if host is disabled 2017-03-30 09:25:51 -04:00
Tomas Kopecek
7b8fcd989f permissions 2017-03-30 09:25:51 -04:00
Tomas Kopecek
1a06b1b52e Define tasks via config file 2017-03-30 09:25:51 -04:00
Tomas Kopecek
437afbb720 CLI for save_failed_tree 2017-03-30 09:25:51 -04:00
Tomas Kopecek
dd5425f23e Basic functionality for save_failed_tree plugin 2017-03-30 09:25:51 -04:00
Tomas Kopecek
22bedc900d whitespace formatting 2017-03-17 11:35:53 -04:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Mike Bonnet
240fc690dd make the tlstimeout class compatible with newer versions of qpid
Recent versions of qpid have added the write_retry attribute to the tls class.
Add it to our subclass for compatibility.
2016-12-13 17:04:58 -05:00
Mike Bonnet
17fac58281 protonmsg hub plugin
This plugin sends messages to a broker about events in the hub
using the proton library. This library supports the AMQP 1.0
protocol and is compatible with a wide variety of message
brokers. It queues all messages until the postCommit callback,
avoiding race conditions between message reception and database
transaction commit.
2016-11-04 11:59:51 -07:00
Tomas Kopecek
7b954b8cd5 fixing unimported exceptions 2016-10-04 15:48:54 +02:00
Mike McLean
8beb91f58d don't generate messages on postCommit events 2016-09-14 15:08:52 -04:00
Ralph Bean
7530b8ce77 Remove mktask in favor of make_task (and fix all references). 2016-06-08 12:08:05 -04:00
Ralph Bean
43ba5a6071
Install both hub and builder plugins.
This is a different take at https://pagure.io/koji/pull-request/45

Instead of installing just the runroot builder plugin explicitly, here we
separate the plugins out into hub and builder plugins explicitly and install
each type in turn.
2016-04-08 10:05:28 -04:00