Commit graph

428 commits

Author SHA1 Message Date
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Mike McLean
eb2f6065b1 ignore indirectionimage tasks in source test handler 2014-10-09 16:44:20 -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
d5c80a254f defer g🅰️v no-match error until after we check ignores 2014-08-22 11:39:40 -04:00
Mike McLean
708ef0cb10 fix an issue with listTasks call 2014-08-21 16:41:45 -04:00
Mike McLean
2fa5a65e6e fix field handling in readTaggedRPMS 2014-08-21 15:56:15 -04:00
Mike McLean
82ace581be fix cursor name race condition 2014-08-01 20:42:19 -04:00
Mike Bonnet
abb44de383 maven-chain builds can override a G:A:V from the tag with a previous build in the chain, update the index accordingly 2014-07-31 20:50:34 -04:00
Mike McLean
61cc4a75d7 fix typo in updateMavenBuildRootList 2014-07-31 17:14:04 -04:00
Mike McLean
a27e913e04 log error when multiple builds found for a g🅰️v 2014-07-31 17:14:04 -04:00
Mike McLean
1e655cd096 log details on unknown maven file errors 2014-07-31 17:14:04 -04:00
Mike McLean
98cfe8b0a8 handle maven_tag_archives generator in updateMavenBuildRootList 2014-07-31 17:05:34 -04:00
Mike McLean
8622ce9f5f return a generator from maven_tag_archives 2014-07-31 17:05:34 -04:00
Mike McLean
f6048e3783 use pid in cursor name 2014-07-31 17:05:34 -04:00
Mike McLean
758919f617 QueryProcessor iteration refinements
skip cursor if limit < chunksize
avoid possibly volatile parameters during iteration
2014-07-31 17:05:34 -04:00
Mike McLean
1581a9603d rework repo_init for iterator efficiency 2014-07-31 17:05:34 -04:00
Mike McLean
2e40f17941 use iteration in readTaggedRPMS 2014-07-31 17:05:34 -04:00
Mike McLean
fde4e75da2 Use iterators for potentially large queries to reduce memory use 2014-07-31 17:05:34 -04:00
Mike Bonnet
ae1db8fb03 use SELECT ... FOR UPDATE in taskWaitCheck() because those rows may be updated in taskWait() 2014-06-13 11:23:38 -04:00
Mike Bonnet
a4d67a5cd5 support -SNAPSHOT versions in scratch builds, explicitly reject them in non-scratch builds 2014-06-13 11:23:38 -04:00
Mike Bonnet
e626fca4d9 support running a sequence of Maven builds in dependency order
The new "koji chainmaven" command allows Maven builds to be run in depdencency order,
without needing to wait for repo regens.  A config file specifies the parameters and
dependencies for each build in the sequence.  Each build is launched as soon as all
dependent builds are complete, and is able to reference the output of all of its
dependencies.  If the build source URL and parameters match the latest build of the
same package in the destination tag, the build will not be re-run.
2014-06-13 11:23:37 -04:00
Mike Bonnet
2961b71922 copy maven-metadata.xml to the output directory 2014-06-13 11:23:37 -04:00
Mike Bonnet
bc2e4c1dc9 remove unused argument from _generate_maven_metadata() 2014-06-13 11:23:37 -04:00
Mike Bonnet
701e0ca541 clean up repo_init() a bit 2014-06-13 11:23:37 -04:00
Mike McLean
a8f629b6c3 fix time opts in listTasks 2014-05-15 09:51:34 -04:00
Jay Greguske
5446047474 non-scratch image builds require --ksurl 2014-03-13 17:06:58 -04:00
Mike McLean
e9898a4802 fix bug in buildtag policy test 2014-01-20 16:51:59 -05:00
Jay Greguske
0fde5ba687 avoid int overflow in get_archive 2014-01-10 15:40:11 -05:00
Mike McLean
fd31732039 fix build notifications for image builds 2013-10-01 17:19:15 -04:00
Jay Greguske
798d03ccf9 email notifications last 2013-09-30 16:13:16 -04:00
Jay Greguske
e9ae4b4ab0 rename tasks, make getImagePackages more robust 2013-09-25 17:11:07 -04:00
Jay Greguske
752ec8da74 implement image-build tasks on the hub 2013-09-25 17:11:07 -04:00
Mike McLean
b44adf8707 fix handling of incl_pkgs/incl_reqs opts in getTagGroups 2013-09-20 10:45:22 -04:00
Mike McLean
4ae00ba556 host.evalPolicy call 2013-09-11 14:01:30 -04:00
Mike McLean
18f4148b5a typo in comment 2013-08-06 14:05:17 -04:00
Mike Bonnet
44a2f90a17 koji-gc: if the tag has the maven_include_all=True, calculate the order for Maven builds with respect to name-version rather than just package name 2013-06-25 15:21:47 -04:00
Mike Bonnet
b0c5e1ec92 koji-gc: move sorting and filtering into the database 2013-06-25 15:16:16 -04:00
Mike Bonnet
de6df9d4a1 list_archives(): handle when queryOpts is None 2013-03-06 15:27:27 -05:00
Mike McLean
d2b89b32e9 handle volumes in maven repos 2013-02-25 11:14:49 -05:00
Mike McLean
1c965ba3af include volume data in maven_tag_archives() return 2013-02-25 11:14:49 -05:00
Mike Bonnet
5540fb499b list_archives(): only encode ints when not counting 2013-02-22 08:50:14 -05:00
Mike Bonnet
32498443f4 repo_init(): rather than linking to each artifact from the Maven repo, link the version directory 2013-02-22 08:50:14 -05:00
Mike McLean
eaa43f8cbd fix integer overflow issue in checkUpload handler 2013-01-17 17:13:26 -05:00
Mike McLean
5d8331cd49 fix get_image_archive and web archiveinfo handler for non-images 2013-01-14 16:00:56 -05:00
Mike McLean
fcd7b57e39 fix writeSignedRPM signature 2013-01-14 16:00:56 -05:00
Mike McLean
ba8f5c9587 move permission check out of underlying write_signed_rpm call 2013-01-14 16:00:56 -05:00
Mike McLean
91c4a1cb37 no more archiveinfo.md5sum 2012-11-29 16:53:07 -05:00
Mike McLean
7b36248f02 encode large ints in list_archives 2012-11-29 16:53:07 -05:00
Mike McLean
555f6a898d use import time as completion time for imported images 2012-11-29 16:53:07 -05:00
Mike McLean
b36ab84aa7 get_next_release 2012-11-29 16:53:06 -05:00