Commit graph

857 commits

Author SHA1 Message Date
Mike McLean
bc2bb62032 avoid unnecessary file opening 2017-12-07 14:55:37 -05:00
Tomas Kopecek
b482e36595 move checks earlier to prep_outputs 2017-12-07 14:55:37 -05:00
Tomas Kopecek
6ad3d65a91 check all existing btypes 2017-12-07 14:55:37 -05:00
Tomas Kopecek
b81159bc2d run checks earlier for cg_import
Related: https://pagure.io/koji/issue/426
2017-12-07 14:55:37 -05:00
Mike McLean
7ce1c73777 taskWaitResults: fix canfail/canceled case when tasks=None 2017-12-05 10:28:24 -05:00
Mike McLean
621ce5b27e include faultCode in return for canceled, can-fail tasks 2017-12-05 10:28:24 -05:00
Tomas Kopecek
3701634d65 Treat canceled tasks as failed for optional_archs
Related: https://pagure.io/koji/issue/529
2017-12-05 10:28:23 -05:00
Tomas Kopecek
921fcae6fe return xmlrpc-compatible list instead of set 2017-11-22 15:54:31 -05:00
Tomas Kopecek
dd563a7c33 use explicit JOIN 2017-11-22 15:54:31 -05:00
Tomas Kopecek
cbbedd12b2 make query more secure 2017-11-22 15:54:31 -05:00
Tomas Kopecek
67149d3f91 don't send notifications to disabled users or hosts
Related: https://pagure.io/koji/issue/613
2017-11-22 15:54:31 -05:00
Mike McLean
079afeaefc docstrings for a couple volume calls 2017-11-14 17:55:39 +08:00
Tomas Kopecek
1f6ca9ae72 python-modernize -f lib2to3.fixes.fix_numliterals . -w 2017-10-31 16:07:34 +01:00
Tomas Kopecek
379ec8ae63 python-modernize -f lib2to3.fixes.file . -w 2017-10-31 16:05:16 +01:00
Tomas Kopecek
d6a5cdf987 python-modernize -f lib2to3.fixes.fix_except . -w 2017-10-31 16:05:16 +01:00
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