Skip to content
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

Make tests a bit less leaky #91

Merged
merged 2 commits into from
Jun 24, 2016
Merged

Conversation

chriskuehl
Copy link
Contributor

We have a problem on our Jenkins CI where sometimes the builddeb-docker stage hangs indefinitely and leaves processes running taking up CPU:

21:51:21 make[1]: Entering directory '/mnt'
21:51:21 find . -name '*.pyc' -delete
21:51:21 find . -name '__pycache__' -delete
21:51:21 PATH=.:$PATH py.test tests/
21:51:21 ============================= test session starts ==============================
21:51:21 platform linux2 -- Python 2.7.12rc1, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
21:51:21 rootdir: /mnt, inifile: pytest.ini
21:51:21 collected 173 items
21:51:21 
23:50:07 tests/child_processes_test.py .............Build timed out (after 120 minutes). Marking the build as aborted.

We don't know exactly what tests are being failed to investigate further, so let's solve the immediate problem by adding a timeout (should prevent leaking containers) and make py.test verbose so we can see what test is failing to try to investigate further.

@asottile asottile merged commit 78ee446 into Yelp:master Jun 24, 2016
@bukzor
Copy link
Contributor

bukzor commented Jun 24, 2016

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants