Ticket #162 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

make public_html directory configurable

Reported by: dustin Owned by: dustin
Priority: minor Milestone: 0.7.9
Version: 0.7.7 Keywords:
Cc: ijon

Description

I'm not sure if I'm going to use this, but it seems like it will be generally useful. It adds a public_html= option to the WebStatus? constructor, allowing the user to configure the web directory to something other than a subdirectory of the basedir, if desired. I'm using this to serve html out of a subdirectory of our svn tree, but I can see that others might use it to serve several buildmasters out of the same HTML tree, for example.

Attachments

pubhtml.patch Download (4.3 KB) - added by dustin 5 years ago.
public_html.patch
webstatus-public-html-default.patch Download (518 bytes) - added by ijon 5 years ago.
adds back default value of public_html

Change History

Changed 5 years ago by dustin

public_html.patch

comment:1 Changed 5 years ago by dustin

  • Owner set to dustin

I need to add some documentation to this :)

comment:2 Changed 5 years ago by warner

what about using a symlink? It isn't a bad feature, per se, but I'd like to avoid adding options that aren't really going to be used.

comment:3 Changed 5 years ago by dustin

The symlink is awkward, because it has to be set up *after* the "create" operation is complete, and thus removes that aspect of the configuration from master.cfg.

I use lots of "local" installations of our buildbot config for various testing purposes, so this becomes important for my purposes. I don't think it adds a significant amount of additional complexity..

Added in my repo as #162:pubhtml.patch

comment:4 Changed 5 years ago by dustin

  • Status changed from new to closed
  • Resolution set to fixed

comment:5 Changed 5 years ago by ijon

  • Status changed from closed to reopened
  • Version changed from 0.7.6 to 0.7.7
  • Resolution fixed deleted

This breaks my buildbot installation (on upgrade from 0.7.6+dustin-... to buildbot-0.7.7-dustin-20080701) -- because WebStatus now can't work without explicit specification of public_html parameter.

Changed 5 years ago by ijon

adds back default value of public_html

comment:6 Changed 5 years ago by ijon

  • Cc ijon added

comment:7 Changed 5 years ago by dustin

This works too:

diff -rN -u old-dustin/buildbot/status/web/baseweb.py new-dustin/buildbot/status/web/baseweb.py
--- old-dustin/buildbot/status/web/baseweb.py   2008-07-07 11:55:30.000000000 -0400
+++ new-dustin/buildbot/status/web/baseweb.py   2008-07-07 11:55:30.000000000 -0400
@@ -360,7 +360,7 @@
     # all the changes).
 
     def __init__(self, http_port=None, distrib_port=None, allowForce=False,
-                       public_html=None):
+                       public_html="public_html"):
         """Run a web server that provides Buildbot status.
 
         @type  http_port: int or L{twisted.application.strports} string

sorry about that!

This is in the devel repository, and I've built a new tarball.

comment:8 Changed 5 years ago by dustin

  • Status changed from reopened to closed
  • Resolution set to fixed

comment:9 Changed 5 years ago by warner

  • Milestone changed from undecided to 0.7.9
Note: See TracTickets for help on using tickets.