Commit graph

880 commits

Author SHA1 Message Date
Yuming Zhu
75a1afc794 fix None draft for import_build and new_build 2024-01-05 10:00:31 +00:00
Yuming Zhu
3ff5eaadd6 misc fixes 2024-01-05 10:00:30 +00:00
Yuming Zhu
87409499a3 draft builds 2024-01-05 10:00:29 +00:00
Tomas Kopecek
3e90e62f3f replace f-strings with older syntax 2023-10-03 15:20:53 +02:00
Tomas Kopecek
f1747a649f remove debug print 2023-10-03 15:20:53 +02:00
Tomas Kopecek
5e61ad7711 update top-level repo.json 2023-10-03 15:20:53 +02:00
Tomas Kopecek
a459b00a54 fix path 2023-10-03 15:20:53 +02:00
Tomas Kopecek
8b8a8729a7 use correct repo.json 2023-10-03 15:20:53 +02:00
Tomas Kopecek
d0880b0fef additional fixes 2023-10-03 15:20:53 +02:00
Tomas Kopecek
c0c1f3c33d Don't spawn createrepo if not needed
Related: https://pagure.io/koji/issue/3808
2023-10-03 15:20:52 +02:00
Tomas Kopecek
a1ad698630 Clean rpm db directory of broken symlinks
Related: https://pagure.io/koji/issue/3892
2023-09-05 13:25:03 +02:00
Vasil Velichkov
b986805e07 kojid: Fix mock_bootstrap_image parameter name in the default config
There was a typo and the parameter name was incorrect
2023-09-04 09:37:47 +02:00
Tomas Kopecek
1d51db08bb remove option test 2023-07-18 11:31:07 +02:00
Tomas Kopecek
ad0566d7cc distrepo will not skip rpm stat by default
There is also CLI option which can override this behaviour if needed.

Related: https://pagure.io/koji/issue/3829
2023-07-18 11:31:07 +02:00
Tomas Kopecek
6a402cb3e7 write timestamps to workdir
To avoid resultsdir createion race condition.

Related: https://pagure.io/koji/issue/3833
2023-06-21 11:06:30 +02:00
Xun Zhong
72de874dac add support for sw_64 and loongarch64 2023-06-01 17:43:54 +08:00
geargyri
0eedf36c41 add policy check
Related: https://pagure.io/koji/issue/3183
2023-05-17 09:31:35 +02:00
Jana Cupova
b0a9985235 Update deprecated policy comments 2023-04-13 10:19:24 +02:00
Jana Cupova
4012b3efea Add custom_user_metadata to build info for wrapperRPM build type
Fixes: https://pagure.io/koji/issue/3655
2023-01-30 13:35:37 +01:00
Tomas Kopecek
49bbb0e55c fix typo preventing building docker images
Related: https://pagure.io/koji/issue/3619
2022-12-14 12:53:49 +01:00
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
Tomas Kopecek
5b8465a0e8 Revert "PR#3276: Use PrivateTmp for kojid/kojira"
This reverts commit 1728c07f03, reversing
changes made to a7179d7edb.
2022-05-19 13:47:22 +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
Pat Riehecky
10cf1e494e Weak ordering on httpd.service for kojid/ra
If you're running `kojid` or `kojira` on the same
host as as the koji-hub, it is helpful to have
these startup after the `httpd.service` has loaded.
2022-05-13 14:26:47 +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
Pat Riehecky
b16e271c46 Use PrivateTmp for kojid/kojira 2022-04-26 13:05:29 +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
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