Commit graph

8088 commits

Author SHA1 Message Date
Mike McLean
1b3990cec9 simplify extension match
this avoids errors if the ext value contains special characters
2025-04-29 16:22:07 +02:00
Mike McLean
6afde19a8a match longest archivetype extension first 2025-04-29 16:22:07 +02:00
Tomas Kopecek
18fa1c3fea PR#4145: report tag_external_repos.arches in query_history
Merges #4145
https://pagure.io/koji/pull-request/4145

Fixes: #4290
https://pagure.io/koji/issue/4290
report tag_external_repos.arches in query_history
2025-04-29 16:20:48 +02:00
Mike McLean
66335f03e5 unit test 2025-04-29 16:20:41 +02:00
Mike McLean
d9d3c6238a report tag_external_repos.arches in query_history 2025-04-29 16:20:41 +02:00
Tomas Kopecek
023e5d0e46 PR#4268: ensure macros and env values passed to mock are strings
Merges #4268
https://pagure.io/koji/pull-request/4268

Fixes: #4279
https://pagure.io/koji/issue/4279
Mock can error if a non-string is placed in the config
2025-04-29 16:19:16 +02:00
Mike McLean
d9795530d7 ensure macros and env values passed to mock are strings 2025-04-29 16:19:08 +02:00
Tomas Kopecek
9e0d9612c9 PR#4259: allow setting ttl in protonmsg
Merges #4259
https://pagure.io/koji/pull-request/4259

Fixes: #4260
https://pagure.io/koji/issue/4260
rfe: set ttl in protonmsg
2025-04-29 16:17:27 +02:00
Mike McLean
026abb8311 unit test 2025-04-29 16:17:20 +02:00
Mike McLean
8a472ed94e allow setting ttl in protonmsg 2025-04-29 16:17:20 +02:00
Tomas Kopecek
fa0c558912 PR#4171: koji-gc: Add ccache to koji-gc options
Merges #4171
https://pagure.io/koji/pull-request/4171

Fixes: #4116
https://pagure.io/koji/issue/4116
koji-gc: dedicated Kerberos credential cache to avoid conflicts with root user's credential cache
2025-04-29 16:15:59 +02:00
Jana Librova
c603ff6ab6 koji-gc: Add ccache to koji-gc options
Fixes: https://pagure.io/koji/issue/4116
2025-04-29 16:15:52 +02:00
Tomas Kopecek
8ad473b6f2 PR#4287: Add new option for mock option - bootstrap_image_ready
Merges #4287
https://pagure.io/koji/pull-request/4287

Fixes: #3958
https://pagure.io/koji/issue/3958
RFE: New option for the Mock's option bootstrap_image_ready
2025-04-29 16:14:24 +02:00
Jana Librova
1c923edcc8 Add new option for mock option - bootstrap_image_ready
Fixes: https://pagure.io/koji/issue/3958
2025-04-29 16:14:16 +02:00
Tomas Kopecek
9ba4398211 PR#4123: download-logs: prefer getBuildLogs for builds
Merges #4123
https://pagure.io/koji/pull-request/4123

Fixes: #4122
https://pagure.io/koji/issue/4122
download-logs --nvr fails to get logs in many cases
2025-04-29 16:11:39 +02:00
Mike McLean
8b5b516227 fall back to task files for non-complete builds 2025-04-29 16:11:30 +02:00
Mike McLean
32a609925d download-logs: prefer getBuildLogs for builds 2025-04-29 16:11:30 +02:00
Mike McLean
f88eddb115 PR#4368: koji 1.35.3 release notes and version bump
Merges #4368
https://pagure.io/koji/pull-request/4368

Fixes: #4367
https://pagure.io/koji/issue/4367
Koji 1.35.3 release notes
2025-04-28 15:34:00 -04:00
Mike McLean
3df7de14ee include pending PRs 2025-04-28 14:00:23 -04:00
Mike McLean
b521a1740f koji 1.35.3 release notes and version bump 2025-04-28 14:00:23 -04:00
Mike McLean
b21cb0bac5 PR#4335: Honor %{_sbindir} in make install
Merges #4335
https://pagure.io/koji/pull-request/4335

Fixes: #4338
https://pagure.io/koji/issue/4338
Better handling of sbindir macro
2025-04-17 10:17:59 -04:00
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