Commit graph

274 commits

Author SHA1 Message Date
Tomas Kopecek
638f6cc6f2 replace xmlrpc_client exception with requests
It is broken in startup function for kojid and kojivmd from the
introduction of requests.

Fixes: https://pagure.io/koji/issue/1914
2020-02-21 12:40:42 +01:00
Tomas Kopecek
d670fcf1ec more detailed help message 2020-02-12 14:41:31 +01:00
Tomas Kopecek
610ecdd199 default value for --lock-file option 2020-02-12 14:41:31 +01:00
Tomas Kopecek
608441aa5f add file-locking to koji-gc
Fixes: https://pagure.io/koji/issue/1332
2020-02-12 14:41:31 +01:00
Atanas Zhelev
1ad35ce521 Add smtp authentication support to koji-gc 2020-02-12 14:39:00 +01:00
Brendan Reilly
74e085572e Deprecating list-tag-history and tagHistory 2020-02-10 15:50:30 +01:00
Tomas Kopecek
4e404fcc7c analyze/vacuum all affected tables
Fixes: https://pagure.io/koji/issue/1941
2020-02-04 10:30:17 +01: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
Yuming Zhu
89f1b67e55 koji-gc: fix nvr refs 2020-01-16 14:48:33 +01:00
Tomas Kopecek
92a8fdfe95 use more multicalls in koji-gc
Fixes: https://pagure.io/koji/issue/1697
2020-01-02 11:23:36 +01:00
Tomas Kopecek
b09fd01677 additional options to clean database
Fixes: https://pagure.io/koji/issue/1707
2019-12-19 13:55:06 +01:00
Yu Ming Zhu
a00df18546 sort imports in util 2019-12-12 11:00:55 +00:00
Jim Foraker
a668aaccd8 koji-sweep-db: Turn on autocommit to eliminate VACUUMing errors
psycopg2 leaves transactions open by default, which causes VACUUM to
fail.  Turning on autocommit disables this behavior.
2019-11-27 16:15:35 +01:00
Yuming Zhu
7a6ebc851f improve test and clean targets in Makefiles 2019-11-27 15:42:30 +01:00
Tomas Kopecek
b7da687d71 human-readable timestamp in koji-gc log
Fixes: https://pagure.io/koji/issue/1690
2019-11-26 15:14:53 +01:00
Jim Foraker
b688433323 koji-gc: Fix up usage of default configuration file
Previously, koji-gc would fail if run without a configuration file
being specified on the command line.

Signed-off-by: Jim Foraker <foraker1@llnl.gov>
2019-11-07 17:06:24 -05:00
Tomas Kopecek
c165278694 don't expect all buildReferences fields (koji-gc)
Fixes: https://pagure.io/koji/issue/1723
2019-11-07 11:44:43 -05:00
Tomas Kopecek
71f62894b7 fix typo in --ignore-tags
Fixes: https://pagure.io/koji/issue/1725
2019-11-07 11:43:49 -05:00
Tomas Kopecek
5b8c74a0c2 remove accuracy from koji-sweep-db timer
Fixes: https://pagure.io/koji/issue/1758
2019-11-06 13:03:51 -05:00
Tomas Kopecek
6d72bba3fd fix typo in table column name
Fixes: https://pagure.io/koji/issue/1759
2019-11-05 16:42:07 -05:00
Yu Ming Zhu
135ac0d6ae clean python compiled binaries for non *.py code
fixes: #1698
2019-10-31 13:20:53 +01:00
Yu Ming Zhu
4c1928f377 extract read_config_files util for config parsing 2019-10-15 09:14:16 +02:00
Tomas Kopecek
ba54425854 clean build_reservations table 2019-10-15 09:00:22 +02:00
Tomas Kopecek
54d6630345 Add vaccum to sessions cleanup 2019-10-15 09:00:22 +02:00
Tomas Kopecek
f609f2c2af remove typo 2019-10-15 09:00:22 +02:00
Tomas Kopecek
0d0c879458 remove Install section 2019-10-15 09:00:22 +02:00
Tomas Kopecek
f68eeb6cc0 bundle db maintenance script to hub
Fixes: https://pagure.io/koji/issue/1478
2019-10-15 09:00:22 +02:00
Yu Ming Zhu
2034695e88 add an option to set server realm for all clients 2019-10-10 16:37:56 +02:00
Alex Iribarren
a4cef55bc3 Added basic email template 2019-08-29 10:42:52 +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
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