Mike McLean
267eff9636
handle arches=None case
...
Should handle all these "empty" cases: missing, None, blank string, only whitespace
2020-11-05 10:31:04 +01:00
Mike McLean
28d07c11ba
make cache key consistent
2020-11-05 10:31:04 +01:00
Mike McLean
49e54eb7d2
minor logging adjustment
2020-11-05 10:31:04 +01:00
Mike McLean
efd5e3f48a
kojira: cache external repo timestamps by arch_url
...
Fixes: https://pagure.io/koji/issue/2532
2020-11-05 10:31:04 +01:00
Tomas Kopecek
6a21354006
remove instance variables
2020-10-29 15:11:57 +01:00
Tomas Kopecek
412a29bb88
kojira: don't expire ignored tags with targets
...
Fixes: https://pagure.io/koji/issue/2542
2020-10-29 15:11:57 +01:00
Tomas Kopecek
5a4efd6d07
fix merge problems
2020-10-06 15:10:22 +02:00
Tomas Kopecek
0c833c1236
remove sysv from Makefiles
2020-10-06 15:00:23 +02:00
Tomas Kopecek
e711e7dbe5
utils in py3
2020-10-06 15:00:23 +02:00
Tomas Kopecek
566a1de1e0
koji-gc: log error if build can't be deleted
...
Fixes: https://pagure.io/koji/issue/2469
2020-09-08 14:22:13 +02:00
Tomas Kopecek
2e042db3af
kojira: parallelize rmtree
...
Fixes: https://pagure.io/koji/issue/2398
2020-08-26 09:32:50 +02:00
Tomas Kopecek
f06a8c0bca
fix flake8 errors
2020-08-25 13:05:02 +02:00
Yu Ming Zhu
92dd493e98
add delete_batch_size into legacy_opts
2020-07-27 08:59:40 +00:00
Yu Ming Zhu
2aa7ff67bb
kojira: remove unused delete_batch_size
...
fixes : #2396
2020-07-27 08:58:42 +00:00
Mike McLean
7afc7628ad
kojira: drop reference to krb_login
...
this call to krb_login was accidentally re-introduced with a merge commit.
Fixes https://pagure.io/koji/issue/2400
2020-07-24 17:21:08 -04:00
Simo Sorce
2c663f0b73
Use requests_gssapi instead of requests_kerberos
...
Retain ability to use the old requests_kerberos where request_gssapi is
not available yet.
Signed-off-by: Simo Sorce <simo@redhat.com>
2020-07-24 15:32:42 -04:00
Tomas Kopecek
d75a3f3b52
remove remaining options
2020-07-24 15:08:47 -04:00
Tomas Kopecek
f8419e3626
remove deprecated krbV support
...
Fixes: https://pagure.io/koji/issue/1991
2020-07-24 15:08:47 -04:00
Tomas Kopecek
40a55908ab
kojira: estimate better expire_ts
2020-07-24 13:40:26 +02:00
Tomas Kopecek
74f18b687e
kojira: threaded repo deletion
...
Fixes: https://pagure.io/koji/issue/2336
2020-07-24 13:40:26 +02:00
Tomas Kopecek
19295bf7da
kojira: drop kojira.sysconfig
...
Fixes: https://pagure.io/koji/issue/2171
2020-06-30 14:48:21 +02:00
Tomas Kopecek
dbf1d13364
koji-gc: check retagged builds correctly
2020-06-25 10:47:20 +02:00
Tomas Kopecek
7c0acaaa10
koji-gc: fix py3 compare behaviour for dicts
...
Fixes: https://pagure.io/koji/issue/2325
2020-06-25 10:47:20 +02:00
Tomas Kopecek
bc378d1775
more debug info for un/tracked tasks in kojira
...
Relates: https://pagure.io/koji/issue/2119
2020-06-24 14:56:52 +02:00
Kevin Fenzi
fa8ac96d54
clean_old option was duplicated on clean_empty
...
The --no-old option wouldn't work because the check was checking for
--no-empty, and --no-empty was disabling both checks. :)
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-23 12:32:51 +02:00
Tomas Kopecek
2baa24bd4e
kojira: replace deprecated Thread.isAlive()
...
From py 2.7 exists an alias is_alive, so it is safe to replace it.
Fixes: https://pagure.io/koji/issue/2312
2020-06-18 15:35:51 +02:00
Nils Philippsen
ffd282031d
Fix logic detecting directories
...
Signed-off-by: Nils Philippsen <nils@redhat.com>
2020-06-16 17:39:01 +02:00
Tomas Kopecek
bf45a59bac
Don't break on renamed tag
...
Fixes: https://pagure.io/koji/issue/1965
2020-06-16 11:21:11 +02:00
Tomas Kopecek
0f69eabee1
kojira: swap first_seen with latest mtime for repo
...
first_seen is measured from start of the kojira process. This is
inconsistent between runs and short-lived processes will never delete
some repos. Replace it with mtime of repo directory, it still should be
sufficient indicator of age (if it exists).
Fixes: https://pagure.io/koji/issue/2139
2020-06-16 11:17:24 +02:00
Yu Ming Zhu
53982e3b6c
koji-gc: set smtp_host to localhost by default
...
fixes : #2252
2020-06-16 10:04:35 +02:00
Tomas Kopecek
71edb2fa95
koji-gc: fix cc/bcc e-mail handling
...
Relates: https://pagure.io/koji/issue/2169
2020-06-09 10:41:40 +02:00
Tomas Kopecek
9f54386279
koji-gc: fix history order
...
Fixes: https://pagure.io/koji/issue/2270
2020-06-02 14:19:08 +02:00
Tomas Kopecek
9e6aabf4ff
koji-gc: various typos in maven path
...
Fixes: https://pagure.io/koji/issue/2152
2020-05-26 09:27:14 +02:00
Tomas Kopecek
058b8d83c6
fix indentation
2020-05-18 13:30:11 +02:00
Tomas Kopecek
624229784c
hide bcc addresses
...
Fixes: https://pagure.io/koji/issue/2169
2020-05-18 13:30:11 +02:00
Alex Iribarren
24e8cdbbf6
Add CC/BCC for email notifications
2020-05-18 13:30:11 +02:00
Ken Dreyer
25d7970c54
koji-gc: add systemd unit files
2020-05-13 13:45:30 +02:00
Tomas Kopecek
1bf711347f
kojira: use cached getTag for external repos
...
Fixes: https://pagure.io/koji/issue/2156
2020-05-13 12:51:31 +02:00
Tomas Kopecek
c636f56526
update comments
2020-05-13 10:45:37 +02:00
Tomas Kopecek
0e5b54f32d
cli: deprecate --ca
...
Fixes: https://pagure.io/koji/issue/2182
2020-05-13 10:45:37 +02:00
Tomas Kopecek
64640e4328
fix flake8 errors
2020-05-12 15:37:26 +02:00
Tomas Kopecek
bd59d3f985
replace krb_login with gssapi_login
2020-05-12 15:28:15 +02:00
Tomas Kopecek
b1eac8a903
koji-gc: support request_kerberos
...
Fixes: https://pagure.io/koji/issue/2143
2020-05-12 15:28:15 +02:00
Tomas Kopecek
919d189c2e
koji-gc: test existence of trashcan tag
...
Fixes: https://pagure.io/koji/issue/2190
2020-05-12 15:27:02 +02:00
Ken Dreyer
819db9b642
koji-sweep-db: use "Type=oneshot" for systemd
...
"oneshot" is the appropriate choice for periodic cleanup scripts.
2020-05-05 11:08:11 +02:00
Yu Ming Zhu
c60080fb79
koji-utils: only requires /usr/bin/python2 on rhel<=7
...
fixes : #2208
2020-04-29 14:25:52 +02:00
Tomas Kopecek
58ef1338a8
fix flake8
2020-04-22 14:52:37 +02:00
Tomas Kopecek
539e024257
kojira: queue status file
...
Fixes: https://pagure.io/koji/issue/2023
2020-04-22 13:53:08 +02:00
Tomas Kopecek
0132313f92
replace logging.warn with warning
...
call is deprected in python 3.7
Fixes: https://pagure.io/koji/issue/2135
2020-04-22 13:47:15 +02:00
Ken Dreyer
b13487d34f
kojira: remove duplicate Kerberos configuration boilerplate
...
eea730300a added a dedicated section for
Kerberos authentication to kojira.conf. It refers to the canonical
location /etc/kojira/kojira.keytab.
Prior to this change, there were two "kerberos" sections in kojira.conf.
Remove the older stale one, since that refers to the old
"/etc/kojira.keytab" file path, and
f232e49194 defaults to
/etc/kojira/kojira.keytab instead.
2020-04-22 09:51:28 +02:00