Jana Cupova
cb5515aca4
Order download tasks and download only first srpm
...
Fixes: https://pagure.io/koji/issue/3461
2022-08-25 13:33:23 +02:00
Tomas Kopecek
a5a2ac38df
PR#3472: doc: gssapi debug update
...
Merges #3472
https://pagure.io/koji/pull-request/3472
Fixes : #3471
https://pagure.io/koji/issue/3471
[Documentation] Possible misleading info at https://docs.pagure.org/koji/kerberos_gssapi_debug
2022-08-24 12:59:48 +02:00
Tomas Kopecek
92f5554b63
doc: gssapi debug update
...
Related: https://pagure.io/koji/issue/3471
2022-08-24 12:59:42 +02:00
Tomas Kopecek
a5e029af4f
PR#3460: Increase unit tests
...
Merges #3460
https://pagure.io/koji/pull-request/3460
2022-08-23 10:14:50 +02:00
Jana Cupova
4f5b69f8a7
Increase unit tests
2022-08-23 09:26:13 +02:00
Tomas Kopecek
d81033c71d
PR#3462: Allow rewrite src.rpm files in download-task
...
Merges #3462
https://pagure.io/koji/pull-request/3462
Fixes : #3461
https://pagure.io/koji/issue/3461
koji changed behaviour when downloading task rpms
2022-08-19 15:25:34 +02:00
Jana Cupova
c1f7b9db04
Allow rewrite src.rpm files in download-task
...
Fixes: https://pagure.io/koji/issue/3461
2022-08-19 06:42:44 +02:00
Tomas Kopecek
b0ca9984a2
PR#3459: Fix arch in download-task
...
Merges #3459
https://pagure.io/koji/pull-request/3459
Fixes : #3456
https://pagure.io/koji/issue/3456
arch filtering broken since https://pagure.io/koji/pull-request/3343
2022-08-18 15:32:24 +02:00
Jana Cupova
f017ec28f6
Fix arch in download-task
...
Fixes: https://pagure.io/koji/issue/3456
2022-08-18 11:12:17 +02:00
Tomas Kopecek
10cf87b862
PR#3438: CLI: More details when files conflict in download-task
...
Merges #3438
https://pagure.io/koji/pull-request/3438
Fixes : #3433
https://pagure.io/koji/issue/3433
CLI download-task: more info details when duplicate name of file
2022-08-18 10:10:21 +02:00
Jana Cupova
310331c3f7
CLI: More details when files conflict in download-task
...
Fixes: https://pagure.io/koji/issue/3433
2022-08-18 10:10:13 +02:00
Tomas Kopecek
37b207cf44
PR#3450: convert data to string in escapeHTML first
...
Merges #3450
https://pagure.io/koji/pull-request/3450
Fixes : #3449
https://pagure.io/koji/issue/3449
Fix html escaping for non-strings
2022-08-17 11:16:21 +02:00
Tomas Kopecek
9d289bc336
convert data to string in escapeHTML first
...
Related: https://pagure.io/koji/issue/3449
2022-08-17 11:16:13 +02:00
Tomas Kopecek
3cf8cc50ed
PR#3364: Catch koji.AuthError and bail out
...
Merges #3364
https://pagure.io/koji/pull-request/3364
Related #3376
https://pagure.io/koji/issue/3376
2022-08-17 10:49:48 +02:00
Alex Iribarren
8113448282
Catch koji.AuthError and bail out
2022-08-17 10:49:41 +02:00
Tomas Kopecek
9d99bbec68
PR#3440: Parse_arches allows string and list of arches
...
Merges #3440
https://pagure.io/koji/pull-request/3440
Fixes : #3434
https://pagure.io/koji/issue/3434
parse_arch should support list of arches
2022-08-17 10:42:57 +02:00
Jana Cupova
9287f672ee
Parse_arches allows string and list of arches
...
Fixes: https://pagure.io/koji/issue/3434
2022-08-17 10:42:49 +02:00
Tomas Kopecek
de93831d5f
PR#3457: Fix query with LIKE string in getAverageBuildDirection
...
Merges #3457
https://pagure.io/koji/pull-request/3457
Fixes : #1128
https://pagure.io/koji/issue/1128
getAverageBuildDuration returns None for containers
2022-08-16 10:23:10 +02:00
Jana Cupova
263266fe85
Fix query with LIKE string in getAverageBuildDirection
...
Fixes: https://pagure.io/koji/issue/1128
2022-08-09 12:04:14 +02:00
Tomas Kopecek
fad0eed2f5
PR#3406: Add a utility function to watch builds
...
Merges #3406
https://pagure.io/koji/pull-request/3406
Fixes : #2981
https://pagure.io/koji/issue/2981
Add a utility function to watch builds
2022-08-01 15:33:36 +02:00
Tomas Kopecek
4daea4dab9
rename function
2022-08-01 15:33:29 +02:00
Tomas Kopecek
4e6aca0bd0
exception-free watch_builds
...
Related: https://pagure.io/koji/issue/2981
2022-08-01 15:33:29 +02:00
Otto Urpelainen
d2247940b6
Add utility function to watch builds
...
External tools that interact with Koji
need to wait for builds to appear in a repo.
For example, Fedora cli tools 'bodhi' and 'fedpkg'
can create buildroot overrides,
which only become useful
after the override's build appears in the correct repo.
At the moment, 'bodhi' waits for a repo
by invoking the 'koji wait-repo' cli tool
while 'fedpkg' does not wait at all.
In order to make it easier for such tools to wait for a repo,
the wait implementation from 'koji wait-repo'
is moved to koji_cli.lib namespace
where it is available for use through Python import.
2022-08-01 15:33:29 +02:00
Otto Urpelainen
f48d6d2b71
Add unit test for buildLabel
2022-08-01 15:33:29 +02:00
Tomas Kopecek
7a1778a752
PR#3404: don't propagate SIGHUP ignore to child processes
...
Merges #3404
https://pagure.io/koji/pull-request/3404
Fixes : #672
https://pagure.io/koji/issue/672
Koji's child processes ignore SIG_HUP
2022-08-01 11:35:40 +02:00
Tomas Kopecek
b3f7d7c34e
remove unused import
2022-08-01 11:34:41 +02:00
Tomas Kopecek
2006ab1dd8
don't propagate SIGHUP ignore to child processes
...
Related: https://pagure.io/koji/issue/672
2022-08-01 11:34:41 +02:00
Tomas Kopecek
b5ff9d8b51
PR#3402: Correct getAverageDuration values for most GC builds
...
Merges #3402
https://pagure.io/koji/pull-request/3402
Fixes : #1128
https://pagure.io/koji/issue/1128
getAverageBuildDuration returns None for containers
2022-08-01 09:37:51 +02:00
Tomas Kopecek
80318fc0cf
Correct getAverageDuration values for most GC builds
...
Fixes: https://pagure.io/koji/issue/1128
2022-08-01 09:37:42 +02:00
Tomas Kopecek
e8a94eaef9
PR#3445: Don't crash in _checkImageState if there's no image.os_plugin
...
Merges #3445
https://pagure.io/koji/pull-request/3445
Fixes #3447
https://pagure.io/koji/issue/3447
2022-07-29 13:45:25 +02:00
Adam Williamson
a944798944
Don't crash in _checkImageState if there's no image.os_plugin
...
We've seen some tasks lately where Koji crashed trying to do
`image.os_plugin.abort()`, e.g.:
https://koji.fedoraproject.org/koji/taskinfo?taskID=89750587
https://koji.fedoraproject.org/koji/taskinfo?taskID=89671944
The fix seems fairly simple: only try and abort if os_plugin
actually exists.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-29 13:45:18 +02:00
Tomas Kopecek
2db60a04b9
PR#3437: Authtype as enum and getSessionInfo prints authtype name
...
Merges #3437
https://pagure.io/koji/pull-request/3437
Fixes : #3436
https://pagure.io/koji/issue/3436
AUTHTYPEs as enum
2022-07-26 14:36:15 +02:00
Jana Cupova
44f5ebaabb
Authtype as enum and getSessionInfo prints authtype name
...
Fixes: https://pagure.io/koji/issue/3436
2022-07-26 14:36:00 +02:00
Tomas Kopecek
e5e59c1880
PR#3423: Fix rpm_hdr_size file closing
...
Merges #3423
https://pagure.io/koji/pull-request/3423
Related #3424
https://pagure.io/koji/issue/3424
2022-07-26 14:06:29 +02:00
Patrick Uiterwijk
d4d2594653
Fix rpm_hdr_size file closing
...
The current code will try to close a passed in file object, and will not
try to close a file object it opened when a string is passed in.
This results in either a leaked file object, or a file object that was
passed in to be closed after the function is called.
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2022-07-26 14:06:23 +02:00
Tomas Kopecek
b94838b7de
PR#3360: proton: save messages when connection fails
...
Merges #3360
https://pagure.io/koji/pull-request/3360
Fixes : #3327
https://pagure.io/koji/issue/3327
protonmsg plugin can lose messages on some types of errors
2022-07-26 11:43:36 +02:00
Tomas Kopecek
1ca5db555a
proton: save messages when connection fails
...
Fixes: https://pagure.io/koji/issue/3327
2022-07-26 11:43:30 +02:00
Tomas Kopecek
ecc485c627
PR#3359: Drop old indices
...
Merges #3359
https://pagure.io/koji/pull-request/3359
Fixes : #3160
https://pagure.io/koji/issue/3160
Drop unused indices
2022-07-26 10:47:26 +02:00
Tomas Kopecek
7c6cac1fa0
Drop old indices
...
Related: https://pagure.io/koji/issue/3160
2022-07-26 10:46:12 +02:00
Tomas Kopecek
c011a7eca2
PR#3422: hub: check release/version format in cg_import
...
Merges #3422
https://pagure.io/koji/pull-request/3422
Fixes : #3418
https://pagure.io/koji/issue/3418
Koji Content Generator API allow import of version that contains dash "-"
2022-07-25 11:32:06 +02:00
Tomas Kopecek
dfce01a59b
hub: check release/version format in cg_import
...
Related: https://pagure.io/koji/issue/3418
2022-07-25 11:31:57 +02:00
Tomas Kopecek
c1643daa1f
PR#3403: Consistence pre/postPackageListChange sequence
...
Merges #3403
https://pagure.io/koji/pull-request/3403
Fixes : #1472
https://pagure.io/koji/issue/1472
prePackageListChange shouldn't be called if change will not happen
2022-07-25 11:26:16 +02:00
Jana Cupova
f31d92df71
Consistence pre/postPackageListChange sequence
...
Fixes: https://pagure.io/koji/issue/1472
2022-07-25 11:26:09 +02:00
Tomas Kopecek
862573f036
PR#3390: www: Set SameSite and Set-Cookie2
...
Merges #3390
https://pagure.io/koji/pull-request/3390
Fixes : #3389
https://pagure.io/koji/issue/3389
Set SameSite and add Set-Cookie2 to Cookies
2022-07-25 11:21:51 +02:00
Jana Cupova
6d766bd412
www: Set SameSite and Set-Cookie2
...
Fixes: https://pagure.io/koji/issue/3389
2022-07-25 11:21:45 +02:00
Tomas Kopecek
96987728b5
PR#3382: www: archivelist and rpmlist raise error when imageID is unknown
...
Merges #3382
https://pagure.io/koji/pull-request/3382
Fixes : #3381
https://pagure.io/koji/issue/3381
www: rpmlist and archivelist don't raise unknown imageID
2022-07-25 11:18:38 +02:00
Jana Cupova
c1e669111f
www: archivelist and rpmlist raise error when imageID is unknown
...
Fixes: https://pagure.io/koji/issue/3381
2022-07-25 11:18:09 +02:00
Tomas Kopecek
22882bff32
fix tests
2022-07-21 13:57:44 +02:00
Tomas Kopecek
368c10f880
PR#3444: expect dict for chainmaven builds
...
Merges #3444
https://pagure.io/koji/pull-request/3444
Fixes : #3443
https://pagure.io/koji/issue/3443
Wrong type checking for mavenchain
2022-07-21 13:13:51 +02:00
Tomas Kopecek
d2b67465fc
expect dict for chainmaven builds
...
Related: https://pagure.io/koji/issue/3443
2022-07-20 14:02:08 +02:00