Tomas Kopecek
c1cd6a6327
cli: list-tag-inheritance - description of flags
...
Fixes: https://pagure.io/koji/issue/2296
2020-09-23 13:59:28 +02:00
Tomas Kopecek
b75d3cc31a
PR#2148: Simplify obtaining of PKGDIR
...
Merges #2148
https://pagure.io/koji/pull-request/2148
Fixes #2149
https://pagure.io/koji/issue/2149
2020-09-22 13:45:54 +02:00
Michal Privoznik
0ef3c75185
Simplify obtaining of PKGDIR
...
So far, in all Makefiles we have a complicated way to construct
PKGDIR path which is used to install python modules into.
Firstly, python version is obtained, and then system prefix and
these are then used to construct the PKGDIR path. Well, we can do
better. We can use 'site.getsitepackages()[0]' to obtain exactly
the path we are after.
This also fixes the problem on distributions which have split
/usr/lib and /usr/lib64 directories, because with the way we are
constructing the PKGDIR path we assume that the directories are
the same (or one is a symlink to another). Well, that is not
always the case.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2020-09-22 13:45:48 +02:00
Tomas Kopecek
1a1f7e29c1
PR#2499: flake8 fix
...
Merges #2499
https://pagure.io/koji/pull-request/2499
2020-09-22 12:22:16 +02:00
Tomas Kopecek
1b8efdfa69
flake8 fix
2020-09-22 12:21:07 +02:00
Tomas Kopecek
edf5bbdc4a
PR#2494: prune-signed-copies fix help message
...
Merges #2494
https://pagure.io/koji/pull-request/2494
Fixes : #2488
https://pagure.io/koji/issue/2488
CLI prune-signed-copies has wrong 'Usage' command in help
2020-09-22 10:19:04 +02:00
Jana Cupova
f62c0d0080
prune-signed-copies fix help message
...
Fixes: https://pagure.io/koji/issue/2488
2020-09-22 10:18:55 +02:00
Tomas Kopecek
efaae9db22
PR#2492: web: wrong variable name
...
Merges #2492
https://pagure.io/koji/pull-request/2492
Fixes : #2491
https://pagure.io/koji/issue/2491
NameMapper.NotFound web interface traceback
2020-09-22 09:54:35 +02:00
Tomas Kopecek
968a129290
web: wrong variable name
...
Fixes: https://pagure.io/koji/issue/2491
2020-09-22 09:54:28 +02:00
Tomas Kopecek
c55dc316f7
PR#2485: builder: configurable TTL for buildroots
...
Merges #2485
https://pagure.io/koji/pull-request/2485
Fixes : #2374
https://pagure.io/koji/issue/2374
TaskManager: make some (max/min) time configurable in `updateBuildroots`
2020-09-17 14:16:13 +02:00
Tomas Kopecek
05dd937146
fix default value
2020-09-17 14:16:02 +02:00
Tomas Kopecek
16b4562056
fix option parsing
2020-09-17 14:16:02 +02:00
Tomas Kopecek
4c9c20180c
typo
2020-09-17 14:16:02 +02:00
Tomas Kopecek
f674f554f8
builder: configurable TTL for buildroots
...
Fixes: https://pagure.io/koji/issue/2374
2020-09-17 14:16:02 +02:00
Tomas Kopecek
6587d19e10
PR#2478: web: urlquote buildtarget/buildtag names
...
Merges #2478
https://pagure.io/koji/pull-request/2478
Fixes : #2468
https://pagure.io/koji/issue/2468
web: [hyperlink] cannot handle tag/target whose name contains "+" correctly
2020-09-17 14:12:13 +02:00
Tomas Kopecek
f4d0898a71
web: urlquote buildtarget/buildtag names
...
Fixes: https://pagure.io/koji/issue/2468
2020-09-17 14:12:05 +02:00
Tomas Kopecek
ae2261b4c7
PR#2486: cli: propagate system exit codes
...
Merges #2486
https://pagure.io/koji/pull-request/2486
Fixes : #2273
https://pagure.io/koji/issue/2273
kojira with no such options returns code 2, koji CLI returns 1
2020-09-15 16:11:11 +02:00
Tomas Kopecek
c0ffe4ed27
cli: propagate system exit codes
...
Fixes: https://pagure.io/koji/issue/2273
2020-09-15 16:11:01 +02:00
Tomas Kopecek
4ae23c1847
PR#2477: hub: deleteBuild should skip deleted builds
...
Merges #2477
https://pagure.io/koji/pull-request/2477
Fixes : #2475
https://pagure.io/koji/issue/2475
deleteBuild should skip already deleted builds
2020-09-10 13:24:10 +02:00
Tomas Kopecek
59b97d56f1
hub: deleteBuild should skip deleted builds
...
We can return ASAP from the call if build is already deleted.
Fixes: https://pagure.io/koji/issue/2475
2020-09-10 13:24:02 +02:00
Tomas Kopecek
37cd4223e4
PR#2464: cli: clone-tag fails on failed multicalls
...
Merges #2464
https://pagure.io/koji/pull-request/2464
Fixes : #2010
https://pagure.io/koji/issue/2010
clone-tag should check all the server-side errors
2020-09-09 14:06:31 +02:00
Tomas Kopecek
df8ce93699
fix test
2020-09-09 14:02:42 +02:00
Tomas Kopecek
e407957c0a
cli: clone-tag fails on failed multicalls
...
Fixes: https://pagure.io/koji/issue/2010
2020-09-09 14:00:51 +02:00
Tomas Kopecek
ded2f65e5d
tests: fix coveragerc
2020-09-08 16:21:40 +02:00
Tomas Kopecek
9557d1b253
PR#2386: Run tests in virtualenvs using tox
...
Merges #2386
https://pagure.io/koji/pull-request/2386
Fixes #2391
https://pagure.io/koji/issue/2391
2020-09-08 16:20:29 +02:00
Zack Cerza
b1cc79c4ba
flake8: Ignore .tox
...
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
1d2f542f1a
tox: Fix flake8 invocation
...
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
8e40334450
Add rpm-devel to fedora container
...
This allows us to build python2 rpm bindings if necessary.
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
a654215524
tox: Fix typo in py2 env
...
Coverage reports were going in the wrong place.
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
03a68e689a
tox: Set PYTHONHASHSEED=0 for py2
...
This fixes a breakage in test_import_comps_sample_yumcomps
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
e51dbcca6d
tox: Add py2-rpmdeps testenv
...
This avoids grabbing requirements from PyPI. Use this testenv if you
want to only test with globally-available (read: RPM) requirements.
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
b379454631
Add koji's python reqs to centos6 docker image
...
This will allow, but not require, running tests using only RPM-packaged
requirements.
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Ken Dreyer
dee88a1767
devtools: add instructions for CentOS, podman, and SELinux
...
Document how to run the CentOS container, and mention the
"--security-opt label=disable" setting when running podman with SELinux
in enforcing mode.
2020-09-08 16:20:19 +02:00
Zack Cerza
0bf9a320bf
test-requirements: Refine requests-mock versions
...
python2.6 and 2.7 need specific versions due to compatibility breakage
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
36e99825cb
rpm-py-installer: Download binaries
...
Instead of building from source.
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
9218a452c3
Add Dockerfiles to aid in testing
...
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Zack Cerza
2b06288792
Run tests in virtualenvs using tox
...
Signed-off-by: Zack Cerza <zack@redhat.com>
2020-09-08 16:20:19 +02:00
Tomas Kopecek
fab382f079
PR#2470: koji-gc: log error if build can't be deleted
...
Merges #2470
https://pagure.io/koji/pull-request/2470
Fixes : #2469
https://pagure.io/koji/issue/2469
koji-gc silently ignores delete problems
2020-09-08 14:22:22 +02:00
Tomas Kopecek
566a1de1e0
koji-gc: log error if build can't be deleted
...
Fixes: https://pagure.io/koji/issue/2469
2020-09-08 14:22:13 +02:00
Tomas Kopecek
3067461bbd
PR#2442: cli: don't require --config in clone-tag
...
Merges #2442
https://pagure.io/koji/pull-request/2442
Fixes : #2371
https://pagure.io/koji/issue/2371
cli: [clone-tag] should be able to clone extra configs
Fixes : #2012
https://pagure.io/koji/issue/2012
brew clone-tag requires "config" option
2020-09-08 11:00:48 +02:00
Tomas Kopecek
aa16b5ccea
cli: don't require --config in clone-tag
...
Fixes: https://pagure.io/koji/issue/2012
2020-09-08 11:00:38 +02:00
Tomas Kopecek
bd1c51e4dd
PR#2467: builder: typo
...
Merges #2467
https://pagure.io/koji/pull-request/2467
Fixes : #2466
https://pagure.io/koji/issue/2466
typo in build_from_repo_id code path
2020-09-07 15:32:27 +02:00
Tomas Kopecek
db85c934c1
builder: typo
...
Fixes: https://pagure.io/koji/issue/2466
2020-09-07 15:32:16 +02:00
Tomas Kopecek
20ada324b7
PR#2461: cli: delete downloaded file with zero size
...
Merges #2461
https://pagure.io/koji/pull-request/2461
Fixes : #2451
https://pagure.io/koji/issue/2451
koji download-build leaves around empty file when rpm not signed
2020-09-07 10:12:59 +02:00
Tomas Kopecek
dbd0c9ac9c
cli: delete downloaded file with zero size
...
Fixes: https://pagure.io/koji/issue/2451
2020-09-07 10:10:59 +02:00
Tomas Kopecek
7c77745a66
PR#2453: koji 1.22.1 release notes
...
Merges #2453
https://pagure.io/koji/pull-request/2453
Fixes : #2445
https://pagure.io/koji/issue/2445
koji 1.22.1 release notes
2020-09-07 09:44:15 +02:00
Tomas Kopecek
cbb4b65f6c
1.22.1 release notes
...
Fixes: https://pagure.io/koji/issue/2445
2020-09-07 09:44:07 +02:00
Tomas Kopecek
3634db19d4
bump version to 1.22.1
2020-09-07 09:44:07 +02:00
Tomas Kopecek
75e462560b
PR#2474: stricter config file permissions
...
Merges #2474
https://pagure.io/koji/pull-request/2474
Fixes : #2124
https://pagure.io/koji/issue/2124
Incorrect perms on hub/web config
2020-09-07 09:42:16 +02:00
Tomas Kopecek
e72a7be0a1
stricter config file permissions
...
Fixes: https://pagure.io/koji/issue/2124
2020-09-07 09:37:11 +02:00