Commit graph

291 commits

Author SHA1 Message Date
Mike McLean
b63e8e1eae attempt to fix web display 2015-09-29 15:53:46 -04:00
Mike McLean
875b24306e don't omit debuginfos on buildinfo page 2015-08-06 14:31:07 -04:00
Dennis Gilmore
4d296f11be Check task method before trying to determine "scratch" status.
reabsed patch from https://lists.fedoraproject.org/pipermail/buildsys/2015-May/004685.html

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-07-23 21:43:01 -05:00
Mike McLean
f426fdb05d show tag options in web ui 2015-06-24 09:46:16 -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
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
Mike McLean
6ba041839b package hub.conf.d and web.conf.d 2015-03-31 17:34:16 -04:00
Mike Bonnet
ac09ab2b49 taskinfo.chtml: missing line break 2015-02-20 13:56:13 -05:00
Mike McLean
8d3166f13f Support conf.d in kojihub and kojiweb 2015-02-04 05:33:34 -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 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
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
689ace685d handle display of chainmaven tasks 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 McLean
dca0c8aa06 strip search terms in web ui 2014-05-08 12:29:57 -04:00
Jay Greguske
1bf077766f fix parameter formating for image 2014-01-10 15:40:11 -05:00
Jay Greguske
dce981825a add image tasks to method filter 2014-01-10 15:40:11 -05:00
Mike McLean
723f6f4d06 raise AuthError if Secret is needed and not set 2013-10-22 07:03:50 -04:00
Mike McLean
cf01c000a8 use wsgi.url_scheme in kojiweb too 2013-10-22 07:03:47 -04:00
Jay Greguske
cc12b9ff99 update taskinfo page for imageBuilds 2013-09-25 17:11:07 -04:00
Anthony Messina
c901a88530 add the KrbService option to web.conf 2013-09-18 15:20:35 -04:00
Mike McLean
cb39845ed3 show a prettier error page when the hub is offline 2013-09-12 15:59:32 -04:00
Mike McLean
ef174d0212 a little more room to edit host comments 2013-03-25 15:07:26 -04: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
0f579048bb handle both old and new signatures for image tasks 2012-11-29 16:53:06 -05:00
Mike McLean
cadb5209c0 rework PathInfo handlers for images 2012-11-29 16:53:06 -05:00
Jay Greguske
7666033147 fix kojiweb regressions after merge 2012-11-29 16:53:06 -05:00
Jay Greguske
80e5abc273 sort builds by image in kojiweb 2012-11-29 16:53:05 -05:00
Jay Greguske
343b470157 add archiveinfo link for image contents 2012-11-29 16:53:05 -05:00
Jay Greguske
0dd570d1dc fix buildinfo and archiveinfo pages 2012-11-29 16:53:05 -05:00
Jay Greguske
dc1031ae96 fix taskinfo page 2012-11-29 16:53:05 -05:00
Mike McLean
08ef3c026d fixing form handling 2012-08-20 11:09:25 -04:00
Mike McLean
626842792d environ['SERVER_PORT'] is a string value 2012-06-14 15:33:08 -04:00
Mike McLean
86abf03fcb don't use .get() with kojiweb options. It is no longer needed. 2012-05-31 21:49:09 -04:00
Mike McLean
c06f97c181 allow setting tag permission to none in webui (ticket#219) 2012-05-22 18:17:56 -04:00
Mike Bonnet
6563265e62 document.height is no longer supported in modern browsers 2012-05-11 21:29:51 -04:00
Mike McLean
6123acaac1 Maintain old PythonDebug behavior under mod_python 2012-05-11 16:02:32 -04:00
Mike McLean
6fabbd378e adjust web.conf logic 2012-05-11 12:49:08 -04:00
Mike McLean
54c0ed8438 Support wsgi in koji-hub and koji-web
- mod_python still supported, but deprecated
 - mod_wsgi is the default
 - koji-web now configured via web.conf
 - new wsgi-friendly publisher for koji-web
 - koji-web now has logging
2012-05-10 17:27:40 -04:00
Mike McLean
fa0b2cbbb6 make extra nav and footer follow theme 2012-01-23 17:02:34 -05:00
Mike McLean
5b9f515250 new approach for web themes 2012-01-21 20:45:02 -05:00
Mike Bonnet
b2edd9011c add "koji wrapper-rpm --create-build" which creates a new build to contain the wrapper rpms 2011-12-12 15:36:07 -05:00
Mike Bonnet
7449f5a619 check that _session is an attribute of req 2011-07-19 15:09:29 -04:00
Mike McLean
bee3bd6936 don't trap apache.SERVER_RETURN 2011-05-06 16:09:52 -04:00
Mike McLean
6ae8ee226a don't assume req._session 2011-05-06 16:09:52 -04:00
Anthony Towns
8a28e6de43 import additional local nav/footer code 2011-04-07 16:01:17 -04:00