Here is all that is required:
* a single wildcard entry in Apache configuration
* one or two lines in LocalSettings.php to pull a DB name from the
hostname/path/CLI parameters.
As for cleaning up resources to keep the machine from getting clogged,
it's very unlikely that your test wikis will fill up a
multi-hundred-gigabyte drive in the middle of a run. If you find that
they do, there's still no need to tie cleanup of any particular run to
any particular other run.
All you need to know is which runs have completed and can now be cleaned up.
I'd like to add some ideas to this thread that were discussed in the
Selenium meeting this morning. The basic plan we discussed (and I'm
sure I'll be corrected some on this) is as follows:
When a run begins, it registers itself with the wiki and gets a
session back. The wiki software, on creating the session, makes a new
run specific wiki using the wiki family method. The test will pass
both the session cookie, and a test type cookie, which will
dynamically configure the wiki as the tests run. When the run is
complete, it should notify the wiki that the test run is complete. The
wiki software will then destroy the session and the dynamically
created resources. If a run doesn't complete for some reason, a cron
can clean up resources that haven't been used in some appropriate
amount of time.
Respectfully,
Ryan Lane