Commit graph

2827 commits

Author SHA1 Message Date
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
Mike McLean
bd6f5f3aa6 include plugin.py in py3 lib 2017-06-16 10:16:07 +02:00
Tomas Kopecek
03ec96803a Fix blank lines (pep8)
split_cli.py caused some missing or additional empty lines. Fixed
according to pep8.
2017-06-13 15:44:38 +02:00
Tomas Kopecek
4ef0506b5c CLI plugin dev docs 2017-06-13 15:28:43 +02:00
Tomas Kopecek
df6aadec59 remove CLI plugins config options 2017-06-13 14:53:39 +02:00
Tomas Kopecek
c8db9b9945 spec update 2017-06-13 11:42:04 +02:00
Tomas Kopecek
1c0d5011c7 Makefile updates 2017-06-13 11:42:04 +02:00
Tomas Kopecek
c02eb739aa update cli tests 2017-06-13 11:42:04 +02:00
Tomas Kopecek
ac3f76a4de refactor activate_session 2017-06-13 11:42:04 +02:00
Tomas Kopecek
c15c553048 fix entry path 2017-06-13 11:42:04 +02:00
Tomas Kopecek
37bcef025c cleanup after automatic split 2017-06-13 11:42:04 +02:00
Tomas Kopecek
81b2b36d07 apply split 2017-06-13 11:20:38 +02:00
Tomas Kopecek
a1a5f2f25a touch __init__.py in koji_cli 2017-06-13 11:20:24 +02:00