Peter Rowlands
7868c1301c
exp: enforce waiting for task completion in CI
2023-03-22 18:58:42 +09:00
Ruslan Kuprieiev
dfe76c54d7
erepo: set subrepos/uninitialized explicitly
2023-03-22 02:26:44 +02:00
David de la Iglesia Castro
121d56b739
hydra: resolve OmegaConf interpolations. ( #9212 )
...
Closes #9196
2023-03-20 21:38:22 +05:45
skshetry
8399bf612a
sconfig: add support for studio token ( #9213 )
...
config: add support for studio token
2023-03-20 20:59:52 +05:45
daniele
6c1b786564
parsing: fix foreach resolution with int keys ( #8904 )
2023-03-20 18:40:30 +05:45
David de la Iglesia Castro
2d820cccad
deps: bump dvc-render>=0.3.1<0.4.0.
...
For https://github.com/iterative/dvc-render/pull/124
2023-03-16 21:36:02 +01:00
skshetry
58029e9719
exp push: push experiments revs to studio ( #9160 )
...
* exp push: push experiments revs to studio
* log json data that is sent
2023-03-16 11:24:50 +05:45
Ruslan Kuprieiev
990e834f1d
repo: open: handle bare git repos
...
If we are asked to open a potentially unitialized repo, we need to make sure
it is not a bare git repo, so that we don't accidentally start putting dvc
files inside git control dir.
Discovered while working on #8789
2023-03-16 02:03:31 +02:00
Dave Berenbaum
12955da3c3
exp: fail fast in empty git repo ( #8840 )
2023-03-14 17:16:17 +00:00
David de la Iglesia Castro
e73cc9b40a
exp: Include STUDIO_REPO_URL in run_env.
...
Closes #8951 .
2023-03-14 13:43:03 +01:00
Ruslan Kuprieiev
b56f6b69dd
exp: push/pull: don't include baseline commit
...
Fixes #6592
2023-03-14 14:00:14 +02:00
skshetry
16ecd53b71
tests: remove gc.collect() from windows ( #9159 )
2023-03-13 13:37:57 +05:45
Ruslan Kuprieiev
612f3039e0
repo: move state/index/data_index to site_cache_dir
...
We use all of these for optimization and should not depend on a potentially slow or broken
filesystem on which repository resides (could be HDD or CIFS/NFS/overlayfs/etc).
This PR means a few things:
* all odd filesystems that dvc repo might be on will work quickly out of the box
* when we start caching cloned repositories for `dvc get/import`, we will be
able to cache indexes for them as well (note that bare clones don't have a
worktree so there is no place for .dvc/tmp with the old approach).
* `index.dir` and `state.dir` are now obsolete.
* `dvc init` will cleanup site_cache_dir.
Related #5562
2023-03-13 02:58:23 +02:00
skshetry
aaa825a9a8
config: ignore unspecified keys from feature section ( #9153 )
...
A warning is shown to the user for the unsupported/ignored keys, and then ignored.
The warning is raised only once per interpreter session.
2023-03-10 21:52:05 +05:45
Ruslan Kuprieiev
3aa9f51e36
output: suppress cloud.pull errors on cache collection
...
Fixes https://github.com/iterative/studio/issues/5261
2023-03-09 22:44:32 +02:00
Peter Rowlands
8589aa4001
tests: mark test_queue_remove_done xfail
2023-03-09 16:25:09 +09:00
Peter Rowlands
8cbc4c43f1
tests: use session-scoped exp celery fixtures when possible
2023-03-09 16:25:09 +09:00
Peter Rowlands
417c327143
exp: add session-scoped celery test fixtures
2023-03-09 16:25:09 +09:00
Peter Rowlands
204eebaf15
tests: use brancher.switch
2023-03-09 15:02:26 +09:00
dberenbaum
fe7db32311
studio: handle revision errors when posting
2023-03-08 22:19:32 +01:00
skshetry
48a63ca588
try to improve test speed ( #9136 )
...
* tests: fix logic to gc.collect() on Windows + 3.11
* dvc.cli: cache get_main_parser()
* tests: isolate environment on a session-level
* bring back gc.collect()
2023-03-08 22:11:42 +05:45
Gao
4459d6ac57
Add back an dvc ignore test
...
Original from
https://github.com/iterative/dvc/pull/8767#discussion_r1070778749
2023-03-08 12:03:07 +02:00
David de la Iglesia Castro
f1ea64c4ef
studio: Send metrics on done event. ( #9027 )
2023-03-07 19:47:22 +01:00
Peter Rowlands
9101fce761
proc: remove dvc.proc
2023-03-07 18:17:01 +09:00
David de la Iglesia Castro
dde456c923
plots: Fix match_defs_renderers when plots are defined in nt format.
...
`plots.show` returned `definitions` in native `nt` format but sources in `posixpath` format so the matching was failing.
Closes #8689
- Add `test_show_plots_defined_with_native_os_path`.
2023-03-06 19:16:29 +01:00
David de la Iglesia Castro
cb9d3529af
plots: Remove --from-config
2023-03-06 19:16:29 +01:00
skshetry
93eea0cd42
deps: bump scmrepo to 0.1.15; close subrepo.dvc on tests teardown ( #9122 )
2023-03-06 20:21:42 +05:45
skshetry
ddfa607437
tests: don't leak files/descriptors when tests finish ( #9119 )
...
close open files/descriptors when tests finish
2023-03-06 18:06:37 +05:45
skshetry
c5a3566e49
deps (tests): require pytest-xdist>=3.2, use -n=logical workers and workstealing scheduler ( #9116 )
2023-03-06 15:54:45 +05:45
skshetry
e7d4f5b24e
tests: filter warnings ( #9115 )
2023-03-06 15:41:45 +05:45
David de la Iglesia Castro
e4d514c990
scm: Remove unused GitMergeError.
...
Not used after https://github.com/iterative/dvc/pull/9096
2023-03-03 18:09:57 +01:00
Peter Rowlands
2cf3a12e46
tests: unmark exp celery tests as xfail
2023-03-02 15:44:34 +09:00
Peter Rowlands
78fb5275e5
exp: add dvc exp clean command
2023-03-02 12:35:54 +09:00
Ruslan Kuprieiev
59a4c4f67c
remote: set hash_name as md5
...
Fixes #7977
2023-03-01 13:26:24 +02:00
Dave Berenbaum
35b648bbcf
plots: shorten names in the legend ( #8900 )
...
* plots: shorten field names
* plots: handle missing field names
* plots: make compatible with py3.8
* plots: fix for missing data
* plots: add test for field shortening
* plots: strip separators regardless of os
* plots: don't shorten field name
* plots: drop test for shortening field name
2023-02-24 17:26:16 +01:00
Peter Rowlands
96ac321dd5
repo: use local root when determining state/index db dirname
2023-02-24 16:33:42 +09:00
David de la Iglesia Castro
184cc35cf0
pull: Add allow_missing flag.
...
Allows `pull` to succeed even if some files or directories are missing.
Closes #4746
2023-02-24 09:11:50 +02:00
Peter Rowlands
ad5b91e51a
exp show: cache collected git revs
2023-02-24 14:18:58 +09:00
Ruslan Kuprieiev
37761a2627
data: status: get rid of --not-in-remote
2023-02-21 12:32:40 +02:00
Ruslan Kuprieiev
968a8fde99
data: status: introduce --remote-refresh
2023-02-21 12:32:40 +02:00
David de la Iglesia Castro
3043b6588f
exp save: Use pathspec to handle include_untracked.
...
Closes #9061
2023-02-21 09:43:25 +01:00
47208533a2
Add metrics_show to dvc.api ( #9042 )
...
* refactor: add metrics_show, rename module to show
* tests: add functional tests for metrics_show
* api.show: return empty dict for no params/metrics
* test_show: Return relpaths in `metrics_repo`.
---------
Co-authored-by: codamuse <[email protected] >
Co-authored-by: David de la Iglesia Castro <[email protected] >
2023-02-20 21:53:38 +00:00
Ruslan Kuprieiev
c34cbf63af
data: status: introduce --not-in-remote
...
Also supports cloud versioning.
Fixes #8761
2023-02-20 12:25:17 +02:00
dependabot[bot] and Saugat Pachhai
19038b32bd
build(deps-dev): unpin pytest-docker
...
* fix docker fixtures and unpin pytest-docker
* git_server: mount volume to different /custom-cont-init.d
---------
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-02-20 12:57:31 +05:45
Peter Rowlands
648edd71eb
exp: move apply tests into their own module
2023-02-20 14:36:38 +09:00
Peter Rowlands
0c95cde712
exp: remove unused ApplyConflictError
2023-02-20 14:36:38 +09:00
Peter Rowlands
e218431f64
apply: add --no-force deprecation message
2023-02-20 14:36:38 +09:00
skshetry
1de37556d5
bump ruff to v0.0.247 ( #9050 )
...
* bump ruff to v0.0.247
* ruff: enable pep8-naming check
rename some camelCased APIs, especially in logger
rename G variables to graph
ignore some variable namings and help messages in dvc.commands
2023-02-18 16:50:35 +05:45
David de la Iglesia Castro
b7b7eff4a3
tests: Fix test_deleted.
...
Closes #6297
#9017 actually fixed this but the test was incorrect (something wrong with caplog).
2023-02-16 11:43:09 +01:00
Ruslan Kuprieiev
49b5157abe
diff: use index
2023-02-15 06:40:02 +02:00