Saugat Pachhai (सौगात)
334f297ad3
deps: remove 3.11 checks for hydra; has 3.11 support now
2022-12-09 10:32:12 +05:45
Saugat Pachhai (सौगात)
28402dedf1
add tests
2022-12-01 15:56:26 +01:00
David de la Iglesia Castro
a036eaf817
exp: save: Add include_untracked.
...
Allow to include a list of potentially untracked files.
Covers the DVCLive use case where in the first run the generated files won't be tracked in Git yet.
2022-11-28 15:49:34 +01:00
David de la Iglesia Castro
665185b9e7
exp: save: Handle staged changes.
...
Staged changes were causing a merge error.
Warn and unstage instead of erroring, to match exp run behavior.
2022-11-28 15:49:34 +01:00
David de la Iglesia Castro
43e281521e
exp save: cleanup.
...
Remove metrics.
Move tests to separate file.
Fix `experiments.get_exact_name` usage.
Remove unused checkpoint logic.
2022-11-28 15:49:34 +01:00
Daniele Trifirò
73b46a5789
exp save: initial implementation
2022-11-28 15:49:34 +01:00
David de la Iglesia Castro
8124396218
exp: Expose baseline and name via run_env.
...
Required by DVCLive for the experiments onboarding and live metrics features.
Related (not sure if closes): https://github.com/iterative/dvc/issues/6668
2022-11-28 13:13:04 +01:00
karajan1001
6bfce5a5db
Use a more granular lock on exp operations.
...
For now in `experiment.new`, `init_executor` and `collect_exectuor` we
lock the whole scm repo. We can make a more granular lock in these
operations.
2022-11-28 17:04:16 +08:00
karajan1001
5fa33a06bc
Move EXEC_TMP_DIR and EXEC_PID_DIR to experiment.utils
2022-11-28 17:04:16 +08:00
Ivan Shcheklein
d7587556c9
exp list: cleanup and move logic inside repo api
2022-11-25 16:15:17 -08:00
Yury
6edca79b79
repro dry: show information if the stage is cached
...
Fixes : #8342
2022-11-24 21:49:52 +02:00
David de la Iglesia Castro and Dave Berenbaum
b0a92414fa
hydra: Use OmegaConf.to_yaml for dumping .yaml output. ( #8587 )
...
* hydra: Use `OmegaConf.to_yaml` for dumping `.yaml` output.
Combining `OmegaConf.to_object` with our yaml DUMPER (ruaml.yaml) was not correctly handling strings like 'no'.
`OmegaConf.to_yaml` uses a custom string representer that correctly handles those cases.
Fixes #8583
* Update dvc/utils/hydra.py
Co-authored-by: Dave Berenbaum <[email protected] >
Co-authored-by: Dave Berenbaum <[email protected] >
2022-11-19 12:37:18 +00:00
David de la Iglesia Castro
a33bbc97d5
parsing: Escape str interpolation in dict unpacking.
...
Use subprocess.list2cmdline (windows) / shlex.quote
Closes #8203
Closes #8370
2022-11-18 20:00:16 +01:00
Paweł Redzyński
ba2e8bdac7
plots: data conversion: adjust for viewer backend ( #8421 )
...
* plots: vega: converter: support multi series data split and props inference
Fixes : #7754 , #8399
Related: iterative/studio#4369
* plots: converter: make converter infer x and y labels if not provided
* plots: vega: converter: roll back to datapoints format
* plots: vega: converter: refactor
* plots: infer labels on
* plots: get_plot_id: fix naming
* plots: vega: converter: notes regarding converting
2022-11-18 12:36:00 +00:00
Peter Rowlands
6e02dddabd
output: check push in get_used_objs
2022-11-18 16:32:29 +09:00
Ruslan Kuprieiev and Peter Rowlands
b36861ada9
tests: import: use odb.clear()
...
Co-authored-by: Peter Rowlands <[email protected] >
2022-11-17 10:56:01 +02:00
Ivan Shcheklein
76cc649f5e
fix/8550+: cover with test
2022-11-16 15:16:37 +05:45
David de la Iglesia Castro
e4ea463c73
hydra: Raise error when name and sweeps.
2022-11-14 21:34:55 +01:00
karajan1001
fa54c1af7c
Solve run_all flaky tests
...
1. Modify run all to include currently running exps.
2. bump dvc-task to 0.1.5
2022-11-11 07:04:43 +05:45
karajan1001
9fbbfd07a6
Fix some celery queue realted ci failure
...
fix : #8403
1. remove some of the flaky mark
2. In `get_result` make sure the celery task is completed.
2022-11-11 07:04:43 +05:45
blakeNaccarato
49af6e1435
plots: support svg
...
Add SVG to parser and parametrize an existing functionality test on SVG as well as JPG.
Fixes #6714 .
2022-11-09 19:23:49 +02:00
karajan1001
e0d41c7012
Make exp show handle errors better
...
fix : #8350
We shouldn't add locks to exp show to prevent race conditions
as this command is calling continuously by the extension.
So we make a better way to handle all kinds of reference failures.
1. Drop all based experiments if got a SCMError in baseline.
2. Drop all checkpoint experiments if any commit got a SCMError in
one of checkpoint commit.
3. Drop the entire experiments if got a SCMError.
4. Add tests for each of the conditions above.
2022-11-08 20:12:22 +08:00
Peter Rowlands
628b992442
index: fix granular dir output view filtering
2022-11-08 19:28:10 +09:00
Peter Rowlands
99e7f52bbd
index: support filtering by output in views
2022-11-08 19:28:10 +09:00
Saugat Pachhai (सौगात)
a48a19ce31
tests: ignore versions for subprojects
2022-11-07 12:45:32 +01:00
David de la Iglesia Castro
1de983f0de
Remove live section support.
2022-11-07 12:45:32 +01:00
David de la Iglesia Castro
78e25747a4
exp init: Update DVCLive paths.
...
Closes #8531
2022-11-07 12:45:32 +01:00
dberenbaum
240f0ebdc3
fix hydra_sweeps referenced before assignment
2022-11-04 15:59:26 +01:00
dberenbaum
ab69b88a21
plots: allow top-level strings
2022-11-04 09:54:45 +05:45
Saugat Pachhai (सौगात)
15f35e827e
fix windows
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
4d17c171f1
tests: use mocker
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
c27005a8b7
migrate test_{repro,run}*.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
ecd371f8ae
migrate test_move.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
bda1388bff
migrate test_gc.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
c02bd7f318
migrate some files to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
fe1d805c80
migrate test_cli.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
f9b0de883f
migrate test_checkout.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
1cad8ea7fd
migrate test_{add,analytics,init,unprotect,local,process}.py to pytest
2022-11-03 23:07:28 +05:45
skshetry
5e883bc00c
tests: remove TestDir ( #8502 )
...
remove TestDir
2022-11-01 11:28:09 +05:45
skshetry
6df70d388e
update pre-commit; add some more hooks ( #8492 )
...
* update pre-commit; add some more hooks
* Apply suggestions from code review
2022-10-31 21:04:11 +05:45
Ruslan Kuprieiev
5899440b46
deps: bump dvc-data to 0.25.1
2022-10-30 00:59:39 +03:00
karajan1001
9ef1d1d6e6
Move away tempdir related change from basequeue.
2022-10-29 08:53:02 +08:00
karajan1001
d5cc54ad35
dvc exp show auto solve corrupted rwlock info
...
fix : #8450
1. Add a new function check_rwlock to check and autocorrect rwlock info.
2. Add related tests for it.
2022-10-29 08:53:02 +08:00
karajan1001
47ece317a5
Refactor: move get_running_exps to queue
...
Move logic of `get_running_exps` from `repo.experiments` to each queue.
2022-10-29 08:53:02 +08:00
karajan1001
ed2ccaf54c
Use celery status as the exp show status
...
fix : #8349
`tasks status turned to queued for 1 second before turned into success.`
is because in previous the status is using the output of
`get_running_exps` in `repo.expereiments` and when entering the
collect result progress, the `get_running_exps` will mark the tasks to
be not running because the `info.result` is not None. Here we use the
output of the celery queue as the universal standard for the tasks
status.
1. Use celery status as the exp show status
2022-10-24 14:41:27 +08:00
karajan1001
d56376c70a
exp show: Use batch call on scm.describe
...
fix : #8451
1. Change the call of scm.describe from individual revision to a
collection of them. Accelerate the run speed of `exp show`
2. Bump scmrepo to 0.1.2
2022-10-20 17:22:25 +08:00
Daniele Trifirò
e9244924d7
plots: allow definition of plots section as list
2022-10-17 12:06:31 +02:00
David de la Iglesia Castro
c12deaa62c
exp show: Preserve full branch and tag names.
...
Closes #7933
2022-10-11 19:55:36 +09:00
Ruslan Kuprieiev
6711b653a5
tests: add tests for dvcignore.walk
2022-10-10 21:43:44 +03:00
Ruslan Kuprieiev
faef8eec2c
tests: ignore: use dvcignore.find directly
2022-10-10 21:43:44 +03:00