Commit graph

273 commits

Author SHA1 Message Date
Tomas Kopecek
d1a9105179 packaging: Block py3 compilation in py2 env
Related: https://pagure.io/koji/issue/3485
2022-09-22 14:10:31 +02:00
Tomas Kopecek
1ca5db555a proton: save messages when connection fails
Fixes: https://pagure.io/koji/issue/3327
2022-07-26 11:43:30 +02:00
Jana Cupova
c141eb0f2f Fix arches check in kiwi plugin
Fixes: https://pagure.io/koji/issue/3427
2022-07-12 10:32:08 +02:00
Igor Raits
f007c46893
tag2distrepo: Write signed RPMs for non-latest versions if needed
Signed-off-by: Igor Raits <igor.raits@gmail.com>
2022-05-20 18:52:15 +02:00
Tomas Kopecek
ee32666722 Configurable tag2distrepo options
Related: https://pagure.io/koji/issue/2820
2022-05-19 13:55:20 +02:00
Jana Cupova
7785be7758 Add tag2distrepo plugin to hub
Fixes: https://pagure.io/koji/issue/2820
2022-05-09 14:10:33 +02:00
Jana Cupova
d67c36151b Fix input validation
Fixes: https://pagure.io/koji/issue/3319
2022-05-09 14:05:52 +02:00
Jana Cupova
ff500a2c4e Age in protonmsg config file is deprecated
Fixes: https://pagure.io/koji/issue/3332
2022-05-09 13:59:10 +02:00
Tomas Kopecek
b6e7c99301 fix escape sequence 2022-05-02 11:26:32 +02:00
djuarezg
187975ae7e Update NVR option checking to match kiwi's 2022-05-02 11:18:13 +02:00
djuarezg
c071f37d2e Rename pkg group to dud-build 2022-05-02 11:18:13 +02:00
djuarezg
3aea7d849e Apply xorriso and flake8 suggestions 2022-05-02 11:18:13 +02:00
djuarezg
aa26a0a8c2 Adding initial Driver Update Disk building support 2022-05-02 11:18:13 +02:00
Tomas Kopecek
60add4a88a test 2022-05-02 07:09:51 +02:00
Tomas Kopecek
04da1d2db3 additional fixes 2022-05-02 06:55:46 +02:00
Jana Cupova
9bfefe782e Hub, plugins and tools inputs validation
Fixes: https://pagure.io/koji/issue/3319
2022-05-02 06:55:44 +02:00
Tomas Kopecek
6aaa6b3248 rename option 2022-02-07 10:07:26 +01:00
Tomas Kopecek
e7db7d8b53 db: logging option for cursor
In some cases we expect query to fail (LOCK NOWAIT) but it still
clutters the logs. Option for not logging cursor-level errors.

Fixes: https://pagure.io/koji/issue/2837
2022-02-07 10:01:21 +01:00
Tomas Kopecek
d3213b888f save modified .kiwi files per arch
Related: https://pagure.io/koji/issue/3210
2022-01-31 10:24:27 +01:00
Tomas Kopecek
bf23bf904e fix flake8 2022-01-19 15:29:59 +01:00
Tomas Kopecek
49dfa51bc5 fix working dir path 2022-01-19 15:26:32 +01:00
Tomas Kopecek
7521198a8c optional "make prep" 2022-01-19 15:26:32 +01:00
Tomas Kopecek
25cf5f78e1 remove unused code 2022-01-19 15:26:32 +01:00
Igor Raits
5c8f9c3e09 kiwi: Collect all files from bundle directory
Bundle directory has slightly different files (compressed, etc.) and
does not contain any JSON files so let's just collect all files from
there.

Signed-off-by: Igor Raits <igor.raits@gmail.com>
2022-01-19 15:26:32 +01:00
Tomas Kopecek
dfc5b01c9c fix packaging 2022-01-19 15:26:32 +01:00
Tomas Kopecek
565f59459e kiwi: use separate --release 2022-01-19 15:26:32 +01:00
Tomas Kopecek
e423263f51 kiwi: Implant releasever into the kiwi description
Related: https://pagure.io/koji/issue/3194
2022-01-19 15:26:32 +01:00
Igor Raits
d737bb4597 Store disk_image type of kiwi files
For example, it is used by .raw (OEM) images.

Signed-off-by: Igor Raits <igor.raits@gmail.com>
2022-01-19 15:26:32 +01:00
Igor Raits
74c414ee1c Add support for kiwi.result.json
Signed-off-by: Igor Raits <igor.raits@gmail.com>
2022-01-19 15:26:32 +01:00
Ken Dreyer
dbacf1f985 protonmsg: allow users to specify router-specific topic prefixes
Prior to this change, Koji would always send messages with a hard-coded
topic:// prefix.

This works fine for ActiveMQ 5 and Artemis, but RabbitMQ does not
support that syntax. Instead, RabbitMQ brokers expect clients to use
topic addresses with a "/topic/" prefix.

The RFE for RabbitMQ to support "topic://" prefixes is
https://github.com/rabbitmq/rabbitmq-server/issues/2583

In the meantime, allow users to specify "topic://" or "/topic/"
explicitly in their configuration.

For backwards-compatibility, if the user chose neither "topic://" nor
"/topic/", prepend the "topic://" string, preserving the plugin's
existing behavior.

(Note: ActiveMQ 5 advertises its expected topic:// prefix in the initial
connection properties, so we could read that value dynamically, but
RabbitMQ and Artemis do not send an expected topic prefix connection
properties, so we just make the user choose explicitly here.)
2021-12-20 08:44:27 +01:00
Tomas Kopecek
f0f227f0ab fix flake8 2021-11-18 11:12:48 +01:00
Tomas Kopecek
79e1841c96 fix bandit 2021-11-18 11:12:48 +01:00
Tomas Kopecek
2d6a14845f alter name by selected profile 2021-11-18 11:12:48 +01:00
Tomas Kopecek
2d6b03eeba fix signature 2021-11-18 11:12:48 +01:00
Tomas Kopecek
336573c0fd code simplification 2021-11-18 11:12:48 +01:00
Tomas Kopecek
86c8fdc177 use json results 2021-11-18 11:12:48 +01:00
Tomas Kopecek
946a24cca8 remove translation 2021-11-18 11:12:48 +01:00
Tomas Kopecek
8c1a7337ab kiwi: check include directive 2021-11-18 11:12:48 +01:00
Tomas Kopecek
86ee135dd1 json results 2021-11-18 11:12:48 +01:00
Tomas Kopecek
d31306e2f6 basic kiwi support 2021-11-18 11:12:48 +01:00
Tomas Kopecek
5f9fbf660e runroot: use --chroot instead of chroot mock command
Former is no officially supported anymore

Fixes: https://pagure.io/koji/issue/3133
2021-11-18 11:05:34 +01:00
Jana Cupova
32b5377392 Remove translation stub functions
Fixes: https://pagure.io/koji/issue/3072
2021-10-21 13:25:16 +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
Tomas Kopecek
0e2ebb4e25 Revert "PR#2944: decode protonmsg props field when loading from db"
This reverts commit 34d1c8eb9e, reversing
changes made to fdccd38148.

Proper solution was part of https://pagure.io/koji/pull-request/2955, so
this merge was a mistake. Reverting.
2021-10-20 13:00:04 +02:00
Mike McLean
b4b83c8251 decode protonmsg props field when loading from db 2021-10-19 13:11:20 +02:00
Tomas Kopecek
c41559f1e9 move btypes from headers to body of proton message
Fixes: https://pagure.io/koji/issue/3017
2021-09-14 09:28:21 +02:00
Yu Ming Zhu
243e114b1f protonmsg: cast body to text 2021-08-06 09:48:47 +02:00
Jana Cupova
e689602be5 Add btype to protonmsg
Fixes: https://pagure.io/koji/issue/1217
2021-07-20 10:36:53 +02:00
Tomas Kopecek
990fa73d27 remove debug 2021-06-03 15:23:56 +02:00
Tomas Kopecek
4892b4e922 use format for name_template 2021-06-03 15:23:56 +02:00