GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
since a few days, when i run django-jenkins i get the error
OSError: [Errno 12] Cannot allocate memory
even if my tests pass.
the complete error (from jenkins) is here https://gist.github.com/apelliciari/5106439
In my test i have some LiveServerTestCase with Selenium.
Searching for the error, i've found these
Hope they are useful, unfortunately my knowledge of python/unix is not so deep, and i can't grok how to fix it.
Is there a way to run test avoiding the forks? I don't care if they take more time.
not a django-jenkins issue
why not? it's caused by django-jenkins, in some way!
I confirm. After tests are passing, django-jenkins (itself or its submodules) eated memory very much.
I run it with
JENKINS_TASKS = (
Job console output
[workspace] $ /bin/sh -xe /tmp/hudson6228443308562633942.sh
+ fab -f deploy/fabfile.py jenkins_test_project
Ran 99 tests in 66.175s
Fatal error: local() encountered an error (return code 137) while executing 'env/bin/python manage.py jenkins --settings=pwutils.settings.jenkins'
[localhost] local: env/bin/python manage.py jenkins --settings=pwutils.settings.jenkins
Build step 'Use builders from another project' marked build as failure
Recording test results
Skipping Cobertura coverage report as build was not UNSTABLE or better ...
Sending e-mails to: firstname.lastname@example.org
I try to render more debug output to console to watch what component gave memory
Also affected by this. Someone found a way to allow forkings?
You could try to enable/disable JENKINS_TASK one by one to see what cause an error.
If it is b/c of test runner you can try latest version from git, which does not keep links to TestCases and allow to garbage collect it.