-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dulwich tests fail when run from installed copy #223
Comments
On Mon, Sep 15, 2014 at 02:43:48PM -0700, kiilerix wrote:
Options I can think of: not ship test data and disable some tests in pip. Jelmer |
While it is ugly to have binaries and zip/tar files in a repository, I would say that the git repo pretty much is a "binary". Storing it in a zip would make it more clear that it is something static that shouldn't be changed ... and prevent searches and refactorings from finding it. |
On Wed, Sep 17, 2014 at 08:29:10AM -0700, kiilerix wrote:
|
Obviously, that was just my thoughts and it is completely up to you how you do it. Another thought, though: How come I saw this failure and it seems like nobody else had seen it before? I assume the problem also would show up when running the tests using this test data? So nobody ever ran the tests from pip? And probably also never from source? That might indicate that there is no reason to have the tests in pip ... or that having tests without having procedure for running them doesn't add much value. Which brings me to: I see the value in having tests in the source repo and in running them when/before creating the release tar ball and uploading to pip. I am however not convinced I see any value in having them installed by pip. Why should anybody ever run the tests from pip? (I am however not that familiar with pip and don't know what people ususally do.) |
On Wed, Sep 17, 2014 at 03:11:13PM -0700, kiilerix wrote:
The reason these files are not tarred up at the moment is simply convenience. :-) Having the actual bare git repositories there makes it easier to introspect when debugging issues with tests, it reduces the complexity in the tests (since there is no need to unpack) and it makes it possible to easily manipulate them with git itself rather than having to unpack, manipulate and repack. I'm also not a pip user, and I don't remember anybody mentioning that the tests fail. But, as you say, that is probably because nobody has run the tests after installing from pip. Personally I like the idea of having the tests available of software I build and install, since that allows me to verify that it is properly installed and that it works on my platform. As a distro developer I don't tend to install from source often, though. If the norm on pip is that tests are not installed, then I would be We'd need to make sure nobody actually relies on anything under Jelmer |
Fixed the running of the testsuite from installed dulwich. |
A fun self referencing problem:
Creating the info directory makes it work.
I guess it should create the dir if it is missing ... or skip locking.
The text was updated successfully, but these errors were encountered: