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
Tomas Kopecek
ff055ada11
PR#2471: cli: download_file redownload if we've larger file
...
Merges #2471
https://pagure.io/koji/pull-request/2471
Fixes : #2465
https://pagure.io/koji/issue/2465
CLI download-build for already downloaded rpm returns an error
2020-09-04 08:28:22 +02:00
Tomas Kopecek
7223e278d3
don't check size for signed rpms
2020-09-04 08:28:15 +02:00
Tomas Kopecek
ecf50429ed
cli: download_file redownload if we've larger file
...
Fixes: https://pagure.io/koji/issue/2465
2020-09-04 08:28:15 +02:00
Tomas Kopecek
09da3ede83
PR#2456: proton: short-circuit extra_limit = 0
...
Merges #2456
https://pagure.io/koji/pull-request/2456
Fixes : #2455
https://pagure.io/koji/issue/2455
Short-circuit if proton extra_limit is not set
2020-09-04 08:26:27 +02:00
Tomas Kopecek
0457065312
proton: short-circuit extra_limit = 0
...
Fixes: https://pagure.io/koji/issue/2455
2020-09-01 15:09:49 +02:00
Tomas Kopecek
8215a0893c
PR#2459: lowercase sigkeys during import/query where needed
...
Merges #2459
https://pagure.io/koji/pull-request/2459
Fixes : #2434
https://pagure.io/koji/issue/2434
write-signed-rpm should lowercase sig-keys
2020-09-01 14:06:16 +02:00
Tomas Kopecek
0eec5acd34
lowercase sigkeys during import/query where needed
...
Fixes: https://pagure.io/koji/issue/2434
2020-09-01 14:06:06 +02:00
Tomas Kopecek
74cfb46086
PR#2382: hub: [multicall] cast args of exception to str
...
Merges #2382
https://pagure.io/koji/pull-request/2382
Fixes : #2381
https://pagure.io/koji/issue/2381
hub: [multicall] raise unexpected error when the Exception contains non-str arg
2020-09-01 11:23:13 +02:00
Yu Ming Zhu
62f389d445
hub: unittest for multicall
2020-09-01 11:23:04 +02:00
Yu Ming Zhu
1b9cd6a95e
hub: [multicall] cast args of exception to str
...
fixes : #2381
2020-09-01 11:23:04 +02:00
Tomas Kopecek
9c92f5e4be
PR#2457: hub: more verbose assertPerm error
...
Merges #2457
https://pagure.io/koji/pull-request/2457
Fixes : #2429
https://pagure.io/koji/issue/2429
assertPerm() should show the username
2020-08-31 08:54:33 +02:00
Tomas Kopecek
b4cfca052b
hub: more verbose assertPerm error
...
Fixes: https://pagure.io/koji/issue/2429
2020-08-31 08:48:57 +02:00
Tomas Kopecek
c5c1c86629
PR#2458: cli: add --task and --source options to list-builds command
...
Merges #2458
https://pagure.io/koji/pull-request/2458
Fixes : #2356
https://pagure.io/koji/issue/2356
Support task and source filters in list-build command
2020-08-27 13:48:43 +02:00
Tomas Kopecek
69d81e3c2d
fix flake8
2020-08-27 13:48:32 +02:00
Mike McLean
a1593f5243
cli: add --task and --source options to list-builds command
...
Fixes https://pagure.io/koji/issue/2356
The api already accepted these parameters. This just provides access to use them
via the command line.
2020-08-27 13:48:32 +02:00
Tomas Kopecek
172455ed38
PR#2462: doc: release process
...
Merges #2462
https://pagure.io/koji/pull-request/2462
Fixes : #2444
https://pagure.io/koji/issue/2444
Document release/merge process
2020-08-27 13:46:54 +02:00
Tomas Kopecek
8841fd6992
doc: release process
...
Fixes: https://pagure.io/koji/issue/2444
2020-08-27 13:46:46 +02:00