Commit graph

438 commits

Author SHA1 Message Date
Mike McLean
c355b5c702 only call get_info() if we're going to need it 2019-05-21 12:14:33 -04:00
Mike McLean
2db42a6154 handle other volumes in pruneLocalRepos 2019-05-21 12:14:33 -04:00
Mike McLean
b592a00101 kojira: handle repos on other volumes 2019-05-21 12:14:33 -04:00
Mike McLean
61068557c4 kojira: fix iteration over repos in py3
Multiple threads loop over this data, which changes. These loops
need to use a copy. In py2 .keys() and .values() are copied data,
but in py3 they are references to the dict data.

Fixes: https://pagure.io/koji/issue/1355
2019-03-21 17:26:51 -04:00
Tomas Kopecek
70968aba33 Remove python2.4 OptionParse fix
Fixes: https://pagure.io/koji/issue/1341
2019-03-20 16:09:44 -04:00
Tomas Kopecek
e612310fcc fix typo in usage of six's import of MIMEText
Fixes: https://pagure.io/koji/issue/1338
2019-03-12 10:26:58 -04:00
Mike McLean
7a5cb6e675 koji-gc: lazy buildref check, and check for component refs 2019-03-11 18:22:30 -04:00
Tomas Kopecek
22afd92760 use six move for email.MIMEText
Fixes: https://pagure.io/koji/issue/1247
2019-02-17 21:32:08 -05:00
Mike McLean
11a1c7beed make recent_tasks lifetime configurable 2018-12-04 22:53:52 -05:00
Mike McLean
3f0a2952ee don't iterate over the dict we are changing 2018-12-04 22:53:52 -05:00
Mike McLean
fea969e91b kojira: avoid race condition that causes "unknown task" errors 2018-12-04 22:53:52 -05:00
Tomas Kopecek
17db100db5 few sort speedups
Fixes: https://pagure.io/koji/issue/963
2018-12-04 00:05:26 -05:00
Tomas Kopecek
47e8a90553 fix wrong message 2018-11-16 21:11:32 -05:00
Tomas Kopecek
f464160ac6 fix tuple expansion in args 2018-07-11 17:37:40 -04:00
Tomas Kopecek
d9ac4ed85c python-modernize -f lib2to3.fixes.fix_numliterals 2018-07-11 17:37:40 -04:00
Tomas Kopecek
6f7f828f77 python-modernize -f lib2to3.fixes.fix_except 2018-07-11 17:37:40 -04:00
Tomas Kopecek
9b3cf26dc2 fix sort(l) vs l.sort() typo 2018-07-11 17:37:40 -04:00
Tomas Kopecek
242e143b97 fix double import typo 2018-07-11 17:37:40 -04:00
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
8e61dc7c56 python-modernize -f libmodernize.fixes.fix_classic_division 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
d92fa1fa9c python-modernize -f libmodernize.fixes.fix_file 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
b96092334d python-modernize -f libmodernize.fixes.fix_xrange_six 2018-07-11 17:37:39 -04:00
Franz Chih-Ping Hsieh
f356ac4f17 force using python2 to run script
Fixes #945
2018-05-24 00:01:30 -04:00
Mike McLean
4c07073403 simplify check for krbV module 2018-04-02 16:38:27 -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
Yuming Zhu
52f0dfbc1c kojira: sanity check in pruneLocalRepos 2018-03-16 16:50:00 -04:00
Tomas Kopecek
3294301f45 blacklist tags for kojira
Fixes: https://pagure.io/koji/issue/694

(adjusted for conflicts with PR#797 -mikem)
2018-02-20 09:43:30 -05:00
Mike McLean
3ed392afdb unit test for regenLoop 2018-02-13 13:48:43 -05:00
Mike McLean
7c5dde35da a little more logging 2018-02-13 13:48:43 -05:00
Mike McLean
1ee0dd33cd separate loggers for currency/regen threads 2018-02-13 13:48:43 -05:00
Mike McLean
01717db5df fix typo 2018-02-13 13:48:43 -05:00
Mike McLean
c39e6a8ab2 add missing sleeptime option to list 2018-02-13 13:48:43 -05:00
Mike McLean
3283fa20ae fix task limit check 2018-02-13 13:48:43 -05:00
Mike McLean
557dcce1b5 move regens into thread 2018-02-13 13:48:43 -05:00
Mike McLean
b376133646 simplify some exception handling 2018-02-13 13:48:43 -05:00
Mike McLean
c1d29237b0 update tag scores each pass 2018-02-13 13:48:43 -05:00
Mike McLean
473e397a7b adjust debug output to make it less noisy 2018-02-13 13:48:43 -05:00
Mike McLean
0713d1b7d3 cleanup docstring 2018-02-13 13:48:43 -05:00
Mike McLean
1affc5c018 unused method 2018-02-13 13:48:43 -05:00
Mike McLean
7193c60538 log message 2018-02-13 13:48:43 -05:00
Mike McLean
5b3382aea3 more needed_tags cleanup 2018-02-13 13:48:43 -05:00
Mike McLean
08e1b84fed misc fixes 2018-02-13 13:48:43 -05:00
Mike McLean
3e15abcbe8 sanity check expire age 2018-02-13 13:48:43 -05:00
Mike McLean
dd654e91f6 scoring 2018-02-13 13:48:43 -05:00
Mike McLean
76b66c4960 use new code 2018-02-13 13:48:43 -05:00
Mike McLean
42dc03b3d5 partial refactor of kojira code 2018-02-13 13:48:43 -05:00
Tomas Kopecek
8f22069fda drop old ssl support + compatrequests
Koji now uses ssl via python-requests

 - use_old_ssl option is removed
 - koji.ssl library removed
 - compatrequests dropped

Related: https://pagure.io/koji/issue/467
2018-01-03 12:47:03 +01:00
Yuming Zhu
107eb48ceb remove unused import in koji-shadow 2017-12-19 12:34:55 -05:00