Commit graph

3378 commits

Author SHA1 Message Date
Franz Chih-Ping Hsieh
fce85a67c0 correct dict key check mechanism
Fixes: #742
https://pagure.io/koji/issue/742
2018-02-26 15:19:59 -05:00
Mike McLean
20f6fec390 PR#800: Don't allow combination of --mine and task-ids
Merges #800
https://pagure.io/koji/pull-request/800
2018-02-20 10:57:26 -05:00
Tomas Kopecek
7e643ce695 Don't allow combination of --mine and task-ids 2018-02-20 10:55:36 -05:00
Mike McLean
a6e41fe5ed PR#812: Fix AttributeError during archive import
Merges #812
https://pagure.io/koji/pull-request/812

Fixes: #811
https://pagure.io/koji/issue/811
AttributeError: 'dict' object has no attribute 'hub.checked_md5'
2018-02-20 10:34:43 -05:00
Mikolaj Izdebski
276d519ef8 Fix AttributeError during archive import
Fixes #811

Signed-off-by: Mikolaj Izdebski <mizdebsk@redhat.com>
2018-02-20 10:34:38 -05:00
Mike McLean
d1db97b3a2 PR#796: Fix comparison with Enum value
Merges #796
https://pagure.io/koji/pull-request/796

Fixes: #813
https://pagure.io/koji/issue/813
cg imports fail with "Unsupported checksum type"
2018-02-20 10:25:54 -05:00
Patrick Uiterwijk
0c4f702bc7 Fix comparison with Enum value
The CHECKSUM_TYPES[...] call returns the index in the Enum field, not a string,
which meant that the comparison would never work.

Reported-by: Clement Verna <cverna@tutanota.com>
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-02-20 10:25:44 -05:00
Mike McLean
50c28bb41d PR#695: blacklist tags for kojira
Merges #695
https://pagure.io/koji/pull-request/695

Fixes: #694
https://pagure.io/koji/issue/694
Give kojira a blacklist of targets that it shouldn't bother with
2018-02-20 09:43:55 -05:00
Mike McLean
fa98fe7c59 fix unit test 2018-02-20 09:43:30 -05:00
Tomas Kopecek
3294301f45 blacklist tags for kojira
Fixes: https://pagure.io/koji/issue/694

(adjusted for conflicts with PR#797 -mikem)
2018-02-20 09:43:30 -05:00
Mike McLean
96a52c28c2 PR#773: create/edit notification checks for duplicity
Merges #773
https://pagure.io/koji/pull-request/773

Fixes: #687
https://pagure.io/koji/issue/687
createNotification doesn't check existing ones
2018-02-20 09:39:33 -05:00
Tomas Kopecek
d58989d777 tests for notifications 2018-02-20 09:39:27 -05:00
Tomas Kopecek
ad62cce51e create/edit notification checks for duplicity
createNotification and updateNotification allows to have more
notification on same event/e-mail. This doesn't make much sense, so add
limitations to have only one combination.

As postgresql ignore NULL values in constraints, it is done on
application-level.

Fixes: https://pagure.io/koji/issue/687
2018-02-20 09:39:27 -05:00
Mike McLean
0abe23959a PR#799: Fix values for non-existent options
Merges #799
https://pagure.io/koji/pull-request/799
2018-02-19 17:11:36 -05:00
Mike McLean
6b09de74d3 make default user value consistent 2018-02-19 17:10:34 -05:00
Tomas Kopecek
a954bfb84b Fix values for non-existent options 2018-02-19 17:10:34 -05:00
Mike McLean
6e65174c86 PR#805: fix duplicated args "parent" in waittest task
Merges #805
https://pagure.io/koji/pull-request/805
2018-02-19 17:02:29 -05:00
Yuming Zhu
62e94c100c fix duplicated args - parent in waittest task 2018-02-19 17:02:16 -05:00
Mike McLean
8cfb6032b4 PR#806: honour runroot --quiet for old-style call
Merges #806
https://pagure.io/koji/pull-request/806

Fixes: #807
https://pagure.io/koji/issue/807
runroot CLI ignores --quiet
2018-02-19 12:26:50 -05:00
Tomas Kopecek
eaa158ab51 honour runroot --quiet for old-style call
Fixes: https://pagure.io/koji/issue/807
2018-02-19 12:26:45 -05:00
Mike McLean
53de54aeb9 PR#767: update docs for listRPMFile
Merges #767
https://pagure.io/koji/pull-request/767

Fixes: #752
https://pagure.io/koji/issue/752
Return value of getRPMFiles() has undocumented values.
2018-02-19 12:05:29 -05:00
Tomas Kopecek
715330ab6e update docs for listRPMFile
Fixes: https://pagure.io/koji/issue/752
2018-02-19 12:05:16 -05:00
Mike McLean
0087888fd4 PR#797: Move kojira's regen loop into dedicated thread
Merges #797
https://pagure.io/koji/pull-request/797

Fixes: #798
https://pagure.io/koji/issue/798
kojira too slow on some systems
2018-02-13 13:48:49 -05:00
Mike McLean
77930282d8 unit test for checkNeeded 2018-02-13 13:48:43 -05:00
Mike McLean
21165b2814 unit test for setTagScore 2018-02-13 13:48:43 -05:00
Mike McLean
3ed392afdb unit test for regenLoop 2018-02-13 13:48:43 -05:00
Mike McLean
7c5dde35da a little more logging 2018-02-13 13:48:43 -05:00
Mike McLean
1ee0dd33cd separate loggers for currency/regen threads 2018-02-13 13:48:43 -05:00
Mike McLean
01717db5df fix typo 2018-02-13 13:48:43 -05:00
Mike McLean
c39e6a8ab2 add missing sleeptime option to list 2018-02-13 13:48:43 -05:00
Mike McLean
3283fa20ae fix task limit check 2018-02-13 13:48:43 -05:00
Mike McLean
557dcce1b5 move regens into thread 2018-02-13 13:48:43 -05:00
Mike McLean
bda8e7adfa some kojira unit tests 2018-02-13 13:48:43 -05:00
Mike McLean
b376133646 simplify some exception handling 2018-02-13 13:48:43 -05:00
Mike McLean
c1d29237b0 update tag scores each pass 2018-02-13 13:48:43 -05:00
Mike McLean
473e397a7b adjust debug output to make it less noisy 2018-02-13 13:48:43 -05:00
Mike McLean
0713d1b7d3 cleanup docstring 2018-02-13 13:48:43 -05:00
Mike McLean
1affc5c018 unused method 2018-02-13 13:48:43 -05:00
Mike McLean
7193c60538 log message 2018-02-13 13:48:43 -05:00
Mike McLean
5b3382aea3 more needed_tags cleanup 2018-02-13 13:48:43 -05:00
Mike McLean
08e1b84fed misc fixes 2018-02-13 13:48:43 -05:00
Mike McLean
3e15abcbe8 sanity check expire age 2018-02-13 13:48:43 -05:00
Mike McLean
dd654e91f6 scoring 2018-02-13 13:48:43 -05:00
Mike McLean
76b66c4960 use new code 2018-02-13 13:48:43 -05:00
Mike McLean
42dc03b3d5 partial refactor of kojira code 2018-02-13 13:48:43 -05:00
Mike McLean
04635ac9f2 PR#794: Work around race in add_external_rpm
Merges #794
https://pagure.io/koji/pull-request/794

Fixes: #788
https://pagure.io/koji/issue/788
rpm from external repo can hit db constraint
2018-02-13 13:42:46 -05:00
Mike McLean
1d35403e2d unit test for Savepoint 2018-02-13 13:42:31 -05:00
Mike McLean
83d327482f unit test for add_external_rpm 2018-02-13 13:42:31 -05:00
Mike McLean
2c76b3970e use a savepoint 2018-02-13 13:42:31 -05:00
Mike McLean
12a993a2cf recheck for duplicate external rpm on insertion errors
fixes: https://pagure.io/koji/issue/788
2018-02-13 13:42:31 -05:00