Commit graph

889 commits

Author SHA1 Message Date
Tomas Kopecek
14c7dea3e0 Koji 1.30.1 release notes
Related: https://pagure.io/koji/issue/3522
2022-10-07 14:09:48 +02:00
Tomas Kopecek
59f7f8642a fix flake8 errors
Related: https://pagure.io/koji/issue/3480
2022-08-29 15:03:05 +02:00
Tomas Kopecek
43fa6c7730 Release notes koji 1.30
Related: https://pagure.io/koji/issue/3465
2022-08-29 09:37:47 +02:00
Jana Cupova
9287f672ee Parse_arches allows string and list of arches
Fixes: https://pagure.io/koji/issue/3434
2022-08-17 10:42:49 +02:00
Tomas Kopecek
b3f7d7c34e remove unused import 2022-08-01 11:34:41 +02:00
Tomas Kopecek
2006ab1dd8 don't propagate SIGHUP ignore to child processes
Related: https://pagure.io/koji/issue/672
2022-08-01 11:34:41 +02:00
Jana Cupova
44f5ebaabb Authtype as enum and getSessionInfo prints authtype name
Fixes: https://pagure.io/koji/issue/3436
2022-07-26 14:36:00 +02:00
Patrick Uiterwijk
d4d2594653 Fix rpm_hdr_size file closing
The current code will try to close a passed in file object, and will not
try to close a file object it opened when a string is passed in.
This results in either a leaked file object, or a file object that was
passed in to be closed after the function is called.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2022-07-26 14:06:23 +02:00
Tomas Kopecek
9e741bfb9e beautify logged commands issued by koji
Related: https://pagure.io/koji/issue/929
2022-07-19 13:23:57 +02:00
Tomas Kopecek
48b94dadf8 1.29.1 release notes
Related: https://pagure.io/koji/issue/3420
2022-07-12 10:48:36 +02:00
Tomas Kopecek
93bdd16724 Fix wrong encoding in changelog entries
Relates: https://pagure.io/koji/issue/3412
2022-06-27 17:49:49 +02:00
Jana Cupova
1c2438f24e postgresql hub: date_part instead of EXTRACT
Fixes: https://pagure.io/koji/issue/3366
2022-06-14 12:14:05 +02:00
Tomas Kopecek
7d6d95fc66 Release notes 1.29
Related: https://pagure.io/koji/issue/3361
2022-05-26 09:24:00 +02:00
Tomas Kopecek
1652dcc606 improved sensitive values handling (requests/urllib3)
Related: https://pagure.io/koji/issue/3246
2022-05-16 16:19:33 +02:00
Pat Riehecky
4203fbee14 kojid: permit forcing the target arch within mock per tag 2022-05-16 16:15:03 +02:00
Pat Riehecky
a50ca237c7 kojid: permit forcing releasever within mock per tag 2022-05-16 16:15:03 +02:00
Jana Cupova
5655cea21b Py3 re pattern fix 2022-05-11 09:59:04 +02:00
Jana Cupova
f42c1aa863 Add as_string option to showOpts for raw string or dict output
Fixes: https://pagure.io/koji/issue/3312
2022-05-03 12:47:47 +02:00
Tomas Kopecek
8d6dbd5bce Koji 1.28.1 release notes
Related: https://pagure.io/koji/issue/3305
2022-04-07 10:07:27 +02:00
Tomas Kopecek
d95e3ff094 logging and comment update 2022-03-29 12:28:17 +02:00
Tomas Kopecek
2f1090d051 Retry gssapi_login if it makes sense
Related: https://pagure.io/koji/issue/3170
2022-03-29 12:28:17 +02:00
Alex Iribarren
9bc9680285 Fix parsing of URLs with port numbers 2022-03-25 15:37:37 +01:00
Mike McLean
f89794ce07 also raise 400 errors when we can't read the client upload stream 2022-03-21 14:34:30 +01:00
Jana Cupova
b3258c4273 Set dst permissions same as src permissions
Fixes: https://pagure.io/koji/issue/3260
2022-03-21 14:33:43 +01:00
Jana Cupova
8f91020a01 Fix tag and target shows as string, not as dict to string
Fixes: https://pagure.io/koji/issue/3251
2022-03-21 14:30:03 +01:00
Jana Cupova
995b57c961 Remove koji.listFaults
Fixes: https://pagure.io/koji/issue/3083
2022-03-21 14:29:11 +01:00
Tomas Kopecek
77aec93b98 Revert "refactor exceptions to koji.exceptions"
This reverts commit 1e00081991.
2022-02-21 12:33:25 +01:00
Tomas Kopecek
fd84571f82 Revert "add "NoSuch" custom exceptions"
This reverts commit 3ff8eef322.
2022-02-21 12:33:18 +01:00
Tomas Kopecek
7081ce90db Koji 1.28.0 release notes
Fixes: https://pagure.io/koji/issue/3224
2022-02-10 15:45:01 +01:00
Ken Dreyer
3ff8eef322 add "NoSuch" custom exceptions
Add more custom exception classes. This will allow to programmatically
determine the error causes from complex RPCs.

This commit simply defines the new classes and fault codes. Nothing in
Koji's codebase uses these exceptions yet. We'll begin to raise these
exceptions after this is widely deployed for clients in the field.
2022-02-10 15:44:04 +01:00
Ken Dreyer
1e00081991 refactor exceptions to koji.exceptions
Move Koji's custom exceptions classes to a dedicated koji.exceptions
library. This organizes the code so it's easier to maintain, and matches
patterns in other well-known projects, like requests.exceptions or
cryptography.exceptions.
2022-02-10 15:44:04 +01:00
Jana Cupova
968eb61055 Fix makedirs for existing dirs
Fixes: https://pagure.io/koji/issue/3097
2022-02-07 15:04:34 +01:00
Tomas Kopecek
06b5f7c188 Hide sensitive values in urrlib3 exceptions
Fixes: https://pagure.io/koji/issue/2801
2022-02-07 11:10:19 +01:00
Jana Cupova
c1920b330a Write signed copies atomically
Fixes: https://pagure.io/koji/issue/3097
2022-02-07 10:12:57 +01:00
Tomas Kopecek
6aaa6b3248 rename option 2022-02-07 10:07:26 +01:00
Tomas Kopecek
e7db7d8b53 db: logging option for cursor
In some cases we expect query to fail (LOCK NOWAIT) but it still
clutters the logs. Option for not logging cursor-level errors.

Fixes: https://pagure.io/koji/issue/2837
2022-02-07 10:01:21 +01:00
Tomas Kopecek
3ee95baa5f mock.module_setup_commands tag extra option
Fixes: https://pagure.io/koji/issue/2483
2022-02-07 09:33:14 +01:00
Jana Cupova
725c157fbd Allow password in SCM url with new builder option
Fixes: https://pagure.io/koji/issue/3179
2022-01-25 15:47:27 +01:00
Tomas Kopecek
44378d767f Release notes 1.27.1
Related: https://pagure.io/koji/issue/3191
2022-01-13 09:44:05 +01:00
Ken Dreyer
eaa5bf9add lib: rename inner error variable in is_conn_err()
Rename this variable to something easier to understand.
2022-01-11 12:32:52 +01:00
Ken Dreyer
1cc6c79157 lib: refactor errno list in is_conn_error()
Move the copy-and-pasted list of errnos into a variable and use that in
both places. This makes this code easier to understand.
2022-01-11 12:32:52 +01:00
Yuming Zhu
969f102598 [hub] only raise error when authtype is not proxyauthtype
fixes: #3163
2021-12-15 15:04:20 +01:00
Jana Cupova
74ac826a87 Add limits on name values
Fixes: https://pagure.io/koji/issue/2117
2021-12-09 07:11:57 +01:00
Tomas Kopecek
cda6439a91 Koji 1.27 release notes
Fixes: https://pagure.io/koji/issue/3127
2021-11-18 11:28:33 +01:00
Jana Cupova
2118a24e7a Kojira throw exception when auth failed
Fixes: https://pagure.io/koji/issue/2852
2021-11-07 11:06:27 +00:00
Tomas Kopecek
9e6be3f977 lib: Deprecate koji.listFaults
Related: https://pagure.io/koji/issue/3071
2021-11-07 09:37:18 +00:00
Tomas Kopecek
a6aeaee3e3 fix callMethod 2021-11-04 12:07:05 +00:00
Tomas Kopecek
09a8fd71e5 backward compatibility for older hub
use proxyauthtype only if it is explicetly requested. Older hubs
don't know this option and will refuse login attempt.
2021-11-04 12:07:05 +00:00
Tomas Kopecek
038a2f1850 rename ProxyAuthType -> AllowProxyAuthType 2021-11-04 12:07:05 +00:00
Tomas Kopecek
252121c11f propagate proxyauthtype in login calls 2021-11-04 12:07:05 +00:00