Jana Librova
dd6b839330
Return BuildError when kickstart file is not exists
...
Fixes: https://pagure.io/koji/issue/4190
2025-05-05 10:24:10 +02:00
Mike McLean
57473d848d
PR#4375: Update Cheetah3 to CT3 PyPI repository
...
Merges #4375
https://pagure.io/koji/pull-request/4375
Fixes : #4374
https://pagure.io/koji/issue/4374
Cheetah3 is hosted under CT3 in PyPi now
2025-04-29 17:30:00 -04:00
Tomas Kopecek
a149d9b7a9
Update Cheetah3 to CT3 PyPI repository
...
Project is using new repo due to 2FA changes on PyPI
https://cheetahtemplate.org/news.html#id5
Related: https://pagure.io/koji/issue/4374
2025-04-29 17:29:54 -04:00
Tomas Kopecek
be3407dcd5
PR#4349: Raise weight cap
...
Merges #4349
https://pagure.io/koji/pull-request/4349
Fixes #4360
https://pagure.io/koji/issue/4360
2025-04-29 16:39:15 +02:00
Tomas Kopecek
e5cee65d75
Raise weight cap
...
Currently weight is limited to 4.5. As they are now builder with very
different setups (number of cpus/memory) it seems to be better to raise
the limit and leave it to fill larger builders capacities.
2025-04-29 16:39:08 +02:00
Tomas Kopecek
742e5de5fa
PR#4354: add-external-repo excepts comma-separated and space-separated list
...
Merges #4354
https://pagure.io/koji/pull-request/4354
Fixes : #4353
https://pagure.io/koji/issue/4353
CLI: add-external-repo doesn't parse archlist according to help
2025-04-29 16:37:40 +02:00
Jana Librova
b7488d1c96
add-external-repo excepts comma-separated and space-separated list
...
Fixes: https://pagure.io/koji/issue/4353
2025-04-29 16:37:31 +02:00
Tomas Kopecek
26198f6114
Fix flake8 and unit test
2025-04-29 16:30:33 +02:00
Adam Williamson
15d604f32e
download-build: allow fallback to unsigned with --key
...
If you pass --key to download-build and signed packages aren't
available, Koji will skip the unsigned package, or error out.
This adds a modified behavior controlled by the new
--fallback-unsigned arg. If this is passed with --key, unsigned
copies will be downloaded for packages for which no signed copy
can be found.
This is primarily intended to work with a proposed Bodhi feature:
https://github.com/fedora-infra/bodhi/pull/5859 . That would
make Bodhi's `bodhi updates download` command automatically try
to download signed copies, but I think it would be best if it
falls back to getting unsigned copies if that doesn't work. Just
failing out entirely seems wrong for that case. Implementing the
fallback in Bodhi itself is more awkward and messy than adding it
in Koji, and it may be useful for others in Koji I guess.
Note there are two distinct 'no signed copies' cases. In the
simple one, queryRPMSigs tells us Koji has no record of the
package ever being signed with the key in question. In this case
we don't bother trying to download a signed copy. In the other
case, queryRPMSigs tells us the package *has* been signed with
the key, but it turns out that signed copy has been garbage-
collected and we can no longer download it. In this case we have
to catch the failure on the download attempt and retry the
download with sigkey set to None.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-29 16:25:37 +02:00
Tomas Kopecek
fd1c383909
PR#4224: Match longest extension first for archivetype
...
Merges #4224
https://pagure.io/koji/pull-request/4224
Fixes : #4291
https://pagure.io/koji/issue/4291
Match longest extension first for archivetype
2025-04-29 16:22:13 +02:00
Mike McLean
7be49b3a04
fix unit test
2025-04-29 16:22:07 +02:00
Mike McLean
cbfa648549
make sure extension matching is case insensitive
2025-04-29 16:22:07 +02:00
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