Commit graph

7993 commits

Author SHA1 Message Date
Mike McLean
cd31945637 don't require new_binfo 2025-06-12 13:22:59 +02:00
Mike McLean
40d7a30f1b require volume toplink to exist 2025-06-12 13:22:59 +02:00
Mike McLean
3a7656015f check/create volume toplink in add_volume 2025-06-12 13:22:59 +02:00
Mike McLean
a7bc882aa5 initial fix 2025-06-12 13:22:59 +02:00
Mike McLean
cf95af0992 test showing an issue with cross volume promotion links 2025-06-12 13:22:59 +02:00
Tomas Kopecek
fca44b55b2 PR#4355: listUsers excepts userType as int, list and Nonetype
Merges #4355
https://pagure.io/koji/pull-request/4355

Fixes: #4325
https://pagure.io/koji/issue/4325
listUsers doesn't behave according to docs
2025-06-02 11:21:41 +02:00
Jana Librova
037d9e468e listUsers excepts userType as int, list and Nonetype
Fixes: https://pagure.io/koji/issue/4325
2025-06-02 11:21:21 +02:00
Tomas Kopecek
b2eb8d94ee PR#4403: schemas: wsl file suffix
Merges #4403
https://pagure.io/koji/pull-request/4403

Fixes #4404
https://pagure.io/koji/issue/4404
2025-06-02 10:17:45 +02:00
Simon de Vlieger
d16c16a668
schemas: wsl file suffix
The "new" WSL images need a WSL suffix. Currently this is managed on a
per-instance basis but it's a bit of work to sync across them.

Instead add it be default.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-05-30 21:09:54 +02:00
Tomas Kopecek
40e6286bd6 PR#4391: Less log noise for empty or invalid requests
Merges #4391
https://pagure.io/koji/pull-request/4391

Fixes #4394
https://pagure.io/koji/issue/4394
2025-05-20 14:31:04 +02:00
Mike McLean
733294c87d Less log noise for empty or invalid requests 2025-05-20 14:30:58 +02:00
Tomas Kopecek
c44a33ceb6 PR#4370: adjust upload offset and overwrite logic
Merges #4370
https://pagure.io/koji/pull-request/4370

Fixes: #4371
https://pagure.io/koji/issue/4371
Surprising upload failure on koji.fp.o
2025-05-20 14:30:09 +02:00
Mike McLean
b71e690b94 drop unused import in test 2025-05-20 14:30:01 +02:00
Mike McLean
85c1a1b2c9 adjust upload offset and overwrite logic 2025-05-20 14:30:01 +02:00
Tomas Kopecek
4f00e8e245 PR#4219: Add archive types for erofs and squashfs
Merges #4219
https://pagure.io/koji/pull-request/4219

Fixes: #4218
https://pagure.io/koji/issue/4218
koji doesn't know to archive erofs images produced by Kiwi
2025-05-20 14:28:39 +02:00
Davide Cavalca
eed5c7377e Add archive types for erofs and squashfs
Fixes: #4218
2025-05-20 14:28:32 +02:00
Tomas Kopecek
3f58c4c6b8 PR#4380: Restart kojivmd in same way as kojid
Merges #4380
https://pagure.io/koji/pull-request/4380

Fixes #4381
https://pagure.io/koji/issue/4381
2025-05-20 14:14:21 +02:00
Tomas Kopecek
24bfa3e335 Restart kojivmd in same way as kojid
Related: https://pagure.io/koji/issue/4381
2025-05-20 14:14:13 +02:00
Tomas Kopecek
83b4fb5aeb PR#4388: kojikamid fixes
Merges #4388
https://pagure.io/koji/pull-request/4388

Fixes #4398
https://pagure.io/koji/issue/4398
2025-05-20 10:34:12 +02:00
Tomas Kopecek
c863895c3e kojikamid fixes
defusedxml needn't be available in older cygwin envs
typo in md5constructor usage

Related: https://pagure.io/koji/issue/4398
2025-05-20 10:33:04 +02:00
Tomas Kopecek
e17671c51c PR#4316: ensure repos dir
Merges #4316
https://pagure.io/koji/pull-request/4316

Fixes: #4315
https://pagure.io/koji/issue/4315
In clean installation topdir/repos is not created
2025-05-19 09:48:28 +02:00
Mike McLean
274395a7c5 fix unit test 2025-05-19 09:48:20 +02:00
Mike McLean
7e71f18212 ensure repos dir
Fixes https://pagure.io/koji/issue/4315
2025-05-19 09:48:20 +02:00
Tomas Kopecek
2a7585bc99 PR#4389: set user of kojikamid service to Administrator
Merges #4389
https://pagure.io/koji/pull-request/4389

Fixes: #4390
https://pagure.io/koji/issue/4390
kojikamid service created by cygrunsrv isn't owned by Administrator
2025-05-19 09:40:27 +02:00
Yuming Zhu
cdf14ac781 set user of kojikamid service to Administrator 2025-05-15 16:21:53 +00:00
Tomas Kopecek
c057c290d0 PR#4346: port kojiweb to jinja2
Merges #4346
https://pagure.io/koji/pull-request/4346

Fixes: #4361
https://pagure.io/koji/issue/4361
kojiweb jinja2 port
2025-05-07 14:07:12 +02:00
Mike McLean
132a734347 flake8 2025-05-07 14:07:04 +02:00
Mike McLean
8bc1c1b466 fix bandit B704 2025-05-07 14:07:04 +02:00
Mike McLean
2270a85687 drop custom coverage config 2025-05-07 14:07:04 +02:00
Mike McLean
64d6b3f0f7 drop builder changes for now 2025-05-07 14:07:04 +02:00
Mike McLean
96e7cc1634 minor output compatibility fixes
- suppress "None" in api page
- show yes/no for dist repo flag
2025-05-07 14:07:04 +02:00
Mike McLean
5a6c6757df fix template install path 2025-05-07 14:07:04 +02:00
Mike McLean
aa2192d233 alternate coverage config to check template coverage
E.g. using https://github.com/MrSenko/coverage-jinja-plugin
2025-05-07 14:07:04 +02:00
Mike McLean
0fa58716cc move templates into subdir 2025-05-07 14:07:04 +02:00
Mike McLean
4e407c7f1b fixes 2025-05-07 14:07:03 +02:00
Mike McLean
0321b7128b Unit tests, fixes, and cleanup 2025-05-07 14:07:03 +02:00
Mike McLean
402f319283 rename template files to .html.j2 2025-05-07 14:07:03 +02:00
Mike McLean
dee1127ce8 Initial jinja2 porting work 2025-05-07 14:07:03 +02:00
Tomas Kopecek
dbb60e91f3 PR#4385: Add unit tests for add-external-repo
Merges #4385
https://pagure.io/koji/pull-request/4385
2025-05-06 17:19:24 +02:00
Jana Librova
97b1f802e3 Add unit tests for add-external-repo 2025-05-06 15:43:01 +02:00
Tomas Kopecek
b63ef8ae3d PR#4382: deprecate pathinfo.tmpdir
Merges #4382
https://pagure.io/koji/pull-request/4382

Fixes #4384
https://pagure.io/koji/issue/4384
2025-05-06 12:50:15 +02:00
Mike McLean
666d263b65 deprecate pathinfo.tmpdir 2025-05-05 16:04:35 -04:00
Tomas Kopecek
67974ae7d8 PR#4322: Return BuildError when kickstart file is not exists
Merges #4322
https://pagure.io/koji/pull-request/4322

Fixes: #4190
https://pagure.io/koji/issue/4190
fetchKickstart could fail with better error in case of non-existent kickstart
2025-05-05 10:24:18 +02:00
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