Commit graph

8056 commits

Author SHA1 Message Date
Mike McLean
5619342ef3 PR#4432: avoid loading system hub config in unit test
Merges #4432
https://pagure.io/koji/pull-request/4432

Fixes: #4431
https://pagure.io/koji/issue/4431
unit test reads system hub config
2025-08-01 15:12:43 -04:00
Mike McLean
c8c1e65f77 fix mock import 2025-08-01 15:08:54 -04:00
Mike McLean
9225bd6b44 avoid loading system hub config in unit test 2025-08-01 15:08:54 -04:00
Mike McLean
7c2d768d22 PR#4433: fix some utils tests for newer platforms
Merges #4433
https://pagure.io/koji/pull-request/4433

Fixes: #4434
https://pagure.io/koji/issue/4434
unit tests error on F42+
2025-08-01 15:01:40 -04:00
Mike McLean
24d9466915 also fix a leaking mock
stop() must be called on the patcher, not the patched object
2025-08-01 09:18:53 -04:00
Mike McLean
7bf0ae833a fix some utils tests for newer platforms
1. error message has changed in a library
2. multiprocessing can't handle a local function anymore
2025-08-01 08:27:01 -04:00
Mike McLean
930a285e60 PR#4373: allow renaming rpm signatures
Merges #4373
https://pagure.io/koji/pull-request/4373

Fixes: #4415
https://pagure.io/koji/issue/4415
Better handling of complex rpm signatures
2025-07-31 10:21:01 -04:00
Mike McLean
f630251944 unit test updates 2025-07-30 18:41:37 -04:00
Mike McLean
60008fbc5b typo 2025-07-30 18:41:37 -04:00
Mike McLean
a3fc36fa85 allow renaming rpm signatures 2025-07-30 18:41:37 -04:00
Mike McLean
311dfde77b PR#4397: Clean up cli for comps management
Merges #4397
https://pagure.io/koji/pull-request/4397

Fixes: #3199
https://pagure.io/koji/issue/3199
RFE: remove-group-pkg

Fixes: #4393
https://pagure.io/koji/issue/4393
Removing a package from a group doesn't work
2025-07-22 10:21:24 -04:00
Mike McLean
c45a392146 update mock imports 2025-07-22 10:19:10 -04:00
Mike McLean
3d42de2a99 flake8 2025-07-22 10:19:10 -04:00
Mike McLean
6b5eb875af docs updates 2025-07-22 10:19:10 -04:00
Mike McLean
0f06d749ef unit tests 2025-07-22 10:19:10 -04:00
Mike McLean
da3938fbc1 ... 2025-07-22 10:19:10 -04:00
Mike McLean
96fc238737 clean up block-group; add unblock-group 2025-07-22 10:19:10 -04:00
Mike McLean
fb292aeca1 update sanity check for remove-group 2025-07-22 10:19:10 -04:00
Mike McLean
f4435d4a9c remove-group-req too 2025-07-22 10:19:09 -04:00
Mike McLean
c5828a4b8e update remove-group-pkg with sanity checks 2025-07-22 10:19:09 -04:00
Jana Cupova
f7464aec2c Add remove-group-pkg CLI command
Fixes: https://pagure.io/koji/issue/3199
2025-07-22 10:19:09 -04:00
Mike McLean
f2b13a9ae2 PR#4423: docs: remove repetition in "Writing Koji plugins"
Merges #4423
https://pagure.io/koji/pull-request/4423

Fixes: #4424
https://pagure.io/koji/issue/4424
docs: remove repetition in "Writing Koji plugins
2025-07-16 15:16:50 -04:00
Dmitrii Kuvaiskii
f6a64fbc0b docs: remove repetition in "Writing Koji plugins"
There was a redundant subsection on "Ensuring the user has the required
permissions". The same information is already covered in the main
section. This commit removes this redundant subsection.
2025-07-16 15:16:44 -04:00
Mike McLean
adbe584a4c PR#4413: Fix race handling in get_next_build
Merges #4413
https://pagure.io/koji/pull-request/4413

Fixes: #4414
https://pagure.io/koji/issue/4414
Fix race handling in get_next_build
2025-07-10 11:49:54 -04:00
Mike McLean
ecfa7766b5 fix a separate race case
In a very close race, one side can first see the duplicate nvr
during the get_build check in new_build, which leads to an
attempt to recycle, which fails because the duplicate is in the
BUILDING state.
2025-07-10 11:48:13 -04:00
Mike McLean
bf27153e1e unit test 2025-07-10 11:48:13 -04:00
Mike McLean
1cd8585b29 rollback on IntegrityError in get_next_build 2025-07-10 11:48:13 -04:00
Mike McLean
134ec54d56 PR#4304: Enable specific number of builds for dist-repo tasks
Merges #4304
https://pagure.io/koji/pull-request/4304

Fixes: #3943
https://pagure.io/koji/issue/3943
RFE : specifying number of builds for dist-repo tasks
2025-07-07 17:32:32 -04:00
Jana Librova
32d74ec28c Enable specific number of builds for dist-repo tasks
Fixes: https://pagure.io/koji/issue/3943
2025-07-07 17:32:26 -04:00
Mike McLean
b3ea825a4f PR#4418: add jinja2 in requirements.txt
Merges #4418
https://pagure.io/koji/pull-request/4418
2025-07-07 11:57:57 -04:00
Yuming Zhu
46be4dacb0 add jinja2 in requirements.txt 2025-07-07 09:52:09 +00:00
Mike McLean
2083513aab PR#4411: support --wait-repo/--wait-build in wrapper-rpm command
Merges #4411
https://pagure.io/koji/pull-request/4411

Fixes: #4412
https://pagure.io/koji/issue/4412
 support --wait-repo/--wait-build in wrapper-rpm command
2025-07-02 16:29:15 -04:00
Mike McLean
c9578b5163 unit test 2025-07-02 15:58:35 -04:00
Mike McLean
91d743c35a support --wait-repo/--wait-build in wrapper-rpm command 2025-07-02 15:58:35 -04:00
Mike McLean
2df628b41f PR#4392: add listBuilds query params for promotion data
Merges #4392
https://pagure.io/koji/pull-request/4392
2025-06-26 14:34:03 -04:00
Mike McLean
fc4f197b6a add listBuilds query params for promotion data 2025-06-26 14:33:03 -04:00
Mike McLean
c60830797d PR#4311: kojivmd: refuse tasks instead of ignoring them
Merges #4311
https://pagure.io/koji/pull-request/4311

Fixes: #4312
https://pagure.io/koji/issue/4312
kojivmd: refuse tasks instead of ignoring them
2025-06-26 14:31:19 -04:00
Mike McLean
fe1127cedb kojivmd: refuse tasks instead of ignoring them 2025-06-26 14:29:30 -04:00
Mike McLean
724dbe317f PR#4150: fix callnum lookup on hub
Merges #4150
https://pagure.io/koji/pull-request/4150

Fixes: #4149
https://pagure.io/koji/issue/4149
callnum not recorded for sessions
2025-06-26 14:27:01 -04:00
Mike McLean
95325009a5 fix unit tests 2025-06-25 15:46:31 -04:00
Mike McLean
ffd1f38cb2 test_client_session.py 2025-06-25 15:21:11 -04:00
Mike McLean
255eadcf2f fix callnum lookup on hub
Fixes https://pagure.io/koji/issue/4149
2025-06-25 15:21:11 -04:00
Tomas Kopecek
45c290dd74 PR#4387: repo requests web ui
Merges #4387
https://pagure.io/koji/pull-request/4387

Fixes: #4289
https://pagure.io/koji/issue/4289
repo requests web ui
2025-06-12 13:24:20 +02:00
Mike McLean
c6e368200e html fixes 2025-06-12 13:24:12 +02:00
Mike McLean
c04784cb14 fix malformed html element 2025-06-12 13:24:12 +02:00
Mike McLean
e8b02860fb fix missing tr element 2025-06-12 13:24:12 +02:00
Mike McLean
cd36bb2826 test_pages updates
This fixes issues with test_pages that I found while checking
coverage. The environ dict was recycled across each call in the loop,
but those calls can modify it, leaking data from one pass to another.
Also, the mocking for _getServer was not placing the session in the
environ, which was causing the tests to miss some cases.
2025-06-12 13:24:12 +02:00
Mike McLean
c7a5622934 update test_pages to cover new code 2025-06-12 13:24:12 +02:00
Mike McLean
c8ae2835fa fix json handling in template 2025-06-12 13:24:12 +02:00
Mike McLean
cc4d88e99e install svg file 2025-06-12 13:24:12 +02:00