Commit graph

7595 commits

Author SHA1 Message Date
Mike McLean
9c8b9a1556 skip updateBuildroots if we have just taken a task 2024-03-28 15:58:07 +01:00
Mike McLean
1d0d4f2683 add unit tests and drop obsolete ones 2024-03-28 15:58:07 +01:00
Mike McLean
5c383b6175 clean up logging 2024-03-28 15:58:07 +01:00
Mike McLean
3554a1fb43 update getNextTask to use host.getTasks 2024-03-28 15:58:07 +01:00
Tomas Kopecek
3315e3c379 PR#4000: Fix remove-tag-inheritance with priority
Merges #4000
https://pagure.io/koji/pull-request/4000

Fixes: #2804
https://pagure.io/koji/issue/2804
allow duplicate parents with different priorities in the same inheritance level

Fixes: #3985
https://pagure.io/koji/issue/3985
remove-tag-inheritance ignores priority
2024-03-26 15:11:34 +01:00
Jana Cupova
63a6f43d8a Fix remove-tag-inheritance with priority
Fix remote-tag-inheritance with priority

Fixes: https://pagure.io/koji/issue/3985
2024-03-26 15:11:24 +01:00
Tomas Kopecek
41ab495f28 PR#4043: --limit from scheduler-logs/info
Merges #4043
https://pagure.io/koji/pull-request/4043

Fixes: #4042
https://pagure.io/koji/issue/4042
scheduler-logs/info don't limit returned records
2024-03-26 12:28:16 +01:00
Tomas Kopecek
2c9f69524a fix flake8 2024-03-26 12:27:31 +01:00
Tomas Kopecek
2c2e9209d1 fix typo 2024-03-20 14:11:43 +01:00
Tomas Kopecek
2468cb989d modify for 1.34.1 2024-03-20 13:48:59 +01:00
Mike McLean
030a54b8d4 use hub version check for compat code 2024-03-20 13:48:58 +01:00
Tomas Kopecek
fe3474c0e8 better compatibility errors 2024-03-20 13:48:58 +01:00
Tomas Kopecek
f3306a371b backward compatibility 2024-03-20 13:48:58 +01:00
Tomas Kopecek
43b173bb17 --limit from scheduler-logs/info
Related: https://pagure.io/koji/issue/4042
2024-03-20 13:48:58 +01:00
Tomas Kopecek
91f410f8fb PR#4025: docs: mock's configuration
Merges #4025
https://pagure.io/koji/pull-request/4025

Fixes: #4019
https://pagure.io/koji/issue/4019
RLIMITS settings for nspawn
2024-03-19 11:10:03 +01:00
Mike McLean
88ea24441d doc updates 2024-03-19 11:09:54 +01:00
Tomas Kopecek
54f32e8266 docs: mock's configuration
Related: https://pagure.io/koji/issue/4019
2024-03-19 11:09:54 +01:00
Tomas Kopecek
296cf75468 PR#4052: fix formatting of rpm in title
Merges #4052
https://pagure.io/koji/pull-request/4052

Fixes #4053
https://pagure.io/koji/issue/4053
2024-03-19 10:53:32 +01:00
Mike McLean
2af702b71c fix formatting of rpm in title 2024-03-19 10:53:24 +01:00
Tomas Kopecek
d7d4e4f1d2 PR#4026: Better index for rpm lookup
Merges #4026
https://pagure.io/koji/pull-request/4026

Fixes: #4022
https://pagure.io/koji/issue/4022
rpminfo_unique_nvra_not_draft index is insufficient for rpm lookups
2024-03-19 10:52:47 +01:00
Tomas Kopecek
d0c1b4d37d Better index for rpm lookup
Related: https://pagure.io/koji/issue/4022
2024-03-19 10:52:33 +01:00
Tomas Kopecek
c44be86c40 PR#4023: split out buildroot log watching logic
Merges #4023
https://pagure.io/koji/pull-request/4023

Fixes: #4009
https://pagure.io/koji/issue/4009
RFE: Grab /var/log/dnf5.log from Mock buildroot

Relates: #3875
https://pagure.io/koji/issue/3875
Log the macros enabled in side tag
2024-03-13 10:09:25 +01:00
Mike McLean
aa370c20a2 capture dnf logs
Fixes https://pagure.io/koji/issue/4009
2024-03-13 10:09:15 +01:00
Mike McLean
9694f07aef reduce log noise a bit 2024-03-13 10:09:15 +01:00
Mike McLean
60b71020f0 split out buildroot log watching logic 2024-03-13 10:09:15 +01:00
Mike McLean
c51ae5d6b3 typo in BuildMavenTask 2024-03-13 10:09:15 +01:00
Mike McLean
27160b1a58 also use in appliance/livecd/liveimage 2024-03-13 10:09:15 +01:00
Mike McLean
c08b3fd042 rename var 2024-03-13 10:09:15 +01:00
Tomas Kopecek
91f176ccb5 Track uploads in BuildRoot and log mock config
Related: https://pagure.io/koji/issue/3875
2024-03-13 10:09:15 +01:00
Tomas Kopecek
eba8de2473 PR#3970: Add CLI with users with given permission
Merges #3970
https://pagure.io/koji/pull-request/3970

Fixes: #3950
https://pagure.io/koji/issue/3950
Add command to list users with a particular permission
2024-03-11 13:12:33 +01:00
Jana Cupova
c62e3467b5 Add CLI with users with given permission
Fixes: https://pagure.io/koji/issue/3950
2024-03-11 13:12:20 +01:00
Tomas Kopecek
7d126abe91 PR#4032: implicit task refusals
Merges #4032
https://pagure.io/koji/pull-request/4032

https://pagure.io/koji/issue/4035
2024-03-06 11:14:20 +01:00
Mike McLean
c00e9b3c2e unit test 2024-03-06 11:14:12 +01:00
Mike McLean
df55636d6d implicit task refusals 2024-03-06 11:14:12 +01:00
Tomas Kopecek
47e2d35c33 PR#4041: Use host maxtasks if available
Merges #4041
https://pagure.io/koji/pull-request/4041

https://pagure.io/koji/issue/4030
https://pagure.io/koji/issue/4038
2024-03-05 13:23:06 +01:00
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