Skip to content

Reducing test flakiness #601

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 6 commits into from
Jan 17, 2019
Merged

Reducing test flakiness #601

merged 6 commits into from
Jan 17, 2019

Conversation

mvsusp
Copy link
Contributor

@mvsusp mvsusp commented Jan 16, 2019

Description of changes:

  • Saving model locally instead of S3 in tests that should not need S3

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.

@mvsusp mvsusp requested a review from icywang86rui January 16, 2019 18:09
icywang86rui
icywang86rui previously approved these changes Jan 16, 2019
@mvsusp mvsusp changed the title Saving model locally instead of S3 in tests that should not need S3 Reducing test flakiness Jan 17, 2019
@codecov-io
Copy link

codecov-io commented Jan 17, 2019

Codecov Report

Merging #601 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #601   +/-   ##
=======================================
  Coverage   92.69%   92.69%           
=======================================
  Files          71       71           
  Lines        5405     5405           
=======================================
  Hits         5010     5010           
  Misses        395      395

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 f341864...ead53b1. Read the comment docs.

Returns:

"""
os.system('docker network create sagemaker-local')
Copy link
Contributor

Choose a reason for hiding this comment

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

how is this 'if necessary' ?
shouldnt this method be renamed to create_sagemaker_local_network() ?

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 point. Done.

def create_sagemaker_local_network():
"""
Docker has a known race condition which allows two parallel processes
to create a duplicated networks with the same name. This function
Copy link
Contributor

Choose a reason for hiding this comment

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

s/to create a duplicated/to create duplicated

@mvsusp mvsusp merged commit 3cc6cce into aws:master Jan 17, 2019
@mvsusp mvsusp deleted the mvs-fix-flaky-tests branch January 17, 2019 18:52
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