Commit graph

5960 commits

Author SHA1 Message Date
Jana Cupova
5e861978c6 Check when list of hosts is empty.
Fixes: https://pagure.io/koji/issue/2497
2021-05-12 16:33:23 +02:00
Tomas Kopecek
8b07fcf5bb PR#2844: protonmsg: use consistent data format for messages
Merges #2844
https://pagure.io/koji/pull-request/2844

Fixes: #2846
https://pagure.io/koji/issue/2846
protonmsg: db queue is never cleared

Fixes: #2841
https://pagure.io/koji/issue/2841
protonmsg db queue: incorrect data format for _send_msg()
2021-05-10 09:51:09 +02:00
Mike McLean
5045f96bb4 protonmsg: actually remove messages from db queue
Fixes: https://pagure.io/koji/issue/2846
2021-05-10 09:51:03 +02:00
Mike McLean
4b55b62355 fix unit tests 2021-05-10 09:51:03 +02:00
Mike McLean
bd00cddc2b protonmsg: drop bad key reference
This is a relic of an earlier version of the db work.
At this point in the code, there is never an id field.
We don't re-store messages from the db. We only delete them
after confirmed send.
2021-05-10 09:51:03 +02:00
Mike McLean
158232ab81 protonmsg: avoid calling _send_msgs on empty list 2021-05-10 09:51:03 +02:00
Mike McLean
1c633dd37b protonmsg: use consistent type for messages
Previously messages were represented as either tuples or
dictionaries. Now they are always dictionaries.

Fixes: https://pagure.io/koji/issue/2841
2021-05-10 09:51:03 +02:00
Tomas Kopecek
e158b1c81d PR#2764: kojira: faster startup
Merges #2764
https://pagure.io/koji/pull-request/2764

Fixes: #2612
https://pagure.io/koji/issue/2612
kojira: startup can take few hours
2021-05-10 09:50:02 +02:00
Tomas Kopecek
1bd62ab607 kojira: faster startup
caching tags in the start + caching property for getting inheritance

Fixes: https://pagure.io/koji/issue/2612
2021-05-10 09:49:55 +02:00
Tomas Kopecek
d7076086a3 PR#2831: Add wait/nowait to tag-build, image-build-indirection
Merges #2831
https://pagure.io/koji/pull-request/2831

Fixes: #2522
https://pagure.io/koji/issue/2522
CLI docs for many commands specifies that  --wait works even in background
2021-05-10 09:17:32 +02:00
Jana Cupova
56a2d86034 Consistent wait/nowait in all related functions
Fixes: https://pagure.io/koji/issue/2522
2021-05-10 09:17:26 +02:00
Tomas Kopecek
d6694d0501 PR#2827: web: don't use count(*) on first tasks page
Merges #2827
https://pagure.io/koji/pull-request/2827

Fixes: #2482
https://pagure.io/koji/issue/2482
rethink pagination on web
2021-05-10 09:13:20 +02:00
Tomas Kopecek
4896a29cb5 better label 2021-05-10 09:13:13 +02:00
Tomas Kopecek
aa2011c72b web: don't use count(*) on first tasks page
Fixes: https://pagure.io/koji/issue/2482
2021-05-10 09:13:13 +02:00
Tomas Kopecek
70d69cd924 PR#2833: Add squashfs-only and compress-arg options to livemedia
Merges #2833
https://pagure.io/koji/pull-request/2833

Fixes: #2476
https://pagure.io/koji/issue/2476
Add support for passing --squashfs-only and --compress-arg to the livemedia-creator during in livemedia method
2021-05-10 09:12:34 +02:00
Jana Cupova
bef3eff0aa Add squashfs-only and compress-arg options to livemedia
Fixes: https://pagure.io/koji/issue/2476
2021-05-10 09:12:27 +02:00
Tomas Kopecek
df09be48e8 PR#2828: web: additional info on API page
Merges #2828
https://pagure.io/koji/pull-request/2828

Fixes: #2825
https://pagure.io/koji/issue/2825
Is there a way to grab the failed builds that are failed in srpm building phase
2021-05-05 13:19:01 +02:00
Tomas Kopecek
d87e684700 web: additional info on API page
Related: https://pagure.io/koji/issue/2825
2021-05-05 13:18:55 +02:00
Tomas Kopecek
d83c15247c PR#2826: Add kerberos debug message
Merges #2826
https://pagure.io/koji/pull-request/2826

Fixes: #2063
https://pagure.io/koji/issue/2063
improve kerberos auth failure UX
2021-05-03 13:41:41 +02:00
Tomas Kopecek
1c665f5a68 doc: extend gssapi debug docs 2021-05-03 13:41:35 +02:00
Jana Cupova
de008b5f27 Add kerberos debug message
Fixes: https://pagure.io/koji/issue/2063
2021-05-03 13:41:35 +02:00
Tomas Kopecek
cc172ff2cf PR#2821: Python egginfo
Merges #2821
https://pagure.io/koji/pull-request/2821

Fixes: #912
https://pagure.io/koji/issue/912
Install Python egginfo
2021-05-03 11:13:24 +02:00
Jana Cupova
2ac2ae346d Add build requires
Fixes: https://pagure.io/koji/issue/912
2021-05-03 11:13:22 +02:00
Christopher O'Brien
ffe0a537b7 attempting to bridge the gap with pip
uses the appropriate rpm macros for installing python wheels to
provide the base koji lib. Packages the resulting dist-info data
as well.
2021-05-03 11:13:22 +02:00
Tomas Kopecek
9ab66aee62 PR#2843: update dockerfiles for f34
Merges #2843
https://pagure.io/koji/pull-request/2843

Fixes: #2842
https://pagure.io/koji/issue/2842
update container images for f34
2021-05-03 11:12:28 +02:00
Tomas Kopecek
7c2c9bb0f2 update dockerfiles for f34
Fixes: https://pagure.io/koji/issue/2842
2021-05-03 11:11:19 +02:00
Tomas Kopecek
bdc2ca5f96 PR#2824: lib: is_conn_error catch more exceptions
Merges #2824
https://pagure.io/koji/pull-request/2824

Fixes: #2789
https://pagure.io/koji/issue/2789
is_conn_error fails to match BadStatusLine errors in some cases
2021-04-28 13:34:47 +02:00
Tomas Kopecek
6e3553459f lib: is_conn_error catch more exceptions
Related: https://pagure.io/koji/issue/2789
2021-04-28 13:34:40 +02:00
Tomas Kopecek
e44d9f6bd7 PR#2823: Add default task ID to prep_repo_init/done
Merges #2823
https://pagure.io/koji/pull-request/2823

Fixes: #888
https://pagure.io/koji/issue/888
RFE: record task id for repos
2021-04-28 13:33:27 +02:00
Jana Cupova
fa774f0a9b Add default task ID to prep_repo_init/done
Fixes: https://pagure.io/koji/issue/888
2021-04-28 13:33:22 +02:00
Tomas Kopecek
e10809c5b8 PR#2816: koji-gc: Allow specifying all CLI options in config
Merges #2816
https://pagure.io/koji/pull-request/2816

Fixes: #2814
https://pagure.io/koji/issue/2814
koji-gc: ignore_tags not possible to specify in the config
2021-04-28 13:09:30 +02:00
Igor Raits
4cbffb322d koji-gc: Allow specifying all CLI options in config
Fixes: https://pagure.io/koji/issue/2814
Signed-off-by: Igor Raits <igor.raits@gmail.com>
2021-04-28 13:09:23 +02:00
Tomas Kopecek
28eb8a81e1 PR#2817: koji-gc: Implement hastag policy for koji-gc
Merges #2817
https://pagure.io/koji/pull-request/2817

Fixes: #2813
https://pagure.io/koji/issue/2813
RFE: koji-gc: hastag policy
2021-04-28 12:41:27 +02:00
Igor Raits
e0d770d10a koji-gc: Implement hastag policy for koji-gc
Fixes: https://pagure.io/koji/issue/2813
Signed-off-by: Igor Raits <igor.raits@gmail.com>
2021-04-28 12:41:21 +02:00
Tomas Kopecek
880826b99e PR#2771: lib: use parse_task_params for taskLabel
Merges #2771
https://pagure.io/koji/pull-request/2771

Fixes: #2519
https://pagure.io/koji/issue/2519
taskLabel should use parse_task_params
2021-04-26 14:43:40 +02:00
Tomas Kopecek
c732f49ac8 fix tests 2021-04-26 14:43:20 +02:00
Tomas Kopecek
ef3e2cd04b lib: use parse_task_params for taskLabel
Fixes: https://pagure.io/koji/issue/2519
2021-04-26 14:43:20 +02:00
Tomas Kopecek
d566c8898b PR#2829: fix tests for changed helpstring
Merges #2829
https://pagure.io/koji/pull-request/2829

Relates: #2687
https://pagure.io/koji/issue/2687
cli: list-api can display help only for one method
2021-04-22 10:18:56 +02:00
Tomas Kopecek
edaefb865b fix tests for changed helpstring
Related: https://pagure.io/koji/issue/2687
2021-04-22 10:17:39 +02:00
Tomas Kopecek
9d559a6d49 PR#2688: cli: list-api method
Merges #2688
https://pagure.io/koji/pull-request/2688

Fixes: #2687
https://pagure.io/koji/issue/2687
cli: list-api can display help only for one method
2021-04-22 09:59:01 +02:00
Tomas Kopecek
897b7fe81a more informative test string 2021-04-22 09:58:08 +02:00
Tomas Kopecek
fdf64d0a8d cli: list-api method
Limit output to given method

Fixes: https://pagure.io/koji/issue/2687
2021-04-22 09:58:08 +02:00
Tomas Kopecek
4fcb9815fa fix flake8 2021-04-19 15:18:19 +02:00
Tomas Kopecek
0414ff7dc5 PR#2791: with_owners options for readPackageList and readTaggedBuilds
Merges #2791
https://pagure.io/koji/pull-request/2791

Fixes: #2780
https://pagure.io/koji/issue/2780
avoid needless package owner joins
2021-04-19 15:16:00 +02:00
Tomas Kopecek
0f3b231bc2 backward compatibility for CLI 2021-04-19 15:15:53 +02:00
Tomas Kopecek
3fed02c8ad cleanup removed options 2021-04-19 15:15:53 +02:00
Tomas Kopecek
02ea2901e2 remove with_owners from readTaggedBuilds 2021-04-19 15:15:53 +02:00
Tomas Kopecek
89b00d4e77 updated API docs 2021-04-19 15:15:53 +02:00
Tomas Kopecek
91aa557391 use listTagged with_owner=False 2021-04-19 15:15:53 +02:00
Tomas Kopecek
fc42bb7e71 x 2021-04-19 15:15:53 +02:00