Commit graph

122 commits

Author SHA1 Message Date
Jana Librova
c603ff6ab6 koji-gc: Add ccache to koji-gc options
Fixes: https://pagure.io/koji/issue/4116
2025-04-29 16:15:52 +02:00
Yu Ming Zhu
f41b8c70a7 Bandit [B411]: use defusedxml to prevent remote XML attacks
- putting xmlrpc stuff into koji.xmlrpcplus
- adding koji.xmlrpcplus.xmlrpc_server to refer
- replacing refs of original xmlrpc.client.dumps to enhanced
  koji.xmlrpcplus.dumps

fixes: #3964
2024-02-02 09:08:18 +01:00
Tomas Kopecek
aa8a3f634a koji-gc: fail on additional arguments
Related: https://pagure.io/koji/issue/3685
2023-03-09 11:33:34 +01:00
Tomas Kopecek
752c76ab7d fix flake8 2022-12-07 15:35:00 +01:00
Mike McLean
4899aba292 koji-gc: clean up handle_delete() a bit 2022-12-07 15:30:18 +01:00
Mike McLean
3c0fc0b4b1 koji-gc: use history to query trashcan contents
as a side effect, we get the hub to apply our grace period for us
2022-12-07 15:30:18 +01:00
Jana Cupova
26f2a4d889 koji-gc: fix check for type cc_addr, bcc_addr
Fixes: https://pagure.io/koji/issue/3572
2022-11-07 11:35:54 +01:00
Jana Cupova
9bfefe782e Hub, plugins and tools inputs validation
Fixes: https://pagure.io/koji/issue/3319
2022-05-02 06:55:44 +02:00
Jana Cupova
32b5377392 Remove translation stub functions
Fixes: https://pagure.io/koji/issue/3072
2021-10-21 13:25:16 +02:00
Joe Talbott
912a34a8c8 Fix flake8 warnings. 2021-06-14 13:27:21 +02:00
Joe Talbott
e68166b29d koji-gc: Allow admins to force untagging builds.
* Add check for needed permsission and skip the tag if the user doesn't
  have the needed permission.

Fixes: https://pagure.io/koji/issue/2189
2021-06-14 13:27:21 +02:00
Igor Raits
4cbffb322d koji-gc: Allow specifying all CLI options in config
Fixes: https://pagure.io/koji/issue/2814
Signed-off-by: Igor Raits <igor.raits@gmail.com>
2021-04-28 13:09:23 +02:00
Igor Raits
e0d770d10a koji-gc: Implement hastag policy for koji-gc
Fixes: https://pagure.io/koji/issue/2813
Signed-off-by: Igor Raits <igor.raits@gmail.com>
2021-04-28 12:41:21 +02:00
Tomas Kopecek
96ae0ecef5 explicit encoding for text file operations
Fixes: https://pagure.io/koji/issue/2641
2021-01-26 13:36:25 +01:00
Tomas Kopecek
fddfe0a1e9 lower multicall batches in koji-gc 2021-01-13 16:09:18 +01:00
Tomas Kopecek
0f56d39487 remove deprecated --ca option
Fixes: https://pagure.io/koji/issue/2192
2020-11-23 11:03:38 +01:00
Tomas Kopecek
5a4efd6d07 fix merge problems 2020-10-06 15:10:22 +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
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
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
bf45a59bac Don't break on renamed tag
Fixes: https://pagure.io/koji/issue/1965
2020-06-16 11:21:11 +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
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
Yuming Zhu
cf34706f04 use Exception instead of BaseException for bare expection 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
450f9249cd flake8: apply E265 for util/koji-* 2020-03-03 21:35:08 +08:00
Yuming Zhu
a0a9dd74ca flake8: util/koji-* were ignored 2020-03-03 21:35:08 +08:00
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