Commit graph

2839 commits

Author SHA1 Message Date
Tomas Kopecek
f7bdb7a089 koji_cli name interferes with new library 2017-06-22 12:03:00 -04:00
Mike McLean
733dbc4b72 PR#475 fix StringType and itervalues in plugin and cli
Merges #475
https://pagure.io/koji/pull-request/475
2017-06-22 12:00:32 -04:00
Yuming Zhu
6fe90a170d unit tests for cli.load_plugins 2017-06-22 11:59:28 -04:00
Yuming Zhu
0f51a9936f extend unit tests for PluginTracker 2017-06-22 11:59:28 -04:00
Mike McLean
6419530775 unit tests for PluginTracker 2017-06-22 11:59:28 -04:00
Mike McLean
206a3320e6 unit tests for callback handling 2017-06-22 11:59:28 -04:00
Mike McLean
1a6d8377ed some unit tests for koji.plugins 2017-06-22 11:59:28 -04:00
Yuming Zhu
617241bcc1 use six.class_types instead of ClassType, TypeType in cli 2017-06-22 11:59:28 -04:00
Yuming Zhu
e64c57e866 fix StringType and itervalues in plugin and cli 2017-06-22 11:59:28 -04:00
Mike McLean
9d812166ac PR#476 provide a temporary workdir for restart task unit tests
Merges #476
https://pagure.io/koji/pull-request/476
2017-06-22 11:52:40 -04:00
Mike McLean
76352b4968 provide a temporary workdir for restart task unit tests
Followup to https://pagure.io/koji/pull-request/472
The test cases added in this PR left temporary files
in the checkout dir.
2017-06-22 11:52:13 -04:00
Mike McLean
efd08fbcfd PR#477 update .gitignore
Merges #477
https://pagure.io/koji/pull-request/477
2017-06-22 11:50:54 -04:00
Mike McLean
adc2695a7c update .gitignore
A number of common artifacts were not ignored. I've added a few items
and tried to organize them a bit
2017-06-21 14:55:48 -04:00
Mike McLean
e7dd4b36f9 PR#465 Don't allow not-null empty arch/userID in listHosts
Merges #465
https://pagure.io/koji/pull-request/465
Fixes #463
https://pagure.io/koji/issue/463
2017-06-21 11:03:50 -04:00
Mike McLean
6eac5ba443 add unit tests for listHosts call 2017-06-21 11:00:08 -04:00
Mike McLean
1da15eb294 validate channelID and userID inputs for listHosts 2017-06-21 11:00:08 -04:00
Tomas Kopecek
1a7074db43 Don't allow not-null empty arch/userID in listHosts
Related: https://pagure.io/koji/issue/463

If empty string is passed, resulting SQL query is not valid. Check also
channelID/userID to be an integer.
2017-06-21 11:00:08 -04:00
Mike McLean
e83e741618 PR#471 Rework build log display in web ui
Merges #471
https://pagure.io/koji/pull-request/471
2017-06-21 10:56:30 -04:00
Mike McLean
4391f34106 another get_build_logs unit test 2017-06-21 10:55:13 -04:00
Mike McLean
7243a8eb8f unit tests for getBuildLogs 2017-06-21 10:55:13 -04:00
Mike McLean
3b0861446b rework web build log display 2017-06-21 10:55:13 -04:00
Mike McLean
da89f61401 getBuildLogs call for hub 2017-06-21 10:55:13 -04:00
Mike McLean
8a3a45deac PR#472 New features for restart-hosts command
Merges #472
https://pagure.io/koji/pull-request/472
2017-06-21 09:16:42 -04:00
Mike McLean
ce6a88fa2a allow restart-hosts to work when deploying this change 2017-06-21 08:39:08 -04:00
Mike McLean
a86703319c unit tests for timeout option in wait() 2017-06-21 08:39:08 -04:00
Mike McLean
617dd468d2 avoid incorrect sleep log message 2017-06-21 08:39:08 -04:00
Mike McLean
c2764a5caf units tests for restart related task handlers 2017-06-21 08:39:08 -04:00
Mike McLean
33566487d1 fix timeout logic in wait() 2017-06-21 08:39:08 -04:00
Mike McLean
81eb30d5ce restart-hosts: new options and a timeout 2017-06-21 08:39:08 -04:00
Mike McLean
a5bd3b4495 restart-hosts: check for existing tasks first 2017-06-21 08:39:08 -04:00
Mike McLean
8368f9b114 PR#474 propagate task.assign return value
Merges #474
https://pagure.io/koji/pull-request/474
Fixes #473
https://pagure.io/koji/issue/473
2017-06-21 08:35:32 -04:00
Tomas Kopecek
b6c56eb752 propagate task.assign return value 2017-06-21 08:31:15 -04:00
Mike McLean
5bd1d3327a PR#353 add pre/postSCMCheckout plugin_callbacks
Merges #353
https://pagure.io/koji/pull-request/353
2017-06-20 12:25:09 -04:00
Yuming Zhu
781124b52b add scratch param in preSCMCheckout 2017-06-20 09:32:19 -04:00
Yuming Zhu
efc4c9bcff change run_plugin to run_callbacks and remove the modification for kojikamid.py 2017-06-20 09:32:19 -04:00
Yuming Zhu
222ed94e93 remove callbacks in win builder 2017-06-20 09:32:19 -04:00
Yuming Zhu
65799703e2 push build_tag, session, scratch into callbacks 2017-06-20 09:32:19 -04:00
yzhu
db96dd63c3 enable callback plugin for builder 2017-06-20 09:32:19 -04:00
Yuming Zhu
7a3be01c44 fix fields in SCM 2017-06-20 09:32:19 -04:00
Yuming Zhu
4696e35607 use util.dslice instead 2017-06-20 09:32:19 -04:00
Yuming Zhu
e6959d8ed5 fix reference problem 2017-06-20 09:32:19 -04:00
Yuming Zhu
cbf06f8783 remove useless import 2017-06-20 09:32:19 -04:00
Yuming Zhu
89e82d6020 only path taskinfo, scminfo, [srcdir] to plugin 2017-06-20 09:32:19 -04:00
Xibo Ning
9bf49841ad patch2 for issue 288 2017-06-20 09:32:19 -04:00
Mike McLean
9cfadf7529 PR#199 CLI plugins
Merges #199
https://pagure.io/koji/pull-request/199
Fixes #193
https://pagure.io/koji/issue/193
2017-06-16 11:02:21 -04:00
Tomas Kopecek
519f792ce2 strip .py from module name 2017-06-16 10:55:08 +02:00
Mike McLean
94f116e898 watch-logs: fix py3 encoding issues 2017-06-16 10:16:07 +02:00
Mike McLean
3c548a9923 fix command options that default to global option value 2017-06-16 10:16:07 +02:00
Mike McLean
bd7c52afbf avoid sorting dictionary fields
python3 is pickier about this than python2
2017-06-16 10:16:07 +02:00
Mike McLean
ada23043ee cli makefile: make sure we create dir before installing to it 2017-06-16 10:16:07 +02:00