Commit graph

71 commits

Author SHA1 Message Date
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
Yuming Zhu
46bdf0535b return result status in save-failed-tree 2017-08-23 15:35:09 -04:00
Mike McLean
2347aee632 runroot: friendlier parsing of path_subs config 2017-08-08 12:15:42 -04:00
Mike McLean
1df193ea2b use datetime compatibility for messagebug and protonmsg plugins 2017-08-07 12:41:40 -04:00
Tomas Kopecek
032e2aaddd allow some missing path sections in runroot config
Fixes: https://pagure.io/koji/issue/527

Before path sections were expected to have zero-based numbering. If some
item was missing, parsing ended there.

Now we are more benevolent and we pick all path\d+ sections and sort
them by ordering number.
2017-07-31 12:53:03 -04:00
Mike McLean
14ec03f596 runroot: use /builddir/runroot.log instead of /tmp/runroot.log
With --new-chroot, /tmp is set up as a tmpfs mount, which does not persist,
so using /builddir instead.

Related: #482  (but not a fix)
https://pagure.io/koji/issue/482
2017-07-25 12:30:32 -04:00
Tomas Kopecek
a1551a78be Remove deprecated compat_mode from runroot plugin
Fixes: https://pagure.io/koji/issue/501
2017-07-06 11:25:46 -04:00
Tomas Kopecek
1c0d5011c7 Makefile updates 2017-06-13 11:42:04 +02:00
Tomas Kopecek
c02eb739aa update cli tests 2017-06-13 11:42:04 +02:00
Tomas Kopecek
81b2b36d07 apply split 2017-06-13 11:20:38 +02:00
Tomas Kopecek
03218a3fd3 use old tarfile arguments 2017-05-17 12:56:30 -04:00
Tomas Kopecek
7eb264eb4c updated tests 2017-03-30 09:25:51 -04:00
Mike McLean
d1ab4ed287 refactor 2017-03-30 09:25:51 -04:00
Tomas Kopecek
3b82594a32 change config separator to whitespace 2017-03-30 09:25:51 -04:00
Tomas Kopecek
78a87f725e check that correct builder is used 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
af8038fa12 utilize multiple volume support 2017-03-30 09:25:51 -04:00
Tomas Kopecek
6128204714 config file 2017-03-30 09:25:51 -04:00
Tomas Kopecek
ebe1522d9c make stripped paths configurable 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
b133f9c983 more runroot tests 2017-03-29 18:13:39 -04:00
Tomas Kopecek
93034f64f3 idioms 2017-03-17 11:35:53 -04:00
Tomas Kopecek
22bedc900d whitespace formatting 2017-03-17 11:35:53 -04:00
Tomas Kopecek
cc9fff9840 remove has_key (not working in python3) 2017-03-07 08:15:20 -05: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
Mike McLean
a1c8808544 ImportErrors are uncovered 2016-10-25 17:16:12 -04:00
Tomas Kopecek
7b954b8cd5 fixing unimported exceptions 2016-10-04 15:48:54 +02:00
Ian McLeod
0273b77682 A stab at --new-chroot support for rhe runroot plugin 2016-09-28 18:02:59 -04: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
Dennis Gilmore
6e224af9a8 enable dns to work in runroot buildroots
Signed-off-by: Dennis Gilmore <dennis@ra.ausil.us>
2016-05-26 15:26:52 -05:00
Ralph Bean
7fd256cde1
Add subdirectory for builder plugin configuration. 2016-04-08 12:15:07 -04:00
Ralph Bean
69e77dd693
Make the other makefile vars here explicit now. 2016-04-08 12:10:59 -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
Mathieu Bridon
8097ffce7b runroot: Avoid squashing path components with os.path.join
Although this is often a surprising behaviour, the Python documentation
is quite clear on this:

    If a component is an absolute path, all previous components are
    thrown away and joining continues from the absolute path component.

    https://docs.python.org/2/library/os.path.html#os.path.join

That means we need to ensure that we don't end up in this case.
2015-07-10 12:34:32 -05:00
Ralph Bean
e8fdc88a0b Add the hub plugin that accompanies the kojid runroot plugin. 2015-06-06 16:22:04 -04:00