8000 Add missing integration tests, clean up dockerfiles, and remove Anaconda dependencies by dcrankshaw · Pull Request #435 · ucbrise/clipper · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add missing integration tests, clean up dockerfiles, and remove Anaconda dependencies #435

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

Merged
merged 30 commits into from
Apr 3, 2018

Conversation

dcrankshaw
Copy link
Contributor
@dcrankshaw dcrankshaw commented Mar 13, 2018

This is a catch all maintenance PR that does a few things:

  • Removes all Docker images on Anaconda. The biggest change to functionality here is the removal of the module dependency analysis that we did to try to automatically track down all Anaconda and pip dependencies. This feature relied on some semi-private Anaconda APIs and unfortunately was fairly buggy as a result. Furthermore, the conda installs in the docker images broke frequently for a variety of reasons.
  • Cleans up docker images and dramatically reduces the size of many of them. We now use the debian:stretch-slim Docker image as our base image. For the Python-based images that were previously using an Anaconda image as the base image, this hugely reduces image sizes and speeds up Docker build times.
  • Adds missing integration tests for MXNet, Pytorch, and the PyTorch->ONNX->Caffe2 deployer.
  • Adds a dev docker image
  • Consolidates all container entry scripts into a single, parameterized script

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1102/
Test FAILed.

@dcrankshaw
Copy link
Contributor Author

@chester-leung Can you look into why the mxnet test is failing?

@chester-leung
Copy link
Member
chester-leung commented Mar 13, 2018 via email

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1130/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1133/
Test FAILed.

@dcrankshaw dcrankshaw force-pushed the fix_missing_integration_tests branch from c6245d4 to ab88806 Compare March 23, 2018 03:00
@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1167/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1168/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1221/
Test FAILed.

@dcrankshaw dcrankshaw force-pushed the fix_missing_integration_tests branch from bd34214 to 7cb6620 Compare March 30, 2018 19:41
@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1225/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1227/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1229/
Test FAILed.

@dcrankshaw
Copy link
Contributor Author

Jenkins test this please

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1230/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1239/
Test FAILed.

@AmplabJenkins
Copy link
8000

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1240/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1241/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1242/
Test FAILed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1243/
Test PASSed.

@dcrankshaw dcrankshaw changed the title Adds missing mxnet, pytorch, and pytorch-onnx-caffe2 integration tests Add missing integration tests, clean up dockerfiles, and fix jenkins issues Apr 2, 2018
@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1246/
Test FAILed.

@dcrankshaw
Copy link
Contributor Author

jenkins test this please

@dcrankshaw dcrankshaw changed the title Add missing integration tests, clean up dockerfiles, and fix jenkins issues Add missing integration tests, clean up dockerfiles, and remove Anaconda dependencies Apr 2, 2018
@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1247/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1248/
Test FAILed.

@shaneknapp
Copy link
shaneknapp commented Apr 2, 2018

we're experiencing some network issues from campus to the outside world. i just ran ping github.com from one of the ubuntu workers and we're getting ~30% packet loss. this definitely explains the jobs timing out.

Copy link
Contributor
@Corey-Zumar Corey-Zumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just a nit and a question

numpy==1.14.*


# RUN conda install -y pyzmq libsodium
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code

&& conda install -y --file /lib/python_container_conda_deps.txt \
&& pip install mxnet==1.0.0 \
&& apt-get install -y graphviz \
&& pip install graphviz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this graphviz package no longer required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graphviz was never required. It just got spuriously added.

@@ -131,7 +126,7 @@ def get_test_point():
mxnet_model = mx.mod.Module(softmax)
mxnet_model.fit(data_iter, num_epoch=0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: data_iter isn't defined anywhere in this example. Consider defining it in the same fashion as the MXNet test case: data_iter = mx.io.CSVIter(data_csv=train_path, data_shape=(785, ), batch_size=1)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you're referring to here? data_iter is defined on line 100/95 of this file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake. I was referring to the "example" subsections of the documentation for the mxnet container. These sections don't define data_iter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh I see. Yeah good call, I'll add that.

RUN cd ~ && python -c 'from caffe2.python import core'

RUN pip install onnx
RUN python -c "import onnx"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just confirming that this isn't a piece of test code that should be removed (same for line 16); for debugging purposes, it seems helpful to verify correct import functionality for critical packages when the docker container is being built.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's intentional

@dcrankshaw
Copy link
Contributor Author

jenkins test this please

@shaneknapp
Copy link

test this please

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1254/
Test PASSed.

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.

5 participants
0