Quantcast

Django test suite taking > 2 hours, gets stuck, have to Ctrl-C

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Django test suite taking > 2 hours, gets stuck, have to Ctrl-C

django-developers mailing list
Hi, I am trying to contribute my first patch (see ticket 28105).

I am following the instructions on https://docs.djangoproject.com/en/1.11/intro/contributing/, but the test suite just gets stuck after about 11K-12K tests (depending on version and python version).

Example: Ran 11904 tests in 2963.657s (runtests, Python 2, after Ctrl-C)


I have actually let the tests run overnight, but no result.


I have tried both runtests and tox, Python 2 and Python 3, master branch and stable/1.11.x.


My patch and tests are about done, but I am really stuck trying to get the test suite to work properly.


My hardware is a new MacBook Pro with several Django and Python projects running on it (including tests). I use pyenv and brew to manage my python environments.


Any help in getting the test suite to run would be greatly appreciated.


Thanks.


Dylan

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/907c23ac-2086-41ce-b2cb-4ca171ff4247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Django test suite taking > 2 hours, gets stuck, have to Ctrl-C

Collin Anderson-2
Hi Dylan,

Was there a traceback when you pressed ctrl+c? That might show where it's getting stuck.

You could try using --parallel=1 to disable multi-process which might also give you some more information.

(And does the test suite run fine without your patch? :)

I assume you're testing using the sqlite database?

Good luck,
Collin


On Sat, Apr 22, 2017 at 1:34 AM, 'Dylan Verheul' via Django developers (Contributions to Django itself) <[hidden email]> wrote:
Hi, I am trying to contribute my first patch (see ticket 28105).

I am following the instructions on https://docs.djangoproject.com/en/1.11/intro/contributing/, but the test suite just gets stuck after about 11K-12K tests (depending on version and python version).

Example: Ran 11904 tests in 2963.657s (runtests, Python 2, after Ctrl-C)


I have actually let the tests run overnight, but no result.


I have tried both runtests and tox, Python 2 and Python 3, master branch and stable/1.11.x.


My patch and tests are about done, but I am really stuck trying to get the test suite to work properly.


My hardware is a new MacBook Pro with several Django and Python projects running on it (including tests). I use pyenv and brew to manage my python environments.


Any help in getting the test suite to run would be greatly appreciated.


Thanks.


Dylan

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/907c23ac-2086-41ce-b2cb-4ca171ff4247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFO84S66xUis_XqxRy-iWoz%2Bp9Lcidtu991qnuC36Lca_61GoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Django test suite taking > 2 hours, gets stuck, have to Ctrl-C

Josh Smeaton
While it's important to figure out the cause of the hang (and the horrendous runtime - 2 hours is far too long), in future you could try using the vagrant image https://github.com/django/django-box to run your tests. It comes loaded with all supported python versions and databases (except Oracle), which should remove most issues related to environment and packages.

Collin's debugging suggestions are good. It'll be interesting to see where the tests are hanging for you. Can I also suggest running them with -v 2 or -v 3 to get a printout of which tests have been run and where they're stopping?

On Sunday, 23 April 2017 00:09:42 UTC+10, Collin Anderson wrote:
Hi Dylan,

Was there a traceback when you pressed ctrl+c? That might show where it's getting stuck.

You could try using --parallel=1 to disable multi-process which might also give you some more information.

(And does the test suite run fine without your patch? :)

I assume you're testing using the sqlite database?

Good luck,
Collin


On Sat, Apr 22, 2017 at 1:34 AM, 'Dylan Verheul' via Django developers (Contributions to Django itself) <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="o-kNINjWBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django-d...@googlegroups.com> wrote:
Hi, I am trying to contribute my first patch (see ticket 28105).

I am following the instructions on <a href="https://docs.djangoproject.com/en/1.11/intro/contributing/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.djangoproject.com%2Fen%2F1.11%2Fintro%2Fcontributing%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGf-L3e1PyQ5mKEtsirYFcwZv5nWQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.djangoproject.com%2Fen%2F1.11%2Fintro%2Fcontributing%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGf-L3e1PyQ5mKEtsirYFcwZv5nWQ&#39;;return true;">https://docs.djangoproject.com/en/1.11/intro/contributing/, but the test suite just gets stuck after about 11K-12K tests (depending on version and python version).

Example: Ran 11904 tests in 2963.657s (runtests, Python 2, after Ctrl-C)


I have actually let the tests run overnight, but no result.


I have tried both runtests and tox, Python 2 and Python 3, master branch and stable/1.11.x.


My patch and tests are about done, but I am really stuck trying to get the test suite to work properly.


My hardware is a new MacBook Pro with several Django and Python projects running on it (including tests). I use pyenv and brew to manage my python environments.


Any help in getting the test suite to run would be greatly appreciated.


Thanks.


Dylan

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="o-kNINjWBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django-develop...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="o-kNINjWBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">django-d...@googlegroups.com.
Visit this group at <a href="https://groups.google.com/group/django-developers" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/django-developers&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/django-developers&#39;;return true;">https://groups.google.com/group/django-developers.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/django-developers/907c23ac-2086-41ce-b2cb-4ca171ff4247%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/django-developers/907c23ac-2086-41ce-b2cb-4ca171ff4247%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/django-developers/907c23ac-2086-41ce-b2cb-4ca171ff4247%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/django-developers/907c23ac-2086-41ce-b2cb-4ca171ff4247%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/3a1fd914-4882-4a14-b7b6-614234508b0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Django test suite taking > 2 hours, gets stuck, have to Ctrl-C

Claude Paroz
In reply to this post by django-developers mailing list
This might also be https://code.djangoproject.com/ticket/27086

Claude

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/fc474052-5eeb-4a15-bc86-c51d67fda2bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...