Commit graph

739 commits

Author SHA1 Message Date
Tomas Kopecek
94b06f272e kojid: more meaningful error message
Fixes: https://pagure.io/koji/issue/2414
2020-08-18 16:25:40 +02:00
Clément Bénier
dba936e21a kojid: waitrepo on deleted tag
call getTag with strict=True to raise error if tag is deleted

Fixes: https://pagure.io/koji/issue/2414

Change-Id: I412de24654956216b22233e3e56c0b7ad741f6c8
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2020-08-18 16:25:40 +02:00
Tomas Kopecek
00382aeb90 make age optional 2020-08-18 15:55:19 +02:00
Tomas Kopecek
1b600d10a4 kojid: explicit binary writing mode
Fixes: https://pagure.io/koji/issue/2411
2020-07-30 15:57:27 +02: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
Tomas Kopecek
f8419e3626 remove deprecated krbV support
Fixes: https://pagure.io/koji/issue/1991
2020-07-24 15:08:47 -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
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
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
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
Tomas Kopecek
ae7f686e05 runroot: basic docs
Fixes: https://pagure.io/koji/issue/2111
2020-06-30 09:02:55 +02:00
Tomas Kopecek
ba02c1b977 improve race condition for getNextRelease / images
Fixes: https://pagure.io/koji/issue/2138
2020-06-24 13:36:23 +02:00
Tomas Kopecek
ac38549992 make mock depsolver policy configurable
Fixes: https://pagure.io/koji/issue/826
2020-06-23 09:02:15 +02:00
Tomas Kopecek
ae1561876c flake8 fix 2020-06-19 13:23:59 +02:00
Tomas Kopecek
8e7b616ca4 fix option names 2020-06-19 13:21:53 +02:00
Tomas Kopecek
477fb48b67 per-tag settings for mock's sign plugin
Based on amessina's patch

Fixes: https://pagure.io/koji/issue/84
2020-06-19 13:21:53 +02:00
Tomas Kopecek
4f925cec2b koji-gc: fix flake8 2020-06-18 15:51:42 +02:00
Tomas Kopecek
c10338d240 warning for disabled buildroot_image 2020-06-09 14:38:23 +02:00
Tomas Kopecek
1169f4be83 fix option name 2020-06-09 14:38:23 +02:00
Tomas Kopecek
bed10814eb use global option to enable bootstrap-image 2020-06-09 14:38:23 +02:00
Tomas Kopecek
d1cf0040c8 extend to allow also boostrap-image
Fixes: https://pagure.io/koji/issue/1017
2020-06-09 14:38:23 +02:00
Aron Parsons
1f1da58ec2 builder: add bootstrap-chroot support for mock
fixes https://pagure.io/koji/issue/1017
2020-06-09 14:38:23 +02:00
Tomas Kopecek
a4863c0f26 lib: check consistency of rpm from openRemoteFile
Fixes: https://pagure.io/koji/issue/2130
2020-06-05 10:58:38 +02:00
Tom Stellard
afc0efb122 Support tag specific environment variables
This makes it possible to specify an environment variable for a tag
that will be used during builds. e.g.

koji edit-tag -x rpm.env.CC=clang
2020-05-27 14:28:39 +02:00
Brendan Reilly
ba66f88e61 Pass bootloader append option to livemedia builds 2020-05-19 10:22:11 +02:00
Tomas Kopecek
0132313f92 replace logging.warn with warning
call is deprected in python 3.7

Fixes: https://pagure.io/koji/issue/2135
2020-04-22 13:47:15 +02:00
Igor Raits
e46fffe26b kojira: Allow using Kerberos without krbV
"Error: Unknown login error" message is very misleading because no
authentication is being performed when krbV is not installed.

Quit with error message if no authentication has been performed and also
update such error message in kojid to mentioned cert auth.

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-04-01 15:02:18 +02:00
Tomas Kopecek
2a621b337c allow debuginfo for sidetag repos
Fixes: https://pagure.io/koji/issue/540
2020-03-31 13:49:35 +02:00
Tomas Kopecek
c7d35e9121 try to better guess mock's error log
Fixes: https://pagure.io/koji/issue/1899
2020-03-25 14:35:26 +01:00
Tomas Kopecek
718321298e allow to skip SRPM rebuild for scratch builds
Fixes: https://pagure.io/koji/issue/1719
2020-03-19 15:40:55 +01:00
Tomas Kopecek
f505d6bb1a make xz options configurable
Fixes: https://pagure.io/koji/issue/1901
2020-03-16 10:30:16 +01:00
Yuming Zhu
d21083a11b still use BaseException for logging purpose 2020-03-03 21:38:22 +08:00
Yuming Zhu
cf34706f04 use Exception instead of BaseException for bare expection 2020-03-03 21:38:22 +08:00
Yuming Zhu
8c76bcde74 flake8: apply all rules after rebasing 2020-03-03 21:38:22 +08:00
Yuming Zhu
2a2c5cb729 flake8: apply W rules (prefering W503) 2020-03-03 21:38:22 +08:00
Yuming Zhu
c5db34a8e1 flake8: apply E501 with max-line-length=99 2020-03-03 21:38:22 +08:00
Yuming Zhu
f1ba6cefd7 flake8: apply all rest E7 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
6ed30954b2 flake8: apply E71x rule 2020-03-03 21:38:22 +08:00
Yuming Zhu
fa69c4904e flake8: apply E70x rule 2020-03-03 21:38:22 +08:00
Yuming Zhu
6dd77e0fa4 flake8: apply E502 rule 2020-03-03 21:38:22 +08:00
Yuming Zhu
0f727a2ab4 flake8: apply E3 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
05340b146b flake8: apply E2 rules except E266 2020-03-03 21:38:21 +08:00
Yuming Zhu
ce1f9928af flake8: apply E1 rules 2020-03-03 21:38:21 +08:00