Commit graph

525 commits

Author SHA1 Message Date
Mike McLean
e8a30591fa Merge remote-tracking branch 'origin' into cgen 2015-06-18 14:26:18 -04:00
Mike McLean
f68099f584 fix more #pylint issues 2015-06-06 17:38:52 -04:00
Mike Bonnet
d0c8088e59 handle tasks with arch-specific and noarch subtasks (e.g. kernel) 2015-06-05 10:00:24 -04:00
Mike McLean
d70477696a More query fixes 2015-05-21 12:48:40 -04:00
Mike McLean
1bf69b7c7e add a note about FollowSymLinks in hub httpd conf 2015-05-15 13:03:20 -04:00
Mathieu Bridon
27aa2f51e3 files: Tell Apache to let clients follow symlinks
This is necessary for builds to succeed, as they will try to access URLs
like this:

  http://koji.fr/kojifiles/repos/$tag/$repoid/$arch/toplink/packages/...

And on the filesystem, that "toplink" folder is in fact a symlink to the
kojifiles root.
2015-05-15 12:51:56 -04:00
Mike McLean
28dc38a750 more #pylint -- dangerous-default-value 2015-05-13 16:39:54 -04:00
Mike McLean
82f6390957 fix docstring #pylint 2015-05-13 16:39:53 -04:00
Mike McLean
5e09ebab48 fix comment #pylint 2015-05-13 16:39:53 -04:00
Mike McLean
a6019a92d7 import no longer used #pylint 2015-05-13 16:39:53 -04:00
Mike McLean
23630cade8 actually raise intended exceptions #pylint 2015-05-13 16:39:53 -04:00
Mike McLean
5dc14ced0b fix useless-else-on-loop warnings #pylint 2015-05-13 16:39:53 -04:00
Mike McLean
815098643d fix a couple old typos found by pylint 2015-05-13 16:39:53 -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 McLean
9867818a32 fix several small mistakes in the cgen modifications 2015-05-04 15:03:41 -04:00
Mike Bonnet
381645a453 mergeScratch(): import rpms from a scratch build into an existing build
The mergeScratch() method allows importing rpms built by a scratch build into an existing build, if that build
did not produce rpms matching the arch of the scratch build.  This is useful for bootstrapping a new arch into
existing builds, and avoiding a mass-rebuild to add arch support.
2015-05-04 12:38:11 -04:00
Mike McLean
9199fa3e54 typos 2015-04-27 21:57:58 -04:00
Mike McLean
391a6194cc fix arch field in query_buildroots 2015-04-16 18:18:24 -04:00
Mike McLean
ec79d02360 more cgen porting 2015-04-16 18:14:09 -04:00
Mike McLean
9b3a7deea7 adapt list_archives() for cgen schema 2015-04-16 16:45:37 -04:00
Mike McLean
bd4aa00fdd adapt list_rpms() for cgen schema 2015-04-16 16:44:55 -04:00
Mike McLean
6401cb7a27 update query_buildroots() for cgen 2015-04-16 16:00:02 -04:00
Mike McLean
5ff5a760d9 add imageID arg to list_archives() 2015-04-16 15:38:55 -04:00
Mike McLean
cce59398be fix repo_references() for cgen schema 2015-04-16 15:32:43 -04:00
Mike McLean
be06604300 include image listings in build_references check 2015-04-16 15:12:30 -04:00
Mike McLean
e1f928af6b cg br schema pass 1 2015-04-09 15:29:16 -04:00
Mike McLean
6ba041839b package hub.conf.d and web.conf.d 2015-03-31 17:34:16 -04:00
Mike McLean
cdeb212ffe add/use strict option in find_build_id 2015-03-10 15:16:55 -04:00
Mike McLean
f939cff2f3 preserve latest behavior for non-integer, non-boolean "true" values, and update comment. 2015-03-10 14:32:08 -04:00
Ralph Bean
833a575ba5 Allow specifying an 'int' for 'latest'.
This should preserve the pre-existing behavior, where if latest is set
to True, only the latest builds in a tag are returned, and if latest is
set to False, all the builds in a tag are returned.

The new behavior is a kind of middleground, where you can set latest=3,
and only the latest three builds for each package in a tag are returned.

We want this ultimately for mashing rawhide so we can create a downgrade
path for people if new builds break them.
https://bugzilla.redhat.com/show_bug.cgi?id=1082830

Discussed and revised:
https://lists.fedoraproject.org/pipermail/buildsys/2015-February/004541.html
2015-03-10 14:32:08 -04:00
Mike McLean
721f350dd7 slightly better errors for host auth failures 2015-03-10 14:32:08 -04: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
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
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