Commit graph

54 commits

Author SHA1 Message Date
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
Tomas Kopecek
c143d0b88f print statement -> print function 2017-02-28 10:55:56 -05:00
Tomas Kopecek
f4ede5339f Update http:// to https:// in code
Where https is working, code was updated to use it.
2016-12-19 11:49:11 -05:00
Tomas Kopecek
c37effcbd7 remove unused variables/methods 2016-10-04 15:48:54 +02:00
Mike McLean
016c3f4b46 allow hosts with no channels to take assigned tasks
Fixes #91
2016-09-23 13:01:22 -04:00
Mohan Boddu
dd82e9cea2 Remove all bad-whitespaces
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2016-08-29 14:26:32 -04:00
Mike McLean
f68099f584 fix more #pylint issues 2015-06-06 17:38:52 -04:00
Pavol Babincak
9e89ebb9a4 Ran reindent.py from cpython tools on all python scripts
Citing from reindent docs:

    Change Python (.py) files to use 4-space indents and no hard tab
    characters. Also trim excess spaces and tabs from ends of lines, and
    remove empty lines at the end of files.  Also ensure the last line
    ends with a newline.

Citing from PEP 8:

    Use 4 spaces per indentation level.

    Python 2 code indented with a mixture of tabs and spaces should be
    converted to using spaces exclusively.

    Don't write string literals that rely on significant trailing
    whitespace. Such trailing whitespace is visually indistinguishable
    and some editors (or more recently, reindent.py) will trim them.

Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Mike McLean
ada844a5ff obsolete comment 2014-03-03 13:51:59 -05:00
Mathieu Bridon
b3b726e968 Don't hardcode /var/lib/mock
The builder configuration allows setting this to a different folder.
2014-03-03 13:41:49 -05:00
Mike McLean
9e9549d994 new "fast upload" mechanism 2012-11-06 14:39:49 -05:00
Mike McLean
342cd274e6 avoid error messages on canceled/reassigned tasks 2012-09-12 16:09:20 -04:00
Mike McLean
dd48297c04 use encode_int whenever uploadFile rpc call is used directly 2012-05-16 15:33:02 -04:00
Mike McLean
48a8183b75 catch errors from checkHost() call 2012-04-05 16:30:06 -04:00
Ken Dreyer
4d42e1062e make SCM URL validity check more verbose
When a builder parses an SCM URL, the daemon module's _parse_url() does
a sanity check that it has properly understood all the necessary
elements of the URL string before returning them. When this check fails,
a "Invalid URL" message is raised, but this error message does not
provide information about what portion of the URL was missing.

Break this sanity check into multiple statements, so that we present a
more detailed error message to the user.
2012-03-09 16:54:25 -05:00
Mike McLean
cf508c1c62 make failed buildroot lifetime configurable 2012-01-15 12:38:37 -05:00
Mike McLean
f1682ab7b7 handle noarch filtration with $handler.checkHost() 2011-11-03 12:20:45 -04:00
Mike Bonnet
c3d4b8bdc8 handle tag/host arch mismatch for wrapperRPM tasks as well 2011-04-04 11:52:21 -04:00
Mike Bonnet
89d8055731 create BuildRoot objects for Windows builds, and track Windows build dependencies 2011-04-04 11:52:21 -04:00
Mike Bonnet
c27c9d24ef - allow plugins to modify the task result from the preTaskStateChange callback
- make closing a task more resilient to failure, because callback in closeTask() may raise exceptions
2011-01-13 15:32:46 -05:00
Mike McLean
a51ad5031f graceful mass builder restart 2010-12-03 10:41:41 -05:00
Mike McLean
efdd7bf817 gracefully ignore tasks we do not have a handler for 2010-11-23 14:31:19 -05:00
Mike McLean
55e3a719d1 avoid undefined variable in log_output exception handler 2010-11-11 11:33:08 -05:00
Mike McLean
3c2cbc741d avoid masking tracebacks in TaskManager 2010-10-20 16:19:13 -04:00
Mike McLean
94ea106518 alter SCM.checkout() to mesh with kojikamid 2010-10-20 16:19:05 -04:00