Commit graph

4313 commits

Author SHA1 Message Date
Tomas Kopecek
c775031e9d few more useful indices on tag_packages 2019-07-11 15:22:33 -04:00
Tomas Kopecek
e39d92164f Create db index for listTagged
Fixes: https://pagure.io/koji/issue/1352
2019-07-11 15:22:33 -04:00
Mike McLean
be266e2c93 PR#1375: docs: add architecture diagram
Merges #1375
https://pagure.io/koji/pull-request/1375
2019-07-11 15:21:33 -04:00
Ken Dreyer
b250308e74 docs: add architecture diagram
koji_structure1.svg comes from an earlier version of Mike's SVG.
2019-07-11 15:21:32 -04:00
Mike McLean
4e221c51ed PR#892: cli: also load plugins from ~/.koji/plugins
Merges #892
https://pagure.io/koji/pull-request/892

Fixes: #887
https://pagure.io/koji/issue/887
User CLI plugins
2019-07-11 15:18:17 -04:00
Mike McLean
8834bb6d6b shorten help text 2019-07-11 15:18:15 -04:00
Mike McLean
546d7fb4e8 fix whitespace 2019-07-11 15:18:15 -04:00
Yu Ming Zhu
1ec14ec5dc adjust cli plugin config description 2019-07-11 15:18:15 -04:00
Yuming Zhu
ded43dec53 cli: also load plugins from ~/.koji/plugins
- add plugin_path in koji.conf
- add `--plugin-paths` in cli arguments

fixes: #887
2019-07-11 15:18:15 -04:00
Mike McLean
73e1a6abad PR#1516: kojibuilder: Pass mergerepo_c --all for bare mode as well.
Merges #1516
https://pagure.io/koji/pull-request/1516

Fixes #1546
https://pagure.io/koji/issue/1546
rfe: use mergerepo_c --all for bare mode
2019-07-11 15:14:29 -04:00
Kevin Fenzi
05cd2fe120 kojibuilder: Pass mergerepo_c --all for bare mode as well.
The '--koji' mode of mergerepo_c implies --all, and thats what we want
for bare mode as well. The default merge mode is 'repo' which uses the
first found package by name if multiple packages with the same name are
in the multiple repos. This causes chaos with rhel8 repos as GA and
updates content are in the same repo and if it hits an old version of
one package and an update of another that depends on the new version
it blows up.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-07-11 15:14:28 -04:00
Mike McLean
c90bf2a323 PR#1524: set module_hotfixes=1 in yum.conf via tag config
Merges #1524
https://pagure.io/koji/pull-request/1524

Fixes: #1521
https://pagure.io/koji/issue/1521
[RFE] Set module_hotfixes=1 in brew repo definitions
2019-07-11 15:12:48 -04:00
Tomas Kopecek
9fd12d1a45 reflect module_hotfixes also in CLI 2019-07-11 15:12:47 -04:00
Tomas Kopecek
a5014ac29b set module_hotfixes=1 in yum.conf via tag config
New field in tag extra 'mock.yum.module_hotfixes' can be used to set
module_hotfixes=0/1 in yum.conf's inside mock's buildroots.

Fixes: https://pagure.io/koji/issue/1521
2019-07-11 15:12:47 -04:00
Mike McLean
916d03e954 PR#1417: notification's optouts
Merges #1417
https://pagure.io/koji/pull-request/1417

Fixes: #1204
https://pagure.io/koji/issue/1204
RFE: let users opt out of notifications
2019-07-09 13:34:56 -04:00
Mike McLean
a81c088168 unused variables 2019-07-09 13:34:36 -04:00
Mike McLean
f90699603b fix test names 2019-07-09 13:34:36 -04:00
Tomas Kopecek
61c015357b use list for db instead of set 2019-07-09 13:34:36 -04:00
Tomas Kopecek
b7d273b2fa API/CLI/tests for notification blocks 2019-07-09 13:34:36 -04:00
Tomas Kopecek
e4c37dfffb notification optout tests
Related: https://pagure.io/koji/issue/1204
2019-07-09 13:34:36 -04:00
Mike McLean
6ae165f77b apply opt-outs in get_notification_recipients 2019-07-09 13:34:36 -04:00
Tomas Kopecek
e14d60b78f update migration for notification optouts 2019-07-09 13:34:36 -04:00
Mike McLean
7a302ce6ad new table for notification blocks 2019-07-09 13:34:36 -04:00
Mike McLean
72554e493c PR#1515: add debug message to new multicall to match original
Merges #1515
https://pagure.io/koji/pull-request/1515

Fixes: #1514
https://pagure.io/koji/issue/1514
Add batch debug message into new multicall interface
2019-07-01 17:21:55 -04:00
Mike McLean
0b92bd3d44 add debug message to new multicall to match original
Fixes https://pagure.io/koji/issue/1514
2019-06-27 10:30:20 -04:00
Mike McLean
fac81bd7be PR#1480: Add raw-gz and compressed QCOW2 archive types.
Merges #1480
https://pagure.io/koji/pull-request/1480

Fixes #1481
https://pagure.io/koji/issue/1481
2019-06-26 16:08:32 -04:00
Mike McLean
97f8f829ae change moved to 1.18, so adjust schema upgrade scripts 2019-06-26 16:08:04 -04:00
Ben Howard
8d0624bf2f Add raw-gz and compressed QCOW2 archive types. 2019-06-26 16:06:59 -04:00
Mike McLean
90464796e0 PR#1260: use LANG=C for running all tests
Merges #1260
https://pagure.io/koji/pull-request/1260

Fixes: #1259
https://pagure.io/koji/issue/1259
tests are failing in non-C LANGs
2019-06-26 15:58:55 -04:00
Tomas Kopecek
6fd33bfd1f use LANG=C for running tests comparing human-readable output 2019-06-26 15:58:48 -04:00
Mike McLean
a1be473a6e PR#1447: handle deleted tags in kojira
Merges #1447
https://pagure.io/koji/pull-request/1447

Fixes: #1298
https://pagure.io/koji/issue/1298
if tag is deleted/renamed, kojira will not handle that
2019-06-26 15:40:38 -04:00
Mike McLean
656af0f581 avoid duplicate ManagedRepo instance 2019-06-26 15:38:10 -04:00
Mike McLean
2fb80ba6d0 fix a logging error 2019-06-26 15:35:54 -04:00
Mike McLean
0b0fd39384 fix getTag invocation 2019-06-26 15:35:54 -04:00
Mike McLean
6ea2529155 provide value for repo in untracked case 2019-06-26 15:35:54 -04:00
Tomas Kopecek
a624d7241a handle deleted tags in kojira
Fixes: https://pagure.io/koji/issue/1298
2019-06-26 15:35:54 -04:00
Mike McLean
f49409eb91 PR#1513: Allow hub policy to match version and release
Merges #1513
https://pagure.io/koji/pull-request/1513

Fixes: #1134
https://pagure.io/koji/issue/1134
Hub policy match on version and release
2019-06-26 11:44:29 -04:00
Mikolaj Izdebski
de161628b0 Allow hub policy to match version and release
Fixes https://pagure.io/koji/issue/1134

Based on work from https://pagure.io/koji/pull-request/1135
2019-06-26 11:44:23 -04:00
Mike McLean
4ef89a4ae2 PR#1462: rebuildSRPM task
Merges #1462
https://pagure.io/koji/pull-request/1462

Fixes: #1396
https://pagure.io/koji/issue/1396
RFE: rebuild srpms before building
2019-06-26 07:36:32 -04:00
Tomas Kopecek
5882bc249b remove unneeded chown 2019-06-26 09:06:48 +02:00
Tomas Kopecek
2bef7c16dc rename source_srpm to srpm 2019-06-26 09:06:48 +02:00
Mike McLean
17128a67fd use getBuildConfig with event_id to check for rebuild_srpm setting 2019-06-26 09:06:48 +02:00
Tomas Kopecek
279e6533f6 rebuildSRPM task
New task rebuildSRPM for srpms uploaded to koji. If policy
'rebuild_srpm' returns True, build task will spawn rebuildSRPM task
first to recreate SRPM with updated buildroot macros, typically 'dist'.
Policy has access to same data as build_from_srpm and build_from_repo_id
policies. (user_id, source, task_id, build_tag, skip_tag, target, tag)

Fixes: https://pagure.io/koji/issue/1396
2019-06-26 09:06:48 +02:00
Mike McLean
bdfac5b12d PR#1498: Pass bytes to md5_constructor
Merges #1498
https://pagure.io/koji/pull-request/1498

Fixes: #1486
https://pagure.io/koji/issue/1486
Fix kojiweb's _getUserCookie/_setUserCookie to pass bytes to hash constructors
2019-06-24 18:11:08 -04:00
Tomas Kopecek
15e4d07763 encode to bytes only under py3
Related: https://pagure.io/koji/pull-request/1498
2019-06-24 18:09:10 -04:00
Mengjing Shi
2d88836a4b Pass bytes to md5_constructor
Fixes login TypeError on koji-web
2019-06-24 18:07:23 -04:00
Mike McLean
e73bd368e5 PR#1502: Don't pass block list in bare merge mode
Merges #1502
https://pagure.io/koji/pull-request/1502

Relates: #1404
https://pagure.io/koji/issue/1404
RFE: add repo merge mode to support modularity
2019-06-19 11:16:46 -04:00
Mike McLean
0899f74de3 Don't pass block list in bare merge mode
Related: https://pagure.io/koji/issue/1404

mergerepos_c doesn't allow -b without --koji
2019-06-19 11:16:35 -04:00
Mike McLean
bc16f4e5c1 PR#1489: pass bytes to sha1 constructor
Merges #1489
https://pagure.io/koji/pull-request/1489

Fixes: #1486
https://pagure.io/koji/issue/1486
Fix kojiweb's _getUserCookie/_setUserCookie to pass bytes to hash constructors
2019-06-19 11:08:28 -04:00
Tomas Kopecek
9326cebd32 pass bytes to sha1 constructor
As preparation to use hashlib's constructors, fix passing correct
datatype to sha1 constructor in web ui.

Fixes: https://pagure.io/koji/issue/1486
2019-06-19 11:08:22 -04:00