Commit graph

1553 commits

Author SHA1 Message Date
Mike McLean
517feb21ee update predefined archivetypes 2015-03-10 14:32:08 -04:00
Mike Bonnet
ac09ab2b49 taskinfo.chtml: missing line break 2015-02-20 13:56:13 -05:00
Mike McLean
1ce5413904 in modpy mode, if ConfigFile is set to default, then default to normal ConfigDir 2015-02-19 15:25:19 -05:00
Mike McLean
8d3166f13f Support conf.d in kojihub and kojiweb 2015-02-04 05:33:34 -05:00
Mike McLean
db5d3e4dec handle package field for group_package_listing in history queries 2015-02-04 05:29:25 -05:00
Chenxiong Qi
8424254d13 Avoid crash if some hosts have no arches
Field arches in table host could be null. if some hosts have no arches, and
arches value is null, arches.split() will crash.
2015-02-04 05:29:25 -05:00
Pavol Babincak
07ea07f875 Test parent tag existence before query for its id
If client called:
    $ koji add-tag new-tag-name --parent nonexistent-tag

it failed with error:

    xmlrpclib.Fault: <Fault 1: 'exceptions.TypeError: unsubscriptable
    object'>
2015-02-04 05:29:25 -05:00
Tomas Kopecek
cd45e886cc runroot plugin 2015-01-27 22:41:00 -06:00
Dennis Gilmore
5b5b7d95ea ssl: use the best possible connection method.
tell pyOpenSSL to use the best possible connection method,
disable SSLv2 and SSLv3

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-01-23 16:11:22 -06:00
Dennis Gilmore
50c8dd5697 image tasks: only bind mount /selinux if it exists
current fedora does not have /selinux on the host if you try to bind mount
a non existant directory the mount fails.
2015-01-23 13:45:52 -06:00
Josh Boyer
82a405c794 Compress docker images with xz
Imagefactory supports gzip, bzip2, and xz compression formats.  Upstream
Docker prefers xz, so switch to using that.
2015-01-16 11:51:19 -06:00
Ralph Bean
2ce5ac7d39 Add new {pre,post}RPMSign plugin callbacks.
I'd like to use these in Fedora Infrastructure for the fedmsg plugin so
we can see when rawhide rpms get signed by sigul.
2014-12-12 16:23:52 -05:00
Mike McLean
9d433423fe update httpd access directives 2014-11-24 11:16:32 -05:00
Mike Bonnet
631f8cc254 use os.lchown() so dangling symlinks don't cause errors 2014-10-28 23:54:21 -04:00
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Mike Bonnet
7a6544a53d fix a few errors revealed by pylint 2014-10-28 23:54:21 -04:00
Mike Bonnet
1e8b7211ee add --ini and --section options to maven-build and wrapper-rpm
Support use of a .ini file to pass parameters to maven-build and wrapper-rpm.
2014-10-28 23:54:20 -04:00
Mike Bonnet
df316c0c6f xmlrpclib is not thread-safe, create a new ServerProxy instance so we're not sharing with the stream_logs thread 2014-10-28 23:54:20 -04:00
Mike Bonnet
5c4144c033 display the top-level task start time as the build start time
We can't record the build start time in the database correctly for maven and windows builds, so show the task start time instead.
2014-10-28 23:54:20 -04:00
Mike Bonnet
d60bf0529e move maven-chain parsing into util so it can be used by other utilities 2014-10-28 23:54:20 -04:00
Mike Bonnet
26129248eb declare dependencies as pluginRepositories also, because dependencies and plugins are resolved separately (for some reason) 2014-10-28 23:54:20 -04:00
Mike Bonnet
2167fbb825 remove the resolve-plugins goal from Maven builds
The resolve-plugins goal is not often used during upstream development, and it
causes unnecessary dependencies to be downloaded and builds to take longer.
The data collected during that step hasn't been used for anything, so it is
safe to remove.  All dependencies downloaded during the build will still be
recorded after the deploy goal is completed.
2014-10-28 23:54:20 -04:00
Mike Bonnet
004a1ba450 preserve the format of parameters with no value when calling maven-build and maven-chain
-Dfoo and -Dfoo= mean different things to the JVM, so make sure the format of the parameter on the command-line is carried through to the mvn invocation.
2014-10-28 23:54:20 -04:00
Mike Bonnet
cc72bebfae include status information in the output of the chainmaven task
If a status line includes "previously built" it means an identical build already existed in the destination tag, and the build was not repeated.
2014-10-28 23:54:20 -04:00
Mike Bonnet
688f43a1c1 check for duplicates during scratch builds also 2014-10-28 23:53:48 -04:00
Mike McLean
5c086d80f8 consider more timestamps before deleting old repos 2014-10-28 12:30:05 -04:00
Mike McLean
50d5ade308 do not require rpm source layout 2014-10-28 12:30:05 -04:00
Thomas Oulevey
029177bcb0 do not assume sourcedir=chrootdir 2014-10-24 11:16:24 -04:00
Jay Greguske
483fd10509 compress rhevm ova 2014-10-23 16:10:24 -04:00
Mike McLean
61ed1260d3 log failed queries 2014-10-22 15:00:44 -04:00
Mike McLean
31bf2f48cb report subset of maven tags in regen total 2014-10-22 15:00:44 -04:00
Mike McLean
43b72f4f2d report expired time when triggering newRepo task 2014-10-22 15:00:44 -04:00
Mike McLean
4cd794b290 prioritize repo regen by time since expiration rather than time since creation 2014-10-22 15:00:44 -04:00
Mike McLean
55ac3ab50a solve a threading issue in kojira 2014-10-17 10:47:56 -04:00
Mike McLean
e9481f6d44 remove debug line 2014-10-16 14:57:25 -04:00
Mike McLean
07d1eb8109 use TLSv1. https://bugzilla.redhat.com/show_bug.cgi?id=1152823 2014-10-16 14:53:14 -04:00
Mike McLean
f6f7299dc2 list-history --watch 2014-10-16 14:53:14 -04:00
Mike McLean
ee3a25457b don't _forget subsession when used by a thread 2014-10-16 14:50:21 -04:00
Mike McLean
8e4deac955 log out subsession if thread dies 2014-10-16 14:43:36 -04:00
Mike McLean
b86e4fec54 log exceptions in currency checker thread 2014-10-16 14:43:36 -04:00
Mike McLean
c58e36eb72 restart currency checker if it dies 2014-10-16 14:43:36 -04:00
Mike McLean
9b2baee016 remove multicall from currencyChecker in kojira 2014-10-16 14:43:36 -04:00
Mike McLean
a045d4465e kojira: check repo currency in separate thread 2014-10-16 14:43:36 -04:00
Mike McLean
eb2f6065b1 ignore indirectionimage tasks in source test handler 2014-10-09 16:44:20 -04:00
Mike McLean
8825cdaff7 older python does not understand try..except..finally 2014-10-09 16:40:11 -04:00
Ian McLeod
9c9a61a2c1 opts is not optional in the indirection handler 2014-10-09 16:40:11 -04:00
Ian McLeod
7a9bb7b5fc small fix regarding location of final image 2014-10-09 16:40:11 -04:00
Ian McLeod
ffabf5eeb1 missing var in action function arguments 2014-10-09 16:40:11 -04:00
Ian McLeod
987fb03cee Initial attempt at a koji task based on the Indirection plugin
This creates a new koji task type and CLI option called
image-build-indirection

This task builds an output image using the Image Factory "Indirection"
plugin

It takes as its input two already built images, either as explicit
task numbers of NVR and arch.  It also requires a modified TDL
file as described in the Image Factory source.

The two input images are referred to as the base_image, which contains
content to be turned into another output image, and the utility_image,
which is a full system that will be booted to do the transformation.

The TDL, or "indirection_template" describes the tasks to be performed
inside of the running base image to generate the output.

This feature has the potential to build all of the following types of
images:

Disk Image Builder disk images, built with DIB elements using DIB itself
Live ISO images created using Live Media Creator
Docker layered images built using an arbitrary Docker version and a
Docker base image already built inside of koji
2014-10-09 16:40:07 -04:00
Mike McLean
3461af8475 sanity check requested arches for image builds 2014-09-24 12:09:57 -04:00