Commit graph

5576 commits

Author SHA1 Message Date
Mike McLean
7afc7628ad kojira: drop reference to krb_login
this call to krb_login was accidentally re-introduced with a merge commit.

Fixes https://pagure.io/koji/issue/2400
2020-07-24 17:21:08 -04:00
Mike McLean
18e0e8803f PR#2280: Use requests_gssapi instead of requests_kerberos
Merges #2280
https://pagure.io/koji/pull-request/2280

Fixes: #882
https://pagure.io/koji/issue/882
Investigate and replace python-requests-kerberos with python-requests-gssapi
2020-07-24 15:58:23 -04:00
Simo Sorce
2c663f0b73 Use requests_gssapi instead of requests_kerberos
Retain ability to use the old requests_kerberos where request_gssapi is
not available yet.

Signed-off-by: Simo Sorce <simo@redhat.com>
2020-07-24 15:32:42 -04:00
Mike McLean
9063f33b07 PR#2244: remove deprecated krbV support
Merges #2244
https://pagure.io/koji/pull-request/2244

Fixes: #1991
https://pagure.io/koji/issue/1991
Remove deprecated krbV code
2020-07-24 15:10:30 -04:00
Tomas Kopecek
d75a3f3b52 remove remaining options 2020-07-24 15:08:47 -04:00
Tomas Kopecek
bbe8ce9700 backward compat wrapper for krb_login 2020-07-24 15:08:47 -04:00
Tomas Kopecek
f8419e3626 remove deprecated krbV support
Fixes: https://pagure.io/koji/issue/1991
2020-07-24 15:08:47 -04:00
Tomas Kopecek
ee93da4177 PR#2340: kojira: threaded repo deletion
Merges #2340
https://pagure.io/koji/pull-request/2340

Fixes: #2336
https://pagure.io/koji/issue/2336
kojira: thread for repo deletion
2020-07-24 13:40:36 +02:00
Tomas Kopecek
40a55908ab kojira: estimate better expire_ts 2020-07-24 13:40:26 +02:00
Tomas Kopecek
74f18b687e kojira: threaded repo deletion
Fixes: https://pagure.io/koji/issue/2336
2020-07-24 13:40:26 +02:00
Mike McLean
63834751c3 PR#2337: align option naming with mock
Merges #2337
https://pagure.io/koji/pull-request/2337

Fixes: #84
https://pagure.io/koji/issue/84
[Feature Request] Allow koji-builder to use Mock's sign plugin to automatically sign package after build
2020-07-23 11:18:27 -04:00
Tomas Kopecek
f8b26a1bcf align option naming with mock
Related: https://pagure.io/koji/issue/84
2020-07-23 11:18:23 -04:00
Tomas Kopecek
90921a8485 PR#2363: sphinx formatting fixes for hub policy doc
Merges #2363
https://pagure.io/koji/pull-request/2363
2020-07-23 10:46:19 +02:00
Ken Dreyer
fe866a1065 doc: preformatted text for hub policy names
Use preformatted text to distinguish each hub policy name.
2020-07-23 10:46:10 +02:00
Ken Dreyer
6ceff14946 doc: section title formatting for hub policy example
Add section title formatting for the complex hub policy example
2020-07-23 10:46:10 +02:00
Tomas Kopecek
86bd0ae845 PR#2377: hub: document listBType return value when query matches no entries
Merges #2377
https://pagure.io/koji/pull-request/2377
2020-07-23 10:16:08 +02:00
Ken Dreyer
07bc3a82d6 hub: document listBType return value when query matches no entries
When a user calls listBType with a query parameter and that query
matches no existing btypes, the listBType method returns an empty list.
Add this information to the listBType docstring.
2020-07-23 10:16:01 +02:00
Mike McLean
44cc51c846 PR#2123: Pass buildroot to preSCMCheckout and postSCMCheckout where applicable.
Merges #2123
https://pagure.io/koji/pull-request/2123

Fixes: #2122
https://pagure.io/koji/issue/2122
RFE: pass the broot object into the postSCMCheckout callback in i.e. buildSRPMfromSCM task
2020-07-22 11:38:05 -04:00
Adam Saleh
066c651aab Pass buildroot to preSCMCheckout and postSCMCheckout where applicable.
This includes BuildMavenTask, WrapperRPMTask, ImageTask and BuildSRPMfromRPMTask.

Signed-off-by: Adam Saleh <asaleh@redhat.com>
2020-07-22 11:38:00 -04:00
Mike McLean
b88d87e469 PR#2257: BuildSRPMFromSCMTask: Support auto-selecting a matching specfile name
Merges #2257
https://pagure.io/koji/pull-request/2257

Related: #1905
https://pagure.io/koji/issue/1905
RFE: Add support for spawning multiple builds from one buildSRPMFromSCM task
2020-07-22 10:33:38 -04:00
Tomas Kopecek
8cd79f48e7 builder: py2 fixes
Relates: https://pagure.io/koji/issue/1905
2020-07-22 10:33:33 -04:00
Stephen Gallagher
47696c8895 BuildSRPMFromSCMTask: Support auto-selecting a matching specfile name
There are cases where having two files with the .spec suffix in the
same dist-git repository makes sense, such as maintaining a common
dist-git structure for different distributions where the package
name might be different.

This patch would allow the build-system to use the matching spec
file name for the current SCM checkout path if it exists.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2020-07-22 10:33:33 -04:00
Mike McLean
2d27453ac1 PR#2387: cli: list-tags: fall back to old behavior on ParameterError
Merges #2387
https://pagure.io/koji/pull-request/2387

Fixes: #2379
https://pagure.io/koji/issue/2379
list-tags fails against older hub
2020-07-22 10:17:41 -04:00
Mike McLean
9ada058abc whitespace to make flake8 happy 2020-07-22 10:17:37 -04:00
Mike McLean
a15d1c521d cli: list-tags: fall back to old behavior on ParameterError
Fixes https://pagure.io/koji/issue/2379
2020-07-22 10:17:37 -04:00
Mike McLean
ea1b7a6a60 PR#2353: turn off dnf_warning in mock.cfg
Merges #2353
https://pagure.io/koji/pull-request/2353

Related: #2026
https://pagure.io/koji/issue/2026
Mock 2.0 is lands Fedora/EPEL stable
2020-07-21 23:57:25 -04:00
Tomas Kopecek
72c701225b turn off dnf_warning in mock.cfg
Related: https://pagure.io/koji/issue/2026
2020-07-21 23:57:20 -04:00
Mike McLean
47c9146add PR#2385: doc: exporting repositories
Merges #2385
https://pagure.io/koji/pull-request/2385

Fixes: #1964
https://pagure.io/koji/issue/1964
What to use instead of mash?
2020-07-21 23:49:42 -04:00
Mike McLean
f3db46765c rewrite 2020-07-21 23:49:38 -04:00
Mike McLean
eb833883ce fix typos and minor grammar problems 2020-07-21 23:49:38 -04:00
Tomas Kopecek
4396dd09b5 doc: dist-repo and exporting repos
Fixes: https://pagure.io/koji/issue/1964
2020-07-21 23:49:38 -04:00
Mike McLean
a04f6413b8 PR#2372: TaskManager: clean both result and results dirs
Merges #2372
https://pagure.io/koji/pull-request/2372

Fixes: #1988
https://pagure.io/koji/issue/1988
kojid should also cleanup any 'bootstrap' repos
2020-07-21 23:29:19 -04:00
Yu Ming Zhu
54f047fc2a TaskManager: clean both result and results dirs
fixes: #1988
2020-07-21 23:29:13 -04:00
Mike McLean
d4b6331f42 PR#2376: kojid: use mergerepo_c for all merge modes
Merges #2376
https://pagure.io/koji/pull-request/2376

Fixes: #2183
https://pagure.io/koji/issue/2183
kojid: use mergerepo_c where possible
2020-07-21 23:20:58 -04:00
Yu Ming Zhu
a02762bc7f depress Exception when checking mergerepo_c version 2020-07-16 11:17:44 -04:00
Yu Ming Zhu
cccd7f06a3 flake8: W605 invalid escape sequence '\d' 2020-07-16 11:17:44 -04:00
Yu Ming Zhu
022ee9dbce do not break things when mergerepo_c version is not detectable 2020-07-16 11:17:44 -04:00
Yuming Zhu
921bc30573 safe convertion from tuple to str for error msg 2020-07-16 11:17:44 -04:00
Mike McLean
72bc9ed3eb make sure we fall back to mergerepos on python2
also catch more error cases and adjust logging
2020-07-16 11:17:44 -04:00
Tomas Kopecek
3a6bfec59e fix required version 2020-07-16 11:17:44 -04:00
Tomas Kopecek
393bc1d9e1 kojid: use mergerepo_c for all merge modes
Fixes: https://pagure.io/koji/issue/2183
2020-07-16 11:17:44 -04:00
Mike McLean
7d998fec29 PR#2359: hub: importImage doesn't honor volume
Merges #2359
https://pagure.io/koji/pull-request/2359

Fixes: #2355
https://pagure.io/koji/issue/2355
buildImageOz task cannot set volume
2020-07-15 12:07:01 -04:00
Tomas Kopecek
f4d9194ff6 fix tests 2020-07-15 12:06:55 -04:00
Tomas Kopecek
a8bee1511f hub: importImage doesn't honor volume
We're not sending updated build_info to the method and it is requesting
data from db. There is not volume saved yet.

Change is reusing modified buildinfo.

Fixes: https://pagure.io/koji/issue/2355
2020-07-15 12:06:55 -04:00
Mike McLean
43db33eac2 PR#2364: cli clone-tag - get srctag info with event
Merges #2364
https://pagure.io/koji/pull-request/2364

Fixes: #2101
https://pagure.io/koji/issue/2101
CLI clone-tag with options --repo, --ts, --event
2020-07-15 11:44:07 -04:00
Yuming Zhu
45a4867e67 cli clone-tag - get srctag info with event
So that tag config and extra honor `event` for clone-tag cmd

fixes: #2101
2020-07-15 11:44:02 -04:00
Mike McLean
d3146d77b0 PR#2347: cli: fix image-build-indirection --wait
Merges #2347
https://pagure.io/koji/pull-request/2347

Fixes: #2046
https://pagure.io/koji/issue/2046
brew image-build-indirection doesn't WAIT
2020-07-15 11:17:47 -04:00
Tomas Kopecek
d47a45f576 cli: fix image-build-indirection --wait
Fixes: https://pagure.io/koji/issue/2046
2020-07-15 11:17:43 -04:00
Mike McLean
6b8f2550fd PR#2366: upgrade-sql: fix backward compatibility
Merges #2366
https://pagure.io/koji/pull-request/2366

Fixes: #2367
https://pagure.io/koji/issue/2367
schema upgrade error 1.21->1.22
2020-07-14 23:36:00 -04:00
Yu Ming Zhu
bfbaca100e upgrade-sql: fix backward compatibility 2020-07-14 23:35:56 -04:00