Commit graph

1018 commits

Author SHA1 Message Date
Tomas Kopecek
bdb9f91890 Release notes 1.25.1
Fixes: https://pagure.io/koji/issue/2920
2021-07-01 08:58:46 +02:00
Tomas Kopecek
d53c3f88fa lib: return taskLabel for unknown tasks
"malformed task" has been returned for everything unknown, but external
plugins can create completely valid tasks which we can't parse without
those plugins. In such case we want to return at least method/arch info.

Related: https://pagure.io/koji/issue/2904
2021-06-09 14:44:04 +02:00
Jana Cupova
9541c2a173 importlib instead of imp
Fixes: https://pagure.io/koji/issue/2822
2021-06-02 11:19:33 +02:00
Tomas Kopecek
3598562883 Release notes 1.25
Fixes: https://pagure.io/koji/issue/2845
2021-05-20 12:59:39 +02:00
Jana Cupova
de008b5f27 Add kerberos debug message
Fixes: https://pagure.io/koji/issue/2063
2021-05-03 13:41:35 +02:00
Tomas Kopecek
6e3553459f lib: is_conn_error catch more exceptions
Related: https://pagure.io/koji/issue/2789
2021-04-28 13:34:40 +02:00
Tomas Kopecek
ef3e2cd04b lib: use parse_task_params for taskLabel
Fixes: https://pagure.io/koji/issue/2519
2021-04-26 14:43:20 +02:00
Tomas Kopecek
290e1ddf31 lib: more portable BadStatusLine checking
Fixes: https://pagure.io/koji/issue/2789
2021-04-13 13:26:10 +02:00
Tomas Kopecek
68bf8c6179 PR#2779: 1.24.1 release notes
Merges #2779
https://pagure.io/koji/pull-request/2779

Fixes: #2778
https://pagure.io/koji/issue/2778
koji 1.24.1 release notes
2021-04-12 13:25:13 +02:00
Tomas Kopecek
a7c769fd41 lib: set sinfo=None for failed ssl_login
Fixes: https://pagure.io/koji/issue/2793
2021-03-31 13:54:08 +02:00
Tomas Kopecek
32929a7916 lib: missing default values in read_config
e.g. self.opts.get('max_retries', 30) will return wrong value if there
is None as a default value.

Fixes: https://pagure.io/koji/issue/2668
2021-03-31 13:51:34 +02:00
Tomas Kopecek
be225d7e3f 1.24.1 release notes
Fixes: https://pagure.io/koji/issue/2778
2021-03-29 13:30:24 +02:00
Mike McLean
c71ebec58a Revert "requests exception"
This reverts commit ff8c13969e.

Fixes https://pagure.io/koji/issue/2786
2021-03-29 11:27:22 +02:00
Tomas Kopecek
3321abbf88 lib: more verbose conn AuthError for ssl/gssapi
Fixes: https://pagure.io/koji/issue/2502
2021-03-29 11:22:06 +02:00
Tomas Kopecek
ebdbb80e02 drop PyOpenSSL usage
We've replaced it with requests library some time ago, this code has no
better sensitivity than requests error checking, so we can drop it
completely.

Fixes: https://pagure.io/koji/issue/2752
2021-03-24 14:43:40 +01:00
Tomas Kopecek
66e6ee322b make flake8 happy 2021-03-18 16:13:29 +01:00
Mike McLean
144dc70010 fix logic 2021-03-18 15:46:16 +01:00
Mike McLean
9cceb6764d rework rmtree a bit 2021-03-18 15:46:16 +01:00
Ken Dreyer
ee16954351 better ssl_login() error message when cert is None
"certification" is hard to understand. Provide a clearer error to users.
2021-02-24 14:20:16 +01:00
Tomas Kopecek
c8b1ba8ad0 Release notes 1.24
Fixes: https://pagure.io/koji/issue/2684
2021-02-17 15:08:56 +01:00
Yu Ming Zhu
3c4ae6e78c fix typo for kojikamid
related: #2693
fixes: #2641
2021-02-17 00:07:11 +00:00
Tomas Kopecek
13f4023bf5 flake8 fixes 2021-02-16 14:43:49 +01:00
Tomas Kopecek
c6e69b4f8b backport py27 compatible file open with encoding
client and builder needs to run on py27 which doesn't support
open(encoding='utf-8')

Related: https://pagure.io/koji/issue/2641
2021-02-16 14:13:03 +01:00
Tomas Kopecek
6ad2bccec3 plugin hooks for repo modification
Fixes: https://pagure.io/koji/issue/2636
2021-02-04 10:44:21 +01: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
79f1e45e74 Release notes 1.23.1 2021-01-18 11:09:07 +01:00
Tomas Kopecek
9d64bafed6 lib: better print with debug_xmlrpc
Fixes: https://pagure.io/koji/issue/2597
2021-01-06 14:38:34 +01:00
Tomas Kopecek
8ff5759b21 lib: better argument checking for eventFromOpts
Fixes: https://pagure.io/koji/issue/2513
2021-01-04 10:43:30 +01:00
lrossett
1c787a323f flake8 fixes 2020-12-14 13:26:00 +01:00
lrossett
ff8c13969e requests exception 2020-12-14 13:26:00 +01:00
Michal Privoznik
66ba134859 Install into /usr/lib rather than /usr/lib64/
In koji-1.22.0-129-g0ef3c751 I've changed the way how
site-packages directory is obtained. What I did not realize back
then is there can be multilib systems which will not search for
packages in /usr/lib64. But 64bit systems do look into /usr/lib.
Therefore, let's pick the location where both systems work.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1894261
Fixes: #2578
https://pagure.io/koji/issue/2578
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2020-11-27 10:00:52 +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
2012ae64ec Revert "timezones for py 2.7"
This reverts commit a9108584b7.

Fixes: https://pagure.io/koji/issue/2568
2020-11-02 13:58:04 +01:00
Tomas Kopecek
f1b6cdc401 doc: api docs
Fixes: https://pagure.io/koji/issue/2110
2020-10-23 09:06:23 +02:00
Tomas Kopecek
5e216d9567 Release notes 1.23
Fixes: https://pagure.io/koji/issue/2446
2020-10-22 09:46:29 +02:00
Tomas Kopecek
a8d676b5a5 lib: detect non-installed rpm lib
Fixed: https://pagure.io/koji/issue/2536
2020-10-12 15:07:43 +02:00
Tomas Kopecek
14d1d347e0 PR#2527: don't fail on missing directory
Merges #2527
https://pagure.io/koji/pull-request/2527

Relates: #2481
https://pagure.io/koji/issue/2481
koji.util.rmtree() is not multi-process/thread safe
2020-10-07 13:14:58 +02:00
Tomas Kopecek
a9108584b7 timezones for py 2.7 2020-10-06 15:00:23 +02:00
Tomas Kopecek
9e4de57c81 don't fail on missing directory
Related: https://pagure.io/koji/issue/2481
2020-10-05 13:15:51 +02:00
Yu Ming Zhu
52a63f732d util: [rmtree] try best to catch errors for race condition
fixes: #2481

This approach is ugly, but just working.

ENOENT and ESTALE errors are catched in `chdir`, `listdir` calls to stomach the deletion by other process/thread

ENOTEMPTY is catched when calling `os.rmdir(path)` in `rmtree()` too. It happens when `path` is on an NFS like where ESTALE happens.
2020-10-05 10:14:34 +02:00
Tomas Kopecek
455745b153 update version 2020-09-30 10:43:19 +02:00
Tomas Kopecek
5f472413c9 drop host versions 2020-09-30 10:43:19 +02:00
Tomas Kopecek
ba908fd2de report versions of components
Fixes: https://pagure.io/koji/issue/2430
2020-09-30 10:43:19 +02:00
Michal Privoznik
0ef3c75185 Simplify obtaining of PKGDIR
So far, in all Makefiles we have a complicated way to construct
PKGDIR path which is used to install python modules into.
Firstly, python version is obtained, and then system prefix and
these are then used to construct the PKGDIR path. Well, we can do
better. We can use 'site.getsitepackages()[0]' to obtain exactly
the path we are after.

This also fixes the problem on distributions which have split
/usr/lib and /usr/lib64 directories, because with the way we are
constructing the PKGDIR path we assume that the directories are
the same (or one is a symlink to another). Well, that is not
always the case.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2020-09-22 13:45:48 +02:00
Tomas Kopecek
f674f554f8 builder: configurable TTL for buildroots
Fixes: https://pagure.io/koji/issue/2374
2020-09-17 14:16:02 +02:00
Tomas Kopecek
b4cfca052b hub: more verbose assertPerm error
Fixes: https://pagure.io/koji/issue/2429
2020-08-31 08:48:57 +02:00
Ken Dreyer
e35b571196 util: handle ENOENT in _stripcwd() listdir loop
After we call listdir(), another thread or process might delete files
from the current directory. We cannot always expect lstat() to succeed
in a loop over the initial listdir entries.

If lstat() raises ENOENT, consider this file deleted and move on.
2020-08-27 13:36:27 +02:00
Tomas Kopecek
7855b98ca2 formatTime/Long can handle timestamp
Also replaced *_time with *_ts wherever possible.
2020-08-26 09:26:00 +02:00
Tomas Kopecek
b0efed5e37 Fix time formatting for timezone values
Fixes: https://pagure.io/koji/issue/2423
2020-08-26 09:26:00 +02:00
Christopher O'Brien
66ec44a8f6 some safety netting 2020-08-18 16:28:01 +02:00