Commit graph

7917 commits

Author SHA1 Message Date
Mike McLean
52cecf06c8 Use make_with_dirs macro
This effectively replaces most of https://pagure.io/koji/pull-request/4297
2025-04-17 10:13:41 -04:00
Michel Lind
18528e563c Allow overriding sbin directory
This fixes the Koji build for Fedora 42+, where on an installed system,
`/sbin` and `/usr/sbin` are symlinks to `/usr/bin`; see:
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

On a build root the symlink does not exist, so attempts in the spec to
manipulate binaries in `%{_sbindir}/` fail as these binaries are
installed to `%{buildroot}/usr/sbin` while the script is looking for
`%{buildroot}/usr/bin`

The default value is set to `/usr/sbin` so not passing `SBINDIR` when
installing results in the current behavior being preserved.

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
2025-04-17 10:13:41 -04:00
Mike McLean
b6c9ce7a59 PR#4363: Revert py2 portion of mr#4214
Merges #4363
https://pagure.io/koji/pull-request/4363

Fixes: #4351
https://pagure.io/koji/issue/4351
Builds fail on py2 builders
2025-04-17 10:12:31 -04:00
Mike McLean
204b45edcc fix py2 test failure
fix suggested by julian8628
2025-04-17 10:10:53 -04:00
Mike McLean
26f0e3e98a drop obsolete mock 2025-04-17 10:10:53 -04:00
Mike McLean
d970eeeb5d fix unit tests 2025-04-17 10:10:53 -04:00
Mike McLean
60761e6936 revert py2 portion of mr#4214
See https://pagure.io/koji/pull-request/4214
2025-04-17 10:10:53 -04:00
Mike McLean
91ec3d58e4 PR#4232: handle arch-duplicate logs in importImageInternal
Merges #4232
https://pagure.io/koji/pull-request/4232

Fixes: #4231
https://pagure.io/koji/issue/4231
Error importing build log with 1.35.1
2025-04-15 10:55:49 -04:00
Mike McLean
62021b8119 unit tests 2025-04-15 10:53:50 -04:00
Mike McLean
1c9b27690b handle arch-duplicate logs in importImageInternal 2025-04-15 10:53:50 -04:00
Mike McLean
4729cf8687 PR#4358: Fix min_avail calculation
Merges #4358
https://pagure.io/koji/pull-request/4358

Fixes: #4359
https://pagure.io/koji/issue/4359
 Fix min_avail calculation
2025-04-08 15:51:27 -04:00
Mike McLean
b3ba2fac91 unit test 2025-04-08 15:44:23 -04:00
Mike McLean
9a161f9146 fix min_avail calculation 2025-04-08 15:44:23 -04:00
Tomas Kopecek
caeac8e7c7 PR#4357: Fix two unit test issues
Merges #4357
https://pagure.io/koji/pull-request/4357
2025-03-31 11:15:40 +02:00
Mike McLean
c8e1ca7732 fix pathinfo side effect from unit test 2025-03-31 11:15:32 +02:00
Mike McLean
785ef7df38 fix potential stall in test_gssapi.py 2025-03-31 11:15:32 +02:00
Tomas Kopecek
28a2da913b PR#4270: keep latest default repo for build tags
Merges #4270
https://pagure.io/koji/pull-request/4270

Fixes: #4276
https://pagure.io/koji/issue/4276
Kojira can leave build tags with no repo at all

Fixes: #4295
https://pagure.io/koji/issue/4295
kojiria seems to be gc'ing latest repos-dist
2025-03-31 11:12:16 +02:00
Mike McLean
3f0de62389 unit test 2025-03-31 11:11:55 +02:00
Mike McLean
e691d28cae target check makes no sense for dist repos 2025-03-31 11:11:55 +02:00
Mike McLean
c0690c821f avoid expiring latest dist repos also
Fixes: https://pagure.io/koji/issue/4295
2025-03-31 11:11:55 +02:00
Mike McLean
d159356713 unit tests 2025-03-31 11:11:55 +02:00
Mike McLean
c4948587a3 recheck_period for expire check 2025-03-31 11:11:55 +02:00
Mike McLean
0f78b9adb0 tweak unit test 2025-03-31 11:11:55 +02:00
Mike McLean
8fb2d9acc1 kojira: adjust expire_check 2025-03-31 11:11:55 +02:00
Tomas Kopecek
6113ef71c1 PR#4303: Fix tasks url creation
Merges #4303
https://pagure.io/koji/pull-request/4303

Fixes: #4302
https://pagure.io/koji/issue/4302
In the deployed koji 1.35.1, the tasks link from the userinfo page is invalid
2025-03-21 15:04:10 +01:00
Tomas Kopecek
f4328d5969 Fix tasks url creation
Related: https://pagure.io/koji/issue/4302
2025-03-21 15:04:03 +01:00
Tomas Kopecek
7589738557 PR#4310: fix option data types and add unit test
Merges #4310
https://pagure.io/koji/pull-request/4310

Relates: #4308
https://pagure.io/koji/issue/4308
Wrong types in default hub values
2025-03-21 14:52:45 +01:00
Mike McLean
eb9ada8eb5 test config dtypes 2025-03-21 14:52:37 +01:00
Mike McLean
a7d7d9c1f5 move config map and add unit tests 2025-03-21 14:52:37 +01:00
Tomas Kopecek
3e48c8597f PR#4125: partial draft support for cg_import
Merges #4125
https://pagure.io/koji/pull-request/4125

Relates: #4124
https://pagure.io/koji/issue/4124
Support draft builds for CGs
2025-03-20 15:54:29 +01:00
Mike McLean
1662bb8ee9 add epoch option to reserve-cg command 2025-03-20 15:54:22 +01:00
Mike McLean
cee0b21061 update unit test 2025-03-20 15:54:22 +01:00
Mike McLean
e172a9ca08 update metadata doc 2025-03-20 15:54:22 +01:00
Mike McLean
2fabf3d74f cg draft support 2025-03-20 15:54:22 +01:00
Tomas Kopecek
33a76afab4 PR#4341: Fix python2 unittests
Merges #4341
https://pagure.io/koji/pull-request/4341

Fixes: #4340
https://pagure.io/koji/issue/4340
fix python2 unit tests
2025-03-13 14:23:59 +01:00
Jana Librova
6c98b602e5 Fix python2 unittests
Fixes: https://pagure.io/koji/issue/4340
2025-03-07 22:03:57 +01:00
Tomas Kopecek
30cc20652d PR#4334: work around parse_qs behavior in python < 3.11
Merges #4334
https://pagure.io/koji/pull-request/4334

Fixes: #4332
https://pagure.io/koji/issue/4332
parse_qs fails on python 3.9
2025-03-03 16:34:21 +01:00
Mike McLean
28b9ef7c64 avoid duplicate environ.get call 2025-02-25 11:10:45 -05:00
Mike McLean
abf33cea63 unit test 2025-02-24 12:17:24 -05:00
Mike McLean
af18c59623 work around parse_qs behavior in python < 3.11 2025-02-24 12:17:24 -05:00
Tomas Kopecek
8e55098458 PR#4330: drop custom threadlocal implementation
Merges #4330
https://pagure.io/koji/pull-request/4330

Fixes: #4331
https://pagure.io/koji/issue/4331
2025-02-24 12:55:27 +01:00
Mike McLean
ad81bf3f61 drop custom threadlocal implementation 2025-02-23 21:08:57 -05:00
Tomas Kopecek
00a01d2522 PR#4328: use unittest.mock instead of mock
Merges #4328
https://pagure.io/koji/pull-request/4328

Fixes: #4327
https://pagure.io/koji/issue/4327
Import mock from unittest
2025-02-20 13:20:49 +01:00
root
5bdcb2a3a5 use unittest.mock instead of mock 2025-02-19 15:24:33 +01:00
Tomas Kopecek
9e2e7023fe PR#4326: Remove fp file using os.unlink instead of using the delete option of NamedTemporaryFile
Merges #4326
https://pagure.io/koji/pull-request/4326

Fixes: #4320
https://pagure.io/koji/issue/4320
Tests failing
2025-02-19 12:49:33 +01:00
root
5e3b697599 Remove fp file using os.unlink instead of using delete option of NamedTemporaryFile 2025-02-18 15:52:58 +01:00
Tomas Kopecek
77d56ccd08 PR#4314: Release notes for 1.35.2
Merges #4314
https://pagure.io/koji/pull-request/4314

Fixes: #4313
https://pagure.io/koji/issue/4313
1.35.2 release notes
2025-02-18 12:16:54 +01:00
Tomas Kopecek
7e79d42554 Release notes for 1.35.2
Related: https://pagure.io/koji/issue/4313
2025-02-18 12:15:08 +01:00
Tomas Kopecek
4270cdd4c1 PR#4277: kojira: split currency and regen
Merges #4277
https://pagure.io/koji/pull-request/4277

Fixes: #4278
https://pagure.io/koji/issue/4278
repo requests can be delayed of there are a lot of tags with auto regen
2025-02-18 12:09:18 +01:00
Tomas Kopecek
47c7d93767 Fix unit tests 2025-02-18 12:08:31 +01:00