Commit graph

857 commits

Author SHA1 Message Date
Mike McLean
9c8b9a1556 skip updateBuildroots if we have just taken a task 2024-03-28 15:58:07 +01:00
Mike McLean
aa370c20a2 capture dnf logs
Fixes https://pagure.io/koji/issue/4009
2024-03-13 10:09:15 +01:00
Mike McLean
9694f07aef reduce log noise a bit 2024-03-13 10:09:15 +01:00
Mike McLean
60b71020f0 split out buildroot log watching logic 2024-03-13 10:09:15 +01:00
Mike McLean
c51ae5d6b3 typo in BuildMavenTask 2024-03-13 10:09:15 +01:00
Mike McLean
27160b1a58 also use in appliance/livecd/liveimage 2024-03-13 10:09:15 +01:00
Mike McLean
c08b3fd042 rename var 2024-03-13 10:09:15 +01:00
Tomas Kopecek
91f176ccb5 Track uploads in BuildRoot and log mock config
Related: https://pagure.io/koji/issue/3875
2024-03-13 10:09:15 +01:00
Mike McLean
ecd5d96023 provide draft flag to build policy
Related: https://pagure.io/koji/issue/4014
2024-03-04 16:53:12 +01:00
Mike McLean
4a31c42edd handle refusal with an exception 2024-02-29 11:01:43 +01:00
Mike McLean
4b35b7b729 typo 2024-02-29 11:01:43 +01:00
Mike McLean
e169a6bf3e in newRepo too 2024-02-29 11:01:43 +01:00
Mike McLean
56d861bff3 refuse createrepo tasks if no fs access 2024-02-29 11:01:43 +01:00
Adam Williamson
710fe46e0b Oz: don't hardcode the image size unit as 'G'
This has never been necessary, because oz has always treated a
size with no unit as being in gibibytes. After
https://github.com/clalancette/oz/pull/310 it will be actively
harmful, because it will prevent us from using that new ability
of oz to specify a size using any other unit, as we have a
specific reason to want:
https://bugzilla.redhat.com/show_bug.cgi?id=2247611

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-02-07 14:44:59 +01:00
Mike McLean
a4b4aedba8 fix compat_mode case 2024-01-05 10:00:59 +00:00
Mike McLean
5591709735 docstring updates 2024-01-05 10:00:59 +00:00
Yu Ming Zhu
e32c71c100 remove draft opts in import_build and completeBuild 2024-01-05 10:00:52 +00:00
Mike McLean
62e010d44e reduce code duplication in mapInternalRPMs 2024-01-05 10:00:49 +00:00
Yu Ming Zhu
5571627667 rework _init_repo_data to get_repo_dir 2024-01-05 10:00:46 +00:00
Yu Ming Zhu
e3b43ba15c flake8 fixes 2024-01-05 10:00:45 +00:00
Yu Ming Zhu
025b0a136f error if payloadhash mismatch 2024-01-05 10:00:44 +00:00
Yu Ming Zhu
931bdb9292 explicitly check 404 status_code 2024-01-05 10:00:44 +00:00
Mike McLean
69d6f4139e parse rpmlist.jsonl on builder 2024-01-05 10:00:43 +00:00
Mike McLean
8b9a44954c temporary fallback code for missing content.json 2024-01-05 10:00:42 +00:00
Yuming Zhu
009de1e688 fix typo 2024-01-05 10:00:42 +00:00
Yu Ming Zhu
3b1df037be distRepo: denying draft builds 2024-01-05 10:00:41 +00:00
Yu Ming Zhu
a79c8ef468 kojid.BuildRoot: mapping id for each internal rpm by content.json 2024-01-05 10:00:40 +00:00
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