Skip to content

Commit f8015ce

Browse files
Merge pull request #112 from aws/master_pyarrow_fix
Master pyarrow and integration tests fix
2 parents 5780bd9 + 6db044e commit f8015ce

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

docker/0.23-1/base/Dockerfile.cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG MINICONDA_VERSION=4.8.3
77
ARG CONDA_PY_VERSION=37
88
ARG CONDA_PKG_VERSION=4.9.0
99
ARG PYTHON_VERSION=3.7.10
10-
ARG PYARROW_VERSION=0.16.0
10+
ARG PYARROW_VERSION=3.0.0
1111
ARG MLIO_VERSION=0.6.0
1212

1313
# Install python and other scikit-learn runtime dependencies

test/integration/test_multiple_model_endpoint.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,24 @@ def modulevolume():
5555

5656
@pytest.fixture(scope='module', autouse=True)
5757
def container(request, docker_base_name, tag):
58+
module_dir = os.path.join(resource_path, 'module')
59+
model_dir = os.path.join(resource_path, 'models')
60+
5861
test_name = 'sagemaker-sklearn-serving-test'
5962
try:
6063
command = (
6164
'docker run --name {} -p 8080:8080'
62-
' --mount type=volume,source=dynamic_endpoint_model_volume,target=/opt/ml/model,readonly'
63-
' --mount type=volume,source=dynamic_endpoint_module_volume,target=/user_module,readonly'
65+
# ' --mount type=volume,source=dynamic_endpoint_model_volume,target=/opt/ml/model,readonly'
66+
# ' --mount type=volume,source=dynamic_endpoint_module_volume,target=/user_module,readonly'
67+
' -v {}:/opt/ml/model'
68+
' -v {}:/user_module'
6469
' -e SAGEMAKER_BIND_TO_PORT=8080'
6570
' -e SAGEMAKER_SAFE_PORT_RANGE=9000-9999'
6671
' -e SAGEMAKER_MULTI_MODEL=true'
6772
' -e SAGEMAKER_PROGRAM={}'
6873
' -e SAGEMAKER_SUBMIT_DIRECTORY={}'
6974
' {}:{} serve'
70-
).format(test_name, 'script.py', "/user_module/user_code.tar.gz", docker_base_name, tag)
75+
).format(test_name, model_dir, module_dir, 'script.py', "/user_module/user_code.tar.gz", docker_base_name, tag)
7176

7277
proc = subprocess.Popen(command.split(), stdout=sys.stdout, stderr=subprocess.STDOUT)
7378

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ deps =
1010
-r{toxinidir}/requirements.txt
1111
-r{toxinidir}/test-requirements.txt
1212
conda_deps=
13-
pyarrow=0.16.0
13+
pyarrow=3.0.0
1414
mlio-py=0.5
1515
conda_channels=
1616
conda-forge

0 commit comments

Comments
 (0)