Commit graph

3639 commits

Author SHA1 Message Date
Mike McLean
ef977eaebb PR#980: cli: rename _unique_path to unique_path, and deprecate the old one
Merges #980
https://pagure.io/koji/pull-request/980

Fixes: #975
https://pagure.io/koji/issue/975
Make _unique_path public
2018-06-28 12:39:19 -04:00
Yuming Zhu
1c76cd0c0f cli: rename _unique_path to unique_path, and deprecate the old one 2018-06-28 12:39:12 -04:00
Mike McLean
967704b9a3 PR#900: enable batch multiCall in clone-tag
Merges #900
https://pagure.io/koji/pull-request/900

Fixes: #885
https://pagure.io/koji/issue/885
cli: clone-tag raises "GenericError: Request too long"
2018-06-27 11:36:22 -04:00
Yuming Zhu
74dfee90ea rebase bad reference change 2018-06-27 11:34:50 -04:00
Mike McLean
f274b3602f give user option to use avoid using batches 2018-06-27 11:34:50 -04:00
Mike McLean
ae025524ab clean up docstring for multiCall() 2018-06-27 11:34:50 -04:00
Mike McLean
9b1f5b504e drop unecessary warning 2018-06-27 11:34:50 -04:00
Yuming Zhu
60a23818a1 add warning for batch usage in clone-tag 2018-06-27 11:34:50 -04:00
Yuming Zhu
3bddf540b4 set default batch to None and use generator instead of list 2018-06-27 11:34:50 -04:00
Yuming Zhu
b65d2c3fcf cli: unittest for multiCall 2018-06-27 11:33:34 -04:00
Yuming Zhu
70db1c5650 cli: enable batch for clone-tag 2018-06-27 11:33:34 -04:00
Yuming Zhu
073a8bd043 cli: add batch option in multiCall 2018-06-27 11:33:34 -04:00
Mike McLean
005d0a5cb4 PR#973: Check empty arches before spawning dist-repo
Merges #973
https://pagure.io/koji/pull-request/973
2018-06-19 10:00:59 -04:00
Tomas Kopecek
cfe859e184 Check empty arches before spawning dist-repo
Fixes: https://pagure.io/koji/issue/974
2018-06-19 10:00:48 -04:00
Mike McLean
e4767e53c7 PR#959: fix wrong tagNotification in tagBuildBypass API
Merges #959
https://pagure.io/koji/pull-request/959

Fixes: #958
https://pagure.io/koji/issue/958
Notification for tagBuildBypass is writing message untagged from, expected message tagged into
2018-06-15 17:04:00 -04:00
Yuming Zhu
0a417f10e0 fix wrong tagNotification in tagBuildBypass API
fixes #958
2018-06-15 17:03:52 -04:00
Mike McLean
fb626d803d PR#969: Enable python3 on RHEL8 build
Merges #969
https://pagure.io/koji/pull-request/969

Fixes: #968
https://pagure.io/koji/issue/968
Default enable python3 on RHEL8
2018-06-15 16:58:25 -04:00
Franz Chih-Ping Hsieh
d1d5a14cfc Enable python3 on RHEL8 build
Fixes: #968
2018-06-15 16:58:18 -04:00
Mike McLean
797449d146 PR#970: Add RISC-V (riscv64) to distrepo task
Merges #970
https://pagure.io/koji/pull-request/970
2018-06-14 10:05:49 -04:00
David Abdurachmanov
c4cf933458 Add RISC-V (riscv64) to distrepo task
This has been successfully used in Fedora RISC-V.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-14 10:05:41 -04:00
Mike McLean
4a2e8757f5 PR#897: Fix use_host_resolv with new mock version (2017 Nov 22+)
Merges #897
https://pagure.io/koji/pull-request/897

Fixes: #847
https://pagure.io/koji/issue/847
spin-livecd failed with "Could not resolve host"

Fixes: #932
https://pagure.io/koji/issue/932
Fix use_host_resolv with new mock version
2018-06-13 12:30:27 -04:00
David Abdurachmanov
16a4850ea3 Add missing config_opts['rpmbuild_networking'] to mock test data
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-13 12:30:19 -04:00
David Abdurachmanov
5b2014f8c0 Fix use_host_resolv with new mock version (2017 Nov 22+)
The change done in mock on 2017 Nov 22:

    782e150ffda41c55351c56eff6601a2cc1b8e4fe / [RHBZ#1514028]

now requires rpmbuild_networking to be used together with use_host_resolv
otherwise it does not have an affect. While setting up Fedora RISC-V koji
instance we noticed that /etc/resolv.conf was never copied into chroot,
while /ets/hosts was always present.

The following was tested on Fedora RISC-V instance and resolved the original
problem (buildSRPMFromSCM was failing on fedpkg sources as it couldn't
resolve src.fedoraproject.org)

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-13 12:30:19 -04:00
Mike McLean
f37e203889 PR#868: allow force for pkglist_add
Merges #868
https://pagure.io/koji/pull-request/868

Fixes: #867
https://pagure.io/koji/issue/867
Use packageListBlock should raise better message GenericError without use packageListAdd before this
2018-06-08 16:55:29 -04:00
Mike McLean
118f796a1f fix unittest ref 2018-06-08 16:54:53 -04:00
Tomas Kopecek
3801e7504a use unittest2 only if available 2018-06-08 16:54:53 -04:00
Tomas Kopecek
63d92398d5 allow force for pkglist_add
Using force option will allow 'pre-blocking' of packages which are not
in tag inheritance yet, but could cause a problem if they'll get to
inheritance chain somehow. In such case we don't have an owner for
package and using 'force' allows admin to introduce blocked package with
him as an owner.

Fixes: https://pagure.io/koji/issue/867
2018-06-08 16:54:53 -04:00
Mike McLean
77ae912fad PR#845: propagate exception correctly
Merges #845
https://pagure.io/koji/pull-request/845

Fixes: #844
https://pagure.io/koji/issue/844
Variable defined in wrong scope
2018-06-07 09:56:34 -04:00
Tomas Kopecek
75ff25d4fd remove unused variable 2018-06-07 09:56:27 -04:00
Tomas Kopecek
7de48fe5ff propagate exception correctly
Fixes: https://pagure.io/koji/issue/844
2018-06-07 09:56:27 -04:00
Mike McLean
7e5a8a51c3 PR#831: Use unittest2 for rhel6 compatibility
Merges #831
https://pagure.io/koji/pull-request/831

Fixes: #830
https://pagure.io/koji/issue/830
Make tests working on RHEL6 again
2018-06-07 09:39:52 -04:00
Mike McLean
9de0b15292 avoid skipIf in import-comps unit test
causes problems with unittest2 in epel6
2018-06-07 09:39:39 -04:00
Mike McLean
a094ab21c4 more unit test fixes 2018-06-07 09:39:39 -04:00
Tomas Kopecek
c68396c059 Use unittest2 for rhel6 compatibility
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Mike McLean
c633188bec PR#873: Allow listing of blocked data in readTagGroups
Merges #873
https://pagure.io/koji/pull-request/873

Fixes: #870
https://pagure.io/koji/issue/870
API call getTagGroups don't show blocked packagelists by groupPackageListBlock
2018-06-05 09:59:10 -04:00
Tomas Kopecek
399e42bbd1 CLI update for readTagGroups blocked 2018-06-05 09:59:03 -04:00
Tomas Kopecek
90a935182f Allow listing of blocked data in readTagGroups
Fixes: https://pagure.io/koji/issue/870
2018-06-05 09:59:03 -04:00
Mike McLean
f3b4af0756 PR#940: Add --enabled --ready filters for list-channels
Merges #940
https://pagure.io/koji/pull-request/940

Fixes: #939
https://pagure.io/koji/issue/939
[RFE] show more data in list-channels cli
2018-06-04 11:50:04 -04:00
Tomas Kopecek
7130d3d032 fix test 2018-06-04 11:49:57 -04:00
Tomas Kopecek
60fdcdf11d display more info 2018-06-04 11:49:57 -04:00
Tomas Kopecek
77237cb9c4 Add --enabled --ready filters for list-channels
Fixes: https://pagure.io/koji/issue/939
2018-06-04 11:49:57 -04:00
Mike McLean
524ce54340 PR#952: cli: [clone-tag] preserve build order
Merges #952
https://pagure.io/koji/pull-request/952

Fixes: #916
https://pagure.io/koji/issue/916
`clone-tag` doesn't preserve tagging order
2018-06-04 11:28:14 -04:00
Yuming Zhu
b0421b094f cli: [clone-tag] preserve build order 2018-06-04 11:28:06 -04:00
Mike McLean
54c7bb4244 PR#919: remove deprecated BuildRoot.scrub()
Merges #919
https://pagure.io/koji/pull-request/919

Fixes: #854
https://pagure.io/koji/issue/854
remove deprecated BuildRoot.scrub()
2018-06-04 10:58:57 -04:00
Tomas Kopecek
0dafaa7440 remove deprecated BuildRoot.scrub()
Fixes: https://pagure.io/koji/issue/854
2018-06-04 10:58:45 -04:00
Mike McLean
1930a11f08 PR#948: cli: don't show license for external RPM in rpminfo
Merges #948
https://pagure.io/koji/pull-request/948

Fixes: #949
https://pagure.io/koji/issue/949
cli: [rpminfo] KeyError: 'license' for external RPM
2018-06-01 11:42:35 -04:00
Yuming Zhu
567f9393d2 cli: fix KeyError for external RPM in rpminfo command 2018-06-01 11:42:29 -04:00
Mike McLean
2a505f5981 PR#879: cli: change bad reference in clone-tag
Merges #879
https://pagure.io/koji/pull-request/879

Fixes: #876
https://pagure.io/koji/issue/876
koji clone-tag raises "UnboundLocalError"
2018-06-01 11:35:23 -04:00
Yuming Zhu
d1bf25c18b cli: change bad reference in clone-tag 2018-06-01 11:35:16 -04:00
Mike McLean
8a24b64b71 PR#946: force using python2 to run script
Merges #946
https://pagure.io/koji/pull-request/946

Fixes: #945
https://pagure.io/koji/issue/945
Koji build fail due to ambiguous python shebang.
2018-06-01 11:32:06 -04:00