Conversation
|
Test FAILed. |
|
@jwirjo Can you delete all the extra files you added in |
|
Sorry meant to say in |
dcrankshaw
left a comment
There was a problem hiding this comment.
This looks pretty good. I'm going to play around with this on my machine as well, but I added a first round of comments.
| c.dump(func) | ||
| serialized_prediction_function = s.getvalue() | ||
|
|
||
|
|
| base_image="clipper/python-closure-container:{}".format(__version__), | ||
| base_image="default", | ||
| num_replicas=1): | ||
|
|
| :py:meth:`clipper.ClipperConnection.set_num_replicas`. | ||
| """ | ||
|
|
||
|
|
| lf.write(c.logs(stdout=True, stderr=True)) | ||
| except TypeError: | ||
| with open(log_file, "wb") as lf: | ||
| lf.write(c.logs(stdout=True, stderr=True)) |
There was a problem hiding this comment.
Is this a Python 2 vs 3 thing? If so, instead of trying one way and catching an exception, let's explicitly check for sys.version like you do in the python deployer.
| try: | ||
| socket.send("", zmq.SNDMORE) | ||
| except: | ||
| socket.send("".encode('utf-8'), zmq.SNDMORE) |
There was a problem hiding this comment.
Is this a Python 2 vs 3 thing? If so, instead of trying one way and catching an exception, let's explicitly check for sys.version like you do in the python deployer and then just use the right version. Throwing and catching an exception can be expensive and the code as-is has unclear semantics.
| return [str(sum(item)) for item in inputs] | ||
|
|
||
| def predict_strings(self, inputs): | ||
| print(inputs) |
| && git apply ../patches/make_spdlog_compile_linux.patch | ||
|
|
||
|
|
||
| ENTRYPOINT ["/clipper/bin/ci_checks.sh"] |
There was a problem hiding this comment.
We'll want to modify this entrypoint command to just run the Python 3-compatible tests, not re-run everything
| @@ -0,0 +1,13 @@ | |||
| ARG CODE_VERSION | |||
There was a problem hiding this comment.
The Dockerfile file name should not end in .txt
| @@ -0,0 +1,20 @@ | |||
| # This ARG isn't used but prevents warnings in the build script | |||
There was a problem hiding this comment.
The Dockerfile file name should not end in .txt
| #'test_remove_inactive_containers_succeeds', | ||
| #'test_stop_models', | ||
| #'test_python_closure_deploys_successfully', | ||
| 'test_register_py_endpoint', |
There was a problem hiding this comment.
Why are these all commented out?
| create_image query_frontend QueryFrontendDockerfile $public | ||
| create_image management_frontend ManagementFrontendDockerfile $public | ||
| create_image unittests ClipperTestsDockerfile $private | ||
| create_image unittests ClipperPy3TestsDockerfile $private |
There was a problem hiding this comment.
Change the name of the Py3 unittests image to py3tests
|
Test FAILed. |
|
Test FAILed. |
|
Test FAILed. |
|
Test FAILed. |
dcrankshaw
left a comment
There was a problem hiding this comment.
This is super close! I added a comment that should help get the tests passing, and then this will be good to go.
| [test] | ||
| repository = https://test.pypi.org/legacy/ | ||
| username = jwirjo | ||
| password = clippertest |
There was a problem hiding this comment.
You definitely don't want to commit this!
| run_rpc_container_tests | ||
| ;; | ||
| -i | --integration_tests ) set_test_environment | ||
| -i | --integration_tests ) #set_test_environment |
|
|
||
| COPY clipper_admin/clipper_admin/python3_container_conda_deps.txt /lib/ | ||
| RUN conda install -y --file /lib/python3_container_conda_deps.txt | ||
| RUN conda install -c anaconda3 cloudpickle=0.5.2 |
There was a problem hiding this comment.
Change lines 4-5 to:
RUN conda config --set ssl_verify no \
&& conda install -c anaconda3 cloudpickle=0.5.2 \
&& conda install -y --file /lib/python3_container_conda_deps.txt
This should fix the current test failure (see #426)
|
Test FAILed. |
| python ../integration-tests/deploy_pyspark_models.py | ||
| python ../integration-tests/deploy_pyspark_pipeline_models.py | ||
| python ../integration-tests/deploy_pyspark_sparkml_models.py | ||
| python ../integration-tests/deploy_pytorch_models.py |
There was a problem hiding this comment.
Since this test seems to be failing, you can revert it and I'll add it in a separate PR.
|
Test FAILed. |
|
Test FAILed. |
|
jenkins test this please |
|
Test FAILed. |
|
Test FAILed. |
|
Test FAILed. |
|
jenkins test this please |
|
Test FAILed. |
|
@jwirjo @rohsuresh Any progress on this? |
|
Test FAILed. |
|
Test FAILed. |
|
Test FAILed. |
|
jenkins test this please |
|
Test FAILed. |
|
jenkins test this please |
|
Test FAILed. |
|
Test FAILed. |
|
Test PASSed. |
|
Test PASSed. |
Fixes #138. Added Python3 ClipperPy3TestsDockerfile, ran most integration_tests (run_unittests.sh) in python3 with same output as under python2, but 2 recurring errors.