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
Mike McLean
fbb24d631d
unit test
2024-03-05 13:22:58 +01:00
Mike McLean
fadee51aff
handle missing host data, use self.maxjobs as default
2024-03-05 13:22:58 +01:00
Tomas Kopecek
8b554bd3ca
Use also builder's maxjobs setting in scheduler
...
Related: https://pagure.io/koji/issue/4038
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
3d6b10905e
PR#4037: Fix temporary cg_import.log file path
...
Merges #4037
https://pagure.io/koji/pull-request/4037
Fixes : #4036
https://pagure.io/koji/issue/4036
cg import uses wrong log path
2024-03-05 13:20:01 +01:00
Tomas Kopecek
053c4f95b2
Fix temporary cg_import.log file path
...
Related: https://pagure.io/koji/issue/4036
2024-03-05 13:19:53 +01:00
Tomas Kopecek
d58031395f
PR#3974: Use dnf5-compatible "group install" command
...
Merges #3974
https://pagure.io/koji/pull-request/3974
Fixes : #3971
https://pagure.io/koji/issue/3971
Do 'dnf group install' instead of 'dnf groupinstall'
2024-03-05 13:17:43 +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
Tomas Kopecek
dd128f8617
PR#4015: provide draft flag to build policy
...
Merges #4015
https://pagure.io/koji/pull-request/4015
Relates: #4014
https://pagure.io/koji/issue/4014
RFE: disable draft builds
2024-03-04 16:53:23 +01:00
Mike McLean
ecd5d96023
provide draft flag to build policy
...
Related: https://pagure.io/koji/issue/4014
2024-03-04 16:53:12 +01:00
Tomas Kopecek
d6a59cb585
PR#3891: Don't try to resolve server version for old hubs
...
Merges #3891
https://pagure.io/koji/pull-request/3891
Fixes : #3890
https://pagure.io/koji/issue/3890
Don't try to resolve server version for older hubs
2024-02-29 15:40:12 +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
Tomas Kopecek
d43ad529c1
PR#3999: Have builders refuse repo tasks if they can't access /mnt/koji
...
Merges #3999
https://pagure.io/koji/pull-request/3999
Fixes : #4002
https://pagure.io/koji/issue/4002
Misconfigured createrepo builders can fail a ton of regens
2024-02-29 11:01:51 +01:00
Mike McLean
68009db154
log refusal message
2024-02-29 11:01:43 +01:00
Mike McLean
4a31c42edd
handle refusal with an exception
2024-02-29 11:01:43 +01:00
Mike McLean
4b35b7b729
typo
2024-02-29 11:01:43 +01:00
Mike McLean
e169a6bf3e
in newRepo too
2024-02-29 11:01:43 +01:00
Mike McLean
56d861bff3
refuse createrepo tasks if no fs access
2024-02-29 11:01:43 +01:00
Tomas Kopecek
4bc347ca03
PR#4018: Fix scheduler log ordering
...
Merges #4018
https://pagure.io/koji/pull-request/4018
Fixes : #4017
https://pagure.io/koji/issue/4017
scheduler logs are out of order
2024-02-27 12:33:01 +01:00
Mike McLean
9517fb9ee1
more unit tests
2024-02-27 12:32:52 +01:00
Mike McLean
feb0417df5
fakehub: better kw arg handling
2024-02-27 12:32:52 +01:00
Mike McLean
a7006a283f
order log messages
2024-02-27 12:32:52 +01:00
Mike McLean
374f4e3793
better ordering support in QueryView
2024-02-27 12:32:52 +01:00
Tomas Kopecek
92298fb943
PR#4011: Show only active channels at clusterhealth
...
Merges #4011
https://pagure.io/koji/pull-request/4011
Fixes : #4010
https://pagure.io/koji/issue/4010
Cluster health page show disabled channels
2024-02-21 15:33:51 +01:00
Tomas Kopecek
40db49a830
Show only active channels at clusterhealth
...
Related: https://pagure.io/koji/issue/4010
2024-02-21 15:33:43 +01:00
Tomas Kopecek
31cefe8695
PR#3944: Backup signature headers in delete_rpm_sig
...
Merges #3944
https://pagure.io/koji/pull-request/3944
Fixes : #3956
https://pagure.io/koji/issue/3956
Backup signature headers in delete_rpm_sig
2024-02-21 12:29:05 +01:00
Mike McLean
e0fea6a3b0
delete_rpm_sig: check header files first
...
also fixup some error logging and update unit tests
2024-02-21 12:28:56 +01:00
Mike McLean
f732aad509
Backup signature headers in delete_rpm_sig
2024-02-21 12:28:56 +01:00
Tomas Kopecek
15018712bc
PR#4008: CLI list-users with filters from listUsers
...
Merges #4008
https://pagure.io/koji/pull-request/4008
Fixes : #4001
https://pagure.io/koji/issue/4001
CLI: add remaining filters from listUsers API to list-users
2024-02-21 12:28:13 +01:00
Jana Cupova
d31750bf70
CLI list-users with filters from listUsers
...
Fixes: https://pagure.io/koji/issue/4001
2024-02-15 08:25:19 +01:00
Tomas Kopecek
690c53b897
PR#3969: New scmpolicy plugin
...
Merges #3969
https://pagure.io/koji/pull-request/3969
Fixes : #3968
https://pagure.io/koji/issue/3968
scmpolicy plugin
2024-02-09 14:48:38 +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
0251961929
PR#3989: Oz: don't hardcode the image size unit as 'G'
...
Merges #3989
https://pagure.io/koji/pull-request/3989
Fixes : #3993
https://pagure.io/koji/issue/3993
Oz: don't hardcode the image size unit as 'G'
2024-02-07 14:45:08 +01:00
Adam Williamson
710fe46e0b
Oz: don't hardcode the image size unit as 'G'
...
This has never been necessary, because oz has always treated a
size with no unit as being in gibibytes. After
https://github.com/clalancette/oz/pull/310 it will be actively
harmful, because it will prevent us from using that new ability
of oz to specify a size using any other unit, as we have a
specific reason to want:
https://bugzilla.redhat.com/show_bug.cgi?id=2247611
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-02-07 14:44:59 +01:00
Tomas Kopecek
ee07eb7b43
PR#4005: Fix bandit "nosec" comments
...
Merges #4005
https://pagure.io/koji/pull-request/4005
Fixes : #4004
https://pagure.io/koji/issue/4004
Fix bandit warnings
2024-02-06 11:10:53 +01:00
Tomas Kopecek
77b7e3a0c9
Fix bandit "nosec" comments
...
Related: https://pagure.io/koji/issue/4004
2024-02-06 11:09:16 +01:00
Tomas Kopecek
167ee017f2
PR#3998: typo in set_refusal
...
Merges #3998
https://pagure.io/koji/pull-request/3998
Fixes : #3997
https://pagure.io/koji/issue/3997
host.refuseTask failure
2024-02-05 11:28:50 +01:00
Mike McLean
2a6e18fa35
typo in set_refusal
...
Fixes https://pagure.io/koji/issue/3997
2024-02-05 11:28:43 +01:00
Tomas Kopecek
6198e294ab
PR#3996: Document draft builds
...
Merges #3996
https://pagure.io/koji/pull-request/3996
Fixes #3987
https://pagure.io/koji/issue/3987
2024-02-05 11:24:39 +01:00
Mike McLean
ce575c15e3
unrelated fixes
2024-02-05 11:24:32 +01:00
Mike McLean
430a58a4f7
draft builds doc
2024-02-05 11:24:32 +01:00
Tomas Kopecek
91cf2b5025
PR#3975: Bandit [B411]: use defusedxml to prevent remote XML attacks
...
Merges #3975
https://pagure.io/koji/pull-request/3975
Fixes : #3964
https://pagure.io/koji/issue/3964
Fix bandit xmlrpc issue
2024-02-02 09:10:17 +01:00
Tomas Kopecek
527c460d9a
fix test requirements
2024-02-02 09:09:42 +01:00
Yu Ming Zhu
c629d6d99f
add defusedxml installation in Dockerfiles
2024-02-02 09:08:28 +01:00