Skip to content

Add SageMaker hosting integ test #18

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 2 commits into from
Jun 14, 2019
Merged

Conversation

laurenyu
Copy link
Contributor

Description of changes:
This PR adds a basic hosting test using SageMaker with the MXNet serving image. timeout.py comes from the SageMaker Python SDK.

I tested it by running it from my laptop with tox, and it passed.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@laurenyu laurenyu requested a review from ChoiByungWook June 13, 2019 23:49
_show_logs(endpoint_name, 'Endpoints', sagemaker_session)
if no_errors:
_cleanup_logs(endpoint_name, 'Endpoints', sagemaker_session)
return
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed the returns to breaks. Since the local tests aren't using this module, I didn't carry over the other two changes in that PR

setup.py Outdated
'test': ['tox', 'flake8', 'pytest', 'pytest-cov', 'pytest-xdist', 'mock', 'sagemaker',
'docker-compose', 'mxnet==1.4.0']
'test': ['tox', 'flake8', 'pytest', 'pytest-cov', 'pytest-xdist', 'mock',
'sagemaker==1.23.0', 'docker-compose', 'awslogs']
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch - fixed

@ChoiByungWook ChoiByungWook self-requested a review June 14, 2019 00:11
@laurenyu laurenyu merged commit 7fa3679 into aws:master Jun 14, 2019
@laurenyu laurenyu deleted the hosting-test branch June 14, 2019 00:14
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.

2 participants