Yu Ming Zhu
75d8a8e036
cli: verify user in block-notification command
2019-07-30 16:18:16 -04:00
Mike McLean
f81bc8b477
PR#1578: cli:fix typo in mock-config
...
Merges #1578
https://pagure.io/koji/pull-request/1578
Fixes : #1577
https://pagure.io/koji/issue/1577
cli: typo in `mock-config`
2019-07-30 11:19:53 -04:00
Yu Ming Zhu
3f35913c0f
cli:fix typo in mock-config
2019-07-23 12:03:35 +00:00
Mike McLean
bf394684ef
PR#1464: API for reserving NVRs for content generators
...
Merges #1464
https://pagure.io/koji/pull-request/1464
Fixes : #1463
https://pagure.io/koji/issue/1463
[RFE] Predeclare nvr for content generators
2019-07-16 10:45:40 -04:00
Mike McLean
1f52e60839
only check epoch against reservation if it is given
2019-07-16 10:41:43 -04:00
Mike McLean
b5517d16d5
default epoch to None in cg_init_build()
2019-07-16 10:33:16 -04:00
Mike McLean
5b12221bc8
error if reservation token given without build_id
2019-07-16 10:26:25 -04:00
Mike McLean
6caca35f4d
clear reservation when cg build completes
2019-07-16 10:11:55 -04:00
Tomas Kopecek
f1d2ebc85c
move cg_id to build table
2019-07-16 10:11:55 -04:00
Tomas Kopecek
8da8420c65
better error messages
2019-07-16 10:11:55 -04:00
Tomas Kopecek
ca54688645
docs for CG reservation API
2019-07-16 10:11:55 -04:00
Tomas Kopecek
9ff34438b8
CLI shows reservation
2019-07-16 10:11:55 -04:00
Tomas Kopecek
9524718a91
fix tests for CLI
2019-07-16 10:11:55 -04:00
Tomas Kopecek
c38c024ac5
extended getBuild to return reservations
2019-07-16 10:11:55 -04:00
Tomas Kopecek
25bfb2a94b
delete tokens on cancelBuild
2019-07-16 10:11:55 -04:00
Tomas Kopecek
f6a845c870
restrict to cg_id
2019-07-16 10:11:55 -04:00
Tomas Kopecek
0aa00d0bb2
remove debug
2019-07-16 10:11:55 -04:00
Tomas Kopecek
707d2b2b00
move token from metadata to api option
2019-07-16 10:11:55 -04:00
Tomas Kopecek
48255d08c2
migration for build_reservations
2019-07-16 10:11:54 -04:00
Tomas Kopecek
f2647a687b
use token for reservation
2019-07-16 10:11:54 -04:00
Tomas Kopecek
395cf0f76e
remove debug print
2019-07-16 10:11:54 -04:00
Tomas Kopecek
d35163a726
leave recycle_build untouched
2019-07-16 10:11:54 -04:00
Tomas Kopecek
7fbcf87df2
move init_build out of CG_Importer
2019-07-16 10:11:54 -04:00
Tomas Kopecek
69bf20bc25
reverse wrong strict logic
2019-07-16 10:11:54 -04:00
Tomas Kopecek
2ab101c381
raise an error on repeated call cgInitBuild for same nvr
2019-07-16 10:11:54 -04:00
Tomas Kopecek
553871be9e
API for reserving NVRs for content generators
...
Fixes: https://pagure.io/koji/issue/1463
2019-07-16 10:11:54 -04:00
Mike McLean
4414e3a1e0
PR#898: Add support for tag/target macros for Mageia
...
Merges #898
https://pagure.io/koji/pull-request/898
2019-07-15 13:24:36 -04:00
Mike McLean
c9ade098ed
adjust tag macro namespace
2019-07-15 10:40:54 -04:00
Mike McLean
4f4a17361d
some macro values should not be overridable
2019-07-15 10:40:54 -04:00
David Abdurachmanov
7e1809bafd
Add support for tag/target macros for Mageia
...
Discussions with Son_Goku (from Mageia) on IRC revealed that they need
per tag/target macro support in Koji. We store tag macros in 'Extra Options'
and macro has to start with '%'.
Example:
% koji taginfo f29
Tag: f29 [11]
Arches: riscv64
Groups:
Required permission: 'admin'
Tag options:
%mymacro : 'value123'
%packager : 'Fedora Project RISC-V'
mock.package_manager : 'dnf'
[..]
Tag macros can be added using koji edit-tag.
The tag macros are allowed to overwrite macros set in koji.genMockConfig.
For example, %packager is set in koji.genMockConfig by default. The mock
configuration generated by kojid was:
[..]
config_opts['macros']['%_host'] = 'riscv64-koji-linux-gnu'
config_opts['macros']['%mymacro'] = 'value123'
config_opts['macros']['%_host_cpu'] = 'riscv64'
config_opts['macros']['%vendor'] = 'Fedora Project'
config_opts['macros']['%distribution'] = 'Fedora Project'
config_opts['macros']['%_topdir'] = '/builddir/build'
config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'
config_opts['macros']['%packager'] = 'Fedora Project RISC-V'
[..]
This two-line change was tested on Fedora RISC-V koji instance.
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2019-07-15 10:10:29 -04:00
Mike McLean
cef24b1b50
PR#1544: use RawConfigParser for kojid
...
Merges #1544
https://pagure.io/koji/pull-request/1544
Fixes : #1543
https://pagure.io/koji/issue/1543
kojid fails on parsing config
2019-07-12 09:50:24 -04:00
Tomas Kopecek
4d248f460b
use RawConfigParser for kojid
...
We are using percent signs in host_principal_format. As python3 replaced
ConfigParser with SafeConfigParser, parsing now fails.
Fixes: https://pagure.io/koji/issue/1543
2019-07-12 09:50:23 -04:00
Mike McLean
3cc13aca52
PR#863: cli: change --force to real bool arg for add-tag-inheritance
...
Merges #863
https://pagure.io/koji/pull-request/863
2019-07-12 00:50:46 -04:00
Yuming Zhu
823774177f
cli: change --force to real bool arg for add-tag-inheritance
2019-07-12 00:50:46 -04:00
Mike McLean
48da82021e
PR#1253: cli: add option for custom cert location
...
Merges #1253
https://pagure.io/koji/pull-request/1253
Fixes #1547
https://pagure.io/koji/issue/1547
rfe: add cli option for custom cert location
2019-07-11 17:54:01 -04:00
Pat Riehecky
0c15978110
cli: add option for custom cert location
2019-07-11 17:54:01 -04:00
Mike McLean
c484311587
PR#1353: Create db index for listTagged
...
Merges #1353
https://pagure.io/koji/pull-request/1353
Fixes : #1352
https://pagure.io/koji/issue/1352
listTagged would benefit from additional index
2019-07-11 15:22:35 -04:00
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