Mike McLean
b2f2ea83ed
also use rmtree in delete_build/reset_build
2017-10-30 12:09:04 -04:00
Tomas Kopecek
5b23fb1629
consolidate safe_rmtree, rmtree and shutil.rmtree
...
shutil.rmtree should be avoided in almost all cases
safe_rmtree has its usage in tasks module, but innards are replaced with
koji.util.rmtree, so we don't have two implementations of same task
Related: https://pagure.io/koji/issue/648
2017-10-30 12:09:04 -04:00
Tomas Kopecek
fe4c83a229
typo fix + tests
2017-10-27 17:20:40 -04:00
Tomas Kopecek
facb8eca6f
delete build directory if cg_import fails
...
Related: https://pagure.io/koji/issue/584
2017-10-27 17:20:40 -04:00
Brendan Reilly
036377352c
Changed check to correct build import dir
2017-10-17 16:41:18 -04:00
Brendan Reilly
57dbc9ac01
cg_import fails immediately if build directory already exists
2017-10-17 16:41:18 -04:00
Tomas Kopecek
5139031d85
tests for handling user groups
...
Related: https://pagure.io/koji/issue/603
Related: https://pagure.io/koji/issue/604
Related: https://pagure.io/koji/issue/607
2017-10-12 18:07:06 -04:00
Yuming Zhu
7f302491f9
use urlparse.parse_qs instead of deprecated cgi.parse_qs
2017-10-11 14:52:48 +00:00
Mike McLean
8a81f8e9cd
return dist field in getActiveRepos
2017-10-06 17:23:45 -04:00
Mike McLean
8c922d0de0
make cg info in policy data more consistent, and honor it in policy_get_cgs
2017-10-06 17:16:04 -04:00
Mike McLean
5cc3896bee
drop unused "prebuild" policy data
2017-10-06 17:16:04 -04:00
Mike McLean
d1e303a560
applyVolumePolicy hub call for admins
2017-10-06 17:16:04 -04:00
Mike McLean
e1b984b561
correct docstring
2017-10-06 17:16:03 -04:00
Mike McLean
eb5f74b3c9
add a default option to check_volume_policy
2017-10-06 17:16:03 -04:00
Mike McLean
d14d16c6ef
make volume policy data more consistent
2017-10-06 17:16:03 -04:00
Mike McLean
9b315ded52
in buildtag policy test, use br data even if build not set
2017-10-06 17:16:03 -04:00
Mike McLean
cf54a7ce3a
propagate volume in import_build
2017-10-06 17:16:03 -04:00
Mike McLean
026c1ba6c9
reset volume to default in resetBuild()
2017-10-06 17:16:03 -04:00
Mike McLean
aeb8ba4b12
apply volume_policy in import_build
2017-10-06 17:16:03 -04:00
Mike McLean
d41d613f7c
apply volume policy in completeImageBuild
2017-10-06 17:16:03 -04:00
Mike McLean
d031115b6a
apply volume policy in completeWinBuild
2017-10-06 17:16:03 -04:00
Mike McLean
b0ce0b69ba
apply volume policy in completeMavenBuild
2017-10-06 17:16:03 -04:00
Mike McLean
9bcce9dc3e
pull in core volume policy functions from earlier branches
2017-10-06 17:16:03 -04:00
Mike McLean
b84c7df484
importImageInternal: use nextval() and InsertProcessor
2017-10-06 17:16:03 -04:00
Tomas Kopecek
c08377eef5
update docstring
2017-10-05 13:01:16 -04:00
Tomas Kopecek
26474b72fc
drop importBuildInPlace call
...
"The importBuildInPlace call is an artifact of a particular bootstrap
event that happened a long time ago. It's not really documented or
recommended for current use."
Related: https://pagure.io/koji/issue/553
2017-09-26 17:32:16 -04:00
Mike McLean
45844af8ef
deprecate importBuildInPlace hub call
...
Related: #553
https://pagure.io/koji/issue/553
2017-09-18 16:10:56 -04:00
Mike McLean
e8d46e2e94
support repo_include_all tag extra option
...
Fixes #588
https://pagure.io/koji/issue/588
2017-09-18 16:06:25 -04:00
Dennis Gilmore
b1eac7d030
ignore inodes when running rpmdiff.
...
https://koji.fedoraproject.org/koji/taskinfo?taskID=21649395
failed in the rpmdiff stage with
BuildError: The following noarch package built differently on different architectures: python3-ipaserver-4.6.0-1.fc27.noarch.rpm
rpmdiff output was:
error: cannot open Packages index using db5 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
error: cannot open Packages database in /var/lib/rpm
....N...... /usr/lib/python3.6/site-packages/ipaserver/install/__pycache__/ipa_pkinit_manage.cpython-36.opt-1.pyc
....N...... /usr/lib/python3.6/site-packages/ipaserver/install/__pycache__/ipa_pkinit_manage.cpython-36.pyc
on investigation the files on aarch64 and ppc64 were using 2 inodes
on x86_64, i686, armv7hl, ppc64le, and s390x using 1 inode.
if I manually run the diff with --ignore S changed to N the diff passes
given that we already ignore sizes we should ignore inodes used also
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2017-09-18 10:03:40 -04:00
Mike McLean
b744195c14
Add a note to get_build docstring
...
Related: #549
https://pagure.io/koji/issue/549
2017-09-08 09:23:16 -04:00
Mike McLean
6835409a2b
allow_none is the default for our dumps
2017-08-25 16:48:02 -04:00
Mike McLean
a59dd67765
hub returns datetime objects as strings
2017-08-25 16:48:02 -04:00
Mike McLean
be2fae90ae
move custom xmlrpc marshaller to its own file
2017-08-25 16:48:02 -04:00
Mike McLean
ab48fa80b2
move xmlrpc marshaller into lib and use i8 for large ints
2017-08-25 16:48:02 -04:00
Tomas Kopecek
448924e2c6
Patch xmlrpclib for 64-bit integers
...
Related: https://pagure.io/koji/issue/464
2017-08-25 16:48:02 -04:00
Mike McLean
1e3e99184b
set task arch for indirection image builds
2017-08-24 14:48:14 -04:00
Ville Skyttä
10bc242c32
Spelling fixes
2017-07-30 12:49:19 +03:00
Mike McLean
b405701b53
hub: rework match_kojifile() and add a unit test
2017-07-25 16:45:25 -04:00
Tomas Kopecek
1f91bdfeeb
check also filename/size
2017-07-25 12:37:46 -04:00
Tomas Kopecek
64f2467fd0
kojifile component type
2017-07-25 12:37:46 -04:00
Tomas Kopecek
6c68b6ab34
CLI block-group command
...
Relates: https://pagure.io/koji/issue/462
2017-07-25 12:14:26 -04:00
Yuming Zhu
1be3a71f84
fix NoneType TypeError in deleteTag
2017-07-06 12:15:17 -04:00
Yuming Zhu
7b73f4b0bb
explain new behavior in docstring of getUserPerms
2017-07-06 12:06:53 -04:00
Yuming Zhu
e871192f40
allow getUserPerm accepting None arg
2017-07-06 12:06:53 -04:00
Yuming Zhu
2838f7fd9e
getUserPerms should throw GenericError when no user found
2017-07-06 12:06:53 -04:00
Tomas Kopecek
2edfccc951
remove deprecated buildFromCVS call
...
Fixes: https://pagure.io/koji/issue/468
2017-07-06 11:30:04 -04:00
Tomas Kopecek
b98d93d788
drop mod_python support
...
Fixes: https://pagure.io/koji/issue/466
2017-07-06 14:04:19 +02:00
Mike McLean
1da15eb294
validate channelID and userID inputs for listHosts
2017-06-21 11:00:08 -04:00
Tomas Kopecek
1a7074db43
Don't allow not-null empty arch/userID in listHosts
...
Related: https://pagure.io/koji/issue/463
If empty string is passed, resulting SQL query is not valid. Check also
channelID/userID to be an integer.
2017-06-21 11:00:08 -04:00
Mike McLean
da89f61401
getBuildLogs call for hub
2017-06-21 10:55:13 -04:00