Commit graph

768 commits

Author SHA1 Message Date
Jana Cupova
6a2c6e7586 Repo info with task id
Fixes: https://pagure.io/koji/issue/888
2021-04-19 15:15:10 +02:00
Kevin Fenzi
1fcde3464f kojid.conf: fix linewrapped comment
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-04-03 17:37:45 -07:00
Tomas Kopecek
c6e69b4f8b backport py27 compatible file open with encoding
client and builder needs to run on py27 which doesn't support
open(encoding='utf-8')

Related: https://pagure.io/koji/issue/2641
2021-02-16 14:13:03 +01:00
Tomas Kopecek
9b665e195f flake8 fix 2021-02-16 14:05:15 +01:00
Mike McLean
441aad0aef make builder code similarly tolerant 2021-02-08 09:56:38 +01:00
Tomas Kopecek
90a2697fa7 rename local variable 2021-02-04 10:44:21 +01:00
Tomas Kopecek
6ad2bccec3 plugin hooks for repo modification
Fixes: https://pagure.io/koji/issue/2636
2021-02-04 10:44:21 +01:00
Tomas Kopecek
274000d223 fix typo
Related: https://pagure.io/koji/issue/2641
2021-02-01 15:39:32 +01:00
Tomas Kopecek
6f2f346ffa typo 2021-01-26 14:05:38 +01:00
Tomas Kopecek
a91577fe1d kojid: backward compatible hub call
Fixes: https://pagure.io/koji/issue/2648
2021-01-26 14:05:38 +01:00
Tomas Kopecek
96ae0ecef5 explicit encoding for text file operations
Fixes: https://pagure.io/koji/issue/2641
2021-01-26 13:36:25 +01:00
Tomas Kopecek
24bd694865 external repos can have specified arch list
Fixes: https://pagure.io/koji/issue/2538
2020-11-24 13:56:29 +01:00
Tomas Kopecek
0f56d39487 remove deprecated --ca option
Fixes: https://pagure.io/koji/issue/2192
2020-11-23 11:03:38 +01:00
Brendan Reilly
b97813d6e2 Add option to use repos from kickstart for livemedia builds
Fixes: https://pagure.io/koji/issue/2260
2020-11-12 15:48:47 +01:00
Brendan Reilly
c62f15172f Add nomacboot option for spin-livemedia
Fixes: https://pagure.io/koji/issue/2259
2020-10-27 14:37:01 +01:00
Tomas Kopecek
a5e4a2bf4d builder: mergerepo uses workdir as tmpdir
Fixes: https://pagure.io/koji/issue/2546
2020-10-27 14:18:34 +01:00
Tomas Kopecek
0c833c1236 remove sysv from Makefiles 2020-10-06 15:00:23 +02:00
Tomas Kopecek
18f5a29ead packaging 2020-10-06 15:00:23 +02:00
Tomas Kopecek
dce2ce2aa7 gzip now can be context manager 2020-10-06 15:00:23 +02:00
Tomas Kopecek
1b8efdfa69 flake8 fix 2020-09-22 12:21:07 +02:00
Tomas Kopecek
05dd937146 fix default value 2020-09-17 14:16:02 +02:00
Tomas Kopecek
16b4562056 fix option parsing 2020-09-17 14:16:02 +02:00
Tomas Kopecek
4c9c20180c typo 2020-09-17 14:16:02 +02:00
Tomas Kopecek
f674f554f8 builder: configurable TTL for buildroots
Fixes: https://pagure.io/koji/issue/2374
2020-09-17 14:16:02 +02:00
Tomas Kopecek
db85c934c1 builder: typo
Fixes: https://pagure.io/koji/issue/2466
2020-09-07 15:32:16 +02:00
Adam Williamson
f5e8adf315 livemedia-creator: pass --nomacboot on non-x86_64
See https://pagure.io/releng/issue/9601 . It seems the default
is 'try to enable Mac booting' and we need to explicitly pass
`--nomacboot` to turn it off. We only support x86_64 Macs for
now, so we don't want to try and make live images bootable on
Mac on any other arch.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-08-27 13:45:10 +02:00
Davide Cavalca
ba296f946f builder: handle btrfs subvolumes in ApplianceTask 2020-08-27 13:12:11 +02:00
Tomas Kopecek
dc1b27f45b kojid: fix extra-boot-args option
Fixes: https://pagure.io/koji/issue/2437
2020-08-27 13:11:06 +02:00
Tomas Kopecek
7855b98ca2 formatTime/Long can handle timestamp
Also replaced *_time with *_ts wherever possible.
2020-08-26 09:26:00 +02:00
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