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
Tomas Kopecek
fb3ba7e822
PR#3405: beautify logged commands issued by koji
...
Merges #3405
https://pagure.io/koji/pull-request/3405
Fixes : #929
https://pagure.io/koji/issue/929
Task result in web UI would benefit from wrapping
2022-07-19 13:24:14 +02:00
Tomas Kopecek
9e741bfb9e
beautify logged commands issued by koji
...
Related: https://pagure.io/koji/issue/929
2022-07-19 13:23:57 +02:00
Tomas Kopecek
234cefdf1c
PR#3421: 1.29.1 release notes
...
Merges #3421
https://pagure.io/koji/pull-request/3421
Fixes : #3420
https://pagure.io/koji/issue/3420
1.29.1 release notes
2022-07-12 10:52:58 +02:00
Tomas Kopecek
48b94dadf8
1.29.1 release notes
...
Related: https://pagure.io/koji/issue/3420
2022-07-12 10:48:36 +02:00
Tomas Kopecek
7fed630769
PR#3428: Fix arches check in kiwi plugin
...
Merges #3428
https://pagure.io/koji/pull-request/3428
Fixes : #3427
https://pagure.io/koji/issue/3427
handle_kiwi_build: default arches as list instead of str
2022-07-12 10:32:15 +02:00
Jana Cupova
c141eb0f2f
Fix arches check in kiwi plugin
...
Fixes: https://pagure.io/koji/issue/3427
2022-07-12 10:32:08 +02:00
Tomas Kopecek
7833a1b6e2
PR#3430: Fix download-task with wait option
...
Merges #3430
https://pagure.io/koji/pull-request/3430
2022-07-11 10:21:16 +02:00
Jana Cupova
2bc6873099
Fix download-task with wait option
2022-07-11 10:21:10 +02:00
Tomas Kopecek
eeb6f630ce
PR#3398: more verbose default policy denials
...
Merges #3398
https://pagure.io/koji/pull-request/3398
Fixes : #3397
https://pagure.io/koji/issue/3397
More verbose default policies
2022-07-11 09:47:20 +02:00
Tomas Kopecek
03f3d92a00
more verbose default policy denials
...
Related: https://pagure.io/koji/issue/3397
2022-07-11 09:47:13 +02:00
Tomas Kopecek
1a71b4e8d9
PR#3425: Fix download-task all files in build/buildArch method tasks
...
Merges #3425
https://pagure.io/koji/pull-request/3425
2022-07-01 09:50:08 +02:00
Jana Cupova
8be1521a6d
Fix download-task all files in build/buildArch method tasks
2022-07-01 09:50:01 +02:00
Tomas Kopecek
e21c531cf3
PR#3352: CLI: Remove --paths option from list-buildroot
...
Merges #3352
https://pagure.io/koji/pull-request/3352
Fixes : #3106
https://pagure.io/koji/issue/3106
Remove --paths option list-buildroot
2022-06-30 08:56:25 +02:00
Jana Cupova
26cdb3a8af
CLI: Remove --paths option from list-buildroot
...
Fixes: https://pagure.io/koji/issue/3106
2022-06-30 08:56:17 +02:00
Tomas Kopecek
9eec301f87
PR#3357: Remove deprecated remove-channel/removeChannel
...
Merges #3357
https://pagure.io/koji/pull-request/3357
Fixes : #3356
https://pagure.io/koji/issue/3356
Remove deprecated remove-channel/removeChannel
2022-06-30 08:53:50 +02:00
Jana Cupova
52026bcfcb
Remove deprecated remove-channel/removeChannel
...
Fixes: https://pagure.io/koji/issue/3356
2022-06-30 08:53:43 +02:00
Tomas Kopecek
9a1ee191a6
PR#3413: Fix wrong encoding in changelog entries
...
Merges #3413
https://pagure.io/koji/pull-request/3413
Fixes : #3412
https://pagure.io/koji/issue/3412
Fix broken changelogs
2022-06-28 12:06:59 +02:00
Tomas Kopecek
93bdd16724
Fix wrong encoding in changelog entries
...
Relates: https://pagure.io/koji/issue/3412
2022-06-27 17:49:49 +02:00
Tester
576d04eda8
PR#3391: Use compression_type in listArchiveFiles
...
Merges #3391
https://pagure.io/koji/pull-request/3391
Fixes : #855
https://pagure.io/koji/issue/855
[RFE] make `listArchiveFiles` call to be able to list files for other archive types
2022-06-27 15:00:44 +02:00
Jana Cupova
8d3bf008ac
Use compression_type in listArchiveFiles
...
Fixes: https://pagure.io/koji/issue/855
2022-06-27 15:00:32 +02:00
Tester
cd6b4bebb5
PR#3308: server-side clonetag
...
Merges #3308
https://pagure.io/koji/pull-request/3308
Fixes : #3307
https://pagure.io/koji/issue/3307
clone-tag rewrite
2022-06-27 14:58:38 +02:00