Commit graph

3431 commits

Author SHA1 Message Date
Mike McLean
cc208eff5d only explicitly require python-krbV on older platforms 2018-04-02 16:38:27 -04:00
Mike McLean
91b306e108 Avoid failing at import time if krbV module is missing
Several parts of Koji already handled this absence gracefully. This change
extends that behavior to all places where krbV is imported.
2018-04-02 16:38:27 -04:00
Mike McLean
dad74a3a9e PR#768: json serialize additional types in protonmsg
Merges #768
https://pagure.io/koji/pull-request/768

Fixes: #741
https://pagure.io/koji/issue/741
protonmsg fails on common data types
2018-03-21 15:08:32 -04:00
Mike McLean
1bf3bd22d7 protonmsg: unit test for unencodable data 2018-03-21 15:08:26 -04:00
Tomas Kopecek
5712c8efb6 Don't raise error on unserializable data 2018-03-21 15:08:26 -04:00
Tomas Kopecek
3bfcc6a66e json serialize additional types in protonmsg
Fixes: https://pagure.io/koji/issue/741
2018-03-21 15:08:26 -04:00
Mike McLean
f869eb4158 PR#849: kojira: sanity check in pruneLocalRepos
Merges #849
https://pagure.io/koji/pull-request/849
2018-03-16 16:50:14 -04:00
Yuming Zhu
52f0dfbc1c kojira: sanity check in pruneLocalRepos 2018-03-16 16:50:00 -04:00
Mike McLean
be80208ce5 PR#848: use subprocess.Popen instead of subprocess.check_output
Merges #848
https://pagure.io/koji/pull-request/848

Fixes: #846
https://pagure.io/koji/issue/846
error occurs in SCM.get_source since subprocess.check_output is not supported by python 2.6-
2018-03-16 16:43:47 -04:00
Yuming Zhu
43a433d37a do not shell=True 2018-03-14 20:23:24 +08:00
Yuming Zhu
c008ac8bb9 unittest for scm.get_source 2018-03-14 19:10:12 +08:00
Yuming Zhu
7eabd8b98f fix subprocess.check_output for py2.6 2018-03-14 18:37:38 +08:00
Mike McLean
e120ee7e2a PR#819: Drop pre-2.6 compat function koji.util._relpath
Merges #819
https://pagure.io/koji/pull-request/819

Fixes: #818
https://pagure.io/koji/issue/818
Drop pre2.6 compatibility function koji.util.relpath
2018-03-08 10:23:49 -05:00
Tomas Kopecek
2eff45f763 Drop pre-2.6 compat function koji.util._relpath
Fixes: https://pagure.io/koji/issue/818
2018-03-08 10:23:44 -05:00
Mike McLean
22a7998f3a PR#828: fix runroot output on py3
Merges #828
https://pagure.io/koji/pull-request/828

Fixes: #738
https://pagure.io/koji/issue/738
Runroot logs don't work on python3
2018-03-08 10:15:13 -05:00
Mike McLean
8e4df0db11 fix runroot output on py3 2018-03-08 10:15:08 -05:00
Mike McLean
50d02cdca6 PR#765: search build by source
Merges #765
https://pagure.io/koji/pull-request/765

Fixes: #701
https://pagure.io/koji/issue/701
RFE: search for brew builds by git hash
2018-03-06 12:26:47 -05:00
Mike McLean
42b3d596ea update listBuilds docstring 2018-03-06 12:26:43 -05:00
Tomas Kopecek
f468aeb19a extend listBuilds for search by source
Fixes: https://pagure.io/koji/issue/701
2018-03-06 12:26:43 -05:00
Mike McLean
12b9af57c7 PR#817: Update the volume ID substitutions list and application
Merges #817
https://pagure.io/koji/pull-request/817
2018-03-06 12:21:04 -05:00
Mike McLean
f4f26b0571 add link to issue 2018-03-06 12:20:59 -05:00
Adam Williamson
72204b4f7f Update the volume ID substitutions list and application
Some newer subvariants / loadouts, and 'Rawhide' for some
reason, were missing from the substitution list. This updates
it, alphabetizes it, adjusts the indentation to match how it
is in pungi-fedora for ease of comparison, and also tweaks the
way the list is applied to match
https://pagure.io/pungi/pull-request/857 , the correct way to
ensure longer substitutions are applied before shorter ones.

Note 'Alpha' and 'TC' are removed because we don't do Alphas or
TCs any more.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-06 12:20:59 -05:00
Mike McLean
45a5d3f99b PR#744: Replace cmp= with key= for python3 support
Merges #744
https://pagure.io/koji/pull-request/744

Fixes: #713
https://pagure.io/koji/issue/713
invalid keyword cmp in python3 list.sort() and sorted()
2018-03-01 16:01:57 -05:00
Franz Chih-Ping Hsieh
ac88d5aa91 avoid using backslash and fix typo issue. 2018-03-01 16:01:47 -05:00
Franz Chih-Ping Hsieh
47c85e8833 Use function.cmp_to_key to wrap cmp function only in Python3 2018-03-01 16:01:47 -05:00
Franz Chih-Ping Hsieh
442ec600a7 add unit test for taskinfo() in koji-web. 2018-03-01 16:01:47 -05:00
Franz Chih-Ping Hsieh
be6dab466f Replace cmp with key in sorted() for python3 support
Fixes: #713
https://pagure.io/koji/issue/713
2018-03-01 16:01:47 -05:00
Franz Chih-Ping Hsieh
e8ce7943a6 add unit test for _write_maven_repo_metadata() function in kojihub 2018-03-01 16:01:47 -05:00
Franz Hsieh
2c04c4f960 replace cmp keyword parameter with key in sorted() for python3 support
related: #713
https://pagure.io/koji/issue/713
2018-03-01 16:01:47 -05:00
Mike McLean
c0760613cf PR#748: hub: make list_archives to accept strict argument
Merges #748
https://pagure.io/koji/pull-request/748

Fixes: #721
https://pagure.io/koji/issue/721
listArchives API call should raise GenericError exception for non existing build id
2018-03-01 10:30:31 -05:00
Yuming Zhu
35dd4c942b hub: make list_archives to accept strict argument
fixes: #721
2018-03-01 10:30:27 -05:00
Mike McLean
d4a87c0dad PR#769: handle None in place of string in buildNotification
Merges #769
https://pagure.io/koji/pull-request/769

Fixes: #724
https://pagure.io/koji/issue/724
buildNotification of wrapperRPM fails because of task["label"] is None
2018-03-01 10:19:22 -05:00
Tomas Kopecek
1ad0a569b5 handle None in place of string in buildNotification
Fixes: https://pagure.io/koji/issue/724
2018-03-01 10:19:18 -05:00
Mike McLean
d75fb585da PR#824: Add internal_dev_setup option to runroot config
Merges #824
https://pagure.io/koji/pull-request/824
2018-03-01 09:20:42 -05:00
Mike McLean
082f43ba3a update unit tests 2018-02-28 12:22:05 -05:00
Mike McLean
3dda2f5dbf handle internal_dev_setup opt earlier 2018-02-28 12:22:05 -05:00
Mike McLean
c3e8a2ecc7 stabilize mock config ordering 2018-02-28 12:22:05 -05:00
Mike McLean
90f95da316 test internal_dev_setup option for getMockConfig 2018-02-28 12:22:05 -05:00
Mike McLean
c7e16a993d basic unit test for genMockConfig 2018-02-28 12:22:05 -05:00
Mike McLean
cfca804acd fix unit test 2018-02-28 08:19:29 -05:00
Mike McLean
30749fa2d0 add internal_dev_setup option to runroot plugin 2018-02-28 08:19:29 -05:00
Mike McLean
113ddea6f0 internal_dev_setup option for BuildRoot class 2018-02-28 08:19:29 -05:00
Mike McLean
e780a611a6 make internal_dev_setup an option in getMockConfig 2018-02-28 08:19:29 -05:00
Mike McLean
2f60081b35 PR#804: hub: fix KeyError in get_notification_recipients
Merges #804
https://pagure.io/koji/pull-request/804

Fixes: #803
https://pagure.io/koji/issue/803
Email notifications makes build tasks fail with "KeyError: 'users_usertype'"
2018-02-28 08:07:22 -05:00
Yuming Zhu
77af6d6688 hub: fix KeyError in get_notification_recipients 2018-02-28 08:07:17 -05:00
Mike McLean
29aeb5f0a7 PR#802: omit the last dot of cname when krb_canon_host=True
Merges #802
https://pagure.io/koji/pull-request/802

Fixes: #801
https://pagure.io/koji/issue/801
cname ends with dot when krb_canon_host=True
2018-02-28 07:41:28 -05:00
Yuming Zhu
16a94a5762 omit the last dot of cname when krb_canon_host=True
fixes: #801
relates: #653
2018-02-28 07:41:19 -05:00
Mike McLean
e01cb9b346 PR#820: compressed xml archive type
Merges #820
https://pagure.io/koji/pull-request/820
2018-02-26 15:24:30 -05:00
Mike McLean
c00084285d give the archivetype a unique name 2018-02-26 15:24:25 -05:00
Mike McLean
d1b2e16915 compressed xml archive type 2018-02-26 15:24:25 -05:00