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
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
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
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
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
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
Tomas Kopecek
3aca7b43a6
turn off checking external repos by default
...
Fixes: https://pagure.io/koji/issue/2159
2020-04-21 10:31:24 +02:00
Igor Raits
f232e49194
Set default keytab for kojira
...
kojid and other services koji provide have default keytab, there is no
reason why kojira should not have this.
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-04-03 18:00:16 +02:00
Tomas Kopecek
713e657555
remove incomprehensible check
2020-04-02 10:35:16 +02:00
Tomas Kopecek
751862f1b1
kojira monitors external repos changes
...
Fixes: https://pagure.io/koji/issue/512
2020-04-02 10:35:16 +02:00
Mike McLean
208ec10f92
kojira: be tolerant of old with_src configuration option
...
Fixes https://pagure.io/koji/issue/2120
2020-04-02 10:31:41 +02:00
Igor Raits
e46fffe26b
kojira: Allow using Kerberos without krbV
...
"Error: Unknown login error" message is very misleading because no
authentication is being performed when krbV is not installed.
Quit with error message if no authentication has been performed and also
update such error message in kojid to mentioned cert auth.
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-04-01 15:02:18 +02:00
Tomas Kopecek
c899049fac
reverse score ordering for tags
...
Fixes: https://pagure.io/koji/issue/2021
2020-03-26 14:26:42 +01:00
Yuming Zhu
d21083a11b
still use BaseException for logging purpose
2020-03-03 21:38:22 +08:00
Yuming Zhu
cf34706f04
use Exception instead of BaseException for bare expection
2020-03-03 21:38:22 +08:00
Yuming Zhu
2a2c5cb729
flake8: apply W rules (prefering W503)
2020-03-03 21:38:22 +08:00
Yuming Zhu
c5db34a8e1
flake8: apply E501 with max-line-length=99
2020-03-03 21:38:22 +08:00
Yuming Zhu
f1ba6cefd7
flake8: apply all rest E7 rules
2020-03-03 21:38:22 +08:00
Yuming Zhu
0f727a2ab4
flake8: apply E3 rules
2020-03-03 21:38:22 +08:00
Yuming Zhu
05340b146b
flake8: apply E2 rules except E266
2020-03-03 21:38:21 +08:00
Yuming Zhu
ce1f9928af
flake8: apply E1 rules
2020-03-03 21:38:21 +08:00
Yuming Zhu
97cfaa4fcf
flake8: follow E265 rule
2020-03-03 21:35:08 +08:00
Tomas Kopecek
77933e9e20
remove unused option --with-src in kojira
...
Fixes: https://pagure.io/koji/issue/1933
2020-01-23 16:32:23 +01:00
Yu Ming Zhu
a00df18546
sort imports in util
2019-12-12 11:00:55 +00:00
Yu Ming Zhu
4c1928f377
extract read_config_files util for config parsing
2019-10-15 09:14:16 +02:00
Yu Ming Zhu
2034695e88
add an option to set server realm for all clients
2019-10-10 16:37:56 +02:00
Mike McLean
656af0f581
avoid duplicate ManagedRepo instance
2019-06-26 15:38:10 -04:00
Mike McLean
2fb80ba6d0
fix a logging error
2019-06-26 15:35:54 -04:00
Mike McLean
0b0fd39384
fix getTag invocation
2019-06-26 15:35:54 -04:00
Mike McLean
6ea2529155
provide value for repo in untracked case
2019-06-26 15:35:54 -04:00
Tomas Kopecek
a624d7241a
handle deleted tags in kojira
...
Fixes: https://pagure.io/koji/issue/1298
2019-06-26 15:35:54 -04:00
Mikolaj Izdebski
3d058c50db
Allow generating separate src repo for build repos
...
Fixes #1266
2019-05-23 10:01:12 -04:00
Mike McLean
cee9fe4948
handle symlinks in pruneLocalRepos
2019-05-21 12:14:33 -04:00
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
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
47e8a90553
fix wrong message
2018-11-16 21:11:32 -05:00
Tomas Kopecek
6f7f828f77
python-modernize -f lib2to3.fixes.fix_except
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