My Launchpad Development Workflow Warts : HALP!
A few times during UDS, we've talked about setting up a Launchpad development environment. I think it'd be great if the community really got involved in making Launchpad better, and I don't think I'm alone on the Launchpad team thinking that. However, setting up the development environment is kinda scary. Among other things, the script that sets up a Launchpad development environment (rocketfuel-setup), deletes all postgres databases to set up its own, edits yours /etc/hosts and your apache configs, and adds some PPAs that may interfere with your system packages (although it's been a while since it did that to me.)
To combat this, and allow me to fart around on my system on the weekends without breaking my environment, I do all my development in chroot environment. This means Launchpad can eat my system, and my system can't eat my Launchpad. I've been working this way for almost 8 months now, and have found it to be much better than sharing spaces.
The one thing that I have had a problem with is the relationship between my desktop and the chroot. I figured that maybe I'd reach out to the community and see if they can recommend a path for putting some Compound W for some development warts I have.
When I start up my computer to work on Launchpad, I open two terminals and a gvim. Both terminals become chroot terminals by my typing schroot which then promptly get navigated to have my current branch's tree as the working directory. This means that these terminals are now utterly useless for anything but work in the chroot, which can be good for focus, but if I need to do anything else, I have to open another terminal to do it. Having lots of terminal windows open is generally a bad thing for focus as well.
Also, I run lots of Windmill tests. Windmill needs a browser, which needs an X display. I've been using Xnest -ac :1 &!; metacity &! outside of the chroot, and then setting export DISPLAY=:1 in my chroot in order to get X forwarded over. This is really sub-optimal, since it's a lot of crap to set up to run Windmill (which in and of itself is a lot of other crap to set up).
I would love nothing more than to modify rocketfuel-setup to be created in a chroot if I could find an easy way to work outside the chroot and just forward certain commands over to the chroot. I'm sure some server sysadmin has a great method for doing this. If you have a solution, a bribe can be arranged. If you're at UDS right now, even better.
