Commit graph

812 commits

Author SHA1 Message Date
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
Yu Ming Zhu
49504073b1 refine import style 2020-03-03 21:35:08 +08:00
Yuming Zhu
97cfaa4fcf flake8: follow E265 rule 2020-03-03 21:35:08 +08:00
Brendan Reilly
67b30845fc Include livemedia builds in accepted wrapperRPM methods 2020-02-26 18:04:36 -05:00
Tomas Kopecek
638f6cc6f2 replace xmlrpc_client exception with requests
It is broken in startup function for kojid and kojivmd from the
introduction of requests.

Fixes: https://pagure.io/koji/issue/1914
2020-02-21 12:40:42 +01:00
Atanas Zhelev
b4b88206fe Add smtp authentication support 2020-02-12 14:38:18 +01:00
Tomas Kopecek
e2edc37153 ensure that all keys in distrepo are lowered
Fixes: https://pagure.io/koji/issue/1978
2020-02-10 15:31:30 +01:00
Tomas Kopecek
a392467bce fix nvr/dict params
Related: https://pagure.io/koji/issue/1619
2020-01-02 12:19:57 +01:00
Tomas Kopecek
ac42f9b8ba basic zchunk support for dist-repo
Fixes: https://pagure.io/koji/issue/1198
2020-01-02 11:30:55 +01:00
Mike McLean
2ff52c0dc3 refactor 2020-01-02 10:45:48 +01:00
Yu Ming Zhu
8d4a5c7129 kojid: use binary msg for python3 in *Notification tasks
fixes: #1882
2020-01-02 10:44:20 +01:00
Tomas Kopecek
0e5042832d split admin_emails option in koji.add_mail_logger
If there are multiple e-mailes separated by comma of space, they should
be split for correct usage of smtplib.sendmail.

Fixes: https://pagure.io/koji/issue/1240
2019-12-19 10:31:58 +01:00
Yu Ming Zhu
79a387e90a sort imports in builder 2019-12-12 11:00:58 +00:00
Tomas Kopecek
418376dc81 build can wait for actual repo
New options --wait-for-build and --wait-for-repo for build command are
simplification of using wait-repo + build command succession. They have
same semantices as the original one.

Fixes: https://pagure.io/koji/issue/1619
2019-12-12 15:29:27 +01:00
Tim Smith
80021ab904 Provide for passing credentials to SRPMfromSCM
Some places force every access to their systems to be authenticated for
audit purposes, which means even an https fetch of a source tarball
needs access to some sort of credential.

Provide for a directory intended to contain credentials to be
bind-mounted into the BuildRoot for the BuildSRPMFromSCM task as
"/credentials". Whatever runs a a result of the source_cmd ("make
sources") is responsible for doing something useful with the contents.
2019-12-12 15:22:01 +01:00
Yuming Zhu
93ab8c9df4 fix conflict -r option for kernel version
fixes: #793
related: #821
2019-12-03 09:45:57 +01:00
Yuming Zhu
7a6ebc851f improve test and clean targets in Makefiles 2019-11-27 15:42:30 +01:00
Tomas Kopecek
16279ceefa use --update for dist-repos if possible
Fixes: https://pagure.io/koji/issue/1031
2019-11-27 15:29:56 +01:00
Tomas Kopecek
d662f7e501 Log kernel version used for buildroot
Fixes: https://pagure.io/koji/issue/793
2019-11-25 14:54:34 +01:00
Mohan Boddu
5b3dbd4fd8 Remove title option for livemedia-creator
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2019-11-21 15:19:58 +01:00
Tomas Kopecek
956ad744af add _remote.repositories to ignored maven files
Fixes: https://pagure.io/koji/issue/1731
2019-11-07 11:43:09 -05:00
Tomas Kopecek
8d4d74fca0 check existence of maven symlink
Fixes: https://pagure.io/koji/issue/1593
2019-11-06 13:49:04 -05:00
Yu Ming Zhu
135ac0d6ae clean python compiled binaries for non *.py code
fixes: #1698
2019-10-31 13:20:53 +01:00
Tomas Kopecek
3f64a486a9 mostly only mock exit code 10 ends in build.log
Fixes: https://pagure.io/koji/issue/1679
2019-10-16 09:08:44 +02:00
Yu Ming Zhu
081aacbdeb use RawConfigParser for kojid 2019-10-15 09:14:16 +02:00
Yu Ming Zhu
4c1928f377 extract read_config_files util for config parsing 2019-10-15 09:14:16 +02:00
Tomas Kopecek
dd8fd935f4 use preferred arch if there is more options
https://pagure.io/koji/pull-request/323 introduced option to force an
arch for noarch packages. Nevertheless, it is only task architecture and
not buildroot one. So, if builder can provide more possible archs (32/64
bit), it will pick one of these randomly and can go against preferred arch.

Patch introduces "preferred_arch" option for find_arch and use the
task's one when it works with noarch rpm.

Fixes: https://pagure.io/koji/issue/789
2019-10-14 10:12:40 +02:00
Yu Ming Zhu
2034695e88 add an option to set server realm for all clients 2019-10-10 16:37:56 +02:00