skshetry
4a6f3ed64a
dvc.testing: fix lockfile in docker_services fixture ( #9088 )
...
dvc.testing.docker_services: rollback to previous state
where we were not tearing down the containers
2023-02-28 16:54:33 +05:45
David de la Iglesia Castro
9f0c4350bd
deps: Bump scmrepo>=0.1.13.
...
Closes #9080
2023-02-28 17:46:09 +09:00
Ruslan Kuprieiev
a91528c3c9
Revert "testing: fixtures: fix docker regression"
...
This reverts commit b80d84e689 .
2023-02-27 15:02:22 +02:00
Ruslan Kuprieiev
b80d84e689
testing: fixtures: fix docker regression
2023-02-27 14:17:07 +02:00
skshetry
2a2c02c184
remove typing.cast ( #9082 )
2023-02-26 13:15:54 +05:45
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
Peter Rowlands
50fd8ca15d
exp show: cache git refs per show() call
2023-02-24 16:33:26 +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
Ruslan Kuprieiev
81da91a973
exp: run: don't relink during commit
...
Part of #8809
2023-02-24 08:09:35 +02:00
Peter Rowlands
ad5b91e51a
exp show: cache collected git revs
2023-02-24 14:18:58 +09:00
Peter Rowlands
391cf80e7b
exp: support caching collected exp data
2023-02-24 14:18:58 +09:00
Peter Rowlands
8d13486048
exp: add SerializableExp dataclasses
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
09ccd9c7e4
repo: data_index: store in .dvc/tmp/index/data
2023-02-20 21:57:27 +02:00
Ruslan Kuprieiev
cd9dd0a312
index: use has_node instead of ls
...
Current code doesn't work for prefixes longer than one, which makes index cache
effectively not work and it should've used has_node from the very start anyway.
2023-02-20 17:45:15 +02:00
Ruslan Kuprieiev
6fbbbeccc5
index: store data index under tree prefix
...
Tidying it up, so root of the index will look like this:
```
tree/
remote/
```
This hasn't been released yet, so we are not breaking anything.
2023-02-20 13:33:22 +02:00
Ruslan Kuprieiev
c34cbf63af
data: status: introduce --not-in-remote
...
Also supports cloud versioning.
Fixes #8761
2023-02-20 12:25:17 +02:00
Ruslan Kuprieiev
b76aad8d56
data: status: rename with_missing to not_in_cache
2023-02-20 12:25:17 +02:00
Ruslan Kuprieiev
68bf095eae
remote: rename index prefix from remotes to remote
2023-02-20 12:24:46 +02:00
Ruslan Kuprieiev
ea6e01d0e0
dvcfs: implement get_file
...
Currently we use `open`, which is much slower. For example,
```
$ dvc get dvc-bench data/small/dataset
```
goes down from 110sec to 50sec.
Discovered as a part of https://github.com/iterative/dvc-bench/issues/419
2023-02-20 11:10:13 +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
Peter Rowlands
d3182e0dd9
exp apply: drop --no-force CLI option
2023-02-20 14:36:38 +09:00
Peter Rowlands
e040e875dc
exp apply: simplify apply behavior to use checkout instead of merge
2023-02-20 14:36:38 +09:00
Peter Rowlands
303da84b18
exp: add ApplyStash implementation
2023-02-20 14:36:38 +09:00
Peter Rowlands
03bfdf2663
deps: use ranges for dvc sub-packages
2023-02-20 14:35:08 +09:00
skshetry
8edaef0103
deps: drop importlib-resources and typing-extensions ( #9055 )
...
deps: remove importlib-resources and typing-extensions
2023-02-19 11:36:48 +05:45
skshetry
fd8a8c2729
pyproject: format using pyproject-fmt ( #9053 )
...
I haven't added pyproject-fmt to pre-commit hook because of two reasons:
1. There is a bug that keeps adding empty lines after `[[tool.mypy.overrides]]`.
2. The list gets exploded to multiple lines. However, this is a minor issue.
2023-02-18 23:07:57 +05:45
dependabot[bot]
30337bf0ba
build(deps): bump pyinstaller from 5.7.0 to 5.8.0 ( #9013 )
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.7.0 to 5.8.0.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases )
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst )
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.7.0...v5.8.0 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-18 22:53:17 +05:45
skshetry
5426ca6f79
deps (tests): unpin test deps ( #9052 )
2023-02-18 22:41:50 +05:45
skshetry
a89c25700f
pyproject.toml: cleanup metadata ( #9051 )
2023-02-18 17:40:36 +05:45
dependabot[bot]
0e0bb8ad76
build(deps-dev): bump mypy from 0.991 to 1.0.1 ( #9049 )Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
...
Bumps [mypy](https://github.com/python/mypy ) from 0.991 to 1.0.1.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.991...v1.0.1 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-18 17:03:41 +05:45
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
Ruslan Kuprieiev
098685b8f3
deps: bump dvc-data to 0.40.4
...
Improves index view related performance (e.g. `dvc diff`).
2023-02-18 11:35:01 +02:00
Ruslan Kuprieiev
8f549c8a8d
config: enable data index caching by default
2023-02-18 08:00:58 +02:00
Ruslan Kuprieiev
e56d97bb28
gha: user ubuntu 20.04 for deb packages
...
18.04 will reach EOL in april and will be dropped by gha.
18.04 also comes with an old sqlite version which forces us to use obsolete
syntax.
2023-02-18 08:00:58 +02:00
Ruslan Kuprieiev
07b72c20e9
repo: move data_index to .dvc/tmp/index
2023-02-17 21:43:57 +02:00
Ruslan Kuprieiev
592f251481
repo: use tmp_dir if available
2023-02-17 21:43:57 +02:00
Ruslan Kuprieiev
890c0020ed
Revert "repo: use tmp_dir if available"
...
This reverts commit 7ccf35b47e .
2023-02-17 21:25:46 +02:00
Ruslan Kuprieiev
7ce0b1cba2
Revert "repo: move data_index to .dvc/tmp/index"
...
This reverts commit d68599a5f7 .
2023-02-17 21:25:46 +02:00
Ruslan Kuprieiev
b8a9c37af5
Revert "config: enable data index caching by default"
...
This reverts commit 1af63acae5 .
2023-02-17 21:25:46 +02:00
Ruslan Kuprieiev
1af63acae5
config: enable data index caching by default
2023-02-17 19:55:25 +02:00
Ruslan Kuprieiev
d68599a5f7
repo: move data_index to .dvc/tmp/index
2023-02-17 19:55:25 +02:00
Ruslan Kuprieiev
7ccf35b47e
repo: use tmp_dir if available
2023-02-17 19:55:25 +02:00