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
Tomas Kopecek
c68396c059
Use unittest2 for rhel6 compatibility
...
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Tomas Kopecek
d0238943be
Allow t use new/old-chroot in runroot
...
Fixes: https://pagure.io/koji/issue/772
2018-04-18 18:02:54 -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
Mike McLean
8e4df0db11
fix runroot output on py3
2018-03-08 10:15:08 -05:00
Mike McLean
30749fa2d0
add internal_dev_setup option to runroot plugin
2018-02-28 08:19:29 -05:00
Tomas Kopecek
eaa158ab51
honour runroot --quiet for old-style call
...
Fixes: https://pagure.io/koji/issue/807
2018-02-19 12:26:45 -05: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
Tomas Kopecek
f639b99a71
more runroot tests
...
Related: https://pagure.io/koji/issue/641
2017-10-30 13:20:37 +01:00
Tomas Kopecek
eb2460f132
remove unused import
2017-10-27 20:46:00 -04:00
Mike McLean
81711cb8ac
clean up runroot unit test
2017-10-27 20:46:00 -04:00
Tomas Kopecek
f7f8b046ce
correct default for --wait
2017-10-27 20:46:00 -04:00
Tomas Kopecek
21427c0e2c
unify runroot CLI interface
...
Related: https://pagure.io/koji/issue/564
2017-10-27 20:46:00 -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
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