Commit graph

129 commits

Author SHA1 Message Date
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
Mike McLean
b16b3304f4 replace 'heinous copy&paste' with build-time substitution 2010-10-20 16:19:05 -04:00
Mike Bonnet
f619543ac8 support specifying parameters of a buildrequires, including type, which allows builds of one type to depend on files from builds of a different type 2010-08-06 08:34:24 -04:00
Mike Bonnet
0b485cd813 reimplement scanPlugin() as a wrapper around findHandlers() 2010-07-16 11:44:53 -04:00
Mike Bonnet
419a1dafe4 major refactoring of koji daemons
- move TaskManager, SCM, and a couple helper functions to koji.daemon
 - move generic TaskHandler classes to koji.tasks
 - remove use of globals in kojid and kojira
 - fix a few issues revealed by pylint
2010-07-16 11:44:52 -04:00