Skip to content

Commit

Permalink
Merge pull request grpc#1728 from ctiller/i-will-survive
Browse files Browse the repository at this point in the history
Make Python fit within ulimit
  • Loading branch information
soltanmm committed May 23, 2015
2 parents a152b1c + 3a5390e commit bbfe7c9
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ env:
- CPPFLAGS=-I/tmp/prebuilt/include
- NUGET="mono nuget.exe"
matrix:
- CONFIG=opt TEST=sanity
- CONFIG=gcov TEST=c
- CONFIG=gcov TEST=c++
- CONFIG=opt TEST="c c++"
- CONFIG=opt TEST=node
- CONFIG=opt TEST=ruby
- CONFIG=opt TEST=python
- CONFIG=opt TEST=csharp
- USE_GCC=4.4 CONFIG=opt TEST=build
- CONFIG=opt TEST=sanity JOBS=1
- CONFIG=gcov TEST=c JOBS=16
- CONFIG=gcov TEST=c++ JOBS=16
- CONFIG=opt TEST="c c++" JOBS=16
- CONFIG=opt TEST=node JOBS=16
- CONFIG=opt TEST=ruby JOBS=16
- CONFIG=opt TEST=python JOBS=1
- CONFIG=opt TEST=csharp JOBS=16
- USE_GCC=4.4 CONFIG=opt TEST=build JOBS=16
script:
- rvm use $RUBY_VERSION
- gem install bundler
- ./tools/run_tests/prepare_travis.sh
- if [ ! -z "$USE_GCC" ] ; then export CC=gcc-$USE_GCC ; export CXX=g++-$USE_GCC ; fi
- ./tools/run_tests/run_tests.py -l $TEST -t -j 16 -c $CONFIG -s 4.0
- ./tools/run_tests/run_tests.py -l $TEST -t -j $JOBS -c $CONFIG -s 4.0
after_success:
- if [ "$CONFIG" = "gcov" ] ; then coveralls --exclude third_party --exclude gens --exclude test --exclude src/compiler -b. --gcov-options '\-p' ; fi
notifications:
Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/_adapter/_face_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

_TIMEOUT = 3
_MAXIMUM_TIMEOUT = 90
_MAXIMUM_POOL_SIZE = 400
_MAXIMUM_POOL_SIZE = 4


class FaceTestCase(test_case.FaceTestCase, coverage.BlockingCoverage):
Expand Down
4 changes: 2 additions & 2 deletions src/python/src/grpc/_adapter/_links_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def _transform_metadata(unused_metadata):
class RoundTripTest(unittest.TestCase):

def setUp(self):
self.fore_link_pool = logging_pool.pool(80)
self.rear_link_pool = logging_pool.pool(80)
self.fore_link_pool = logging_pool.pool(8)
self.rear_link_pool = logging_pool.pool(8)

def tearDown(self):
self.rear_link_pool.shutdown(wait=True)
Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/_adapter/_lonely_rear_link_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
class LonelyRearLinkTest(unittest.TestCase):

def setUp(self):
self.pool = logging_pool.pool(80)
self.pool = logging_pool.pool(8)

def tearDown(self):
self.pool.shutdown(wait=True)
Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/_adapter/fore.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from grpc.framework.foundation import activated
from grpc.framework.foundation import logging_pool

_THREAD_POOL_SIZE = 100
_THREAD_POOL_SIZE = 10


@enum.unique
Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/_adapter/rear.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from grpc.framework.foundation import activated
from grpc.framework.foundation import logging_pool

_THREAD_POOL_SIZE = 100
_THREAD_POOL_SIZE = 10

_INVOCATION_EVENT_KINDS = (
_low.Event.Kind.METADATA_ACCEPTED,
Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/early_adopter/implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from grpc.framework.face import implementations as _face_implementations
from grpc.framework.foundation import logging_pool

_THREAD_POOL_SIZE = 80
_THREAD_POOL_SIZE = 8
_ONE_DAY_IN_SECONDS = 24 * 60 * 60


Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/framework/base/implementations_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from grpc.framework.base import util
from grpc.framework.foundation import logging_pool

POOL_MAX_WORKERS = 100
POOL_MAX_WORKERS = 10
DEFAULT_TIMEOUT = 30
MAXIMUM_TIMEOUT = 60

Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/framework/face/_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from grpc.framework.foundation import logging_pool

_TIMEOUT = 3
_MAXIMUM_POOL_SIZE = 100
_MAXIMUM_POOL_SIZE = 10


class FaceTestCase(test_case.FaceTestCase):
Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/framework/face/demonstration.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from grpc.framework.face import implementations
from grpc.framework.foundation import logging_pool

_POOL_SIZE_LIMIT = 20
_POOL_SIZE_LIMIT = 5

_MAXIMUM_TIMEOUT = 90

Expand Down
2 changes: 1 addition & 1 deletion src/python/src/grpc/framework/face/testing/base_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from grpc.framework.base import interfaces # pylint: disable=unused-import
from grpc.framework.foundation import logging_pool

_POOL_SIZE_LIMIT = 20
_POOL_SIZE_LIMIT = 5

_MAXIMUM_TIMEOUT = 90

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from grpc.framework.foundation import logging_pool

_TIMEOUT = 3
_MAXIMUM_POOL_SIZE = 100
_MAXIMUM_POOL_SIZE = 10


class _PauseableIterator(object):
Expand Down

0 comments on commit bbfe7c9

Please sign in to comment.