Commit graph

7053 commits

Author SHA1 Message Date
Mike McLean
81058ba0cd RawHeader.dump improvements 2023-03-23 13:20:06 +01:00
Mike McLean
3f4c97f372 Fix sig header field names in RawHeader.dump() 2023-03-23 13:20:06 +01:00
Tomas Kopecek
e661b399f7 PR#3738: Increase CLI uni tests
Merges #3738
https://pagure.io/koji/pull-request/3738

Fixes: #3723
https://pagure.io/koji/issue/3723
Increase unit tests for hub/cli/sidetags
2023-03-21 12:22:09 +01:00
Jana Cupova
3e09338db7 Increase CLI uni tests 2023-03-21 12:22:02 +01:00
Tomas Kopecek
ac6ae66bb0 PR#3720: list-tagged: only check for build dir when --sigs is given
Merges #3720
https://pagure.io/koji/pull-request/3720

Fixes: #3719
https://pagure.io/koji/issue/3719
list-tagged --paths does not work without mount
2023-03-20 13:40:46 +01:00
Mike McLean
00f3a78f09 list-tagged: only check for build dir when --sigs is given 2023-03-20 13:40:27 +01:00
Tomas Kopecek
b75df3869d PR#3727: Fix mtime logic for py2.x
Merges #3727
https://pagure.io/koji/pull-request/3727

Relates: #3711
https://pagure.io/koji/issue/3711
download-build: preserve build artefacts last modification time
2023-03-16 09:47:02 +01:00
Tomas Kopecek
21dba45bfc Fix mtime logic for py2.x
Related: https://pagure.io/koji/issue/3711
2023-03-16 09:46:54 +01:00
Tomas Kopecek
e2d9511a81 PR#3734: Fix timezone in clone-tag test case
Merges #3734
https://pagure.io/koji/pull-request/3734

Fixes: #3733
https://pagure.io/koji/issue/3733
clone-tag unit test fails in other timezones
2023-03-15 12:49:02 +01:00
Jana Cupova
886e8856b6 Fix timezone in clone-tag test case
Fixes: https://pagure.io/koji/issue/3733
2023-03-15 12:48:55 +01:00
Tomas Kopecek
72c6495acb PR#3690: only pad header lengths for signature headers
Merges #3690
https://pagure.io/koji/pull-request/3690

Fixes: #3689
https://pagure.io/koji/issue/3689
Koji can report incorrect header lengths
2023-03-14 11:08:24 +01:00
Mike McLean
aebff00673 unit test: more closely mimic rpm2cpio behavior when reading past header 2023-03-14 11:08:16 +01:00
Mike McLean
accdeb3c63 unit test: close fd 2023-03-14 11:08:16 +01:00
Mike McLean
85ea7bd736 unit test 2023-03-14 11:08:16 +01:00
Mike McLean
c3cd98d152 only pad header lengths for signature headers
Based on a workaround by puiterwijk
https://github.com/fedora-iot/rpm-head-signing/pull/61/files
2023-03-14 11:08:16 +01:00
Tomas Kopecek
6d80b3b4af PR#3679: vm: Retry libvirt connection
Merges #3679
https://pagure.io/koji/pull-request/3679

Fixes: #985
https://pagure.io/koji/issue/985
kojivmd loses connection to libvirt
2023-03-09 15:17:39 +01:00
Tomas Kopecek
3e8d856bb1 use wrapper only in main thread 2023-03-09 15:17:32 +01:00
Tomas Kopecek
7cc3fe6a52 try to close failing connection 2023-03-09 15:17:32 +01:00
Tomas Kopecek
22c88fcce3 vm: Retry libvirt connection
Related: https://pagure.io/koji/issue/985
2023-03-09 15:17:32 +01:00
Tomas Kopecek
4039daac72 PR#3687: koji-gc: fail on additional arguments
Merges #3687
https://pagure.io/koji/pull-request/3687

Fixes: #3685
https://pagure.io/koji/issue/3685
koji-gc doesn't warn about superfluous args
2023-03-09 11:33:41 +01:00
Tomas Kopecek
aa8a3f634a koji-gc: fail on additional arguments
Related: https://pagure.io/koji/issue/3685
2023-03-09 11:33:34 +01:00
Tomas Kopecek
c82543a668 PR#3674: sidetag: allowed list for rpm macros
Merges #3674
https://pagure.io/koji/pull-request/3674

Fixes: #3673
https://pagure.io/koji/issue/3673
editing rpm macros in sidetag should be based on allowed list
2023-03-07 12:53:58 +01:00
Tomas Kopecek
8e0bdd7a00 sidetag: allowed list for rpm macros
Related: https://pagure.io/koji/issue/3673
2023-03-07 12:53:51 +01:00
Tomas Kopecek
7c96362b1a PR#3712: download-build: preserve build artefacts last modification time
Merges #3712
https://pagure.io/koji/pull-request/3712

Fixes #3711
https://pagure.io/koji/issue/3711
2023-03-07 12:50:17 +01:00
Mike McLean
8afea8083b attempt to decode strings in dump 2023-03-07 12:50:10 +01:00
Mike McLean
d723e126bf also support get for unicode string arrays 2023-03-07 12:50:10 +01:00
Tomas Kopecek
a0ffd9f434 RawHeader.get can return also string lists
Related: https://pagure.io/koji/issue/3713
2023-03-07 12:50:10 +01:00
Tomas Kopecek
9799a193c9 fix tests
Related: https://pagure.io/koji/issue/3711
2023-03-07 12:50:10 +01:00
Tomas Kopecek
8acb4a4fd3 fix py26 compatibility 2023-03-07 12:50:10 +01:00
Yanko Kaneti
d520dce8a2 download-build: preserve build artefacts last modification time 2023-03-07 12:50:10 +01:00
Tomas Kopecek
f6f808bca7 PR#3716: CLI: cancel error msg
Merges #3716
https://pagure.io/koji/pull-request/3716

Fixes: #3715
https://pagure.io/koji/issue/3715
CLI: cancel returns False when build is not existing and cancel returns first error message when more tasks are not existing
2023-03-06 14:25:01 +01:00
Jana Cupova
334bc39375 CLI: cancel error msg
cancel returns error msg when build is not existing
cancel returns error mgs for all not existing tasks/builds

Fixes: https://pagure.io/koji/issue/3715
2023-03-06 14:24:53 +01:00
Tomas Kopecek
403acbeaaa PR#3706: Delete double check existing source tag, --batch option is unvisible
Merges #3706
https://pagure.io/koji/pull-request/3706

Fixes: #3705
https://pagure.io/koji/issue/3705
Clone-tag CLI --batch option is not used now, double check for existing source tag
2023-03-06 14:23:07 +01:00
Jana Cupova
378ea8ef2f Delete double check existing source tag, --batch option is unvisible
Fixes: https://pagure.io/koji/issue/3705
2023-03-06 14:23:00 +01:00
Tomas Kopecek
a6a63ed408 PR#3699: Set daemon = true instead of call deaprecated setDaemon
Merges #3699
https://pagure.io/koji/pull-request/3699

Fixes: #3698
https://pagure.io/koji/issue/3698
kojira: setDaemon() is deprecated
2023-03-03 09:36:32 +01:00
Jana Cupova
e2e0914eb9 Set daemon = true instead of call deaprecated setDaemon
Fixes: https://pagure.io/koji/issue/3698
2023-03-03 09:36:25 +01:00
Tomas Kopecek
b715e5305f PR#3686: Let "--principal=" works for users using multiple TGT's
Merges #3686
https://pagure.io/koji/pull-request/3686

Fixes: #3680
https://pagure.io/koji/issue/3680
[1.31.1] possible securiry problem when having multiple principal's
2023-03-03 09:28:36 +01:00
Tomas Kopecek
c8ad0479de unify kwargs for gssapi_login 2023-03-03 09:28:29 +01:00
Frank Buettner
b9565c6c78 Let "--principal=" works for users using multiple TGT's
fix for https://pagure.io/koji/issue/3680
2023-03-03 09:28:29 +01:00
Tomas Kopecek
95ccef6a4d PR#3718: Add missing argument in edit-sidetag help msg
Merges #3718
https://pagure.io/koji/pull-request/3718

Fixes: #3717
https://pagure.io/koji/issue/3717
CLI edit-sidetag: missing argument in help message
2023-03-02 16:07:11 +01:00
Jana Cupova
693f196fa4 Add missing argument in edit-sidetag help msg
Fixes: https://pagure.io/koji/issue/3717
2023-03-02 16:07:04 +01:00
Tomas Kopecek
32d4be1aaa PR#3678: Move db/auth to kojihub module
Merges #3678
https://pagure.io/koji/pull-request/3678

Fixes: #3666
https://pagure.io/koji/issue/3666
Use koji/auth.py on hub only
2023-03-01 11:46:31 +01:00
Tomas Kopecek
7ceffe391c unify relative imports 2023-03-01 11:46:24 +01:00
Tomas Kopecek
b0e91e378c Move db/auth to kojihub module
Related: https://pagure.io/koji/issue/3666
2023-03-01 11:46:24 +01:00
Tomas Kopecek
5ecc788603 PR#3701: Editing extra in sidetags
Merges #3701
https://pagure.io/koji/pull-request/3701

Fixes: #3700
https://pagure.io/koji/issue/3700
Editing extra in sidetags
2023-02-21 12:10:30 +01:00
Tomas Kopecek
c63b7fee54 allow also removing extra for sidetags 2023-02-20 09:44:59 +01:00
Tomas Kopecek
d61e345dee sidetag_edit permission for automation
Related: https://pagure.io/koji/issue/3700
2023-02-20 09:44:49 +01:00
Tomas Kopecek
7960d725e6 PR#3697: Unify migration script Koji 1.31 -> 1.32
Merges #3697
https://pagure.io/koji/pull-request/3697

Fixes: #3696
https://pagure.io/koji/issue/3696
1.32.0 seems to have two different schema upgrade files?
2023-02-20 09:38:27 +01:00
Jana Cupova
4721facaa1 Unify migration script Koji 1.31 -> 1.32
Fixes: https://pagure.io/koji/issue/3696
2023-02-17 22:23:44 +01:00
Tomas Kopecek
6fb0922c71 PR#3695: remove debug print
Merges #3695
https://pagure.io/koji/pull-request/3695
2023-02-17 13:55:55 +01:00