Skip to content
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

exp: abstract random name gen from repo #9806

Merged
merged 1 commit into from
Aug 6, 2023
Merged

exp: abstract random name gen from repo #9806

merged 1 commit into from
Aug 6, 2023

Conversation

dberenbaum
Copy link
Collaborator

This is needed for iterative/dvclive#646 so that we can generate random names without a repo.

@dberenbaum dberenbaum requested a review from daavoo August 4, 2023 19:59
@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (009b238) 90.45% compared to head (52b2d31) 90.45%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9806   +/-   ##
=======================================
  Coverage   90.45%   90.45%           
=======================================
  Files         483      483           
  Lines       36858    36863    +5     
  Branches     5321     5321           
=======================================
+ Hits        33339    33344    +5     
  Misses       2910     2910           
  Partials      609      609           
Files Changed Coverage Δ
dvc/repo/experiments/utils.py 83.23% <100.00%> (+0.19%) ⬆️
tests/unit/repo/experiments/test_utils.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@daavoo daavoo enabled auto-merge (rebase) August 6, 2023 10:52
@daavoo daavoo merged commit 5d2ca11 into main Aug 6, 2023
20 checks passed
@daavoo daavoo deleted the gen-random-name branch August 6, 2023 11:13
Comment on lines +86 to +87
def test_gen_random_name():
assert re.match("[a-zA-Z]+-[a-zA-Z]+", gen_random_name())
Copy link
Member

Choose a reason for hiding this comment

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

The test was not really necessary here.

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.

3 participants