Commit graph

3261 commits

Author SHA1 Message Date
Franz Chih-Ping Hsieh
8da5f2bc2f Use task id as key to sort
related: #713
https://pagure.io/koji/issue/713
2017-11-30 12:20:33 -05:00
Mike McLean
39dc9efaac PR#707: add argument detection to prevent array out of index error.
Merges #707
https://pagure.io/koji/pull-request/707

Fixes: #706
https://pagure.io/koji/issue/706
search command argument errors
2017-11-30 12:18:39 -05:00
Franz Chih-Ping Hsieh
5da7c18f1f add argument detection to prevent array out of index error.
Fixes: #706
https://pagure.io/koji/issue/706
2017-11-29 04:05:50 +00:00
Mike McLean
c152991b54 PR#717: Fix watch-tasks unit tests
Merges #717
https://pagure.io/koji/pull-request/717
2017-11-28 13:40:32 -05:00
Mike McLean
d38a2f30da py3 fixes for watch-tasks unit tests 2017-11-28 13:40:29 -05:00
Mike McLean
704e542b65 test_watch_tasks_with_keyboardinterrupt() 2017-11-28 13:40:29 -05:00
Mike McLean
2b0146a0ba another watch-tasks test 2017-11-28 13:40:29 -05:00
Mike McLean
83015e643c fakeclient: support multiple calls per key 2017-11-28 13:40:29 -05:00
Mike McLean
d97cf1f961 use fake client for watch_tasks testing 2017-11-28 13:40:29 -05:00
Mike McLean
cf19091d9c cleanup 2017-11-28 13:40:29 -05:00
Mike McLean
0957874f8f partial work 2017-11-28 13:40:29 -05:00
Mike McLean
882f513146 PR#615: don't send notifications to disabled users or hosts
Merges #615
https://pagure.io/koji/pull-request/615

Fixes: #613
https://pagure.io/koji/issue/613
Don't send notifications to disabled users or hosts
2017-11-22 15:54:38 -05:00
Tomas Kopecek
921fcae6fe return xmlrpc-compatible list instead of set 2017-11-22 15:54:31 -05:00
Tomas Kopecek
f40fee4b7d fix tests 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
83653771f7 PR#698: set optional_arches to list
Merges #698
https://pagure.io/koji/pull-request/698

Fixes: #697
https://pagure.io/koji/issue/697
CLI `_build_image` doesn't really set `optional_arches` as a list
2017-11-22 14:27:18 -05:00
Yuming Zhu
d1f0ed41ac set optional-arches to list
fixes #697
2017-11-22 14:27:15 -05:00
Mike McLean
5574ad7817 PR#703: cli: make return code of watch_task to always ignore sub-task failure
Merges #703
https://pagure.io/koji/pull-request/703

Fixes: #696
https://pagure.io/koji/issue/696
koji 1.14.0 returns exit status 1 on jobs with only optional failures
2017-11-22 00:24:28 -05:00
Mike McLean
f81c369724 avoid reporting incorrect info in is_success() 2017-11-22 00:24:24 -05:00
Yuming Zhu
73ebc0c98f cli: make return code of watch_task to always ignore sub-task failure
fixes: #696
2017-11-22 00:24:24 -05:00
Mike McLean
531570314a PR#704: cli: use strict with getTag call when appropriate
Merges #704
https://pagure.io/koji/pull-request/704
2017-11-22 00:16:30 -05:00
Mike McLean
6136c51f85 cli: use strict with getTag call when appropriate 2017-11-22 00:16:26 -05:00
Mike McLean
44ec14816b PR#710: use hasPerm to check permission in save_failed_tree
Merges #710
https://pagure.io/koji/pull-request/710

Fixes: #709
https://pagure.io/koji/issue/709
Can not execute `save-failed-tree` command
2017-11-22 00:08:34 -05:00
Yuming Zhu
4dd529c6e6 use hasPerm to check permission in save_failed_tree
fixes #709
2017-11-17 15:56:39 +08:00
Mike McLean
dc7c2322d1 PR#699: Add documentation for storage volumes
Merges #699
https://pagure.io/koji/pull-request/699

Fixes: #667
https://pagure.io/koji/issue/667
Docs for volume policy
2017-11-15 10:26:29 +08:00
Mike McLean
079afeaefc docstrings for a couple volume calls 2017-11-14 17:55:39 +08:00
Mike McLean
9c388be156 update volume doc 2017-11-14 17:55:26 +08:00
Mike McLean
39c26a0751 starting with old volume notes from 1.7.0 release discussion 2017-11-14 09:29:42 +08:00
Mike McLean
b170e323cb PR#693: Import koji.plugin explicitly
Merges #693
https://pagure.io/koji/pull-request/693
2017-11-13 14:46:37 +08:00
Luiz Carvalho
a6f84f9a1e Import koji.plugin explicitly
The run_callbacks method assumes koji.plugin has already been imported.

Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
2017-11-13 14:46:31 +08:00
Mike McLean
375343d88c PR#647: Don't check non-existing file
Merges #647
https://pagure.io/koji/pull-request/647

Fixes #665
https://pagure.io/koji/issue/665
kojivmd fails if cert is not set in config and default file doesn't exist
2017-11-09 17:52:46 -05:00
Tomas Kopecek
7c62fb7023 Don't check non-existing file
Related: https://pagure.io/koji/issue/665
2017-11-09 17:50:57 -05:00
Mike McLean
b2174fa5dc PR#664: make grab_session_options to accept dict directly
Merges #664
https://pagure.io/koji/pull-request/664

Fixes: #663
https://pagure.io/koji/issue/663
RFE: grab_session_options should accept dict argument directly
2017-11-09 17:47:40 -05:00
Yuming Zhu
5c11e60293 fix dict comprehension on py2.6 2017-11-09 17:47:36 -05:00
Yuming Zhu
14a24abbde make grab_session_options to accept dict directly
fixes #663
2017-11-09 17:47:36 -05:00
Mike McLean
debffba85b PR#673: functions for parsing task parameters
Merges #673
https://pagure.io/koji/pull-request/673
2017-11-09 17:40:57 -05:00
Mike McLean
8f6d5d41cd clean up tests 2017-11-09 17:40:52 -05:00
Mike McLean
44a17e5dfe fix unit test 2017-11-09 17:40:52 -05:00
Mike McLean
40bf35c0f1 move tests to correct subdirs 2017-11-09 17:40:52 -05:00
Mike McLean
af71756fa7 fix exception syntax in apply_argspec 2017-11-09 17:40:52 -05:00
Mike McLean
75d192a149 update legacy signatures 2017-11-09 17:40:52 -05:00
Mike McLean
d8132543c5 move apply_argspec to koji.util 2017-11-09 17:40:52 -05:00
Mike McLean
89825a8d2d drop unused/incomplete parseParams method for now 2017-11-09 17:40:52 -05:00
Mike McLean
bf9e7520f7 fix defaults handling in apply_argspec 2017-11-09 17:40:52 -05:00
Mike McLean
9e48e440e8 cleanup, more testing 2017-11-09 17:40:52 -05:00
Mike McLean
1bdf7a0f09 basic unit test 2017-11-09 17:40:52 -05:00
Mike McLean
e6de3e0d62 function to parse task parameters into a dictionary 2017-11-09 17:40:52 -05:00
Mike McLean
4f97237a84 more tests 2017-11-09 17:40:52 -05:00