-
Notifications
You must be signed in to change notification settings - Fork 648
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
spurious test failures #556
Comments
@hainm reported that a potentially similar error was reported in frescobaldi/frescobaldi#554 and frescobaldi/frescobaldi#776 although no solution was presented apart from the hint of "problems when creating a tempdir inside a tempdir". |
If we've accidentally nested tempdirs (calling Tempdir while inside a Tempdir decorated class?) that might be a way for that to happeb |
But the errors seem to be random and I can't find such a nested pattern in the code where it fails. |
@orbeckst should buy me a beer.
will cause error because someone went to temp folder in test_helanal.py but has never come back to working dir.
|
it's better to always use contextmanager. |
On 2 Dec, 2015, at 16:53, Hai Nguyen wrote:
I just heard from @dldotson and @richardjgowers that this fixes the problem: I am very happy, so yes: I will gladly buy you a 🍺 - find me at ACS (or find @dldotson or @slseyler at BPS who can buy you a beer in my name ;-) ). |
I added a note to ban (And yes, the wiki page on testing needs a major clean-up.) |
#558 should take care of all of this (and of course we should eliminate |
@orbeckst I am leaving |
- use tempdir.in_tempdir() in test_hole.py - added Hai Nguyen to AUTHORS and sphinx/source/conf.py (for #558)
Tests started failing somewhat randomly as mentioned in the post mdnalysis-devel: spurious test failures
Without reliable unit tests, our development workflow is severely hampered. This needs to be fixed but I have no idea how.
Details
See https://travis-ci.org/MDAnalysis/mdanalysis/builds/94270229 for an example. All failures are in the coordinate tests and are of the form
and the common theme appears to be tempdir.in_tempdir().
Initial discussion
Initial reports/discussion about these test failures started at #551 (comment) and should continue here.
On 1 Dec, 2015, at 17:10, @hainm wrote:
Maybe we should try
--processes=1
just to avoid any opportunity for race conditions. It is suspicious that tempdir.in_tempdir() appears to be always involved.python test_netcdf.py
does not do anything../mda_nosetests coordinates/test_netcdf.py
works fine in serial or parallel. The whole 3300+ tests pass locally, with up to 24 threads... most of the time. When it fails for a few tests then these failures are not necessarily the same. See #551 (comment) .The text was updated successfully, but these errors were encountered: