-
Notifications
You must be signed in to change notification settings - Fork 1.2k
#using uuid to randomize, otherwise system timestamp is used #3046
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
#using uuid to randomize, otherwise system timestamp is used #3046
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
[fixed comment line by running -m tox -e black-format], changed wording to comply |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
moved "import uuid" above "import botocore" to fix CI error message |
Codecov Report
@@ Coverage Diff @@
## master #3046 +/- ##
=======================================
Coverage 89.38% 89.38%
=======================================
Files 197 197
Lines 16668 16670 +2
=======================================
+ Hits 14898 14900 +2
Misses 1770 1770
Continue to review full report at Codecov.
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
f14d475
to
35eb5f3
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
* #using uuid to randomize, otherwise system timestamp is used
Issue #, if available:
Customer reported issue when load-testing multiple notebooks:
"While executing AutoGluon Notebook, 5/20 users encountered failures while creating a model and endpoint. We modified our examples to create a unique resource name using sagemaker util below. Looks like, collision seems high with this tool.
model_name = sagemaker.utils.unique_name_from_base("inf-pipeline-model")
As the seed for random by default is timestamp it is creating same unique 4-digit hex when accessed around same time"
Description of changes:
#using uuid to randomize random.seed(), otherwise system timestamp is used.
Testing done:
Modified sagemaker sdk locally, tested 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.General
Tests
unique_name_from_base
to create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.