Jana Cupova
78dee69de4
Create DeleteProcessor class and use it
...
Fixes: https://pagure.io/koji/issue/3580
2022-12-08 09:18:55 +01:00
Tomas Kopecek
fb202273b9
PR#3618: handle migrated rpmdb path
...
Merges #3618
https://pagure.io/koji/pull-request/3618
Fixes : #3617
https://pagure.io/koji/issue/3617
Fedora changed rpmdb location which breaks buildroot listing
2022-12-08 09:15:17 +01:00
Tomas Kopecek
39fc11a439
handle migrated rpmdb path
...
Related: https://pagure.io/koji/issue/3617
2022-12-08 09:15:14 +01:00
Tomas Kopecek
752c76ab7d
fix flake8
2022-12-07 15:35:00 +01:00
Tomas Kopecek
eba7cbd126
PR#3608: koji-gc: use history to query trashcan contents
...
Merges #3608
https://pagure.io/koji/pull-request/3608
2022-12-07 15:30:24 +01:00
Mike McLean
4899aba292
koji-gc: clean up handle_delete() a bit
2022-12-07 15:30:18 +01:00
Mike McLean
3c0fc0b4b1
koji-gc: use history to query trashcan contents
...
as a side effect, we get the hub to apply our grace period for us
2022-12-07 15:30:18 +01:00
Tomas Kopecek
0034e9eb8d
PR#3562: rpmdiff: replace deprecated rpm call
...
Merges #3562
https://pagure.io/koji/pull-request/3562
Fixes : #3561
https://pagure.io/koji/issue/3561
Deprecated rpm.fiFromHeader
2022-12-05 13:32:33 +01:00
Tomas Kopecek
323b221bbe
fix flake8
2022-12-05 13:32:26 +01:00
Tomas Kopecek
4c55498849
kojihash test
2022-12-05 13:32:26 +01:00
Mike McLean
af183a2686
Emulate old list data
2022-12-05 13:32:26 +01:00
Mike McLean
7015da5f44
alternate approach
2022-12-05 13:32:26 +01:00
Tomas Kopecek
a8c4373c97
rpmdiff: replace deprecated rpm call
...
Related: https://pagure.io/koji/issue/3561
2022-12-05 13:32:26 +01:00
Tomas Kopecek
eff32f4f05
PR#3599: Remove krbLogin API
...
Merges #3599
https://pagure.io/koji/pull-request/3599
Fixes : #3593
https://pagure.io/koji/issue/3593
krbLogin API still exists but it always fail
2022-12-05 10:31:25 +01:00
Jana Cupova
21c8c0f681
Remove krbLogin API
...
Fixes: https://pagure.io/koji/issue/3593
2022-11-24 13:59:17 +01:00
Tomas Kopecek
eb73457684
PR#3575: [WIP] Release notes 1.31
...
Merges #3575
https://pagure.io/koji/pull-request/3575
Fixes : #3574
https://pagure.io/koji/issue/3574
Release notes 1.31
2022-11-21 13:53:53 +01:00
Tomas Kopecek
a90f6cdf84
Release notes 1.31
...
Related: https://pagure.io/koji/issue/3574
2022-11-21 11:07:11 +01:00
Tomas Kopecek
79c41924f1
PR#3592: Use inspect.getfullargspec instead of getargspec on hub and web
...
Merges #3592
https://pagure.io/koji/pull-request/3592
Fixes : #3591
https://pagure.io/koji/issue/3591
Fedora 37 kojiweb: AttributeError: module 'inspect' has no attribute 'getargspec'
2022-11-21 10:45:38 +01:00
Jana Cupova
7b53236925
Use inspect.getfullargspec instead of getargspec on hub and web
...
Fxes: https://pagure.io/koji/issue/3591
2022-11-20 09:32:23 +01:00
Tomas Kopecek
1d9e96b5ff
fix typos from QP rewrite
2022-11-16 15:10:17 +01:00
Tomas Kopecek
de2df168f8
PR#3585: kiwi: Make /dev mounting by magic
...
Merges #3585
https://pagure.io/koji/pull-request/3585
2022-11-16 11:36:45 +01:00
Igor Raits
4d0de9de3d
kiwi: Bind-mount /dev into the buildroot for old-chroot
...
The OEM images can't be build with nspawn as they require mocking with
device-mapper which is near to impossible to properly to set up in the
container so those ones have to be built in old chroot where /dev can
and must be bind-mounted. In opposite for nspawn, bind-mounting /dev
breaks build completely.
Let's just dynamically decide based on the chroot type what to do.
2022-11-16 11:36:15 +01:00
Tomas Kopecek
05851ac0c9
Revert "PR#3568: kiwi: don't bind builders's /dev"
...
This reverts commit 56cea9adc2 , reversing
changes made to e9b5ec215d .
mock was changed meanwhile to automatically bind device mapper into the
buildroot.
Related: https://pagure.io/koji/issue/3567
https://pagure.io/koji/pull-request/3585
https://github.com/rpm-software-management/mock/pull/1005
2022-11-15 14:20:22 +01:00
Tomas Kopecek
1ece0d459e
PR#3586: Fix logout when hub is older than CLI
...
Merges #3586
https://pagure.io/koji/pull-request/3586
Fixes : #3396
https://pagure.io/koji/issue/3396
Simultaneous Session Logons
2022-11-15 12:24:16 +01:00
Jana Cupova
e5367b088f
Fix logout when hub is older than CLI
...
https://pagure.io/koji/issue/3396
2022-11-15 12:19:31 +01:00
Tomas Kopecek
1b8a73e67c
PR#3407: build policy
...
Merges #3407
https://pagure.io/koji/pull-request/3407
Fixes : #3323
https://pagure.io/koji/issue/3323
Do not build if you cannot tag
2022-11-11 09:25:36 +01:00
Tomas Kopecek
e9ebe2250d
build policy
...
New 'build' policy replacing 'build_from_srpm' and 'build_from_repo_id'.
Related: https://pagure.io/koji/issue/3323
Author: Tomas Kopecek <tkopecek@redhat.com>
2022-11-10 15:47:44 +01:00
Tomas Kopecek
07536056e8
PR#3555: fix include path
...
Merges #3555
https://pagure.io/koji/pull-request/3555
Fixes : #3553
https://pagure.io/koji/issue/3553
kiwi plugin include processor doesn't construct include paths correctly
2022-11-10 13:21:45 +01:00
Tomas Kopecek
8b1030f863
better error for wrong include xml format
2022-11-10 13:21:39 +01:00
Tomas Kopecek
b8b52884b5
fix include path
...
Related: https://pagure.io/koji/issue/3553
2022-11-10 13:21:39 +01:00
Tomas Kopecek
fcee31ab0e
PR#3426: header-based sessions
...
Merges #3426
https://pagure.io/koji/pull-request/3426
Fixes : #3393
https://pagure.io/koji/issue/3393
Used vs. Accepted Session ID Exchange Mechanisms
2022-11-10 11:07:09 +01:00
Tomas Kopecek
4c4f2c0496
fix tests
2022-11-10 11:07:03 +01:00
Tomas Kopecek
eca9ac0282
remove unused code
2022-11-10 11:07:03 +01:00
Tomas Kopecek
dbb6d60e4f
separate headers
2022-11-10 11:07:03 +01:00
Tomas Kopecek
82d2d4dd55
use header-based auth
2022-11-10 11:07:03 +01:00
Tomas Kopecek
850a161e2b
cookies-based sessions
...
Related: https://pagure.io/koji/issue/3393
2022-11-10 11:07:03 +01:00
Tomas Kopecek
08a9fb8879
PR#3446: Add active sessions web page
...
Merges #3446
https://pagure.io/koji/pull-request/3446
Fixes : #3396
https://pagure.io/koji/issue/3396
Simultaneous Session Logons
2022-11-10 10:17:58 +01:00
Jana Cupova
7897628159
Add active sessions web page
...
Fixes: https://pagure.io/koji/issue/3396
2022-11-10 10:17:51 +01:00
Tomas Kopecek
b04ce33fa0
PR#3578: kojikamid: docstring for getFile method
...
Merges #3578
https://pagure.io/koji/pull-request/3578
2022-11-10 09:50:48 +01:00
Ken Dreyer
bb1d61569e
kojikamid: docstring for getFile method
...
Document the getFile method.
2022-11-10 09:50:42 +01:00
Tomas Kopecek
57e8a726da
PR#3577: kojikamid: write buildrequires files as bytes
...
Merges #3577
https://pagure.io/koji/pull-request/3577
2022-11-10 09:49:16 +01:00
Ken Dreyer
64a856f62b
kojikamid: write buildrequires files as bytes
...
Fix a TypeError when downloading buildrequires files on Python 3.
base64.b64decode() returns bytes, so we must open the file for writing
in bytes mode, not text mode.
Add a unit test that verifies this behavior.
2022-11-09 16:50:17 -05:00
Tomas Kopecek
56cea9adc2
PR#3568: kiwi: don't bind builders's /dev
...
Merges #3568
https://pagure.io/koji/pull-request/3568
Fixes : #3567
https://pagure.io/koji/issue/3567
kiwi: can't build images touching /dev
2022-11-09 14:24:09 +01:00
Tomas Kopecek
5dcf480a40
allow to set it by user
2022-11-09 14:24:03 +01:00
Tomas Kopecek
655cb9797f
kiwi: don't bind builders's /dev
...
Related: https://pagure.io/koji/issue/3567
2022-11-09 14:24:03 +01:00
Tomas Kopecek
e9b5ec215d
PR#3576: kojivmd: improve topurl example and error handling
...
Merges #3576
https://pagure.io/koji/pull-request/3576
2022-11-09 09:40:39 +01:00
Ken Dreyer
e0682ac810
kojivmd: update example topurl
...
The usual name for this location is "kojifiles", not "kojiroot". Update
the example configuration to match what users will normally expect.
2022-11-08 17:23:02 -05:00
Ken Dreyer
bf6a52c936
kojivmd: check for HTTP errors in getFile()
...
kojivmd proxies files from Koji's topurl through the getFile() RPC.
In some cases (misconfigurations), kojivmd can fail to download files
from topurl.
Prior to this change, if kojivmd failed to download a file (for example,
a 404 error), it would silently cache the 404 error HTTP body contents
and pass those on to verifyChecksum(). As a result, kojivmd would verify
the checksum of an HTML error page, rather than checksuming the intended
Koji archive file. In this scenario, it's difficult for administrators
to diagnose why checksums are not matching.
Check the HTTP response for errors before doing anything with the
response contents. With this change, winbuild tasks will fail with an
easier-to-understand "HTTP 404 not found" HTTPError, rather than a Koji
BuildError about checksums.
2022-11-08 17:12:03 -05:00
Tomas Kopecek
fdfe308284
PR#3569: Add absolute to clean sessions in koji-sweep-db
...
Merges #3569
https://pagure.io/koji/pull-request/3569
Fixes : #3571
https://pagure.io/koji/issue/3571
Absolute session
Fixes : #3394
https://pagure.io/koji/issue/3394
Renewal timeout
2022-11-08 13:26:50 +01:00
Jana Cupova
5836307056
Add absolute to clean sessions in koji-sweep-db
...
Fixes: https://pagure.io/koji/issue/3571
2022-11-08 13:26:43 +01:00