Tomas Kopecek
b35499cdb4
fix time type for restartHosts
...
Fixes: https://pagure.io/koji/issue/1825
2019-11-25 11:54:18 +01:00
Ken Dreyer
95fcac7ca5
builder: log insufficent disk space location
...
When creating a builder with the default settings and a small root
partition "/", kojid will fail to come up because /var/lib/mock is on
the root partition.
Prior to this change, kojid would log a messages to the systemd journal
about the insufficent disk space, but it did not make it obvious which
directory should have more disk space. Add the buildroot location to
this log message, so the administrator can more easily understand what
to change.
2019-09-26 17:42:09 +02:00
Tomas Kopecek
dfbe322222
deprecate sha1/md5_constructor from koji.util
...
These functions are now fully provided by hashlib. Commit removes their
usage from koji's codebase and leaves deprecation message in lib.
Final removal from lib is scheduled to 1.21.
Fixes: https://pagure.io/koji/issue/1487
2019-08-12 16:07:55 -04:00
Mike McLean
7c416d68d1
tweak rank calculation
2019-04-09 15:40:00 -04:00
Mike McLean
c4f7724647
scale task_avail_delay based on bin rank
2019-04-09 15:40:00 -04:00
Tomas Kopecek
613d1587a6
fix typo
2019-03-04 10:13:51 -05:00
Mike McLean
01b0a41639
fix file open mode
2019-03-04 09:28:39 -05:00
Mike McLean
24f9cb60ba
use base64encode most places
2019-03-04 09:28:39 -05:00
Tomas Kopecek
86f3c5b095
decode Popen.communicate result under py3
...
Fixes: https://pagure.io/koji/issue/1270
2019-02-20 15:30:01 -05:00
Tomas Kopecek
ccf1c41274
fixes
2019-02-12 16:09:19 -05:00
Tomas Kopecek
426a8c2b16
rpm builds
2019-02-12 16:06:00 -05:00
Tomas Kopecek
d3766c19b5
replace obsoleted libs
2019-02-12 16:06:00 -05:00
Yu Ming Zhu
7ab1e2901d
urllib fix for python3
2019-01-28 08:45:18 -05:00
Mike McLean
cc7afa1b17
more tests and another fix
2018-12-03 15:54:07 -05:00
Mike McLean
beac7899ec
partial unit test with minor fix
2018-12-03 15:54:07 -05:00
Mike McLean
25d8e41f31
cleanup
2018-12-03 15:54:07 -05:00
Mike McLean
2ab6a6eff0
initialize TaskManager.skipped_tasks
2018-12-03 15:54:07 -05:00
Mike McLean
c3b7c815cb
add a timeout for skipping a task based on bin capacity
2018-12-03 15:54:07 -05:00
Mike McLean
dab29276e0
more informative error for invalid scm schemes
2018-09-07 16:23:02 -04:00
Tomas Kopecek
caae1a0a8b
workaround unnecessary list conversions
2018-07-11 17:37:40 -04:00
Tomas Kopecek
8e61dc7c56
python-modernize -f libmodernize.fixes.fix_classic_division
2018-07-11 17:37:40 -04:00
Tomas Kopecek
bcee24e50c
python-modernize -f libmodernize.fixes.fix_dict_six
2018-07-11 17:37:39 -04:00
Tomas Kopecek
b96092334d
python-modernize -f libmodernize.fixes.fix_xrange_six
2018-07-11 17:37:39 -04:00
Yuming Zhu
43a433d37a
do not shell=True
2018-03-14 20:23:24 +08:00
Yuming Zhu
7eabd8b98f
fix subprocess.check_output for py2.6
2018-03-14 18:37:38 +08:00
Mike McLean
d0c4f29b44
just use original url for non-git sources
2017-12-11 12:50:46 -05:00
Mike McLean
99dcb3798d
avoid splitting SCM class in kojikamid
2017-12-11 12:50:46 -05:00
Tomas Kopecek
0ae68fbbcb
store source also for CVS/SVN
2017-12-11 12:50:46 -05:00
Tomas Kopecek
4a96ee5474
store git commit hash to build.source
...
Git HEAD commit hash is now stored in build.info field. this field is
currently used by content generators, but not by other builds. Also
original checked out url is stored in build.extra.url field.
Fixes: https://pagure.io/koji/issue/550
2017-12-11 12:50:46 -05:00
Tomas Kopecek
1f6ca9ae72
python-modernize -f lib2to3.fixes.fix_numliterals . -w
2017-10-31 16:07:34 +01:00
Tomas Kopecek
379ec8ae63
python-modernize -f lib2to3.fixes.file . -w
2017-10-31 16:05:16 +01:00
Tomas Kopecek
d6a5cdf987
python-modernize -f lib2to3.fixes.fix_except . -w
2017-10-31 16:05:16 +01:00
Mike McLean
c457d07246
fix up url checks and extend unit tests for this issue
2017-09-19 14:43:23 -04:00
Patrick Uiterwijk
2ef60eada5
Run normpath over SCM url when checking against allowed
...
This will make sure that when we check the allowed SCM url, any ./ and ../ are resolved.
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-09-19 12:52:56 -04:00
Mike McLean
be2fae90ae
move custom xmlrpc marshaller to its own file
2017-08-25 16:48:02 -04:00
Mike McLean
2865f2421b
avoid using encode_int in some of the client code
2017-08-25 16:48:02 -04:00
Mike McLean
ab48fa80b2
move xmlrpc marshaller into lib and use i8 for large ints
2017-08-25 16:48:02 -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
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
3b66a81bfc
rename variable in unit test. clarify docstring
2017-05-22 15:49:38 -04:00
Mike McLean
39d71efa58
clean up docstring
2017-05-22 15:49:38 -04:00
Mike McLean
04b42c8320
tests/fixes for assert_allowed
2017-05-22 15:49:38 -04:00
Mike McLean
dd87bd39e3
scm unit test, partial
2017-05-22 15:49:38 -04:00
Mike McLean
950d6cc4ed
first stab at inverted scm rules
2017-05-22 15:49:38 -04:00
Tomas Kopecek
93034f64f3
idioms
2017-03-17 11:35:53 -04:00
Tomas Kopecek
cc9fff9840
remove has_key (not working in python3)
2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465
use new exception syntax
2017-03-02 10:52:30 -05:00