Jana Cupova
2d820f4b7d
AuthExpire returns code 1 in kojid
...
Fixes: https://pagure.io/koji/issue/3084
2021-12-06 10:18:11 +01:00
Jana Cupova
082f15eae5
Rewrite Acceptable keys to Requested keys in missing_signatures log
...
Fixes: https://pagure.io/koji/issue/3149
2021-11-29 15:28:13 +01:00
Jana Cupova
929e0ab998
Fix type in kojid distRepo
...
Fixes: https://pagure.io/koji/issue/2806
2021-11-04 12:18:31 +00:00
Jana Cupova
cc7ec85c32
Add specfile log to wrapperRPM
...
Fixes: https://pagure.io/koji/issue/2862
2021-11-04 12:13:44 +00:00
Jana Cupova
75b8e37569
Fix log_output default value
...
Fixes: https://pagure.io/koji/issue/2806
2021-10-21 12:17:41 +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
ba2e1e520b
basic security checks with bandit
...
Fixes: https://pagure.io/koji/issue/3042
2021-10-20 15:20:14 +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
4b458ac056
import guestfs before dnf
...
Fixes: https://pagure.io/koji/issue/2964
2021-09-08 14:55:18 +02:00
Tomas Kopecek
1002a11afa
fix flake8
2021-08-18 13:24:24 +02:00
Yu Ming Zhu
b35811ed56
fix config typo
2021-08-16 17:55:26 +00:00
Yu Ming Zhu
a3f19e0f12
more reasonable parameter name, and more doc strs
2021-08-16 17:55:26 +00:00
Yu Ming Zhu
47c4b5d70b
kojid: extend SCM.assert_allowed with hub policy
...
This is a simple extention of `SCM.assert_allowed`
- `assert_allowed_by_policy` will set the default "use_common" to False which is different to the old behavior
- `channel`, `user_id`, `scratch` are passed in the `policy_data` with scminfo right now.
This is a prototype for this change, and there are some other solutions could be implemented too
- Use a scmpolicy plugin as `postSCMCheckout` callback, the pro is that we can do more checks after the source is initialized on builder, meanwhile, the con is that the source will be downloaded even it is denied by policy. It might be a potential risk?
- Do the scm check in hub's `make_task`, this looks straightforward, but may lack some builder's information
fixes : #2757
2021-08-16 17:55:26 +00:00
Tomas Kopecek
b26c67ef89
Prune user repos for image tasks
...
Fixes: https://pagure.io/koji/issue/2966
2021-08-10 14:19:14 +02:00
Tomas Kopecek
540e5057b9
use getNextRelease for scratch image builds
...
Related: https://pagure.io/koji/issue/2911
2021-08-10 14:04:10 +02:00
Tomas Kopecek
5f65cf63b7
fix python version parsing for py 3.10
...
Fixes: https://pagure.io/koji/issue/2975
2021-08-06 10:51:09 +02:00
Jana Cupova
308cbf675b
Livecd handler set up release if release not given
...
Fixes: https://pagure.io/koji/issue/2830
2021-06-22 11:52:58 +02:00
Brendan Reilly
0f9a77c0e3
Add noverifyssl option to oz image builds
2021-06-17 15:46:11 +02:00
mprahl
cd1b928a5f
Add the ability to specify custom metadata on an RPM build
...
This adds the `--custom-user-metadata` option to the
CLI `build` command. This is then stored under the
"extra.custom_user_metadata" field on the resulting build.
Signed-off-by: mprahl <mprahl@redhat.com>
2021-06-02 15:48:51 +02:00
Jana Cupova
bef3eff0aa
Add squashfs-only and compress-arg options to livemedia
...
Fixes: https://pagure.io/koji/issue/2476
2021-05-10 09:12:27 +02:00
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