Commit graph

273 commits

Author SHA1 Message Date
Mike McLean
8a472ed94e allow setting ttl in protonmsg 2025-04-29 16:17:20 +02:00
Tomas Kopecek
4845ce3a92 flake8 fix 2024-11-12 16:07:28 -05:00
Mike McLean
41c7cb7f89 provide user for scm policy check 2024-11-01 10:07:26 -04:00
Neal Gompa
a5dd795043 kiwi: Add support for overriding version and releasever
This allows for kiwi descriptions that are compatible across
multiple targets to be easily used without needless modifications.

Additionally, it allows for custom values when preparing milestone
releases without needlessly modifying the descriptions.
2024-08-26 10:02:43 -04:00
Tomas Kopecek
0e43634af5 improve warnings for older hub 2024-08-26 14:28:40 +02:00
Tomas Kopecek
810836944a version check + typo fixes 2024-08-26 14:28:40 +02:00
Tomas Kopecek
dd594826f2 Don't use buildroot repo by default 2024-08-26 14:28:38 +02:00
Tomas Kopecek
b13d481d56 kiwi: option for not using buildroot repo
Related: https://pagure.io/koji/issue/4062
2024-08-26 14:28:13 +02:00
Neal Gompa
694ac41483 kiwi: Only add buildroot repo if user repositories are not defined
In general, we assume that if the user is specifying repositories,
the built-in one should not be used.
2024-08-26 14:27:21 +02:00
Adam Williamson
3e0b8103d2 Fix a typo in the kiwi image type attribute override patch
This colon was duplicated, which is syntactically invalid and
prevents the file from loading at all.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-08-22 09:44:50 -07:00
Neal Gompa
06840501bd kiwi: Add support for overriding kiwi image file name format
In order to be able to support workflows where the exact structure
of the image filenames matter (e.g. for Linux distribution artifacts),
support optionally overriding the image file name structure.
2024-08-21 09:35:45 +02:00
Neal Gompa
b22449c553 kiwi: Add support for overriding image type attributes
This allows setting things like the volume and application IDs
for ISO builds.
2024-08-21 09:34:53 +02:00
Mike McLean
a6aa4786f0 flake8 2024-06-26 10:07:29 -04:00
Mike McLean
e3707bed7a use requests in sidetag plugin 2024-06-24 11:25:21 -04:00
Neal Gompa
baa5a735e1 kiwi: Generate full logs with debug information
Without this flag, we do not have logs that include the details of
what happened during the build.
2024-04-10 14:41:15 +02:00
Tomas Kopecek
2013692fc9 New scmpolicy plugin
Plugin for scm policy using data from SCM checkout.

Related: https://pagure.io/koji/issue/3968
2024-02-09 14:47:37 +01:00
Yuming Zhu
87409499a3 draft builds 2024-01-05 10:00:29 +00:00
Tomas Kopecek
b7a05820f5 better variable naming 2023-08-28 16:37:28 +02:00
Tomas Kopecek
13097dff36 sidetag: extend is_sidetag_owner for untag ops
Related: https://pagure.io/koji/issue/3848
2023-08-28 16:37:28 +02:00
Tomas Kopecek
7afa72a60d fix tests 2023-07-13 17:03:23 +02:00
Tomas Kopecek
f6d67d8478 make newRepo for sidetag configurable 2023-07-13 15:19:14 +02:00
Tomas Kopecek
fdedf0936a trigger newRepo task for new sidetag
Related: https://pagure.io/koji/issue/3808
2023-07-13 15:19:14 +02:00
Tomas Kopecek
bb9d86db8b create initial repo for sidetag
Related: https://pagure.io/koji/issue/3808
2023-07-13 15:19:14 +02:00
Tomas Kopecek
0a48d6a688 fix flake8
Related: https://pagure.io/koji/issue/3790
2023-05-17 11:02:32 +02:00
Mike McLean
4913bd0c0a use db_lock in protonmsg 2023-05-17 11:02:08 +02:00
Jana Cupova
2139b237d0 ArgumentParser instead of ArgumentParser in sidetag CLI plugin
Fixes: https://pagure.io/koji/issue/3739
2023-04-03 15:23:21 +02:00
Jana Cupova
889770e74c Fix editSidetag fstring variable formats and fix test unit tests
Fixes: https://pagure.io/koji/issue/3748
2023-03-24 11:40:44 +01:00
Tomas Kopecek
8e0bdd7a00 sidetag: allowed list for rpm macros
Related: https://pagure.io/koji/issue/3673
2023-03-07 12:53:51 +01:00
Jana Cupova
693f196fa4 Add missing argument in edit-sidetag help msg
Fixes: https://pagure.io/koji/issue/3717
2023-03-02 16:07:04 +01:00
Tomas Kopecek
b0e91e378c Move db/auth to kojihub module
Related: https://pagure.io/koji/issue/3666
2023-03-01 11:46:24 +01:00
Tomas Kopecek
c63b7fee54 allow also removing extra for sidetags 2023-02-20 09:44:59 +01:00
Tomas Kopecek
d61e345dee sidetag_edit permission for automation
Related: https://pagure.io/koji/issue/3700
2023-02-20 09:44:49 +01:00
Tomas Kopecek
6e1ae7231e replace deprecated distutils
distutils will get removed in python 3.12. It is usage is now replaced
by sysconfig. For py2 version code stays in specfile.

https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated

Related: https://pagure.io/koji/issue/3514
2023-01-16 12:36:04 +01:00
Tomas Kopecek
e57c768058 fix typos 2023-01-03 14:25:05 +01:00
Tomas Kopecek
ebf892a1c0 symlink logs to result dir 2023-01-03 14:25:05 +01:00
Tomas Kopecek
0372a8e6a4 kiwi: upload log for failed tasks
Related: https://pagure.io/koji/issue/3597
2023-01-03 14:25:05 +01:00
Tomas Kopecek
f7324fafa8 import private functions 2022-12-08 09:57:35 +01:00
Tomas Kopecek
8902675489 further changes 2022-12-08 09:57:35 +01:00
Jana Cupova
78dee69de4 Create DeleteProcessor class and use it
Fixes: https://pagure.io/koji/issue/3580
2022-12-08 09:18:55 +01:00
Igor Raits
4d0de9de3d kiwi: Bind-mount /dev into the buildroot for old-chroot
The OEM images can't be build with nspawn as they require mocking with
device-mapper which is near to impossible to properly to set up in the
container so those ones have to be built in old chroot where /dev can
and must be bind-mounted. In opposite for nspawn, bind-mounting /dev
breaks build completely.

Let's just dynamically decide based on the chroot type what to do.
2022-11-16 11:36:15 +01:00
Tomas Kopecek
05851ac0c9 Revert "PR#3568: kiwi: don't bind builders's /dev"
This reverts commit 56cea9adc2, reversing
changes made to e9b5ec215d.

mock was changed meanwhile to automatically bind device mapper into the
buildroot.

Related: https://pagure.io/koji/issue/3567
https://pagure.io/koji/pull-request/3585
https://github.com/rpm-software-management/mock/pull/1005
2022-11-15 14:20:22 +01:00
Tomas Kopecek
8b1030f863 better error for wrong include xml format 2022-11-10 13:21:39 +01:00
Tomas Kopecek
b8b52884b5 fix include path
Related: https://pagure.io/koji/issue/3553
2022-11-10 13:21:39 +01:00
Tomas Kopecek
5dcf480a40 allow to set it by user 2022-11-09 14:24:03 +01:00
Tomas Kopecek
655cb9797f kiwi: don't bind builders's /dev
Related: https://pagure.io/koji/issue/3567
2022-11-09 14:24:03 +01:00
Tomas Kopecek
066e7427ef fix additional commas 2022-11-04 13:58:16 +01:00
Tomas Kopecek
6083bace39 kiwi: propagate --type option
Related: https://pagure.io/koji/issue/3556
2022-11-04 13:58:16 +01:00
Jana Cupova
1cfe6538db Move database classes and functions from kojihub.py to koji/db.py
Move QueryProcessor, InsertProcessor, UpdateProcessor,
BulkInsertProcessor, _applyQueryOpts, get_event, _dml,
_fetchMulti, _fetchSingle, _singleValue, _multiRow, _singleRow

Update koji-sweep-db script to DB Processors

Fixes: https://pagure.io/koji/issue/3466
2022-10-11 14:29:05 +02:00
Tomas Kopecek
0570e46fb0 kiwi: Explicitely use koji-generated description
Related: https://pagure.io/koji/issue/3497
2022-10-03 11:39:03 +02:00
Tomas Kopecek
d1d8f512c1 kiwi: handle include protocols
Related: https://pagure.io/koji/issue/3495
2022-09-29 15:40:38 +02:00