Commit graph

1000 commits

Author SHA1 Message Date
Mike McLean
822b81644b flake8, fix typo 2024-03-05 13:22:58 +01:00
Mike McLean
f8c633f310 streamline hub calls 2024-03-05 13:22:58 +01:00
Tomas Kopecek
212059d049 json conversion 2024-03-05 13:22:58 +01:00
Tomas Kopecek
eb71941ea9 Basic host data for scheduler
Related: https://pagure.io/koji/issue/4030
2024-03-05 13:22:58 +01:00
Tomas Kopecek
4ad92b5cd6 Use dnf5-compatible "group install" command
* yum knows only "yum groupinstall"
 * dnf < 5 knows both
 * dnf-5 only "dnf5 group install"

From RHEL5 version of yum, @group syntax is supported, so we can
replace all groupinstall commands with "install @group".

Related: https://pagure.io/koji/issue/3971
2024-03-05 13:17:35 +01:00
Mike McLean
cfd6d3064f show hub version in koji hello 2024-02-29 15:40:03 +01:00
Mike McLean
8e6737a116 avoid clearing cached hub version 2024-02-29 15:40:03 +01:00
Mike McLean
62f279ad43 move version fetching to hub_version_str property 2024-02-29 15:40:03 +01:00
Tomas Kopecek
7a9b0561eb Don't try to resolve server version for old hubs
Related: https://pagure.io/koji/issue/3890
2024-02-29 15:40:03 +01:00
Mike McLean
4a31c42edd handle refusal with an exception 2024-02-29 11:01:43 +01:00
Tomas Kopecek
2013692fc9 New scmpolicy plugin
Plugin for scm policy using data from SCM checkout.

Related: https://pagure.io/koji/issue/3968
2024-02-09 14:47:37 +01:00
Tomas Kopecek
77b7e3a0c9 Fix bandit "nosec" comments
Related: https://pagure.io/koji/issue/4004
2024-02-06 11:09:16 +01: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
7f4bbb698c Release notes 1.34
Related: https://pagure.io/koji/issue/3919
2024-01-23 13:12:12 +01:00
Yu Ming Zhu
deaa6a01e8 gen_draft_release: clearer argument naming not to mask builtin id function 2024-01-05 10:00:51 +00:00
Yu Ming Zhu
34c6712fde simpler gen_draft_release and parse_target_release 2024-01-05 10:00:47 +00:00
Mike McLean
ea86bd90b7 change draft suffix format to be url friendly 2024-01-05 10:00:42 +00:00
Mike McLean
ecdeba8c72 raise http errors in downloadFile 2024-01-05 10:00:42 +00:00
Yu Ming Zhu
f29e5e143e parse target_release from draft release instead of extra.draft.target_release 2024-01-05 10:00:38 +00:00
Yuming Zhu
241daabecd remove unused methods in PathInfo 2024-01-05 10:00:33 +00:00
Yu Ming Zhu
77a06c98b3 draft filter opt: use bool/None instead of bit flag 2024-01-05 10:00:33 +00:00
Yuming Zhu
87409499a3 draft builds 2024-01-05 10:00:29 +00:00
Mike McLean
629a0f2628 fix arg passing in exclusiveSession
Fixes https://pagure.io/koji/issue/3947
2023-11-27 20:51:48 -05:00
Tomas Kopecek
4f78acca12 fix task_id extraction for missing extra
Related: https://pagure.io/koji/issue/3906
2023-10-31 11:27:32 +01:00
Tomas Kopecek
0c58cd954d Retrieve task_id for older OSBS builds
Related: https://pagure.io/koji/issue/3906
2023-10-23 14:24:16 +02:00
Tomas Kopecek
0df86294c4 wrong variable 2023-10-03 15:23:02 +02:00
Mike McLean
81c6cde17a drop unused task states 2023-10-03 15:23:02 +02:00
Mike McLean
40660bbb42 call host.refuseTask when host check fails 2023-10-03 15:23:02 +02:00
Tomas Kopecek
6a23a12fd0 wip 2023-10-03 15:23:01 +02:00
Tomas Kopecek
9b48b9c01d Switch to filewwatcher logger
Don't use koji's logrotate and let system handle it.

Related: https://pagure.io/koji/issue/3392
2023-09-04 09:20:16 +02:00
Tomas Kopecek
c0bc73fdc0 disable use_bootstrap_image if not requested
Related: https://pagure.io/koji/issue/3872
2023-08-28 12:56:49 +02:00
Tomas Kopecek
616f191040 Koji 1.33.1 release notes
Related: https://pagure.io/koji/issue/3869
2023-07-11 16:01:14 +02:00
Ken Dreyer
6b842439b0 explain _ord() method
This method is a historical oddity that we needed to deal with pieces of
RPM headers (strings) on Python 2. Since ord() no longer exists on
Python 3, it's difficult for new developers to understand what this code
is.  Add comments so it's easier to read.
2023-05-30 14:44:56 -04:00
Jana Cupova
0c00dceb07 Remove get_sequence_value in 1.34
Fixes: https://pagure.io/koji/issue/3635
2023-05-24 09:38:05 +02:00
Jana Cupova
8f9a4d438e Remove koji.AUTHTYPE_* in 1.34
Fixes: https://pagure.io/koji/issue/3441
2023-05-24 09:37:22 +02:00
Tomas Kopecek
cb009f019d Koji 1.33 release notes
Related: https://pagure.io/koji/issue/3821
2023-05-23 17:21:00 +02:00
Mike McLean
d744364d71 more rmtree logging 2023-05-17 09:35:11 +02:00
Mike McLean
facfddb73d additional logging in rmtree 2023-05-17 09:35:11 +02:00
Mike McLean
cf94d9ad24 avoid noisy chained tracebacks when converting Faults 2023-05-11 15:06:41 +02:00
Tomas Kopecek
fddb5de41f Fix typo 2023-05-11 15:02:23 +02:00
Tomas Kopecek
b58527fa1d Release notes 1.32.1
Related: https://pagure.io/koji/issue/3764
2023-04-04 13:26:34 +02:00
Mike McLean
106ccbcde5 single opt for get, plus simple unit test 2023-03-23 13:20:06 +01:00
Mike McLean
898af45e4f flake8 fix 2023-03-23 13:20:06 +01:00
Mike McLean
1d117742fa use surrogateescape to decode in RawHeader 2023-03-23 13:20:06 +01:00
Mike McLean
46b15774bd decode option in RawHeader, handle integer counts 2023-03-23 13:20:06 +01:00
Tomas Kopecek
d6d5eceefd flake8 fix 2023-03-23 13:20:06 +01:00
Mike McLean
ed22da06c8 RawHeader doesn't actually need rpmlib 2023-03-23 13:20:06 +01:00
Mike McLean
d8f7564c45 redundant constant 2023-03-23 13:20:06 +01:00
Mike McLean
d094ace4c4 autodetect signature headers in RawHeader.dump() 2023-03-23 13:20:06 +01:00
Mike McLean
81058ba0cd RawHeader.dump improvements 2023-03-23 13:20:06 +01:00