David de la Iglesia Castro
182728d674
exp run / repro: Drop --metrics. ( #9458 )
...
* exp run / repro: Drop `--metrics`.
* exp run: Rename `-M` to `-m`.
2023-05-22 19:13:22 +05:45
David de la Iglesia Castro
f245567613
exp: Drop gc. ( #9273 )
...
Closes #7991
2023-05-22 16:08:25 +05:45
skshetry
6532258e4a
drop top-level plots definition as mapping support ( #9486 )
2023-05-22 15:08:22 +05:45
daavoo and Ivan Shcheklein
eb45cda5d0
get_random_exp_name: Use custom random generator.
...
See https://github.com/iterative/dvclive/pull/576
Co-authored-by: Ivan Shcheklein <[email protected] >
2023-05-22 10:46:41 +02:00
skshetry
1989c0fe98
stage add: introduce --run option ( #9480 )
...
* stage add: introduce --run option
Part of #5846 .
* fix ui message
2023-05-22 12:27:20 +05:45
daavoo
3ddd4b87fc
exp: Fix --rev args for ls pull and remove.
...
Closes #9471
2023-05-21 13:25:40 +02:00
skshetry
e089ee0365
remove data ls and support for --meta/--desc/--label/--type cli flags ( #9481 )
2023-05-19 20:10:34 +05:45
David de la Iglesia Castro
02f7fcae73
exp show: Drop --pcp. ( #9270 )
...
Closes #9268
2023-05-19 15:36:33 +05:45
David de la Iglesia Castro
cdba65f27e
exp: Drop init. ( #9269 )
...
Drop `exp init`.
Closes #9267
2023-05-19 14:39:16 +05:45
skshetry
3959c51373
lockfile: drop 1.0 lockfile support ( #9476 )
2023-05-18 17:36:05 +05:45
skshetry
90aaf5a296
commands: remove --show-json/--show-md/--show-csv flags ( #9475 )
2023-05-18 16:36:14 +05:45
daavoo
ecb71c8263
exp push: Handle rev arg as list.
2023-05-18 09:54:10 +02:00
Dave Berenbaum
7f6890ff25
Live metrics config ( #9433 )
...
* exp: live metrics config token and offline
* refactor live metrics config
* use get_studio_config
* revert to using env vars for studio config
* update dvc-studio-client to support live metrics config changes
* upgrade dvc-studio-client
* don't change environ when posting live metrics events
2023-05-17 09:21:01 +00:00
daavoo
64beb1578a
repro: Add --allow-missing.
...
Point 2 in https://github.com/iterative/dvc/pull/9375#issuecomment-1531683194
2023-05-16 22:43:24 +02:00
dberenbaum
f888544554
gc: disallow --remote without other flags
2023-05-16 17:18:57 +02:00
daavoo
1e538ed87b
repro: Move pull logic to inside Stage.
2023-05-16 16:11:43 +02:00
skshetry
004f49744e
tests: isolate dvc config and directories ( #9450 )
...
* tests: isolate dvc config and directories
by introducing envvars to change default values. This lets pytest
handle the deletion of tmpdirs, instead of filling /var/tmp with
hundreds of thousands of directories. Also isolates test run from
faulty global/system config files.
* move to dvc/env and sort
2023-05-15 18:16:02 +05:45
Alexander Guschin and Oded Messer
45181504ea
Add API to add artifacts ( #9345 )
...
* api call to add/write artifact
* return dvcyaml path on add
* create dir for dvc.yaml if needed
* create dir for dvc.yaml if needed - fix
* allow nested artifact names
* make dvc get download artifacts
* Apply suggestions from code review
Co-authored-by: Oded Messer <[email protected] >
* use feedback
* remove 'dvc get' from this PR, keep only adding artifacts
* allow first char of artifact name to be a number
* add note about constants
* fix parsing artifact name
* remove 'parse_name' and write tests for 'add'
* Apply suggestions from code review
Co-authored-by: Oded Messer <[email protected] >
* updates from comments
* fix for studio
* fix again
* making check_name_format to raise an exception
* Update dvc/repo/artifacts.py
---------
Co-authored-by: Oded Messer <[email protected] >
2023-05-15 07:55:43 +00:00
skshetry
2342099bd8
add: support virtual operation ( #9389 )
2023-05-11 08:31:25 +05:45
David de la Iglesia Castro
195e67c0c1
repro: pull all missing files ( #9395 )
...
* reproduce: Update `pull` to also pull `run cache`.
* reproduce: Update `pull` to also pull changed stages.
2023-05-10 00:29:44 +03:00
David de la Iglesia Castro
981baa8c30
studio: Send message on start event.
...
- Bump `dvc-studio-client>=0.9.0,<1`
Part of #8870
2023-05-08 20:08:47 +02:00
David de la Iglesia Castro
aa517bc90e
exp save: Support --message.
...
Custom commit message to use when committing the experiment.
Part of #8870
2023-05-08 20:08:47 +02:00
David de la Iglesia Castro
c74dc20b97
exp run: Support --message.
...
Custom commit message to use when committing the experiment.
Part of #8870
2023-05-08 20:08:47 +02:00
David de la Iglesia Castro
1ba3944944
api: exp_show: Postprocess empty strings as None.
...
Makes it easier to manipulate when converting to pandas DataFrame.
2023-05-08 17:10:27 +02:00
David de la Iglesia Castro
8620b6e5af
exp: Update --rev to support append action.
...
Closes #9390
2023-05-08 14:15:07 +02:00
Ruslan Kuprieiev
6b6084a848
tests: import: check that dvcfs is using main repo's cache ( #9417 )
...
Followup for https://github.com/iterative/dvc/pull/9415
2023-05-08 00:34:00 +03:00
Ruslan Kuprieiev
967dd5ea2b
import: don't forget to set cache.dir ( #9415 )
...
* import: don't forget to set cache.dir
* repo: open: try setting remote for local repos
2023-05-07 05:28:58 +03:00
Ruslan Kuprieiev
ad39bf14ed
repo: external_repo -> _external_repo
2023-05-07 04:14:25 +03:00
Ruslan Kuprieiev
01416df5a4
get: use Repo.open instead of external_repo
...
This should use `Repo.open` just like `dvc import`, to benefit from
handling local repos without cloning and redundant downloaads.
2023-05-07 04:14:25 +03:00
Ruslan Kuprieiev
eb592e7e33
repo: consolidate Repo.open logic
2023-05-07 04:14:25 +03:00
dberenbaum
2db07b047e
data status: exclude remote status by default
2023-05-06 18:21:11 +03:00
paulourbano
75952c4e36
tests: changing tests to reverted diff functionality
2023-05-05 22:25:38 +02:00
paulourbano
31b0b8de73
tests: adapting tests to new diff output
...
Issue #7960
2023-05-05 22:25:38 +02:00
paulourbano
fae47e6122
metrics: adds support for strings in metrics
...
Fixes #7960
2023-05-05 22:25:38 +02:00
Ruslan Kuprieiev
b044bcce5e
tests: lockfile: use different way of changing a cmd
2023-05-05 04:16:58 +03:00
dberenbaum
1f03c40dbe
add: msg for overlapping parent
2023-05-02 19:03:19 +03:00
David de la Iglesia Castro
2a04263f02
api: Add scm module with all_{X} methods for listing revs.
2023-04-28 12:33:03 +02:00
David de la Iglesia Castro
348446050e
api: Add exp_show.
...
Closes #8775
Closes #7167
2023-04-28 12:33:03 +02:00
David de la Iglesia Castro
64e787fa02
gc: Handle remote field in --cloud and --not-in-remote.
2023-04-27 10:30:39 +02:00
David de la Iglesia Castro
c7e2ec9707
gc: Add --not-in-remote arg.
...
Closes #2036
2023-04-27 10:30:39 +02:00
Oded Messer
d203bf9024
Fix: Prettifying unexpected error on FileExists for get/get-url/imp-url/add and introducing --force ( #9365 )
2023-04-27 00:41:09 +00:00
skshetry
e1bf418e72
tests: lazy tpi imports, ignore deprecation warning from setuptools ( #9362 )
2023-04-24 21:34:07 +05:45
David de la Iglesia Castro
b6d8c07d4d
studio: Ensure studio_repo_url works with exp run --queue.
...
Closes #9349
2023-04-21 21:04:48 +02:00
Peter Rowlands
b814531c84
exp: use mocked queue in test_apply_failed
2023-04-21 16:17:01 +09:00
Peter Rowlands
3b3cd0a0b2
exp: drop test_queue_remove_done func test in favor of mocked unit test
2023-04-21 16:17:01 +09:00
Peter Rowlands
ec090c5680
exp: use new collection in show/cli commands
...
- Updates 'dvc exp show --json' to use new data format
2023-04-20 16:58:32 +09:00
dberenbaum
1c394986db
fix tests
2023-04-15 23:46:47 +03:00
Saugat Pachhai (सौगात)
1be82fa56d
tests: remove unnecessary variable interpolation
...
dvc.run does not expand variables. It is only done when it's actually read from dvc.yaml file.
So during dvc run, the shell will try to expand the variable, which does not exist.
I don't think that the intention was to use shell variables. But I don't think we should ever
use them, as they will fail on some shells (eg: fish) and keep the scripts as simple as possible.
2023-04-14 13:01:53 +02:00
Peter Rowlands
c71a4082e6
testing: expose force=... in scm_add
2023-04-10 13:17:47 +03:00
Peter Rowlands
ce269ffa58
exp: use explicit scm.add(force=True) when necessary
...
- add test for dir dep containing gitignored files
2023-04-10 13:17:47 +03:00