Commit graph

820 commits

Author SHA1 Message Date
Tomas Kopecek
39fc11a439 handle migrated rpmdb path
Related: https://pagure.io/koji/issue/3617
2022-12-08 09:15:14 +01:00
Tomas Kopecek
e9ebe2250d build policy
New 'build' policy replacing 'build_from_srpm' and 'build_from_repo_id'.

Related: https://pagure.io/koji/issue/3323

Author:    Tomas Kopecek <tkopecek@redhat.com>
2022-11-10 15:47:44 +01:00
Tomas Kopecek
d774a8fbdf drop custom_user_metadata propagation 2022-10-31 09:34:22 +01:00
Tomas Kopecek
9ad7934cb9 save source for wrapperRPM
Related: https://pagure.io/koji/issue/3409
2022-10-31 09:34:22 +01:00
Tomas Kopecek
bd95153cb3 vm: handle waitrepo tasks in kojivmd
When moved there, kojivmd can import it and wait for
regen repos it started.

Related: https://pagure.io/koji/issue/3536
2022-10-21 14:23:47 +02:00
Jana Cupova
819d85dc40 Rename global session in kojid
Fixes: https://pagure.io/koji/issue/3547
2022-10-20 13:27:02 +02:00
Tomas Kopecek
6fd813df90 kojid: use session correctly
Related: https://pagure.io/koji/issue/3539
2022-10-18 12:05:23 +02:00
Tomas Kopecek
09d4f889dc Emphasize user non-working image XML
Related: https://pagure.io/koji/issue/3473
2022-10-17 16:10:00 +02:00
Alex Iribarren
8113448282 Catch koji.AuthError and bail out 2022-08-17 10:49:41 +02:00
Adam Williamson
a944798944 Don't crash in _checkImageState if there's no image.os_plugin
We've seen some tasks lately where Koji crashed trying to do
`image.os_plugin.abort()`, e.g.:

https://koji.fedoraproject.org/koji/taskinfo?taskID=89750587
https://koji.fedoraproject.org/koji/taskinfo?taskID=89671944

The fix seems fairly simple: only try and abort if os_plugin
actually exists.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-29 13:45:18 +02:00
Tomas Kopecek
9e741bfb9e beautify logged commands issued by koji
Related: https://pagure.io/koji/issue/929
2022-07-19 13:23:57 +02:00
Tomas Kopecek
aae0ff2bd6 kojid: don't fail on missing ccache file
Related: https://pagure.io/koji/issue/3369
2022-05-24 13:46:24 +02:00
Pat Riehecky
4203fbee14 kojid: permit forcing the target arch within mock per tag 2022-05-16 16:15:03 +02:00
Pat Riehecky
a50ca237c7 kojid: permit forcing releasever within mock per tag 2022-05-16 16:15:03 +02:00
Tomas Kopecek
61b843256f call git rev-parse before chowning source directory
Fixes: https://pagure.io/koji/issue/3351
2022-05-10 10:59:14 +02:00
Daniel Juarez
e596ca6fcb Check ccache size before trying to use it 2022-03-22 10:24:54 +01:00
Tomas Kopecek
664043d0c5 createrepo_c should fail on all errors
Related: https://pagure.io/koji/issue/3190
2022-02-07 09:34:31 +01:00
Tomas Kopecek
3ee95baa5f mock.module_setup_commands tag extra option
Fixes: https://pagure.io/koji/issue/2483
2022-02-07 09:33:14 +01:00
Jana Cupova
725c157fbd Allow password in SCM url with new builder option
Fixes: https://pagure.io/koji/issue/3179
2022-01-25 15:47:27 +01:00
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
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
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
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