BuildBot step to run tests from package #348

Closed
opened 2008-03-13 01:49:31 +00:00 by zooko · 5 comments

Patches that change packaging can't be conveniently tested by trial tests inside the package. A better way to test such things is to have a BuildStep which, after a package has been built (such as a source tarball or a py2exe or py2app package), it installs that package and then runs the unit tests from the version thus installed.

This would help test patches like #335 (OSError when trying to access !http://localhost:8123/provisioning/), it would catch errors in the build process which cause packages to be built incorrectly (such as the one that distracted several of us from more useful labor Monday morning), and if implemented in re-usable BuildBot code, it would help test similar issues in other projects such as Nevow #2527, Nevow #857, pyflakes #2535, and twisted #2308.

Patches that change packaging can't be conveniently tested by trial tests inside the package. A better way to test such things is to have a BuildStep which, after a package has been built (such as a source tarball or a py2exe or py2app package), it installs that package and then runs the unit tests from the version thus installed. This would help test patches like #335 (OSError when trying to access !<http://localhost:8123/provisioning/>), it would catch errors in the build process which cause packages to be built incorrectly (such as the one that distracted several of us from more useful labor Monday morning), and if implemented in re-usable BuildBot code, it would help test similar issues in other projects such as [Nevow #2527](http://divmod.org/trac/ticket/2527), [Nevow #857](http://divmod.org/trac/ticket/857), [pyflakes #2535](http://divmod.org/trac/ticket/2535), and [twisted #2308](http://twistedmatrix.com/trac/ticket/2308).
zooko added the
dev-infrastructure
major
defect
0.8.0
labels 2008-03-13 01:49:31 +00:00
zooko added this to the eventually milestone 2008-03-13 01:49:31 +00:00
zooko added
enhancement
and removed
defect
labels 2008-03-13 17:53:23 +00:00
Author

I added a ticket on buildbot #199 for this.

I added a ticket on [buildbot #199](http://buildbot.net/trac/ticket/199) for this.
Author

I updated buildbot #199 to suggest installing into a local, newly created subdirectory and testing that install by setting the PYTHONPATH to point to that subdirectory.

I updated [buildbot #199](http://buildbot.net/trac/ticket/199) to suggest installing into a local, newly created subdirectory and testing that install by setting the PYTHONPATH to point to that subdirectory.
warner modified the milestone from eventually to undecided 2008-06-01 20:43:52 +00:00
Author

Nevow #2630 (installation of Nevow doesn't have automated tests) has been fixed -- the Nevow buildbot now tests installation of Nevow. We could do similarly for Tahoe.

[Nevow #2630 (installation of Nevow doesn't have automated tests)](http://divmod.org/trac/ticket/2630) has been fixed -- the Nevow buildbot now tests installation of Nevow. We could do similarly for Tahoe.
Author

See also #434 (automate testing of installation) which is perhaps going to be fixed by the same patch that fixes this ticket -- if that patch makes it so that the buildbot both installs the package and runs the unit tests from the installed package.

See also #434 (automate testing of installation) which is perhaps going to be fixed by the same patch that fixes this ticket -- if that patch makes it so that the buildbot both installs the package and runs the unit tests from the installed package.
Author

Chris has done this!

Chris has done this!
zooko added the
fixed
label 2009-01-23 22:51:31 +00:00
zooko closed this issue 2009-01-23 22:51:31 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#348
No description provided.