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 apply can accept exp names and failed exps as target #8708

Merged
merged 2 commits into from
Dec 30, 2022

Conversation

karajan1001
Copy link
Contributor

fix: #8182

  1. exp apply can apply to failed experiments.
  2. exp apply can accept exp names as targets.
  3. Add a new functional test for it.
  4. Move get_ref_and_entry_by_names from exp remove to utils for other commands' usage.

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

@karajan1001 karajan1001 added A: experiments Related to dvc exp bugfix fixes bug A: task-queue labels Dec 19, 2022
@karajan1001 karajan1001 requested a review from pmrowla December 19, 2022 11:06
@karajan1001 karajan1001 added the feature is a feature label Dec 19, 2022
@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Base: 93.50% // Head: 93.51% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (c804712) compared to base (06673dd).
Patch coverage: 87.69% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8708      +/-   ##
==========================================
+ Coverage   93.50%   93.51%   +0.01%     
==========================================
  Files         457      457              
  Lines       36207    36229      +22     
  Branches     5246     5252       +6     
==========================================
+ Hits        33854    33879      +25     
+ Misses       1845     1843       -2     
+ Partials      508      507       -1     
Impacted Files Coverage Δ
dvc/repo/experiments/apply.py 75.60% <52.94%> (-6.09%) ⬇️
dvc/repo/experiments/queue/base.py 86.09% <100.00%> (+0.13%) ⬆️
dvc/repo/experiments/queue/celery.py 88.05% <100.00%> (+2.56%) ⬆️
dvc/repo/experiments/remove.py 96.96% <100.00%> (+1.73%) ⬆️
tests/func/experiments/test_experiments.py 99.73% <100.00%> (+<0.01%) ⬆️
tests/unit/repo/experiments/test_remove.py 100.00% <100.00%> (ø)
dvc/repo/experiments/__init__.py 88.08% <0.00%> (+1.08%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dberenbaum dberenbaum added the p1-important Important, aka current backlog of things to do label Dec 20, 2022
Copy link
Contributor

@pmrowla pmrowla left a comment

Choose a reason for hiding this comment

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

LGTM other than the extra print

1. Move get_ref_and_entry_by_names from `exp remove` to `celery` for
   other commands usage.
fix: iterative#8182

1. `exp apply` can apply to failed experiments.
2. `exp apply` can accept exp names as target.
3. Add a new functional test for it.
@karajan1001 karajan1001 merged commit f386f7c into iterative:main Dec 30, 2022
@karajan1001 karajan1001 deleted the fix8182 branch December 30, 2022 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: experiments Related to dvc exp bugfix fixes bug feature is a feature p1-important Important, aka current backlog of things to do
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exp apply: not working for failed experiments
3 participants