Commit graph

8032 commits

Author SHA1 Message Date
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
Mike McLean
52cc8b9d41 flake8 2025-06-12 13:24:12 +02:00
Mike McLean
9163e476cb fix None display in query form 2025-06-12 13:24:12 +02:00
Mike McLean
1d929d0d71 update call data for unit test 2025-06-12 13:24:12 +02:00
Mike McLean
140aeacda0 port new templates to jinja 2025-06-12 13:24:12 +02:00
Mike McLean
a2f9fbfd06 typo 2025-06-12 13:24:12 +02:00
Mike McLean
357587a57c repo requests web ui
* new page for request details
* new page for querying requests
* add links in taginfo and taskinfo pages
* show more data in repoinfo page
2025-06-12 13:24:12 +02:00
Tomas Kopecek
573bd41654 PR#4383: handle cross-volume draft symlinks
Merges #4383
https://pagure.io/koji/pull-request/4383

Fixes: #4386
https://pagure.io/koji/issue/4386
Promoting a draft build can leave broken symlink at original draft location
2025-06-12 13:23:08 +02:00
Mike McLean
456263b109 clean up test dir 2025-06-12 13:22:59 +02:00
Mike McLean
88efb9dbef typo 2025-06-12 13:22:59 +02:00
Mike McLean
12f9d239df unrelated docs typo 2025-06-12 13:22:59 +02:00
Mike McLean
8b98a949f7 update volume docs 2025-06-12 13:22:59 +02:00
Mike McLean
ad071502c1 update tests for add_volume 2025-06-12 13:22:59 +02:00
Mike McLean
51c130e290 more unit tests 2025-06-12 13:22:59 +02:00
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