Commit graph

6259 commits

Author SHA1 Message Date
Yu Ming Zhu
82e5fbde5e PR#3092: [hub] getBuildType: ensure id exists in buildinfo dict
Merges #3092
https://pagure.io/koji/pull-request/3092

Fixes: #3091
https://pagure.io/koji/issue/3091
Cannot get build type for builds in listBuilds
2021-11-04 11:55:50 +00:00
Yuming Zhu
d367420c75 [hub] getBuildType: ensure id exists in buildinfo dict
if there is no id, call `get_build` to fetch the build data (n-v-r inside will be used or the data is invalid)

fixes: #3091
2021-11-04 11:55:45 +00:00
Tomas Kopecek
1eaeb45e94 PR#3038: docs: koji-gc options
Merges #3038
https://pagure.io/koji/pull-request/3038

Fixes: #2812
https://pagure.io/koji/issue/2812
koji-gc: Missing documentation for standard options (e.g. keytab)
2021-10-26 11:23:39 +02:00
Tomas Kopecek
d5663617a3 docs: koji-gc options
Fixes: https://pagure.io/koji/issue/2812
2021-10-26 11:23:31 +02:00
Tomas Kopecek
6853bc9d2b PR#3051: cli: mention --profile in --config help text
Merges #3051
https://pagure.io/koji/pull-request/3051
2021-10-26 11:22:31 +02:00
Ken Dreyer
071533206e cli: mention --profile in --config help text
It's easy for new users to confuse the "--config" and "--profile"
settings.

We want to guide users towards using non-default profile names (eg
"stream" or "cbs", etc) where possible. If a user is pointing at a
non-standard configuration file location, they should really use the
--profile option also to keep their configuration sane.

Update the --help text for the --config option to emphasize the
--profile option.
2021-10-26 11:21:58 +02:00
Tomas Kopecek
a4f16fe1f0 PR#3067: Allow user on git://, git+http://, git+https://, and git+rsync:// scheme
Merges #3067
https://pagure.io/koji/pull-request/3067

Fixes: #2868
https://pagure.io/koji/issue/2868
[1.24.1] git user name are not forward to the builder
2021-10-26 11:14:47 +02:00
Jana Cupova
6426ddced1 Allow user on git://, git+http://, git+https://, and git+rsync:// scheme
Fixes: https://pagure.io/koji/issue/2868
2021-10-26 11:14:40 +02:00
Tomas Kopecek
f5552da017 PR#3096: hub: document packageListRemove method
Merges #3096
https://pagure.io/koji/pull-request/3096
2021-10-26 10:13:32 +02:00
Ken Dreyer
8d9633cff7 hub: document packageListRemove method
Update the packageListRemove RPC docstring to describe all parameters
and the return value.

Remove the statement about prefering the block and unblock functions.
In many cases it's simpler and faster to put fewer packages into a tag
than to block many extraneous packages in a tag.
2021-10-25 13:13:35 -04:00
Tomas Kopecek
068ccedd0b PR#3077: Remove translation stub functions
Merges #3077
https://pagure.io/koji/pull-request/3077

Fixes: #3072
https://pagure.io/koji/issue/3072
Clean translation stubs
2021-10-21 15:31:20 +02:00
Jana Cupova
32b5377392 Remove translation stub functions
Fixes: https://pagure.io/koji/issue/3072
2021-10-21 13:25:16 +02:00
Tomas Kopecek
9e542f509a PR#3086: hub: document listPackages method
Merges #3086
https://pagure.io/koji/pull-request/3086
2021-10-21 12:59:25 +02:00
Ken Dreyer
9ad3637cae hub: document listPackages method
Update the listPackages RPC docstring to describe all parameters and the
return value.
2021-10-21 12:59:20 +02:00
Tomas Kopecek
1925b0c7b8 fix tests 2021-10-21 12:58:29 +02:00
Tomas Kopecek
f09771d471 PR#3093: Fix log_output default value
Merges #3093
https://pagure.io/koji/pull-request/3093

Fixes: #2806
https://pagure.io/koji/issue/2806
dist-repo can run write-signed-rpms first
2021-10-21 12:56:14 +02:00
Jana Cupova
75b8e37569 Fix log_output default value
Fixes: https://pagure.io/koji/issue/2806
2021-10-21 12:17:41 +02:00
Tomas Kopecek
03dafc423a PR#3085: cli: improve help text for add-tag --parent
Merges #3085
https://pagure.io/koji/pull-request/3085
2021-10-20 17:20:18 +02:00
Ken Dreyer
cfaa6aa7fc cli: improve help text for add-tag --parent
Update the --help text to clarify that the --parent option will add a
parent tag at the highest priority (0).
2021-10-20 11:15:40 -04:00
Tomas Kopecek
9400ed2aa7 PR#3040: Restart kojid and kojira services automatically
Merges #3040
https://pagure.io/koji/pull-request/3040

Fixes #3084
https://pagure.io/koji/issue/3084
2021-10-20 16:14:27 +02:00
Vasil Velichkov
c21f102114 Restart kojid and kojira services automatically
Wait 60sec before restarting the service
2021-10-20 16:14:20 +02:00
Tomas Kopecek
a90552afdb PR#3043: basic security checks with bandit
Merges #3043
https://pagure.io/koji/pull-request/3043

Fixes: #3042
https://pagure.io/koji/issue/3042
Basic bandit checking
2021-10-20 15:20:22 +02:00
Tomas Kopecek
8cc777c094 fix test 2021-10-20 15:20:14 +02:00
Tomas Kopecek
a3ea37b173 remove unused imports 2021-10-20 15:20:14 +02:00
Tomas Kopecek
3ec6e87d5b replace urlopen with requests.get 2021-10-20 15:20:14 +02:00
Tomas Kopecek
ba2e1e520b basic security checks with bandit
Fixes: https://pagure.io/koji/issue/3042
2021-10-20 15:20:14 +02:00
Tomas Kopecek
0e2ebb4e25 Revert "PR#2944: decode protonmsg props field when loading from db"
This reverts commit 34d1c8eb9e, reversing
changes made to fdccd38148.

Proper solution was part of https://pagure.io/koji/pull-request/2955, so
this merge was a mistake. Reverting.
2021-10-20 13:00:04 +02:00
Tomas Kopecek
34d1c8eb9e PR#2944: decode protonmsg props field when loading from db
Merges #2944
https://pagure.io/koji/pull-request/2944
2021-10-19 13:11:27 +02:00
Mike McLean
b4b83c8251 decode protonmsg props field when loading from db 2021-10-19 13:11:20 +02:00
Tomas Kopecek
fdccd38148 PR#3066: method call json default option set up to str
Merges #3066
https://pagure.io/koji/pull-request/3066

Fixes: #3065
https://pagure.io/koji/issue/3065
`brew call --json ` breaks with DateTime values
2021-10-19 12:41:04 +02:00
Jana Cupova
74112e804f method call json default option set up to str
Fixed: https://pagure.io/koji/issue/3065
2021-10-19 12:40:56 +02:00
Tomas Kopecek
cd7f3eb551 PR#3075: Add CLI unit tests
Merges #3075
https://pagure.io/koji/pull-request/3075
2021-10-18 13:02:03 +02:00
Jana Cupova
9b235763cd Add CLI unit tests 2021-10-18 13:01:54 +02:00
Tomas Kopecek
3d4cf4a3bf PR#3058: Dist-repo with write-signed-rpm option
Merges #3058
https://pagure.io/koji/pull-request/3058

Fixes: #2806
https://pagure.io/koji/issue/2806
dist-repo can run write-signed-rpms first
2021-10-18 13:00:24 +02:00
Jana Cupova
d3ef00fff4 Dist-repo with write-signed-rpm option
Fixes: https://pagure.io/koji/issue/2806
2021-10-18 13:00:11 +02:00
Tomas Kopecek
5abb84c01d PR#3064: queryRPMSigs accepts RPM ID, NVRA and dict
Merges #3064
https://pagure.io/koji/pull-request/3064

Fixes: #3061
https://pagure.io/koji/issue/3061
queryRPMSigs only accepts RPM IDs (ints), not RPM names
2021-10-13 14:48:58 +02:00
Jana Cupova
46411b25a3 queryRPMSigs accepts RPM ID, NVRA and dict
Fixes: https://pagure.io/koji/issue/3061
2021-10-13 14:48:51 +02:00
Tomas Kopecek
113736b231 PR#3070: document convertFault method
Merges #3070
https://pagure.io/koji/pull-request/3070
2021-10-13 13:19:21 +02:00
Ken Dreyer
0747714f6e document convertFault method
Update the convertFault docstring to describe how the method converts
faults, the "fault" parameter type, and possible return values.
2021-10-12 14:27:39 -04:00
Tomas Kopecek
52ae5616dc PR#3009: listBuilds/list-builds filtering via CG
Merges #3009
https://pagure.io/koji/pull-request/3009

Fixes: #1401
https://pagure.io/koji/issue/1401
[RFE] add the ability to query builds by Content Generator
2021-10-05 12:28:09 +02:00
Tomas Kopecek
0badee262f listBuilds/list-builds filtering via CG
Fixes: https://pagure.io/koji/issue/1401
2021-10-05 12:28:03 +02:00
Tomas Kopecek
b477fa5e64 PR#3005: Speedup untagged_builds query
Merges #3005
https://pagure.io/koji/pull-request/3005

Fixes: #1636
https://pagure.io/koji/issue/1636
speedup for untagged_builds query
2021-10-05 11:09:54 +02:00
Tomas Kopecek
b382032d10 hub: speedup untagged_builds query
Fixes: https://pagure.io/koji/issue/1636
2021-10-05 11:09:47 +02:00
Tomas Kopecek
bcf924b77b PR#3020: propagate error in write-signed-copies
Merges #3020
https://pagure.io/koji/pull-request/3020

Fixes: #3014
https://pagure.io/koji/issue/3014
write-signed-rpms don't raise error in multicalls
2021-10-05 11:08:12 +02:00
Tomas Kopecek
3c26e60db4 propagate error in write-signed-copies
Fixes: https://pagure.io/koji/issue/3014
2021-10-05 11:08:06 +02:00
Jana Cupova
7096bddc4f More repos in the get_external_repo returns and error
Fixes: https://pagure.io/koji/issue/3033
2021-10-05 11:05:58 +02:00
Tomas Kopecek
390a633afd PR#3063: cli: refactor expected NVR comparison
Merges #3063
https://pagure.io/koji/pull-request/3063
2021-10-04 09:45:27 +02:00
Ken Dreyer
6950c65de9 cli: refactor expected NVR comparison
Instead of expanding "name"-"version"-"release" twice, expand it once
and assign it to a new "expected_nvr" variable.

This makes it easier to read this complex string handling code.
2021-10-04 09:45:21 +02:00
Tomas Kopecek
bcc5de0290 PR#3062: Update docs/source/runs_here.rst - Add XCP-ng
Merges #3062
https://pagure.io/koji/pull-request/3062
2021-10-04 09:42:00 +02:00
Samuel Verschelde
f9312ae2d1 Update docs/source/runs_here.rst - Add XCP-ng 2021-10-04 09:41:53 +02:00