-
Notifications
You must be signed in to change notification settings - Fork 618
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
fix(sdk): remove duplicate generate_id functions, replace shortuuid with secrets #4676
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4676 +/- ##
===========================================
+ Coverage 42.80% 83.30% +40.50%
===========================================
Files 279 280 +1
Lines 34555 34946 +391
===========================================
+ Hits 14790 29111 +14321
+ Misses 19765 5835 -13930
Flags with carried forward coverage won't be shown. Click here to find out more.
|
56fd69e
to
fdcc624
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice, thanks @moredatarequired!
tests/unit_tests/assets/wandb/offline-run-20210216_154407-g9dvvkua/files/requirements.txt
Outdated
Show resolved
Hide resolved
This appears to have been missed in the docs...: Is it correct for client code following this example from the docs to just replace Thanks! |
@Linux-cpp-lisp , I'm sorry about that! None of the In the meantime, I actually suggest replacing the call to |
Hi @moredatarequired --- thanks for the quick response! Sounds good, I'll replace
Is there any advantage to using a user-readable / provided ID? In our training framework (https://github.com/mir-group/nequip) we do force the user to provide a unique |
As long as the run id is url-safe and unique it should be fine. My worry about user-provided names would just be a lack of uniqueness, and if that's already enforced then it would be okay. Runs already have names that are more readable (generated names look like |
Addresses WB-7375
Description
shortuuid
and prefer the built-in modulesecrets
for token (run id) generationgenerate_id
functions, move the callers depending onutil
tolib.runid
Testing
No additional tests.
Checklist