[tahoe-dev] [tahoe-lafs] #1248: refactor buildmaster Test classes and build_helper scripts
tahoe-lafs
trac at tahoe-lafs.org
Thu Nov 4 01:36:41 UTC 2010
#1248: refactor buildmaster Test classes and build_helper scripts
--------------------------------------------+-------------------------------
Reporter: davidsarah | Owner: somebody
Type: defect | Status: new
Priority: minor | Milestone: 1.9.0
Component: dev-infrastructure | Version: 1.8.0
Keywords: cleanup buildbot build-helpers | Launchpad Bug:
--------------------------------------------+-------------------------------
There is some near-duplicated code in the buildmaster's {{{TestFromEgg}}}
and {{{TestFromPrefixDir}}} classes (in {{{bbsupport.py}}}). There is also
duplication between [source:setup.py],
[source:misc/build_helpers/run_trial.py], and some of the tests in
[source:src/allmydata/test/test_runner.py], for things like setting up
{{{PYTHONPATH}}}, getting the Tahoe-LAFS version, and checking that we are
running code from the right directory.
Code in the buildmaster is more difficult to debug than code in the Tahoe-
LAFS distribution; changes require a buildmaster restart to take effect,
and interfere with the reproducibility of builds. So we should simplify
these classes by having them just call scripts (or a single script with
different arguments) in [source:misc/build_helpers].
The reason why the code that is already in the distribution isn't better-
factored, is probably that in each case we need to run it before importing
any non-stdlib modules. It seems like there should be some way to work
around that.
--
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1248>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-dev
mailing list