Skip to content

Add VPC config to estimator for training job creation #353

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 5 commits into from
Aug 21, 2018

Conversation

icywang86rui
Copy link
Contributor

CreateTraningJob api supports vpc. This change adds vpc config as an optional
argument to Estimator.

Issue #, if available:

Description of changes:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have updated the changelog with a description of my changes (if appropriate)
  • I have updated any necessary documentation (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-io
Copy link

codecov-io commented Aug 15, 2018

Codecov Report

Merging #353 into master will decrease coverage by 0.01%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #353      +/-   ##
==========================================
- Coverage    93.1%   93.09%   -0.02%     
==========================================
  Files          51       51              
  Lines        3555     3564       +9     
==========================================
+ Hits         3310     3318       +8     
- Misses        245      246       +1
Impacted Files Coverage Δ
src/sagemaker/session.py 89.03% <100%> (+0.05%) ⬆️
src/sagemaker/estimator.py 89.01% <100%> (+0.08%) ⬆️
src/sagemaker/job.py 93.82% <80%> (-0.91%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7665de...ba9cac3. Read the comment docs.

@@ -22,6 +22,8 @@
from tests.integ.timeout import timeout_and_delete_endpoint_by_name, timeout

DATA_PATH = os.path.join(DATA_DIR, 'iris', 'data')
VPC_SUBNETS = ['subnet-06b8537735fac3757']
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 dependent on our account?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep. I created this VPC in PDX. The test I added the vpc_config is not used in canary so we are not running it in other regions.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we create the VPC configurations and subnet during the test? Are we guaranteed to run this VPC config in the same account all the time?

I think the test will be better suited if we make these changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We certainly can create the VPC in the test and delete it when the test finishes. I understand your concern. On the other hand I do not want our test to depend on the availability of vpc. Perhaps we can pre create vpc configs for all the regions? I am not too keen on this solution either since we might want to run the tests in different accounts in the future. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

Create if not exists? This should be a good tradeoff

Copy link
Contributor

@ChoiByungWook ChoiByungWook left a comment

Choose a reason for hiding this comment

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

Good job. Please make the test not dependent to specific account.

@iquintero
Copy link
Contributor

iquintero commented Aug 17, 2018 via email

CreateTraningJob api supports vpc. This change adds vpc config as an optional
argument to Estimator.
@icywang86rui icywang86rui merged commit 5e61265 into aws:master Aug 21, 2018
pdasamzn pushed a commit to pdasamzn/sagemaker-python-sdk that referenced this pull request Nov 1, 2018
* Add VPC config to estimator for training job creation

CreateTraningJob api supports vpc. This change adds vpc config as an optional
argument to Estimator.
apacker pushed a commit to apacker/sagemaker-python-sdk that referenced this pull request Nov 15, 2018
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.

4 participants