Commit graph

1675 commits

Author SHA1 Message Date
Mike McLean
0e66cc71ff migration doc for 1.10 2015-07-14 23:37:07 -04:00
Mike McLean
7c527d7d08 schema update script for 1.10 2015-07-14 23:37:07 -04:00
Mathieu Bridon
4de27c52de Don't retry on SSL failures
With the current code, trying to SSL-login with a bad certificate will
just make it look like the client code is hanging.

That's because it tries and tries again, silently, until it reaches it's
maximum retry limit.

But in the case of an SSL error, such as an expired client cert, there's
really no point in retrying.
2015-07-10 12:51:08 -05:00
Mathieu Bridon
8097ffce7b runroot: Avoid squashing path components with os.path.join
Although this is often a surprising behaviour, the Python documentation
is quite clear on this:

    If a component is an absolute path, all previous components are
    thrown away and joining continues from the absolute path component.

    https://docs.python.org/2/library/os.path.html#os.path.join

That means we need to ensure that we don't end up in this case.
2015-07-10 12:34:32 -05:00
Mike McLean
f426fdb05d show tag options in web ui 2015-06-24 09:46:16 -04:00
Mike McLean
0fb670598b show tag_extra in cli list-history 2015-06-24 09:46:16 -04:00
Mike McLean
9c8832f3c1 show/edit tag extra options in cli 2015-06-24 09:46:15 -04:00
Mike McLean
a0285163b5 honor tag['extra']['mock.package_manager'] 2015-06-24 09:46:15 -04:00
Mike McLean
ba7eb75886 initial support for tag extra options
tag_extra table in schema
report tag extras in taginfo and buildconfig
2015-06-24 09:46:15 -04:00
Mike McLean
22f720f085 download-logs: print a message when there are no logs to download
see: https://bugzilla.redhat.com/show_bug.cgi?id=1232916
2015-06-24 09:40:54 -04:00
Mike McLean
dee860ae44 capture mock output even if it exits immediately 2015-06-24 09:40:54 -04:00
Mike McLean
e8a30591fa Merge remote-tracking branch 'origin' into cgen 2015-06-18 14:26:18 -04:00
Dennis Gilmore
9c69602a65 Add systemd unit file for kojira
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Zbigniew Jędrzejewski-Szmek
7c435492cf Add systemd unit file for kojivmd
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Zbigniew Jędrzejewski-Szmek
10a75fc22f Add systemd unit file for kojid
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Dennis Gilmore
3260dbebdb schema: add missing image channel from the default schema
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Brian Stinson
d3eee76ce7 inject the url of the install tree into the kickstart used for generating images 2015-06-06 18:02:31 -04:00
Mike McLean
554a244876 Avoid errors logging anonymous retries (ticket 317)
see: https://fedorahosted.org/koji/ticket/317
2015-06-06 17:39:01 -04:00
Mike McLean
f68099f584 fix more #pylint issues 2015-06-06 17:38:52 -04:00
Mike McLean
1929eb320f handle symlinks in BuildMavenTask._zip_dir() 2015-06-06 17:38:45 -04:00
Ralph Bean
8ec72226d4 Make the templated footer configurable.
We ran into a problem[1] where old footers would cause syntax errors when
interpreted as templates.  This makes that behavior configurable and defaults
to the old literal interpretation.

[1] https://lists.fedoraproject.org/pipermail/buildsys/2015-May/004751.html
2015-06-06 16:34:07 -04:00
Ralph Bean
cf96a3f037 Catch the case where the runroot plugin is not installed. 2015-06-06 16:22:04 -04:00
Daniel Mach
a76a125e9a Add CLI for runroot plugin. 2015-06-06 16:22:04 -04:00
Ralph Bean
e8fdc88a0b Add the hub plugin that accompanies the kojid runroot plugin. 2015-06-06 16:22:04 -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
Ralph Bean
837c070127 (koji-web) Treat extra-footer as a template.
The code previously would look for a file called extra-footer.html that a koji
admin could override to put some nice extra footer on their koji-web page.
If that file existed, koji-web would read it in verbatim and write it to the
bottom of each served page.

This change enhances that behavior and treats the extra-footer.html file as a
Cheetah template.  This way, a koji admin could specify some conditional logic
in the extra-footer file to display this or that thing depending on the dynamic
contents of the page being served.

Note that this is backwards compatible.  Static html extra-footer files
already out there in the wild will be interpreted as Cheetah templates and
should be included seamlessly.
2015-05-07 13:14:48 -05:00
Ralph Bean
c738175d4a (koji-web) Markup scratch builds.
With this we can markup scratch builds, deemphasize them, etc.
2015-05-07 13:14:48 -05:00
Ralph Bean
e5466860ed (koji-web) Add user-specific css classes.
This will allow us in Fedora to style system account names differently.  For
instance, we can markup the name 'koschei' (our continuous integration bot).
2015-05-07 13:14:48 -05:00
Jay Greguske
865f93c1e2 add vhd/vpc support 2015-05-06 15:22:02 -04:00
Mike McLean
9867818a32 fix several small mistakes in the cgen modifications 2015-05-04 15:03:41 -04:00
Dennis Gilmore
108475b6a3 schema: add missiing raw.xz archive type
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-05-04 12:46:45 -04:00
Mike Bonnet
6e480eed1c use the same name for repository and pluginRepository entries in settings.xml
This is required because of http://jira.codehaus.org/browse/MNG-5475
2015-05-04 12:44:09 -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 Bonnet
3283df7f2c add id and parent to the headers of TaskStateChange messages 2015-05-04 12:38:07 -04:00
Mike McLean
91bae287e0 handle callnum=None (anon_retry) in retry error messages 2015-05-04 12:15:20 -04:00
Mike McLean
9199fa3e54 typos 2015-04-27 21:57:58 -04:00
Mike McLean
1ccd2209f4 clean up cgen schema update script 2015-04-27 21:57:16 -04:00
Mike McLean
1f4ca498bd Getting cgen schema update script to working state 2015-04-27 21:57:14 -04:00
Mike McLean
7645098543 schema-update-cgen.sql; fix buildroot_extra_info primary key 2015-04-27 15:42:16 -04:00