skshetry
e51345e276
get/import: lazy import dvc.scm; reduces dvc --help by ~20% ( #8996 )
2023-02-09 15:04:55 +05:45
skshetry
00e61e18ae
logging: do not disable other loggers ( #8995 )
...
Closes https://github.com/iterative/dvc/issues/8631
2023-02-09 15:04:29 +05:45
skshetry
5490fc00d1
logger: check isatty stream to print colored logs or not instead of depending on colorama ( #8993
...
logger: check isatty stream to print colored logs or not
2023-02-09 13:50:38 +05:45
skshetry
f1043676da
[WIP] logging: change from dictConfig to equivalent code for creating logge… ( #8985
...
logging: change from dictConfig to equivalent code for creating loggers/handlers/formatters
dictConfig clears all handlers, and potentially disables existing loggers (we disabled this functionality
though). There's much more code than necessary in dictConfig than what we need.
I have tried to keep the setup equivalent to what we had in the config, so I have not tried to cleanup
the code.
2023-02-09 09:34:14 +05:45
Ruslan Kuprieiev
f7ebcbb974
deps: bump dvc-data to 0.39.3
2023-02-09 05:44:50 +02:00
dependabot[bot]
c637b963e0
build(deps-dev): bump dvc-azure from 2.21.0 to 2.21.1 ( #8991 )
...
Bumps [dvc-azure](https://github.com/iterative/dvc-azure ) from 2.21.0 to 2.21.1.
- [Release notes](https://github.com/iterative/dvc-azure/releases )
- [Commits](https://github.com/iterative/dvc-azure/compare/2.21.0...2.21.1 )
---
updated-dependencies:
- dependency-name: dvc-azure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-09 08:31:13 +05:45
Ruslan Kuprieiev
9156bb80db
output: rename odb -> cache
2023-02-09 00:44:18 +02:00
Ruslan Kuprieiev
58295ca0ab
repo: rename odb -> cache
...
We used to have it named `cache` before, but these days it is clear that
you can have three odbs: just odb (e.g. in-memory), cache (typically local)
or remote (typically cloud). Fixing naming here before proceeding with
introducing `out.odb` and `out.cache`.
In preparation for migration to https://github.com/iterative/dvc-data/pull/304
2023-02-08 23:05:45 +02:00
skshetry
4176007493
push: check if versioning is supported or not during checkout on cloud versioning ( #8949 )Fixes https://github.com/iterative/dvc/issues/8824
...
* push: check if versioning is supported or not during checkout on cloud versioning
* bump dvc-data to 0.38.4
2023-02-08 17:05:27 +05:45
dependabot[bot] and Gao
9d7883f529
build(deps-dev): bump pytest-xdist from 3.1.0 to 3.2.0 ( #8981 )
...
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases )
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.1.0...v3.2.0 )
---
updated-dependencies:
- dependency-name: pytest-xdist
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>
Co-authored-by: Gao <[email protected] >
2023-02-08 07:31:21 +00:00
Peter Rowlands
93c556acdd
index: fix index entries for partial import stages
2023-02-08 15:34:15 +09:00
Peter Rowlands
676b1e47e9
import-url: update stage md5 after unpartialing imports
2023-02-08 15:34:15 +09:00
Peter Rowlands
0b141ac08a
testing: test cloud versioned import-url --no-download
2023-02-08 15:34:15 +09:00
dependabot[bot]
b4db1e06a1
build(deps-dev): bump dvc-render from 0.1.0 to 0.1.1 ( #8982 )
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.1.0...0.1.1 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-08 09:11:42 +05:45
dependabot[bot]
0d0fff6ddc
build(deps-dev): bump dvc-data from 0.38.1 to 0.38.3 ( #8983 )
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.38.1 to 0.38.3.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.38.1...0.38.3 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-08 09:11:28 +05:45
Hagai Kariti
6c8c26f741
Support setting a exp name prefix in hydra sweeps
2023-02-07 18:49:23 +01:00
Peter Rowlands
f68a12558a
testing: mark 00 prefix tests xfail on fs without find()
2023-02-07 15:17:29 +09:00
Ruslan Kuprieiev
a8a5b29fb7
deps: bump dvc-data to 0.38.1 ( #8976 )
2023-02-07 06:58:15 +02:00
skshetry
037e2e54f0
serialization: reorder files section metadata ( #8950
...
serialization: reorder files section
2023-02-07 10:05:36 +05:45
skshetry
ae80889477
logging: defer calling colorama.init() in jupyter, otherwise initialize immediately ( #8969 )Closes https://github.com/iterative/dvc/issues/8957
...
logging: init colorama before logging if outside jupyter env
Otherwise, tty detection does not work as `colorama.init()` mutates
sys.stdout/sys.stderr, and after `dictConfig()`, the handlers will hold
on to the stream.
2023-02-07 10:05:05 +05:45
Gao
e1acab5113
Use pygit2 backend for fetch_refspecs ( #8907 )
...
fix : #8762
1. partly solve #8787 and #8477
2. Improve the performance
3. Bump `scmrepo` into 0.1.9
2023-02-06 16:07:00 +02:00
d84196db62
studio: Move post_live_metrics from queue to executor ( #8955 )
...
* studio: Move `post_live_metrics` from `queue/workspace` to `executor/base`.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update dvc/repo/experiments/utils.py
Co-authored-by: skshetry <[email protected] >
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2023-02-06 13:31:10 +00:00
Peter Rowlands
80c2815e67
deps: bump dvc-data to 0.37.8
2023-02-06 21:18:44 +09:00
Peter Rowlands
e42a01a3dd
testing: re-add 00 prefix remote traverse tests
2023-02-06 21:18:44 +09:00
Ruslan Kuprieiev
8e1b75feb5
index: build_data_index: handle empty dirs ( #8959 )
...
Fixes https://github.com/iterative/dvc/issues/8958
2023-02-06 01:44:15 +02:00
Saugat Pachhai (सौगात)
4ec6d64629
add .git-blame-ignore-revs
2023-02-04 10:02:31 +05:45
skshetry
a86470ccbc
update black and change line-length to 88 ( #8953 )
2023-02-04 05:28:07 +02:00
dependabot[bot]
5d2701341b
build(deps-dev): bump pylint from 2.16.0 to 2.16.1 ( #8944 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 14:06:36 +05:45
Peter Rowlands
97589a1358
testing: add tests for pull after import-url --version-aware
2023-02-03 15:50:57 +09:00
Peter Rowlands
9e72ce53cd
deps: bump dvc-data to 0.37.5
2023-02-03 15:50:57 +09:00
Peter Rowlands
e34a6d3b30
update: fix meta & version ID merge on worktree update
2023-02-03 13:23:04 +09:00
Peter Rowlands
25dcc33580
output: build from files in get_obj() regardless is hash_info set
2023-02-03 13:23:04 +09:00
frederik-sandfort
18fa1a0272
Custom header for dvc webdav ( #8933 )Fix https://github.com/iterative/dvc/issues/8931
...
* include custom auth header for webdav
* Revert "include custom auth header for webdav"
This reverts commit d2f2b2889b6bcf0429e4a28076f709a04642ae3a.
* include custom auth header for dvc webdav, ran unit tests
* update dvc-webdav version
2023-02-02 16:36:11 +05:45
dependabot[bot]
49a27f4140
build(deps-dev): bump dvc-render from 0.0.17 to 0.1.0 ( #8935 )
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.17 to 0.1.0.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.17...0.1.0 )
---
updated-dependencies:
- dependency-name: dvc-render
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-02 14:13:27 +05:45
dependabot[bot]
9b2aa79c18
build(deps-dev): bump pylint from 2.15.10 to 2.16.0 ( #8936 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.10 to 2.16.0.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.10...v2.16.0 )
---
updated-dependencies:
- dependency-name: pylint
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-02 14:12:53 +05:45
Ruslan Kuprieiev
24023c6977
index: introduce data_keys ( #8938 )
...
`data_keys` are similar to `outs`, but they provide more granularity, so we
can use them in `build_data_index` to rebuild index views with filtered
outputs. E.g. when running `dvc diff dir/file`, workspace index should only
have `dir/file` in it.
This also could be used for standalone (non-output) data in the future.
Pre-requisite for #8930
2023-02-02 05:50:16 +02:00
Ruslan Kuprieiev
5310bcdcec
deps: bump dvc-data to 0.37.3 ( #8923 )
2023-02-02 04:18:18 +02:00
dependabot[bot]
ae92154cec
build(deps-dev): bump beautifulsoup4 from 4.11.1 to 4.11.2 ( #8928 )
...
Bumps [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/ ) from 4.11.1 to 4.11.2.
---
updated-dependencies:
- dependency-name: beautifulsoup4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 09:10:50 +05:45
Ruslan Kuprieiev
f661cee8f6
stage: use repo.fs directly without copying ( #8929 )
...
Otherwise when using brancher we end up in a strange situation where even
though we are collecting targets from `gitfs`, we are still using `localfs`
as `self.fs`, which make operations like `self.fs.abspath` in
`collect_granular` return invalid paths.
2023-02-01 05:21:53 +02:00
Ruslan Kuprieiev
e07c85a993
index: collect_targets: introduce onerror ( #8925 )
2023-02-01 03:49:27 +02:00
Ruslan Kuprieiev
58d9e379fe
tests: gc: use timedelta again ( #8926 )
...
Leftover from #8912
2023-02-01 03:14:22 +02:00
skshetry
524162dc3f
version/info: match dashes' length below DVC version ( #8921 )
2023-01-31 18:32:04 +05:45
skshetry
aa15b21dce
logging: log pkg version/type, platform info and cli arguments ( #8918 )
...
logging: log pkg version and type, platform info and cli arguments
2023-01-31 15:46:14 +05:45
Peter Rowlands
0404967591
deps: bump dvc-gs to 2.21.1
2023-01-31 17:26:44 +09:00
Peter Rowlands
465d886c29
testing: add tests for version-aware import-url
2023-01-31 15:55:44 +09:00
Peter Rowlands
459adfb40f
import-url: disable push on version aware imports before saving
2023-01-31 15:55:44 +09:00
Peter Rowlands
fe9f8654a3
testing: add test for worktree update
2023-01-31 15:55:44 +09:00
skshetry
8208846003
bump ruff to 0.0.238 ( #8915 )
2023-01-31 11:24:03 +05:45
Peter Rowlands
73aea2d972
ci: run dvc-s3 tests on DVC pull requests
2023-01-31 14:13:55 +09:00
Ruslan Kuprieiev
10184e9370
tests: gc: use timedelta ( #8912 )
...
Bug from https://github.com/iterative/dvc/pull/8880
2023-01-31 05:18:09 +02:00
Ruslan Kuprieiev
2690f05cee
pre-commit: bump isort to 5.12.0
...
https://github.com/PyCQA/isort/issues/2077
2023-01-31 04:02:24 +02:00
Ruslan Kuprieiev
34c2c95115
index: expose rev property ( #8909 )
...
index: add rev property
This is very useful to identify indexes that are built from git revisions
and so are describing an immutable state and can be used for caching.
We were already using this for `__repr__`.
2023-01-30 20:18:54 +02:00
skshetry
5c6c1dc719
mypy: unignore module override ( #8902 )
2023-01-28 15:08:52 +05:45
98bcfad8e7
build(deps-dev): bump scmrepo from 0.1.6 to 0.1.7 ( #8821 )
...
* build(deps-dev): bump scmrepo from 0.1.6 to 0.1.7
Bumps [scmrepo](https://github.com/iterative/scmrepo ) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/iterative/scmrepo/releases )
- [Commits](https://github.com/iterative/scmrepo/compare/0.1.6...0.1.7 )
---
updated-dependencies:
- dependency-name: scmrepo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
* mypy: remove scmrepo from ignored modules
* Fix mypy issues
---------
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-01-28 14:26:00 +05:45
skshetry
7ab4c59d70
test: run pytest-style checks ( #8901 )
2023-01-28 14:10:53 +05:45
skshetry
a137b2a6bc
update ruff and enable flake8-logging-format and flake8-type-checking ( #8894 )
...
* update ruff and enable flake8-logging-format and flake8-type-checking check
* Update dvc/external_repo.py
* Update dvc/fs/dvc.py
* Update dvc/repo/experiments/__init__.py
* Update dvc/repo/experiments/queue/base.py
* Update pyproject.toml
2023-01-27 19:14:19 +05:45
Daniele Trifirò
6f0e8a8db5
tests: fix test_iter_revs mock
2023-01-27 12:52:46 +01:00
Daniele Trifirò
d294945499
gc: fix usage with --date
2023-01-27 12:52:46 +01:00
Dave Berenbaum
db70d1cc5c
analytics: differentiate ci users ( #8838 )
2023-01-26 21:50:14 +05:45
Andrii Korzhuk
ed6e11e856
Fixed typo in _format_field function
2023-01-26 13:50:40 +01:00
skshetry
c1cd13c34f
serialize: fix loading of cloud metadata from .dvc/dvc.lock files ( #8889 )
2023-01-26 16:18:03 +05:45
David de la Iglesia Castro
12dd746165
output: Pass version_aware=True to fs if files is present.
...
This will be ignored by filesystems that don't support `version_aware`.
Closes #8853
2023-01-26 10:48:59 +01:00
5165fb67a1
[pre-commit.ci] pre-commit autoupdate ( #8869 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.223 → v0.0.230](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.223...v0.0.230 )
* Update .pre-commit-config.yaml
* fix lint issues
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-01-26 14:24:09 +05:45
Peter Rowlands
b2c1c4dccd
data_cloud: move version_aware config check to get_remote
2023-01-26 17:21:47 +09:00
Peter Rowlands
b060cadbf1
deps: bump dvc-data to 0.36.2
2023-01-26 17:21:47 +09:00
Peter Rowlands
7c55a9c7cd
testing: add initial versioned remote tests
2023-01-26 17:03:50 +09:00
Peter Rowlands
037b5b2e0a
testing: add cloud versioning remote fixtures
2023-01-26 17:03:50 +09:00
dependabot[bot]
99acb8e335
build(deps-dev): bump dvc-data from 0.36.0 to 0.36.1 ( #8887 )
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.36.0 to 0.36.1.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.36.0...0.36.1 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-26 08:32:02 +05:45
Ruslan Kuprieiev
b46cfbda5d
deps: bump dvc-data to 0.36.0 ( #8885 )
2023-01-26 00:22:12 +02:00
Dave Berenbaum
a8d193bf2a
queue: update kill ui messages ( #8798 )
...
* queue: update kill ui messages
* queue kill: update ui, kill all valid tasks
* queue kill: update wording of ui
2023-01-25 20:08:27 +05:45
dependabot[bot]
0b1cf6c771
build(deps-dev): bump dvc-gs from 2.20.0 to 2.21.0 ( #8841 )
...
Bumps [dvc-gs](https://github.com/iterative/dvc-gs ) from 2.20.0 to 2.21.0.
- [Release notes](https://github.com/iterative/dvc-gs/releases )
- [Commits](https://github.com/iterative/dvc-gs/compare/2.20.0...2.21.0 )
---
updated-dependencies:
- dependency-name: dvc-gs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-25 19:29:21 +05:45
skshetry
b3aa698cd4
dumpd: serialize files at the end in .dvc files ( #8879 )
2023-01-25 18:52:15 +05:45
skshetry
bb9a3a0403
import/import-url: try not to delete dvcfile before import/import-url completes ( #8876 )
...
* import/import-url: try not to delete dvcfile before import/import-url completes
* use repo.stage.create instead of internal create_stage utility
2023-01-25 18:16:45 +05:45
skshetry
3427e115eb
data status: check if change.old.hash_info is None or not ( #8878 )
...
data:status: check if change.old.hash_info is None or not
2023-01-25 14:24:38 +02:00
skshetry
3d5f4dc66c
add support for output-specific remotes ( #8862 )
...
Also splits metadata in `files` to cloud vs local. But this happens
during dump/load, so actual behaviour is changed. During runtime,
the metadata is merged and loaded. During dump, the metadata
are split if there is a `remote` set.
2023-01-25 18:06:12 +05:45
David de la Iglesia Castro
80633f4fad
stage.save: Remove merge_versioned option.
...
If we want `add`, `commit` and `move` to work for cloud versioning, option must be always True so it is the same as not having it.
Closes #8828
(We were not passing `merge_versioned=True` in `dvc commit`)
2023-01-25 10:35:37 +01:00
Ruslan Kuprieiev
8bda3650c5
deps: bump dvc-data to 0.35.3
2023-01-24 23:06:34 +02:00
David de la Iglesia Castro
ea2e5dc3e5
output: Don't serialize hash_info or meta in cloud versioning.
...
Closes #8357
2023-01-24 18:40:39 +01:00
dependabot[bot]
61afdca3a6
build(deps-dev): bump dvc-data from 0.35.1 to 0.35.2 ( #8871 )
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.35.1 to 0.35.2.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.35.1...0.35.2 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-24 20:47:16 +05:45
Ruslan Kuprieiev
6a6bc7035a
data: status: use data index ( #8846 )
...
Pre-requisite for #8761
2023-01-23 21:29:32 +02:00
Ruslan Kuprieiev
ccc97622fa
deps: bump dvc-ssh to 2.21.0 ( #8865 )
...
* deps: bump dvc-ssh to 2.21.0
* Update pyproject.toml
2023-01-23 01:36:52 +02:00
Ruslan Kuprieiev
916b5d169f
deps: bump dvc-azure to 2.21.0
2023-01-23 00:46:58 +02:00
Peter Rowlands
38e9b2ba95
deps: bump dvc-data to 0.35.1
2023-01-21 03:44:02 +09:00
Dave Berenbaum and skshetry
18f039d7c7
add viztracer async option ( #8856 )
...
* add viztracer async option
* Update dvc/_debug.py
Co-authored-by: skshetry <[email protected] >
2023-01-20 22:29:11 +05:45
skshetry
f1c9e9365b
remove setup.py file ( #8851 )
2023-01-20 20:26:13 +05:45
Ruslan Kuprieiev
b50d1ee674
deps: bump dvc-data to 0.35.0
2023-01-20 04:16:12 +02:00
Peter Rowlands
1c33024b2c
deps: bump dvc-data to 0.34.0
2023-01-19 19:09:45 +09:00
David de la Iglesia Castro and Peter Rowlands
dd2d2dce19
param: Fix status check for Tuples.
...
Closes #8803
Update dvc/dependency/param.py
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2023-01-19 08:19:16 +01:00
David de la Iglesia Castro
5f558d003a
deps: bump dvc-data to 0.33.0
...
- Update `test_gc`
2023-01-18 15:17:07 +02:00
David de la Iglesia Castro
3676f35b7c
output.remove: Pass explicit recursive flag.
...
Per changes in https://github.com/iterative/dvc-objects/pull/176
2023-01-18 15:17:07 +02:00
David de la Iglesia Castro
9af6fcad4a
exp run: Fix --dry option.
...
Closes #8831
2023-01-17 13:32:20 +01:00
skshetry
6d80b72434
lint: run lint checks on all platforms ( #8832 )
2023-01-17 10:51:57 +05:45
pre-commit-ci[bot]
46d9290fc2
[pre-commit.ci] pre-commit autoupdate ( #8830 )
...
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.222 → v0.0.223](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.222...v0.0.223 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-01-17 08:55:33 +05:45
skshetry
c47c2123fb
cleanup linters: get rid of pylint-pytest, run pylint only on dvc/ directory, etc ( #8822 )
...
* cleanup linters: get rid of pylint-pytest, run pylint only on dvc/ directory, etc.
* remove pylint direcitves
* Apply suggestions from code review
* Update pyproject.toml
2023-01-17 08:35:19 +05:45
Dave Berenbaum
d25d26ff74
exp: drop some words from exp names ( #8811 )
2023-01-16 17:11:04 +01:00
Peter Rowlands
c2e4f51479
serialize: fix mypy error
2023-01-16 15:58:21 +09:00
Peter Rowlands
977a1f9f43
tests: update for dvc-objects batched transfer
2023-01-16 15:58:21 +09:00
Peter Rowlands
608269dc88
status: remove deprecated/unused dvc-data.hashfile.status flag
2023-01-16 15:58:21 +09:00
Peter Rowlands
e48d0d1d9c
tests: remove duplicated dvc-objects/dvc-data tests
2023-01-16 15:58:21 +09:00
Peter Rowlands
bf08bd3f12
deps: bump dvc-data to 0.32.0
2023-01-16 15:58:21 +09:00
dependabot[bot]
db5dfdd6bc
build(deps-dev): bump pytest from 7.2.0 to 7.2.1 ( #8819 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.2.0 to 7.2.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.2.0...7.2.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 08:37:15 +05:45
dependabot[bot]
3b10f40ca3
build(deps-dev): bump dvc-task from 0.1.10 to 0.1.11 ( #8820 )
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.10 to 0.1.11.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.10...0.1.11 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 08:36:39 +05:45
Ruslan Kuprieiev
4660443d0e
deps: bump dvc-data to 0.31.4
2023-01-16 04:09:00 +02:00
Ruslan Kuprieiev
a92ace0054
deps: bump dvc-data to 0.31.3
2023-01-16 01:16:35 +02:00
skshetry
309ae4d995
mypy: enable check-untyped-defs ( #8815 )
2023-01-15 21:40:40 +05:45
daniele
e1254c9ece
Add misc type hints ( #8430 )
2023-01-15 17:58:34 +05:45
skshetry
7a65ac06b2
mypy: don't ignore all imports, also disallow implicit optional ( #8814 )
...
* mypy: don't ignore all imports
* mypy: disallow implicit_optional
2023-01-15 16:25:03 +05:45
skshetry
b0052aa666
pre-commit update: flake8/ruff/pyupgrade/black/isort ( #8813 )
2023-01-15 14:56:54 +05:45
skshetry
da27174e02
dvcfile: rename PipelineFile to ProjectFile, get rid of Dvcfile class, cleanups, etc. ( #8812 )
...
dvcfile: rename PipelineFile to ProjectFile, get rid of Dvcfile class, cleanups etc
2023-01-15 12:45:10 +05:45
Ruslan Kuprieiev
aabdddc2b7
index: introduce build_data_index
...
This is a generally useful function that builds a data index from repo index.
This is currently only used in cloud versioning, but it is going to be used in
`status`, `diff` and other data-centric operations
2023-01-15 01:45:09 +02:00
karajan1001
fc1a192c90
Bump pathspec to 0.10.3
...
fix : #8217
1. Replace group name to avoid conflict.
2. Disable failed tests.
3. Bump pathspec to 0.10.3
2023-01-13 22:47:36 +08:00
dependabot[bot] and Saugat Pachhai
178244f666
build(deps-dev): bump dvc-task from 0.1.9 to 0.1.10 ( #8807 )
...
* build(deps-dev): bump dvc-task from 0.1.9 to 0.1.10
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.9...0.1.10 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
* remove xfail on json.JSONDecodeError/PermissionError
JSONDecodeError should be fixed by the new release. Next we need to investigate
PermissionError.
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-01-13 17:25:36 +05:45
skshetry
dba7d3c320
mypy: use typesafe cached_property ( #8799 )
2023-01-13 09:08:59 +05:45
David de la Iglesia Castro
8b075eb754
stage: Skip run-cache if any out has cache: false.
...
Closes https://github.com/iterative/dvc/issues/4428
2023-01-12 19:10:01 +01:00
David de la Iglesia Castro
f507e4d9c0
config: Reraise ConfigError from ConfigObjError.
...
Closes #8801
2023-01-12 18:11:54 +01:00
skshetry
5169205229
deps: bump minimum version req for grandalf to 0.7.
2023-01-12 18:38:45 +05:45
skshetry
3bcd683677
repo.check_graph: rename method ( #8800 )
2023-01-12 16:03:51 +05:45
Saugat Pachhai (सौगात)
30ec1cf5e9
index/stage: move repo collection logic to index
2023-01-11 19:38:43 +02:00
skshetry
a814f04ee0
tests: xfail test_apply_failed on JSONDecodeError/PermissionError ( #8796 )
2023-01-11 18:04:23 +05:45
skshetry
90a27179eb
ruff: ignore complex functions and remove dvc.utils.fs.makedirs ( #8795 )
...
We may want to prevent any new functions from getting complex.
2023-01-11 17:58:51 +05:45
skshetry
175c578579
ruff: ban relative parent/grandparent imports ( #8794 )
2023-01-11 16:48:46 +05:45
skshetry
5441964fdb
add ruff ( #8793 )
...
* add ruff linter
* enable few more checks
2023-01-11 15:20:38 +05:45
Ivan Shcheklein
d4bfe38a54
perf: remove fs exists check in plots, parallel data collect
2023-01-10 20:27:02 -08:00
dependabot[bot]
a060049186
build(deps-dev): unpin grandalf
...
See https://github.com/bdcht/grandalf/issues/26#issuecomment-1378175273 .
2023-01-11 08:44:49 +05:45
Ruslan Kuprieiev
c02285ab49
deps: bump dvc-data to 0.29.0
2023-01-11 03:03:38 +02:00
Jorge Orpinel
bccbbc1d94
Update dvc/commands/imp_url.py
2023-01-10 19:05:18 +02:00
Jorge Orpinel
d736b31d8b
import-url: Update options order
...
Per https://github.com/iterative/dvc.org/pull/3934
2023-01-10 19:05:18 +02:00
Peter Rowlands
68c1cc095c
deps: bump dvc-data to 0.28.6
2023-01-11 00:20:22 +09:00
Peter Rowlands
c94d28594d
worktree push: remove existing version id optimization for file outs
2023-01-10 16:21:31 +09:00
Peter Rowlands
d3d429ef7f
push/fetch: respect --jobs on worktree push/fetch
2023-01-10 16:21:31 +09:00
dependabot[bot]
6ac88104da
build(deps-dev): Bump pylint from 2.15.9 to 2.15.10
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.9 to 2.15.10.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.9...v2.15.10 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-01-10 10:39:48 +05:45
skshetry
d87cdba6d8
gha: remove env vars SHELL
2023-01-10 10:19:29 +05:45
Ruslan Kuprieiev
b25ef5cdfb
metrics/params: show: add hide_workspace flag
2023-01-09 16:57:18 +02:00
dberenbaum
435407185f
params/metrics diff: address test failures for missing branch key
2023-01-09 16:57:18 +02:00
dberenbaum
0b192af6f4
params: fix diff bt active branch and workspace
2023-01-09 16:57:18 +02:00
dberenbaum
c6b602a167
metrics: fix diff bt active branch and workspace
2023-01-09 16:57:18 +02:00
David de la Iglesia Castro
1d5de9c5ba
repro: Disable run-cache if --no-commit.
...
As described in https://github.com/iterative/dvc/issues/4428#issuecomment-778263005 .
Add `run_cache` argument to `Stage.save`. Set it to `False` if `no_commit`.
2023-01-09 12:38:57 +01:00
Ruslan Kuprieiev
0e5674ffea
ls: compute relparts once for every dir
...
Cuts down `dvc ls . data/mnist/dataset --recursive` for me from ~25 to ~12
seconds.
`relparts` is an expensive operation as it calls `relpath` that calls `abspath`,
so we want to avoid calling it as much as possible.
2023-01-08 03:44:50 +02:00
Ruslan Kuprieiev
684fc32e36
dvcfs: ls: don't call info()
...
Cuts down `dvc ls . data/mnist/dataset --recursive` for me from ~37 to ~25
seconds.
Note that this also changes behaviour for ls with a broken symlink, as we
were not able to see it before because of a failing `info()` call, but now
we can follow a normal UNIX ls behaviour more closely.
2023-01-08 00:37:40 +02:00
Saugat Pachhai (सौगात)
81f37be9d6
ci: timeout tests if it takes >5min
...
It most likely means it's frozen and unlikely to resume again. We'd want
to see where it froze, so this will provide us with a traceback.
2023-01-06 20:16:20 +05:45
Saugat Pachhai (सौगात)
3dfdd577e7
tests: xfail experiments-related flakey tests
2023-01-06 18:59:53 +05:45
dependabot[bot]
bfb6a32b51
build(deps-dev): Bump dvc-data from 0.28.4 to 0.28.5
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.28.4 to 0.28.5.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.28.4...0.28.5 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-01-06 16:36:48 +09:00
Daniele Trifirò
33de761560
deps: unpin dvc-http
2023-01-05 21:15:33 +01:00
Daniele Trifirò
ff38aed927
config: expose timeouts in http config
...
- `read_timeout` timeout for reading new data portions from the peer
- `connect_timeout` timeout for establishing new connections
For more information about individual timeouts meanings:
- `read_timeout` maps to `aiohttp`'s `sock_read` timeout
- `connect_timeout` applies to `aiohttp`'s `connect`, `sock_connect`
timeouts
https://docs.aiohttp.org/en/stable/client_reference.html?highlight=clienttimeout#clienttimeout
2023-01-05 21:15:33 +01:00
Daniele Trifirò
b62f17ffaf
tests: move tests/unit/remote/test_http.py to dvc-http repo
2023-01-05 19:54:14 +01:00
Daniele Trifirò
a0c781a676
exp save: fix help for --force
2023-01-04 17:57:29 +01:00
dberenbaum
6ac7dfc008
exp: fix tests and remove reset checks
2023-01-04 17:29:12 +01:00
dberenbaum
b0372918ea
exp: stop checking for unchanged experiments
2023-01-04 17:29:12 +01:00
Daniele Trifirò
4b0fa4d559
update: prevent re-download on every update
2023-01-03 18:52:48 +01:00
Saugat Pachhai (सौगात)
a24c389674
internal: hoist resolver/top-level metrics/plots/params data into file level
2023-01-03 17:46:06 +05:45
karajan1001
f386f7c082
exp apply can accept exp names and failed exps as target
...
fix : #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.
2022-12-30 17:40:18 +08:00
karajan1001
eadd0da394
Refactor get_ref_and_entry_by_names
...
1. Move get_ref_and_entry_by_names from `exp remove` to `celery` for
other commands usage.
2022-12-30 17:40:18 +08:00
karajan1001
06673dd212
Use SIGINT as the default signal in queue kill
...
fix : #8624
1. Add a new flag `--force` for `queue kill`
2. Make `SIGINT` to be the default option and `SIGKILL` to be with
`--force`
3. Add tests for `queue kill`
4. Bump dvc-task into 0.1.9
2022-12-30 16:19:39 +08:00
dependabot[bot]
5f0b1edb40
build(deps-dev): Bump filelock from 3.8.2 to 3.9.0
...
Bumps [filelock](https://github.com/tox-dev/py-filelock ) from 3.8.2 to 3.9.0.
- [Release notes](https://github.com/tox-dev/py-filelock/releases )
- [Changelog](https://github.com/tox-dev/py-filelock/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.8.2...3.9.0 )
---
updated-dependencies:
- dependency-name: filelock
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-30 09:20:26 +05:45
dependabot[bot]
05701e26db
build(deps-dev): Bump scmrepo from 0.1.4 to 0.1.5
...
Bumps [scmrepo](https://github.com/iterative/scmrepo ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/iterative/scmrepo/releases )
- [Commits](https://github.com/iterative/scmrepo/compare/0.1.4...0.1.5 )
---
updated-dependencies:
- dependency-name: scmrepo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-30 11:23:42 +09:00
Daniele Trifirò
109288e1cd
exp save: update --help
2022-12-29 20:51:52 +01:00
Daniele Trifirò
9e6f44bc1c
get/ls/import: improve clone error messages
2022-12-29 20:13:39 +01:00
David de la Iglesia Castro
68b24307f9
post_live_metrics: Pass params on start event.
2022-12-28 11:43:37 +01:00
skshetry
ea8a4a3db4
GHA: remove unused env from tests workflow
2022-12-27 10:26:29 +05:45
karajan1001
08ae68caf4
Make temp dir executed checkpoint experiment return result to workspace.
...
fix : #8612
For checkpoint experiment in some case users might want to give it a early
stopping to reduce variance. But currently if we interrupt/kill the
experiment it will be marked as failed, and all of the completed
checkpoints will be removed as we cleanup all the running directly after
the process failed.
1. We raise CheckpointKilledError intead of StageCmdFailed error if at
least one checkpoint had been commited.
2. Temp_dir executor will continue collecting data if the Checkpoint
stage was interrupted.
3. Raise warnings if a checkpoint stage was incomplete and the other
stages were not forwarded.
4. Add a new functional test for this
2022-12-26 18:25:43 +05:45
karajan1001
4400fb4090
queue stop --kill can kill false running status tasks
...
fix : #8702
1. replace simple `proc.kill` in `queue stop --kill` with the same logic as in
`queue kill` to make it possible to set false status `running` tasks
as faileed.
2. Modified the tests.
2022-12-26 17:16:46 +09:00
Fabian Zills
28848c5407
exp run --run-all: re-enable --jobs concurrency (#8608 )
...
* re-enable --jobs concurrency
* use `start_workers` instead of `spawn_worker`
* make `spawn_worker` a private method.
* update tests: make `spawn_worker` a private method.
2022-12-26 16:49:46 +09:00
David de la Iglesia Castro
b13184fcec
tests: Fix flaky test_show_only_changed.
...
Some of the random exp names could start with `bar`.
https://github.com/iterative/dvc/actions/runs/3757008396/jobs/6383731723#step:5:79
2022-12-22 13:01:46 +01:00
dependabot[bot]
ee5fbc72ab
build(deps-dev): Bump dvc-render from 0.0.15 to 0.0.17
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.15 to 0.0.17.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.15...0.0.17 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-22 12:17:56 +01:00
David de la Iglesia Castro
d7fd68a1ae
Add start and done calls with post_live_metrics.
2022-12-22 11:33:59 +01:00
Daniele Trifirò
59d6d5ea98
exp save: simplify implementation
2022-12-22 11:01:41 +01:00
dberenbaum
6fc0a6ff98
plots: accept any number of y data sources
2022-12-20 14:32:40 +01:00
dberenbaum
b4b5db4b4e
plots: accept list of y vals
2022-12-20 14:32:40 +01:00
Saugat Pachhai (सौगात)
23e4d376c9
index: remove unused APIs
...
These are being used by some users, but removing it for easier refactoring.
We are not using it ourselves.
2022-12-20 13:17:28 +05:45
dependabot[bot]
089a90c969
build(deps-dev): Bump pylint from 2.15.8 to 2.15.9
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.8 to 2.15.9.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.8...v2.15.9 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-19 11:28:58 +05:45
dependabot[bot]
198daec421
build(deps): Bump pyinstaller from 5.6.2 to 5.7.0
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.6.2 to 5.7.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.6.2...v5.7.0 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-15 19:05:41 +05:45
dependabot[bot]
04eb6a9f00
build(deps-dev): Bump mypy from 0.990 to 0.991
...
Bumps [mypy](https://github.com/python/mypy ) from 0.990 to 0.991.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.990...v0.991 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-15 19:05:27 +05:45
Saugat Pachhai (सौगात)
0467f6a036
add index._plot_sources
2022-12-15 13:00:27 +05:45
David de la Iglesia Castro
dc3d9c9677
bump DVCLive lower bound
2022-12-14 20:45:57 +01:00
Daniele Trifirò
fcf92b2755
remove a few experiments names
2022-12-14 18:14:36 +01:00
David de la Iglesia Castro and Dave Berenbaum
c806275167
Bump dvclive lower bound ( #8683 )
...
* Bump dvclive lower bound
* Update pyproject.toml
Co-authored-by: Dave Berenbaum <[email protected] >
Co-authored-by: Dave Berenbaum <[email protected] >
2022-12-14 14:13:20 +00:00
dependabot[bot]
bd1add0b95
build(deps-dev): Bump dvc-task from 0.1.6 to 0.1.8
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.6 to 0.1.8.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.6...0.1.8 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-14 11:23:26 +08:00
Ivan Shcheklein
e36f0e9d85
reset all indecies of brancher switch
2022-12-13 23:43:23 +02:00
dependabot[bot]
bc1b8f3494
build(deps-dev): Bump pylint from 2.15.7 to 2.15.8
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.7 to 2.15.8.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.7...v2.15.8 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-13 14:53:57 +01:00
dependabot[bot]
9169d273e3
build(deps-dev): Bump filelock from 3.8.0 to 3.8.2
...
Bumps [filelock](https://github.com/tox-dev/py-filelock ) from 3.8.0 to 3.8.2.
- [Release notes](https://github.com/tox-dev/py-filelock/releases )
- [Changelog](https://github.com/tox-dev/py-filelock/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.8.0...3.8.2 )
---
updated-dependencies:
- dependency-name: filelock
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-12 20:38:22 +01:00
David de la Iglesia Castro
bb7512687c
exp: Generate a human-readable name beforehand.
...
- Add `get_random_exp_name` to utils.
Generates a name (`f"{adjective}-{noun}"`) by randomly chosing pairs of adjetive, noun.
Recieves `scm` and `baseline_rev` and retries the random choice until a non-existing ref is found.
Closes https://github.com/iterative/dvc/issues/8650
2022-12-09 10:32:38 +01:00
Saugat Pachhai (सौगात)
334f297ad3
deps: remove 3.11 checks for hydra; has 3.11 support now
2022-12-09 10:32:12 +05:45
Peter Rowlands
ace3ba0ef9
worktree push: disable rev flags
2022-12-09 09:21:19 +09:00
Peter Rowlands
959d149381
worktree fetch: support revs flags
2022-12-09 09:21:19 +09:00
Peter Rowlands
7a65d67e7f
worktree: support recursive/with_deps targets
2022-12-09 09:21:19 +09:00
Peter Rowlands
e9be6779ea
worktree: disable run-cache push/fetch
2022-12-09 09:21:19 +09:00
Peter Rowlands
876d123f04
index: use lazy view loading
2022-12-08 20:56:05 +09:00
Peter Rowlands
2bfe403a28
deps: bump dvc-data to 0.28.4
2022-12-08 20:56:05 +09:00
Peter Rowlands
9bef123182
worktree: fix default worktree remote/odb exception
2022-12-08 11:01:42 +09:00
Peter Rowlands
e98ca36f39
worktree push: only index known (tracked) files/dirs in the remote
2022-12-07 18:48:34 +09:00
Peter Rowlands
b9bf73f043
push/fetch: support targets in cloud version push/fetch
2022-12-07 18:48:34 +09:00
dependabot[bot]
7628fe9d44
build(deps-dev): Bump pytest-xdist from 3.0.2 to 3.1.0
...
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist ) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases )
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.0.2...v3.1.0 )
---
updated-dependencies:
- dependency-name: pytest-xdist
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-06 20:16:21 +05:45
Peter Rowlands
d415a05460
remote: disable gc and status -c for versioned remotes
2022-12-06 19:33:52 +09:00
Peter Rowlands
f5699ce16b
update: disable rev/to-remote/no-download for worktrees
2022-12-06 15:14:17 +09:00
Peter Rowlands
baeedead3a
update: add support for worktree update
2022-12-06 15:14:17 +09:00
Peter Rowlands
5630db55ad
worktree: add support for updating outs
2022-12-06 15:14:17 +09:00
Peter Rowlands
f1bd47ce0e
index: make collect_targets public
2022-12-06 15:14:17 +09:00
dependabot[bot]
74a13a4d9a
build(deps-dev): Bump dvc-render from 0.0.14 to 0.0.15
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.14 to 0.0.15.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.14...0.0.15 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-02 08:30:37 +01:00
dberenbaum
b7732a591d
stage add: don't fail if unable to create .gitignore
2022-12-01 16:43:31 +01:00
Saugat Pachhai (सौगात)
d57bb23c93
fix windows path handling
2022-12-01 15:56:26 +01:00
Saugat Pachhai (सौगात)
28402dedf1
add tests
2022-12-01 15:56:26 +01:00
Saugat Pachhai (सौगात)
df60f5d9bf
collect top-level params/plots/metrics together with stages
2022-12-01 15:56:26 +01:00
Saugat Pachhai (सौगात)
7ea73b2596
wip: top level params and metrics
2022-12-01 15:56:26 +01:00
Peter Rowlands
aa2e830511
deps: bump dvc-data to 0.28.3
2022-12-01 16:02:59 +09:00
dependabot[bot]
6fdd6673f3
build(deps-dev): Bump pylint from 2.15.5 to 2.15.7
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.5 to 2.15.7.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.5...v2.15.7 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-30 16:33:01 +01:00
dberenbaum
fac5f18dea
plots: add tests for errors in vega converter
2022-11-29 16:08:29 +01:00
dberenbaum
d8068430e7
plots: fix multi-file plots
2022-11-29 16:08:29 +01:00
Peter Rowlands
25b1ef9971
worktree push: separate worktree from version_aware
2022-11-29 22:45:16 +09:00
Peter Rowlands
df563e43c1
remote: make worktree imply version_aware
2022-11-29 22:45:16 +09:00
karajan1001
3ba6b1f0bf
Solve the unexpected error at the end of the queued tasks running
...
fix : #8615
1. This is because, at the end of the tasks,
the temp running directly will be deleted
1. Only fetch result during running (not during the result collection)
2. Bump into scmrepo 0.1.4 in which we wrapped `KeyError` into
`SCMError`.
2022-11-29 15:24:19 +08:00
Peter Rowlands
6a9fbaf3d2
deps: bump dvc-data to 0.28.2
2022-11-29 14:37:11 +09: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
Peter Rowlands
e95ae5613d
index: skip data index load on empty view
2022-11-28 18:49:32 +09:00
karajan1001
ca4dd08e37
Use temp branch name to avoid locking the exec branches in temp dir executor
...
fix : #8448
In our current temp dir executor, we use will first set EXEC_* branches
to revisions retrieved from stash entry. And push them to remote, but
because the push operation is very slow, our locking operation will make
the whole repository unusable.
1. Now we set revisions from stash entry to some temp branches and then
push them to remote.
2022-11-28 17:04:16 +08:00
karajan1001
0ebc253a43
rwlock auto solve corrupted lockfile
2022-11-28 17:04:16 +08: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
Peter Rowlands
6a75f3c327
deps: bump dvc-data to 0.28.1
2022-11-28 16:10:31 +09:00
Ivan Shcheklein
d7587556c9
exp list: cleanup and move logic inside repo api
2022-11-25 16:15:17 -08:00
skshetry
bb80eab77a
deps: add support for hdfs in Python 3.11
2022-11-25 11:16:42 +05:45
Ruslan Kuprieiev
ab3f8fb1a4
Create hook-asyncssh.py
...
Fixes #7577
2022-11-24 23:25:00 +02:00
Yury
6edca79b79
repro dry: show information if the stage is cached
...
Fixes : #8342
2022-11-24 21:49:52 +02:00
Ruslan Kuprieiev
2a888970e8
build: fpm: don't double quote cli option
...
Leftover from #8611
2022-11-24 01:34:18 +02:00
Ruslan Kuprieiev
73fdfc8059
build: fpm: don't create .build-id/* files
...
These are leaking into our rpm packages.
Related https://github.com/iterative/dvc-s3-repo/issues/86
2022-11-24 01:02:44 +02:00
Ruslan Kuprieiev
8dc11417d2
testing: api: test opening a file in subdir
...
Related to #8420
2022-11-23 17:47:13 +02:00
b02855fb93
ui: Fix WSL check in open_browser ( #8604 )
...
* ui: Fix WSL check in `open_browser`
* Update dvc/ui/__init__.py
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-23 09:57:57 +00:00
Peter Rowlands
af255a46b4
worktree: use progress bars in push/fetch
2022-11-23 13:05:51 +09:00
Peter Rowlands
2748492f6b
worktree push: don't push existing versions
2022-11-23 13:05:51 +09:00
Peter Rowlands
c69d3188a6
deps: bump dvc-data to 0.28.0
2022-11-22 19:04:18 +09:00
karajan1001
9b9c04e633
Solve the problem during executor running
...
fix #7693
The problem was when we gathered experiments, and at the same time,
the executor are creating new commits. It will make the checkpoint
top/head return by `get_running_exps`/`get_ref`/`branch_revs` not the
same one. And cause the problem described in #7693
To solve this we did
1. move the `get_rev` to the beginning of `exp show` to make sure the
return results in `branch_revs`
2. Add a new function to move all of the properties that only belong to
`head` of the checkpoint from the wrong place to the top.
3. Add a new unit test for it.
4. Force fetch_running_exp to return data.
5. fix a bug in tmp_dir_executor.
2022-11-22 17:44:55 +08:00
karajan1001
350e0fb1f7
queue kill: we can manually mark problematic tasks as failure
...
fix : #8461
fix : #8473
For now, for those inactive but uncompleted tasks, they still shown as
Running in `exp show` and `task queue`, we cannot remove them because
they are regarded as running, we cann't kill them because their are no
real process behind them.
1. Now we can examine these false running tasks and mark them as failure
in `queue kill` command. #8461
2. Better msg handle for initliaizing tasks in `queue kill`#8473
3. Add new unit tests for both cases.
4. bump into new dvc-task 0.1.6
2022-11-22 13:33:23 +08:00
dberenbaum
f14358bc72
plots: add test for default x label
2022-11-21 21:05:12 +01:00
David de la Iglesia Castro
705bc6ec82
Added test_infer_x_label
2022-11-21 21:05:12 +01:00
dberenbaum
61a02e6f56
plots: set default x label
2022-11-21 21:05:12 +01:00
Saugat Pachhai (सौगात)
8e5226ece0
cli: remove version action
2022-11-21 20:37:05 +05:45
Peter Rowlands
2a1af0b880
add: merge existing file meta for versioned dirs
2022-11-21 19:18:41 +09:00
Peter Rowlands
014d149512
out: move restore_fields logic into Output
2022-11-21 19:18:41 +09:00
Peter Rowlands
77ae4aa92e
deps: bump dvc-azure to 2.20.5
2022-11-21 18:21:02 +09:00
Peter Rowlands
588471a811
deps: bump dvc-data to 0.27.0
2022-11-21 18:21:02 +09:00
dependabot[bot]
e59c19e752
build(deps-dev): Bump dvc-render from 0.0.13 to 0.0.14
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.13 to 0.0.14.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.13...0.0.14 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-21 10:08:09 +01: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
Peter Rowlands
dae500d7c7
worktree: use view instead of full index in push/fetch
2022-11-19 09:55:58 +09:00
Peter Rowlands
a01bc2918e
push/fetch: move worktree logic into repo.worktree
2022-11-19 09:55:58 +09: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
4d6e045989
status -c: exclude push: false outs
2022-11-18 16:32:29 +09:00
Peter Rowlands
00eea4560e
import-url: default to push: false for cloud-versioned imports
2022-11-18 16:32:29 +09:00
Peter Rowlands
6e02dddabd
output: check push in get_used_objs
2022-11-18 16:32:29 +09:00
Peter Rowlands
b550c5e625
output: add PARAM_PUSH
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
Ruslan Kuprieiev
d482e26c99
deps: bump dvc-data to 0.26.0
2022-11-17 10:56:01 +02:00
dependabot[bot]
a8ad59ae4e
build(deps-dev): Bump dvc-render from 0.0.12 to 0.0.13
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.12 to 0.0.13.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.12...0.0.13 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-16 11:13:05 +01:00
Ivan Shcheklein
76cc649f5e
fix/8550+: cover with test
2022-11-16 15:16:37 +05:45
Ivan Shcheklein
d52e1aa17b
fix: exp list ref heads handling
2022-11-16 15:16:37 +05:45
Saugat Pachhai (सौगात)
65f61acffa
tests: garbage collect sqlite connections on Windows + Python 3.11
...
There seems to be a regression in Python 3.11, where the sqlite
connections are not deallocated, due to some internal changes in
Python 3.11, where they are now using LRU cache. They are not deallocated
until `gc.collect()` is not called.
See https://github.com/python/cpython/issues/97641 .
This affects only Windows, because when we try to remove the tempdir for
the exp run, the sqlite connection is open which prevents us from
deleting that folder.
Although this may happen in real scenario in `exp run`, I am only fixing
the tests by mocking `dvc.close()` and extending it by calling
`gc.collect()` after it. We could also mock `State.close()` but didnot
want to mock something that is not in dvc itself.
The `diskcache` uses threadlocal for connections, so they are expected
to be garbage collected, and therefore does not provide a good way to
close the connections. The only API it offers is `self.close()` and that
only closes main thread's connection. If we had access to connection,
an easier way would have been to explicitly call `conn.close()`.
But we don''t have such option at the moment.
Related: https://github.com/iterative/dvc/pull/8404#issuecomment-1310024661
GHA Failure: https://github.com/iterative/dvc/actions/runs/3437324559/jobs/5731929385#step:5:57
2022-11-16 08:02:43 +05:45
Peter Rowlands
fdc689954f
pyinstaller: drop google-api-client hooks
2022-11-15 22:07:05 +09:00
Peter Rowlands
076c48532d
deps: bump dvc-gdrive to 2.19.1
2022-11-15 22:07:05 +09:00
David de la Iglesia Castro
e4ea463c73
hydra: Raise error when name and sweeps.
2022-11-14 21:34:55 +01:00
Saugat Pachhai (सौगात)
87d8269365
typecheck: fix type error in _git_info
2022-11-14 10:21:31 +05:45
Peter Rowlands
a753ee215f
output: fix get_entry dep object generation for imports
2022-11-13 14:41:21 +02:00
dependabot[bot]
014a38fae2
build(deps-dev): Bump iterative-telemetry from 0.0.5 to 0.0.6
...
Bumps [iterative-telemetry](https://github.com/iterative/telemetry-python ) from 0.0.5 to 0.0.6.
- [Release notes](https://github.com/iterative/telemetry-python/releases )
- [Commits](https://github.com/iterative/telemetry-python/compare/0.0.5...0.0.6 )
---
updated-dependencies:
- dependency-name: iterative-telemetry
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-11 14:54:07 +09:00
Peter Rowlands
8913f5a6fe
mypy: allow implicit-optional
2022-11-11 14:17:17 +09:00
dependabot[bot]
4ce9825c2b
build(deps-dev): Bump mypy from 0.982 to 0.990
...
Bumps [mypy](https://github.com/python/mypy ) from 0.982 to 0.990.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.982...v0.990 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-11 14:17:17 +09:00
dependabot[bot]
e9c5b5fa84
build(deps-dev): Bump dvc-gs from 2.19.1 to 2.20.0
...
Bumps [dvc-gs](https://github.com/iterative/dvc-gs ) from 2.19.1 to 2.20.0.
- [Release notes](https://github.com/iterative/dvc-gs/releases )
- [Commits](https://github.com/iterative/dvc-gs/compare/2.19.1...2.20.0 )
---
updated-dependencies:
- dependency-name: dvc-gs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-11 13:33:10 +09: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
karajan1001
929de7c651
Solve the crash on getting name of applied experiment branch
...
fix : #8526
1. The current `get_names` will crash if an experiment branch had
already been given a new branch name to it.
1. Solve the crash when we getting the name of a newly fixed experiment
branch.
2. Add a new unit test to it.
2022-11-10 13:18:45 +08:00
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
skshetry
a6bfc7db4e
ci: test with 3.11 on all OSes ( #8543 )
...
* ci: test with 3.11 on all OSes
* Update tests.yaml
* Update tests.yaml
2022-11-09 12:05:27 +00:00
Yury
872a0d663e
dvc exceptions CyclicGraphError: add more clear message for the exception
...
Fixes : #7915
2022-11-09 14:33:08 +05:45
dependabot[bot]
c01583f3dd
build(deps-dev): Bump dvc-task from 0.1.4 to 0.1.5
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.4...0.1.5 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-09 16:37:14 +09: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
skshetry
b2a275ee9e
Create codeql.yml
2022-11-08 13:21:20 +05:45
skshetry
7e423b668f
pkging: also post released packages to test.pypi.org
2022-11-07 18:57:53 +05:45
Saugat Pachhai (सौगात)
2c3956bdb0
exp init: fix live metrics path
2022-11-07 12:45:32 +01: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
eb20a8e049
deps: Bump dvclive to >= 1.0
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
skshetry
69f78d3bb6
ci: bench: use 3.11 in benchmarks
2022-11-04 18:43:02 +05:45
skshetry
740fe504c9
Update README.rst
2022-11-04 18:27:50 +05:45
skshetry
7bb84286f5
readme: show downloads badge
2022-11-04 18:27:50 +05:45
Peter Rowlands
3891e81bdd
index: load dir entries before generating target views
2022-11-04 19:09:48 +09:00
Peter Rowlands
bb62833897
index: move import specific entry building out of index.data() property
2022-11-04 19:09:48 +09:00
Peter Rowlands
fb703150ce
output: load precomputed md5 from PARAM_FILES for non-local fs
2022-11-04 19:09:48 +09:00
Peter Rowlands
33d4ead8b6
import-url: save files for version-aware dir
2022-11-04 19:09:48 +09:00
Peter Rowlands
76b1f8c907
deps: bump dvc-data to 0.25.3
2022-11-04 19:09:48 +09:00
Paweł Redzyński
d7152e360e
Update dvc/repo/plots/__init__.py
2022-11-04 09:54:45 +05:45
dberenbaum
ab69b88a21
plots: allow top-level strings
2022-11-04 09:54:45 +05:45
dependabot[bot]
43a8eab2e0
build(deps-dev): Bump dvc-s3 from 2.20.1 to 2.21.0
...
Bumps [dvc-s3](https://github.com/iterative/dvc-s3 ) from 2.20.1 to 2.21.0.
- [Release notes](https://github.com/iterative/dvc-s3/releases )
- [Commits](https://github.com/iterative/dvc-s3/compare/2.20.1...2.21.0 )
---
updated-dependencies:
- dependency-name: dvc-s3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-04 08:09:29 +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
David de la Iglesia Castro
08a643e005
hydra: Raise lazy DvcException for Python >= 3.11
2022-11-03 12:14:18 +01:00
Peter Rowlands
97a8b6978c
deps: bump scmrepo to 0.1.3
2022-11-03 15:56:50 +09:00
Peter Rowlands
b44099367e
exp run: catch hydra import in 3.11
2022-11-03 15:38:53 +09:00
skshetry
29b3dc1f9e
fix 3.10 in setup-python
2022-11-01 16:35:24 +05:45
Saugat Pachhai (सौगात)
6e73bd0b5b
use setuptools_scm provided version
2022-11-01 12:44:31 +02:00
skshetry
fa5a9abdeb
build: bump pyinstaller packages python version to 3.10 ( #8511 )
...
bump pyinstaller packages python version to 3.10
As 3.11 is now released, let's bump pyinstaller packages to 3.10 (we always keep them 1 version behind).
2022-11-01 16:24:00 +05:45
dependabot[bot]
30775f7b31
build(deps): Bump pyinstaller from 5.6.1 to 5.6.2 ( #8499 )
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.6.1 to 5.6.2.
- [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.6.1...v5.6.2 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 15:19:02 +05:45
Peter Rowlands
e07aca9fd3
commit: skip changed_entries check on force commit
2022-11-01 18:05:41 +09:00
skshetry
d2265f36ba
ci: run only single macOS job ( #8509 )
...
* ci: run only single macOS job
* ci: use alls-green@release gate check
2022-11-01 14:30:46 +05:45
Saugat Pachhai (सौगात)
d548618291
codecov: disable patch status
2022-11-01 14:02:59 +05:45
skshetry
48ff332f4a
tests: remove old cleanup handler for Windows subprocess ( #8508 )
2022-11-01 13:57:50 +05:45
Saugat Pachhai (सौगात)
97f5ffc3c6
codecov: re-add codecov.yml
2022-11-01 13:56:54 +05:45
skshetry
f6849d2f06
chore: remove bin dir and simplify tests.__main__ ( #8507 )
2022-11-01 13:05:53 +05:45
skshetry
a172240536
Update release.yml
2022-11-01 11:43:25 +05:45
skshetry
129a4fbb92
fix release note config, it has to be inside changelog key ( #8504 )
2022-11-01 11:42:05 +05:45
skshetry
c101514677
ci: add release note config ( #8503 )
2022-11-01 11:37:11 +05:45
skshetry
5e883bc00c
tests: remove TestDir ( #8502 )
...
remove TestDir
2022-11-01 11:28:09 +05:45
skshetry
4b720e5820
remove .codecov.yml and MANIFEST.in, move .coveragerc to pyproject.toml ( #8500 )
...
* remove .codecov.yml and MANIFEST.in, move .coveragerc to pyproject.toml
* remove scripts/pypi_upload.sh
2022-11-01 10:11:55 +05:45
skshetry
c0054fa57e
remove zip-safe ( #8498 )
...
See https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html . `zip_safe` is not required these days.
2022-11-01 07:50:18 +05:45
skshetry
6049494cef
set name so that dependency graph works ( #8497 )
...
See https://github.com/orgs/community/discussions/6456
2022-11-01 07:09:21 +05:45
skshetry
120a5879bb
ci: push package to test.pypi.org ( #8495 )
...
* ci: push package to test.pypi.org
* include dvc.testing and license file
2022-10-31 23:34:00 +05:45
Step Security Bot
c8e39523c3
[StepSecurity] ci: Harden GitHub Actions ( #8496 )
...
Signed-off-by: StepSecurity Bot <[email protected] >
2022-10-31 23:27:18 +05:45
skshetry
7648e715f8
move project config to pyproject.toml ( #8493 )
...
* move config to pyproject.toml
* ci: use pyproject.toml for cache key
* pyproject.toml: use recursive dependencies for dev and all
* Update pyproject.toml
2022-10-31 22:43:48 +05:45
skshetry
ca5ad6457f
ci: cache lint deps, decrease test timeout ( #8494 )
2022-10-31 22:15:54 +05:45
dependabot[bot]
de848d9598
build(deps-dev): Bump pytest-xdist from 2.5.0 to 3.0.2 ( #8474 )
...
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist ) from 2.5.0 to 3.0.2.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases )
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v2.5.0...v3.0.2 )
---
updated-dependencies:
- dependency-name: pytest-xdist
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 21:23:57 +05:45
dependabot[bot]
4330f1a70f
build(deps): Bump pyinstaller from 5.0 to 5.6.1 ( #8475 )
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.0 to 5.6.1.
- [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.0...v5.6.1 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 21:23:43 +05:45
dependabot[bot]
144e21b552
build(deps-dev): Bump pytest from 7.1.3 to 7.2.0 ( #8479 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.3 to 7.2.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.3...7.2.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 21:20:21 +05:45
dependabot[bot]
7945428e5e
build(deps-dev): Bump pylint from 2.15.4 to 2.15.5 ( #8463 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.4 to 2.15.5.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.4...v2.15.5 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 21:19:58 +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
skshetry
4ca2158b9d
tests: retry celery queue on timeout ( #8488 )
...
retry celery queue on timeout
2022-10-31 19:38:05 +05:45
Ruslan Kuprieiev
f87e78d754
deps: bump dvc-data to 0.25.2
2022-10-31 14:41:23 +02:00
Ruslan Kuprieiev
5899440b46
deps: bump dvc-data to 0.25.1
2022-10-30 00:59:39 +03:00
Ruslan Kuprieiev
61ce52f259
yappi: add --yappi-separate-threads flag
2022-10-29 21:23:37 +03:00
Ruslan Kuprieiev
475ef3ce65
Delete release-drafter.yml
2022-10-29 19:39:55 +03:00
karajan1001
22eb9051f6
Move the function out of rwlock
2022-10-29 08:53:02 +08: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
Ruslan Kuprieiev
8f82a421a0
index: support multiple targets within output in IndexView
...
stage_infos might contain the same stage multiple times, but with different
filter_info, so we shouldn't convert it to dict, as that makes us lose all
but one filter_info's.
2022-10-25 13:37:44 +03: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
Ruslan Kuprieiev
23534063ca
push: use build_tree instead of tree_from_index
2022-10-21 17:02:33 +03:00
Ruslan Kuprieiev
d56957416e
index: data: don't forget to set entry.key
2022-10-21 17:02:33 +03:00
dependabot[bot]
269e12287c
build(deps): Bump dvc-data from 0.20.0 to 0.22.0
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.20.0 to 0.22.0.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.20.0...0.22.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-21 17:02:33 +03:00
karajan1001
5413187c2d
Give lock acquiring more time in concurrency situation.
...
fix : #8417
1. Give the executor initialization and result collection more time for
acquiring locks.
2022-10-21 10:18:28 +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
Saugat Pachhai (सौगात)
1d5d15644d
debug: add --show-stack/--ss flag
2022-10-19 17:13:22 +03:00
Peter Rowlands
a0e45cdd5d
index: remove partial_imports in favor of repo.imports view
2022-10-19 17:12:16 +03:00
Peter Rowlands
7fe316b8e8
import-url: only unpartial imports in workspace
2022-10-19 17:12:16 +03:00
Peter Rowlands
3478a7e6a9
import-url: support cloud versioning
2022-10-19 17:12:16 +03:00
Peter Rowlands
d1fa3d2c21
fetch: use data index save() for fetching imports
2022-10-19 17:12:16 +03:00
Peter Rowlands
b594337a69
index/out: add out.get_entry()
2022-10-19 17:12:16 +03:00
Peter Rowlands
36f6f29ac8
index: set source fs/path for import data index entries
2022-10-19 17:12:16 +03:00
skshetry
bbaf57c5b2
_debug: minor refactor on debugtools ( #8454 )
...
* _debug: minor refactor on debugtools
* delete test
2022-10-19 18:01:20 +05:45
David de la Iglesia Castro
61f8478885
tests: Remove test_ssh
...
Moved to dvc-ssh repo in https://github.com/iterative/dvc-ssh/pull/13
2022-10-19 12:35:11 +03:00
dependabot[bot]
4493da0f04
build(deps): Bump dvc-task from 0.1.3 to 0.1.4
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.3...0.1.4 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-19 15:40:56 +08:00
Peter Rowlands
7c225206ab
fetch/push: use dvc-data TransferResult
2022-10-18 19:02:47 +09:00
Peter Rowlands
be5a54bfb4
deps: bump dvc-data to 0.20.0
2022-10-18 19:02:47 +09:00
skshetry
d9ce9b4fef
testing.api_tests: remove comment from fixture ( #8444 )
2022-10-18 15:44:59 +05:45
dependabot[bot] and skshetry
689988592f
build(deps-dev): Bump pylint from 2.15.2 to 2.15.4 ( #8424 )
...
* build(deps-dev): Bump pylint from 2.15.2 to 2.15.4
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.2 to 2.15.4.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.2...v2.15.4 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
* Remove astroid
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2022-10-18 09:27:54 +05:45
dependabot[bot]
1ddfca856a
build(deps): Bump dvc-data from 0.18.0 to 0.19.0 ( #8442 )
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.18.0...0.19.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 09:27:27 +05:45
dependabot[bot]
e451ce7d0b
build(deps-dev): Bump pytest-mock from 3.9.0 to 3.10.0 ( #8402 )
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.9.0...v3.10.0 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 07:52:16 +05:45
pre-commit-ci[bot]
de05659a93
[pre-commit.ci] pre-commit autoupdate ( #8441 )
...
updates:
- [github.com/codespell-project/codespell: v2.2.1 → v2.2.2](https://github.com/codespell-project/codespell/compare/v2.2.1...v2.2.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-18 07:47:20 +05:45
Daniele Trifirò
e9244924d7
plots: allow definition of plots section as list
2022-10-17 12:06:31 +02:00
David de la Iglesia Castro
3bbf8fa7d2
config: ssh: Add passphrase and ask_passphrase options.
...
Bump `dvc-ssh`.
Fixes #8137
2022-10-14 12:11:31 +03:00
Peter Rowlands
ed87c308ba
deps: bump dvc-data to 0.18.0
...
- callbacks: update to dvc-data 0.18.0 behavior
2022-10-13 20:00:19 +09:00
Peter Rowlands
add28f73f1
brancher: clear repo.index on each branch
2022-10-11 16:12:00 +03:00
Peter Rowlands
2bc693fb4c
index: add IndexView and Index.targets_view()
2022-10-11 16:12:00 +03:00
Peter Rowlands
ac57fa53fe
index: cache target collection
2022-10-11 16:12:00 +03:00
Peter Rowlands
0ca0d94cb2
output: mypy fixes
2022-10-11 16:12:00 +03: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
pre-commit-ci[bot]
5606608867
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/ambv/black: 22.8.0 → 22.10.0](https://github.com/ambv/black/compare/22.8.0...22.10.0 )
2022-10-11 14:43:51 +08: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
Ruslan Kuprieiev
11766c8839
ignore: walk: support detail=True
2022-10-10 21:43:44 +03:00
Peter Rowlands
1180a2f051
deps: bump dvc-data to 0.17.1
2022-10-10 16:25:07 +09:00
Ronan Lamy
f59a99d442
Skip some tests on FSs that don't support dirs (like http)
2022-10-07 19:03:57 +03:00
Ronan Lamy
d5f5e14183
make get-url testable with the dvc plugins
2022-10-07 19:03:57 +03:00
Ronan Lamy
10f60bed58
make get-url consistent with ls-url
...
Also, move parse_external_url() to dvc.fs as it's now used both by
ls_url() and get_url().
2022-10-07 19:03:57 +03:00
Ronan Lamy
6a0d7f9c51
Extract Output.download() into a function
...
Also, move the method to Dependency, since it's only used there.
2022-10-07 19:03:57 +03:00
dependabot[bot]
8640beb998
build(deps): Bump dvc-render from 0.0.11 to 0.0.12
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.11 to 0.0.12.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.11...0.0.12 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-06 17:30:35 +02:00
karajan1001
884182f6f2
Add "status" to replace "running" and "queued" in output of exp show
...
fix : #7986
1. Add two new flags `--hide-queued` and `--hide-failed` to `exp show`
2. Allow `exp show` to show failed experiments.
3. Add unit test for the failed experiments shown.
4. Add name support for failed exp
5. Add error msg to the `exp show` output
2022-10-06 17:20:03 +08:00
Peter Rowlands
7393ebdcb4
logger: init logging config before colorama
2022-10-04 21:27:24 +03:00
David de la Iglesia Castro
cf651c52a1
hydra: Fix append and remove sweeps.
...
Closes #8376
2022-10-04 19:05:12 +02:00
Ronan Lamy
a3f20eb6f4
ls-url: make config and recursive kwarg-only
2022-10-04 14:37:29 +03:00
Ronan Lamy
d60edcd88e
ls-url: fix doc URL
2022-10-04 14:37:29 +03:00
Ronan Lamy
a6cdb9efd2
ls-url: remove redundant tests
2022-10-04 14:37:29 +03:00
Ronan Lamy
4a558edc59
ls-url: remove now unused _ls_url()
2022-10-04 14:37:29 +03:00
Ronan Lamy
8ff92cc7b0
ls-url: refactor tests so they work with all supported plugins.
...
Add `config` argument to ls_url() (only used in testing) to be able
to set up the FSs that do require it.
2022-10-04 14:37:29 +03:00
Ronan Lamy
bd88000e2f
ls-url: add ls-url tests for dvc plugins
2022-10-04 14:37:29 +03:00
Ronan Lamy
4da4c69985
ls-url: chain exceptions and simplify exc handling
2022-10-04 14:37:29 +03:00
Ronan Lamy
8a1c757497
fix test on Windows
2022-10-04 14:37:29 +03:00
Ronan Lamy
22655fa46d
ls-url: update command test for --recursive
2022-10-04 14:37:29 +03:00
Ronan Lamy
103a0e2523
ls-url: simplify parse_external_url()
2022-10-04 14:37:29 +03:00
Ronan Lamy
0d025e5943
ls-url: add --recursive option
2022-10-04 14:37:29 +03:00
Ronan Lamy
b01c4f8b05
ls-url: call get_cloud_fs() directly
...
Note: removes a spurious check on whether the target is a dvc file.
2022-10-04 14:37:29 +03:00
Ronan Lamy
c27125d9c0
Replace Output with a local copy and remove all unused code
2022-10-04 14:37:29 +03:00
Ronan Lamy
71734a3d09
ls-url: fix test_file() on Windows and add another case
2022-10-04 14:37:29 +03:00
Ronan Lamy
fa7619dfee
ls-url: create basic version of dvc ls-url command
...
For now, this only takes a URL (or local path) and lists its contents
if the protocol supports it. The command fails if the target doesn't
exist and returns the (absolute) path to the target if it's not a
directory.
2022-10-04 14:37:29 +03:00
dependabot[bot]
67aaf6a192
build(deps-dev): Bump mypy from 0.981 to 0.982
...
Bumps [mypy](https://github.com/python/mypy ) from 0.981 to 0.982.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.981...v0.982 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-04 12:02:42 +09:00
Daniele Trifirò
3adede8427
repo: use realpath to in _get_filepath when loading stages
2022-10-03 15:29:01 +02:00
Daniele Trifirò
a686dded15
repo: fix crash while collecting stages with symlinks
...
closes #8345
2022-10-03 15:29:01 +02:00
Daniele Trifirò
8b1e61d3c5
update: update -help
2022-10-03 14:25:50 +02:00
Daniele Trifirò
4594087786
import: fix rev lock and pull with --no-download
2022-10-03 14:25:50 +02:00
Daniele Trifirò
5d69f57abf
tests: add test_partial_import_pull
2022-10-03 14:25:50 +02:00
dependabot[bot]
53c886e407
build(deps-dev): Bump mypy from 0.971 to 0.981
...
Bumps [mypy](https://github.com/python/mypy ) from 0.971 to 0.981.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.971...v0.981 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-02 12:44:42 +09:00
Ruslan Kuprieiev
890fbf3a6e
deps: bump dvc-data to 0.14.0
2022-10-01 21:56:49 +03:00
skshetry
81abf2e412
dvcfs tests: copy pytest param instead of in-place update ( #8388 )
...
The param was being modified in-place, due to which successive runs would fail.
2022-10-01 14:07:38 +05:45
Ronan Lamy
3a9d0244b5
test: rename dvc.testing.test_*.py so pytest doesn't handle them as test files
2022-10-01 01:03:09 +03:00
dberenbaum
423166cb0f
cli: remove foreach-group from help text
2022-09-30 19:54:03 +02:00
Peter Rowlands
4904286307
config: wrap UnicodeDecodeErrors on load
2022-09-30 11:45:43 +09:00
dependabot[bot]
e556c632b3
build(deps-dev): Bump pytest-mock from 3.8.2 to 3.9.0
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.8.2 to 3.9.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.8.2...v3.9.0 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-29 14:37:06 +09:00
dependabot[bot]
db0c6e9086
build(deps-dev): Bump pytest-cov from 3.0.0 to 4.0.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/pytest-dev/pytest-cov/releases )
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v3.0.0...v4.0.0 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-29 13:48:47 +09:00
dependabot[bot]
4177a5dc9e
build(deps): Bump dvc-task from 0.1.2 to 0.1.3
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.2...0.1.3 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-29 13:47:49 +09:00
Ronan Lamy
04af944e22
fs: test and slightly refactor get_fs_config()
2022-09-28 22:06:40 +03:00
pre-commit-ci[bot]
13b2ac3bd1
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/ambv/black: 22.6.0 → 22.8.0](https://github.com/ambv/black/compare/22.6.0...22.8.0 )
2022-09-28 17:07:09 +09:00
Paweł Redzyński
25ea5f35ec
plots: pass all types of plots in --json option
...
Related: iterative/vscode-dvc#1757
2022-09-27 14:23:42 +02:00
karajan1001
6bd14b21ef
Move infofile operation to executor and
...
Currently infofile dump was spread in both executor and queue classes.
put them all into executor to make them more managable. Move all ending
dump operations to the cleanup function, because the collect_result progress
might failed because of git operations, in which can guarantee them to
be run in a `finally` scope.
2022-09-26 16:25:47 +08:00
karajan1001
c2829f4ce8
Make executor info compatible with old versions.
2022-09-26 16:25:47 +08:00
karajan1001
d8a4ecd68f
Remove the stale manager code
2022-09-26 16:25:47 +08:00
karajan1001
7fb9dcec12
Add tests for executor status
...
1. Move some basic test script from function tests to unit test.
2. Add success/failed tests for the status change of `tempdir`, `celery`, `workspace` running case.
2022-09-26 16:25:47 +08:00
karajan1001
f23bc71eea
Use task status to replace collected.
...
fix : #8088
1. Use status to replace collected.
2. Make status show more accurate.
Fix lint
2022-09-26 16:25:47 +08:00
karajan1001
8b326137c6
Add a new attribute status to ExecutorInfo file
...
1. Add a new attribute status to ExecutorInfo file
2. Update running status to the executor infofile.
2022-09-26 16:25:47 +08:00
karajan1001
90109bccd7
Refactor seperate the initialization of executor and setup environment
...
Reason:
1. Need some more granular control over initialization progress of
executor.
What done:
1. Seperate `init_git` and `init_cache` progress out from setup_executor
2. Move `set_ref` into `init_git`
2022-09-26 16:25:47 +08:00
Ruslan Kuprieiev
8c484645fa
cloud-versioning: better handling for directories
2022-09-26 02:54:17 +03:00
dberenbaum
c039e9a6e7
merge-driver: support removes and changes
2022-09-23 23:22:08 +03:00
Ruslan Kuprieiev
10cfa0d5d7
fetch: use md5() before save()
2022-09-23 15:12:19 +03:00
dependabot[bot]
ecab4a22fe
build(deps): Bump dvc-data from 0.10.1 to 0.12.0
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.10.1 to 0.12.0.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.10.1...0.12.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-23 15:12:19 +03:00
dberenbaum
4f354f5333
pull: hide glob option
2022-09-23 14:13:25 +03:00
skshetry
f6b1f01a5c
aiohttp: remove AIOHTTP_NO_EXTENSIONS envvar ( #8353 )
...
* aiohttp: remove AIOHTTP_NO_EXTENSIONS envvar
aiohttp now provides wheel for 3.11
* advertise 3.11 support
2022-09-23 16:23:37 +05:45
Saugat Pachhai (सौगात)
6d17bcce93
cli: add help for foreach
2022-09-23 13:36:34 +03:00
karajan1001
8da04c7c81
Solve the on_diverged function not executed error.
...
fix : #8348
2022-09-23 17:20:31 +08:00
Paweł Redzyński and pre-commit-ci[bot]
c617769a1d
deps: bump codespell ( #8199 )
...
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/codespell-project/codespell: v2.1.0 → v2.2.1](https://github.com/codespell-project/codespell/compare/v2.1.0...v2.2.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-22 19:31:24 +05:45
Daniele Trifirò
69c3c83833
import/import-url: ignore outs when using --no-download
2022-09-22 00:29:46 +03:00
David de la Iglesia Castro
122a68398e
hydra: Fix sweeps on Defaults List.
...
Defaults List overrides (`defaults/foo=1,2`) were not working because of the inclusion of the `/` character.
Fixed it by updating how we construct the `merged_overrides` and added a regression test.
2022-09-21 15:48:19 +02:00
Martino Mensio
748c015638
fixed link to "get started: pipelines" docs
2022-09-21 13:45:39 +03:00
skshetry
ba1ab86078
document dvcfs ( #8332 )
2022-09-21 11:30:15 +05:45
skshetry
aaa467a96b
fs.callback.RichCallback: add transient support ( #8335 )
2022-09-20 17:03:17 +05:45
Daniele Trifirò
ed15e59115
deps: bump dvc-http to 2.27.2
2022-09-20 13:18:18 +03:00
skshetry
e63cb31a66
dvcfs: remove get-file implementation, make dvcfs non-cachable ( #8331 )
...
dvcfs: remove get-file implementation
2022-09-20 15:24:44 +05:45
Peter Rowlands
4c1f172132
deps: bump dvc-data to 0.10.1
2022-09-20 18:30:35 +09:00
Ruslan Kuprieiev
d2a31eb660
push: use update_pipeline=False for cloud versioning
2022-09-19 17:21:43 +03:00
Ruslan Kuprieiev
625b735502
deps: bump dvc-s3
2022-09-19 14:57:35 +03:00
skshetry
7e93fc8c4a
lint: pin astroid version ( #8323 )
...
See https://github.com/PyCQA/pylint/issues/7488 . Pylint is failing on our codebase.
2022-09-19 12:22:21 +05:45
skshetry
853a918d5c
cli: rename cli util, hide data ls from the help ( #8321 )
2022-09-19 10:29:52 +05:45
skshetry
b5f20f8467
use native concurrency ( #8320 )
2022-09-19 10:23:55 +05:45
skshetry
2f6bc70b45
remove mergify ( #8319 )
2022-09-19 09:50:56 +05:45
Daniele Trifirò
197f522175
deps: add testing group for dvc.testing requirements
2022-09-17 00:54:35 +03:00
Ruslan Kuprieiev
35e6f082a4
analytics: use iterative-telemetry for user_id lookup
2022-09-17 00:45:45 +03:00
Ruslan Kuprieiev
4531fec2b7
deps: bump dvc-data to 0.10.0
2022-09-16 22:56:56 +03:00
skshetry
391bb29be2
dvcfs: rename DvcFileSystem to DVCFileSystem ( #8307 )
2022-09-16 18:18:55 +05:45
Peter Rowlands
146bdbbe9b
deps: bump dvc-azure to 2.20.4
2022-09-16 17:47:38 +09:00
Saugat Pachhai (सौगात)
c1f659bdd7
dvcfs: prevent opening file object in write mode
2022-09-16 11:31:24 +03:00
dependabot[bot]
0fe8f4e368
build(deps): Bump dvc-render from 0.0.10 to 0.0.11
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.10 to 0.0.11.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.10...0.0.11 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-16 09:58:16 +02:00
Ruslan Kuprieiev
3cbf319e0d
loader: don't forget to set meta.isdir
...
Leftover from #8273
Fixes #8300
2022-09-15 22:53:48 +03:00
Ruslan Kuprieiev
477a6e177f
index: use tree obj if using inline files
...
Leftover from #8273
2022-09-15 21:25:28 +03:00
skshetry
f854fc6365
try to split testsuites into two ( #8297 )
...
try to split tests
2022-09-15 22:11:02 +05:45
skshetry
1b90683e02
dvcfs: add fsspec-compliance tests ( #8296 )
...
dvcfs: add tests
2022-09-15 18:42:50 +05:45
skshetry
d762372d55
schema: add strict schema validation for top-level plots ( #8289 )
...
schema: add strict schema validation for plots
2022-09-15 16:30:10 +05:45
Peter Rowlands
f3d304580a
schema: update lockfile schema for versioning and dir files
2022-09-15 13:13:31 +03:00
Peter Rowlands
0e0d46e232
output: lazy load tree from files list in get_obj
2022-09-15 13:13:31 +03:00
Peter Rowlands
95ae018ed8
push/fetch: support dirs in worktree remotes
2022-09-15 13:13:31 +03:00
Peter Rowlands
c29e721823
output: support loading/dumping dir trees from metadata
2022-09-15 13:13:31 +03:00
Peter Rowlands
a9c7032d50
dvc-data: bump to 0.8.0
2022-09-15 13:13:31 +03:00
Peter Rowlands
ecb767d622
index: add workspace/key generation helper
2022-09-15 13:13:31 +03:00
Saugat Pachhai (सौगात)
fa45a9bbba
dvcfs: default open to binary mode
2022-09-15 13:11:52 +03:00
daniele
f50ae589ba
deps: remove unused mock dep ( #8290 )
2022-09-15 07:34:21 +05:45
Daniele Trifirò
611c114f01
import-url: pass fs_config down from imp_url to get_cloud_fs
2022-09-14 22:26:19 +03:00
skshetry
fdc18d5483
expose dvcfs in dvc.api and add to fsspec's registry ( #8287 )
...
* expose dvcfs in dvc.api and add to fsspec's registry
* readd __all__ to avoid exposing modules
2022-09-14 20:02:56 +05:45
David de la Iglesia Castro
3b532b7d59
exp run: Support hydra basic sweeper.
...
Requires `--queue` to be used alongside `--set-param`.
Doesn't strictly require `hydra.config.enabled`.
Add `get_hydra_sweeps` to `dvc/utils/hydra.py`. Uses hydra `BasicSweeper` to generate the different sweeps.
`glob` syntax for sweeps is not supported in this P.R.
Closes #8083
---
Using setup from https://hydra.cc/docs/tutorials/basic/your_first_app/composition/ :
```console
$ dvc exp run -S "db=mysql,postgresql" -S "schema=warehouse,school" --queue
Queueing with '{'params.yaml': ['db=mysql', 'schema=warehouse']}'.
Queued experiment '5ab98b8' for future execution.
Queueing with '{'params.yaml': ['db=mysql', 'schema=school']}'.
Queued experiment '57c2fb6' for future execution.
Queueing with '{'params.yaml': ['db=postgresql', 'schema=warehouse']}'.
Queued experiment 'b9d6391' for future execution.
Queueing with '{'params.yaml': ['db=postgresql', 'schema=school']}'.
Queued experiment '145cd55' for future execution.
```
2022-09-13 13:43:30 +02:00
skshetry
e78c4455de
dvcfs: remove unused config code for opening a repo, change signature ( #8277 )
...
dvcfs: remove unused code for opening a repo
2022-09-13 09:26:33 +05:45
skshetry
8e5f4a8f35
data ls: new command to show metadata with outputs ( #8252 )
...
data ls: add new command to show metadata for the outputs
2022-09-09 17:36:24 +05:45
Saugat Pachhai (सौगात)
cb3159e586
dvcfs: remove config
2022-09-09 13:16:27 +03:00
skshetry
7b301b09a1
data status: fix type hints ( #8275 )
2022-09-09 13:38:41 +05:45
skshetry
55b16166c8
add/import/import-url: update help message for labels/type/desc ( #8271 )
2022-09-08 23:09:10 +05:45
Ronan Lamy
c70d0bd14d
fs: cleanup and rename _get_fs_pair_2() to _get_subrepo_info()
2022-09-08 17:39:32 +03:00
Ronan Lamy
b99a0cd6ca
fs: _get_dvc_path() cannot be called with dvc_fs=None
2022-09-08 17:39:32 +03:00
Ronan Lamy
d4170b2ec0
fs: refactor _get_fs_pair_2()
2022-09-08 17:39:32 +03:00
Ronan Lamy
a3181bb509
fs: remove _get_fs_pair()
2022-09-08 17:39:32 +03:00
Ronan Lamy
4d6b90502b
fs: improve performance of _DvcFileSystem._update()
...
Avoid back and forth conversions between key tuples and path strings.
2022-09-08 17:39:32 +03:00
Ronan Lamy
947427f4d9
fs: remove dead code
2022-09-08 17:39:32 +03:00
Ronan Lamy
0482a1a88b
fs: simplify data flow
...
This uses the fact that repo.fs is always self.repo.fs and that
self.repo.fs always exists.
2022-09-08 17:39:32 +03:00
Ronan Lamy
b470459987
fs: simplify return values of _get_fs_pair_2()
2022-09-08 17:39:32 +03:00
Ronan Lamy
81a010674e
fs: avoid costly redundant dvcignore check when calling ._info() from .ls()
2022-09-08 17:39:32 +03:00
Ronan Lamy
d946a1328e
fs: Extract ._info() from .info()
...
This avoids unnecessarily recomputing dvc_parts when calling .info()
from .ls()
2022-09-08 17:39:32 +03:00
Ronan Lamy
ad7d39da20
fs: chop up ._get_fs_pair()
2022-09-08 17:39:32 +03:00
Saugat Pachhai (सौगात)
8432de5980
metadata: add support for dvc.yaml file
2022-09-08 15:10:33 +03:00
Saugat Pachhai (सौगात)
c73764156e
metadata: support custom metadata in .dvc files
...
This adds support for custom metadata in outputs under `meta` key.
Also adds `--meta` flag to `add`/`import`/`import-url` that supports
`key=value` values.
2022-09-08 14:10:35 +03:00
skshetry
df60df5242
add metadata fields: label, type to data ( #8232 )
...
gto like metadata fields: labels and type
2022-09-08 16:33:47 +05:45
dependabot[bot]
504485ed6e
build(deps-dev): Bump pylint from 2.15.0 to 2.15.2 ( #8268 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.0 to 2.15.2.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.0...v2.15.2 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-08 10:57:12 +05:45
dependabot[bot]
1e989bde2c
build(deps): Bump scmrepo from 0.1.0 to 0.1.1 ( #8269 )
...
Bumps [scmrepo](https://github.com/iterative/scmrepo ) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/iterative/scmrepo/releases )
- [Commits](https://github.com/iterative/scmrepo/compare/0.1.0...0.1.1 )
---
updated-dependencies:
- dependency-name: scmrepo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-08 10:56:53 +05:45
Ruslan Kuprieiev
7e2248bbe5
deps: bump dvc-data to 0.7.1
2022-09-07 23:07:35 +03:00
Daniele Trifirò
a2d80b2403
silence flake8 errors (abstract class with no abstract method)
2022-09-07 21:51:33 +03:00
Daniele Trifirò
76e7c76ae5
data status: fix for scmrepo 0.1.0
2022-09-07 21:48:53 +03:00
Ruslan Kuprieiev
6cada6dc12
dvc: cloud versioning POC
2022-09-07 21:43:34 +03:00
Ruslan Kuprieiev
89d4461908
deps: temporarily limit dulwich to <0.20.46
...
Looks like the new release broke some data status logic.
2022-09-07 02:56:14 +03:00
Ruslan Kuprieiev
a124d7e866
deps: bump dvc-data to 0.6.3
2022-09-07 02:23:29 +03:00
Ruslan Kuprieiev
628be2ae49
deps: bump dvc-data to 0.6.1
2022-09-06 20:30:20 +03:00
dependabot[bot]
7a71e06946
build(deps): Bump dvc-render from 0.0.9 to 0.0.10
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.9 to 0.0.10.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.9...0.0.10 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-06 17:12:36 +02:00
dependabot[bot]
91e54d8c27
build(deps): Bump dvc-data from 0.4.0 to 0.5.3
2022-09-06 17:17:21 +03:00
skshetry
071b2b8f81
add support for foreach target ( #8210 )
...
add general support for foreach target
2022-09-06 06:39:37 +05:45
skshetry
0b2b59a601
dvc.yaml: preserve outputs' desc on rewrites/updates to the stage ( #8247 )
...
preserve outputs' desc on rewrites/updates to the stage
We were not loading `desc` of the output, due to which we were not preserving the desc field over rewrites. Note that the rewrite only happens in select commands for `dvc.yaml`: `freeze`/`unfreeze`/`run`/`stage-add`, so we did not notice this before.
2022-09-05 18:49:39 +05:45
dependabot[bot]
65dc1cd08f
build(deps-dev): Bump pytest from 7.1.2 to 7.1.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.2 to 7.1.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.2...7.1.3 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-03 02:04:01 +03:00
dependabot[bot]
1b103297b7
build(deps-dev): Bump dvc-azure from 2.20.0 to 2.20.2
...
Bumps [dvc-azure](https://github.com/iterative/dvc-azure ) from 2.20.0 to 2.20.2.
- [Release notes](https://github.com/iterative/dvc-azure/releases )
- [Commits](https://github.com/iterative/dvc-azure/compare/2.20.0...2.20.2 )
---
updated-dependencies:
- dependency-name: dvc-azure
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-03 02:03:46 +03:00
John Henning
887c73b3c6
adjusted formatting for dvc-hdfs
2022-09-02 23:04:59 +03:00
Peter Rowlands
660c17f654
output: save version_id meta
2022-09-01 19:36:53 +03:00
skshetry
49da2eef02
tests: set celery ping_task_timeout 3x the default ( #8221 )
...
tests: set celery ping_timeout 3x the default
2022-09-01 16:48:19 +05:45
Ruslan Kuprieiev
aff65d42bb
deps: bump dvc-azure and dvc-s3 to 2.20.0
2022-09-01 13:00:47 +03:00
skshetry
8968405770
data status: fix path for committed changes in Windows ( #8220 )
...
The path we get from GitFileSystem is posixpath, even on Windows. We need to
convert that posixpath to os.path here.
2022-09-01 10:02:08 +05:45
dependabot[bot]
b6e8ba6758
build(deps-dev): Bump pylint from 2.14.5 to 2.15.0
...
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.14.5 to 2.15.0.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.14.5...v2.15.0)
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
2022-09-01 10:42:16 +08:00
Ruslan Kuprieiev
e307a62dc0
deps: bump dvc-data to 0.4.0
2022-09-01 02:59:24 +03:00
Saugat Pachhai (सौगात)
639eeed43b
skip tests that depend on hydra.compose in 3.11
2022-08-31 17:24:09 +02:00
David de la Iglesia Castro
91f12395f1
exp run: Support composing and dumping Hydra config.
...
The feature will be used depending on whether `config.hydra.enabled` is True or False.
Uses `hydra.initialize_config_dir` and `hydra.compose` (from https://hydra.cc/docs/advanced/compose_api/ ) to build the config and dump it to `params.yaml`. The content of the output file will be overwritten.
`config.hydra.config_dir` and `config.hydra.config_name` can be used to customize the values passed to `hydra.initialize_config_dir` and `hydra.compose`.
Can be combined with `--set-param` overrides.
Closes #8082
2022-08-31 17:24:09 +02:00
Ruslan Kuprieiev
e7daeb1c3e
deps: bump dvc-data to 0.3.0
2022-08-30 22:46:27 +03:00
Saugat Pachhai (सौगात)
d3569035c8
output.get_obj: catch ObjectCorruptedError
2022-08-30 21:31:33 +03:00
David de la Iglesia Castro
daee52e176
info: skip missing subprojects
2022-08-30 20:15:41 +03:00
skshetry
a8415b01d0
data status: fix quoting on command hints for untracked files ( #8211 )
...
data status: fix quoting on command hints
2022-08-30 22:51:39 +05:45
Daniele Trifirò
77f56090ff
do not checkout partials imports on fetch
2022-08-30 20:05:09 +03:00
Dave Berenbaum
1d3102f29b
data status: update hints to include fetch and checkout ( #8209 )
2022-08-30 22:05:32 +05:45
skshetry
a0cbcaa3c8
Delete CODEOWNERS
2022-08-30 13:12:57 +05:45
David de la Iglesia Castro
ab780879d1
info: Include subprojects.
2022-08-30 09:22:39 +02:00
skshetry
bfad82a2e3
data status: remove --withdirs, show unknowns in CLI ( #8189 )
...
* data status: remove --withdirs, show unknowns in CLI
* data status: only consider unknown from newer object during diff
2022-08-30 12:11:02 +05:45
skshetry
e5eec59cb8
test on 3.11 ( #8196 )
...
We don't have aiohttp support yet, due to which we have to install
without cythonized extension.
Similarly, there has been some changes in how dataclasses disallows some
mutable arguments to be set as a class property, due to which
`hydra.conf` fails to import in 3.11.
See https://github.com/python/cpython/pull/29867 . For now, I have
patched the module and avoid importing as a pytest-plugin.
dvc-hdfs/pyarrow is not there yet, we'll usually see a release 2-3
months after official reelase.
dvc-hdfs is skipped in 3.11 in extras_requires. `--set-params` will
return a nice error message if hydra cannot be imported in 3.11. I
decided to only patch that in tests.
2022-08-29 19:58:17 +05:45
Paweł Redzyński
2a4b83060e
plots: support dirs in top level definitions
...
Fixes : #7914
2022-08-29 10:51:16 +02:00
David de la Iglesia Castro
9e2ebe9fcc
resolve_rev: raise DvcException on empty repo.
2022-08-29 01:50:14 +03:00
David de la Iglesia Castro
2cef130191
repo: Handle no commits for exp show and plots diff.
...
Make it consistent with all the other commands that use `brancher` (i.e. `dvc diff`, `metrics diff`, `params diff`)
Closes #8163
2022-08-29 01:50:14 +03:00
David de la Iglesia Castro
17b9b1571e
api: Add details forparams_show stages syntax.
...
Explain `stages` syntax for cases where the api is used from a directory different to the one the `dvc.yam` is located.
2022-08-29 01:49:38 +03:00
skshetry
37c8ef3406
Update dvc/commands/plots.py
2022-08-29 01:46:47 +03:00
b7aea414e6
plots templates: change ui to not dump to file
...
Update dvc/commands/plots.py
Co-authored-by: David de la Iglesia Castro <[email protected] >
Update tests/unit/command/test_plots.py
Co-authored-by: David de la Iglesia Castro <[email protected] >
Update dvc/commands/plots.py
Co-authored-by: Paweł Redzyński <[email protected] >
fixed test
2022-08-29 01:46:47 +03:00
pre-commit-ci[bot]
126a64618b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-08-29 01:43:43 +03:00
Alex Hall
8bdf9b1138
Better error message when using remove on file instead of dvc file
2022-08-29 01:43:43 +03:00
Ruslan Kuprieiev
9cb242c8a5
deps: bump dvc-http and dvc-gs
2022-08-28 23:13:18 +03:00
Ruslan Kuprieiev
11802426de
pyinstaller: don't forget dvc_* plugins
...
Fixes #8194
2022-08-28 21:05:25 +03:00
dependabot[bot]
b376044c45
build(deps): Bump dvc-data from 0.1.23 to 0.2.0
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.1.23 to 0.2.0.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.1.23...0.2.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-08-27 03:18:20 +03:00
David de la Iglesia Castro
7b3b4b373b
api: Fix params_show for untracked targets.
...
If an untracked target is provided alongside `stages` or `deps`, don't load the parameters from the target and raise no params found instead.
Closes #8161
2022-08-26 12:00:45 +02:00
Peter Rowlands (변기호)
512bfc4305
tests: mark exp queue func tests xfail ( #8186 )
2022-08-25 21:04:05 +05:45
skshetry
54ee8c0d77
data status: make untracked files to be relative paths ( #8184 )
2022-08-25 19:29:43 +05:45
skshetry
063eb6904d
data status: test cleanup and improvements ( #8185 )
2022-08-25 18:50:46 +05:45
Ruslan Kuprieiev
3e183d62ed
deps: bump dvc-* plugins to 2.19.0
...
These are the same packages but with correct versions to sync up with existing packages that we generated in conda over the years.
2022-08-25 14:44:13 +03:00
David de la Iglesia Castro
e815bbe211
metrics: show: Fix show from subdir.
...
This was a regression introduced in #7712 .
Calling `repo.metrics.show` from a subdir stopped returning metrics because `fs.isfile(metric)` check returned false.
2022-08-25 13:02:22 +02:00
Saugat Pachhai (सौगात)
2374c72105
status: add unknown state
2022-08-25 13:23:18 +03:00
Saugat Pachhai (सौगात)
5cf1421c61
fix tests
2022-08-25 13:23:18 +03:00
skshetry
a6a2feea62
Update setup.cfg
2022-08-25 13:23:18 +03:00
Saugat Pachhai (सौगात)
6c1d00c2d9
fix diff when no object exists by falling back to shallow_diff
2022-08-25 13:23:18 +03:00
Saugat Pachhai (सौगात)
f72456f67c
add shallow_diff
2022-08-25 13:23:18 +03:00
skshetry
2c556f58d3
data status: fix not-in-cache hint ( #8181 )
...
See https://github.com/iterative/dvc.org/pull/3812\#discussion_r936625617 .
2022-08-25 15:39:59 +05:45
Ruslan Kuprieiev
460d08057c
Create hook-fsspec.py
2022-08-24 23:39:46 +03:00
Ronan Lamy
cc6deb24c8
fs: remove obsolete special cases
2022-08-23 23:20:42 +03:00
Ronan Lamy
e681030c72
fs: simplify filtering out dvcfiles
2022-08-23 23:20:42 +03:00
Ronan Lamy
7a51548214
fs: Add fast path for the no subrepo case in _get_fs_pair()
2022-08-23 23:20:42 +03:00
Ronan Lamy
8e99fd0091
ls: Use fs.walk(..., detail=True) instead of separate call to fs.info()
2022-08-23 23:20:42 +03:00
Ronan Lamy
7e5a586f85
fs: Remove redundant .isdvc() check
...
fs.walk(..., dvc_only=True) already outputs dvc objects only, so
fs.isdvc(path, recursive=True) is always True.
2022-08-23 23:20:42 +03:00
Ronan Lamy
c76a84b7b1
fs: remove one call to ._get_key() in _DvcFS._get_fs_pair()
2022-08-23 23:20:42 +03:00
Daniele Trifirò
26008f1559
import-url/update: add --no-download flag
...
add --no-download flag to dvc import-url/dvc update to only create/update .dvc
files without downloading the associated data.
Created .dvc files can be fetched using `dvc pull` or can be
updated using `dvc update --no-download`.
2022-08-23 23:07:01 +03:00
Daniele Trifirò
92d680ff94
tests: fix typo in test name
2022-08-23 23:07:01 +03:00
Daniele Trifirò
c69c46d08c
fix error message on fetch/pull/checkout failure
2022-08-23 23:07:01 +03:00
skshetry
6477ade557
build: skip install fpm and ruby on Windows ( #8169 )
2022-08-23 18:02:47 +05:45
skshetry
78dd045d29
ci: drop __token__, it's the default ( #8157 )
2022-08-22 08:40:31 +05:45
skshetry
2ddbbdf5a4
ci: refactor binary executable building workflow ( #8156 )
...
This now uses the matrix to build executables from same jobs definition.
2022-08-22 08:38:58 +05:45
skshetry
17a565023b
build: bump ruby to 2.6 ( #8154 )
2022-08-20 23:32:23 +05:45
skshetry
b5d5728bf8
deps: bump dvc-data to 0.1.22 and dvc-s3 to 0.0.2 ( #8153 )
...
* deps: bump dvc-data to 0.1.22
* deps: bump dvc-s3 to 0.0.2
2022-08-20 22:59:40 +05:45
skshetry
055641a51e
deps: bump dvc-data to 0.1.21 ( #8147 )
2022-08-19 13:22:56 +05:45
Ruslan Kuprieiev
fc509d4e4a
Delete hook-googleapiclient.model.py
...
This is already provided by pyinstaller's standard hooks https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-googleapiclient.model.py
2022-08-18 21:07:57 +03:00
Ruslan Kuprieiev
a67fea2235
doctor: ignore missing plugins
2022-08-18 21:02:41 +03:00
skshetry
f062b52e05
Add python version label to the readme ( #8146 )
2022-08-18 18:34:58 +05:45
Paweł Redzyński
25166f3e02
plots: show-vega: adjust renderers before show vega
...
Fixes : iterative/cml#1112
2022-08-18 12:52:52 +02:00
Ruslan Kuprieiev
a79ea15827
tests: webhdfs: fix linter
2022-08-18 12:43:12 +03:00
Ruslan Kuprieiev
8db9a2f70f
deps: bump dvc-data to 0.1.19
2022-08-18 12:43:12 +03:00
David de la Iglesia Castro
ff2f2e433f
pyinstaller: Restrict to 5.0
...
5.2 didn't fix https://github.com/iterative/dvc/issues/7949
2022-08-18 12:42:11 +03:00
Ruslan Kuprieiev
3fc9f323a7
fs: don't import SSHFileSystem
2022-08-18 00:23:40 +03:00
Ruslan Kuprieiev
bf0aa5e8aa
repo: data: ignore pylint false-positives
2022-08-17 23:02:22 +03:00
Ruslan Kuprieiev
3b3866323e
deps: bump dvc-data to 0.1.18
2022-08-17 23:02:22 +03:00
Ruslan Kuprieiev
3c3cbee7fd
deps: bump dvc-http to 0.0.2
2022-08-16 22:31:05 +03:00
Ruslan Kuprieiev
4a95020155
gs: add endpointurl
2022-08-14 13:39:03 +03:00
Ruslan Kuprieiev
3a429a869e
tests: lockfile: use fs_path
2022-08-13 23:09:21 +03:00
Ruslan Kuprieiev
99465b25b5
deps: bump dvc-data to 0.1.17
2022-08-13 22:43:46 +03:00
Ruslan Kuprieiev
fcdad4d229
deps: bump dvc-data to 0.1.16
2022-08-13 22:25:24 +03:00
Ruslan Kuprieiev
2e8b463795
deps: bump dvc-data
2022-08-12 11:58:44 +03:00
Ivan Shcheklein
206e00ccbe
guard rwlock file to prevent not locked repo edits
2022-08-11 15:54:42 +03:00
Peter Rowlands
f13443477d
exp run: account for repo root when staging git-deps
2022-08-11 13:48:28 +09:00
Dave Berenbaum
9837747eef
exp run: ui tweak ( #8124 )
2022-08-11 09:14:43 +05:45
dependabot[bot]
cf5dfc517a
build(deps-dev): Bump filelock from 3.7.1 to 3.8.0 ( #8125 )
...
Bumps [filelock](https://github.com/tox-dev/py-filelock ) from 3.7.1 to 3.8.0.
- [Release notes](https://github.com/tox-dev/py-filelock/releases )
- [Changelog](https://github.com/tox-dev/py-filelock/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.7.1...3.8.0 )
---
updated-dependencies:
- dependency-name: filelock
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-11 09:14:12 +05:45
dependabot[bot]
c134d4ab8e
build(deps): Bump dvc-data from 0.1.13 to 0.1.14 ( #8117 )
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.1.13 to 0.1.14.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.1.13...0.1.14 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-10 09:17:12 +05:45
skshetry
7a0b3e9377
Update tests/func/experiments/test_queue.py
2022-08-09 17:50:48 +08:00
karajan1001
d6f8e5a507
Add flaky to a queue related test.
...
This is a flaky, the queue tasks status might remain "Running" even if
it had already been completed, beside sometimes I also noticed it raise
a pytest fixture error.
2022-08-09 17:50:48 +08:00
Alex Hall and David de la Iglesia Castro
2ca1d6c7c1
refactor: extract load_path function from common code using LOADERS ( #7983 )
...
Following up on https://github.com/iterative/dvc/pull/7965#discussion_r912684074
Co-authored-by: David de la Iglesia Castro <[email protected] >
2022-08-09 09:09:43 +00:00
Ivan Shcheklein
f7fbac1eed
stage add: fix hint message consistency ( #8112 )
2022-08-09 11:18:37 +05:45
skshetry
7c1e339650
data status: handle path joining properly for tree leaves/items ( #8107 )
2022-08-09 09:34:15 +05:45
Ivan Shcheklein
b7c0c41262
lock test name fix
2022-08-09 00:47:04 +03:00
karajan1001
9180a718c1
queue status: show final experiment name
...
fix : #8059
1. showing final experiment name in `queue status` for successful tasks.
2. Add a unit test for `celery_queue.status`
2022-08-08 15:49:51 +09:00
karajan1001
306456d453
queue status: ERROR: Invalid experiment
...
fix : #8014
> ERROR: Invalid experiment '{entry.stash_rev[:7]}'.
This happens when the queue task failed from a scm error.
{"exc_type": "GitMergeError", "exc_message": ["Cannot fast-forward HEAD
to '05100047a341f2fa4a02421289d48f84d8c45e86'"], "exc_module": "dvc.scm"}.
And the failed task neither create a infofile nor create a fail_stash.
1. Didn't raise DvcException if no infofile found for failed tasks.
(success tasks still raise it)
2. Add a new unit test for this.
2022-08-08 15:07:11 +09:00
Ivan Shcheklein
95421a5605
fix logic for unlock on unlocked lock calls
2022-08-08 14:25:10 +09:00
David de la Iglesia Castro
31635b8312
exp run: Use hydra for parsing --set-param.
...
- Overriding a config value : foo.bar=value
- Appending a config value : +foo.bar=value
- Appending or overriding a config value : ++foo.bar=value
- Removing a config value : ~foo.bar, ~foo.bar=value
See https://hydra.cc/docs/advanced/override_grammar/basic/#modifying-the-config-object
---
Breaking changes:
To modify a list, `foo[0]=bar` must now be passed as `foo.0=bar`.
Modifying a nested list inside a dictionary is not supported by omegaconf.
---
Closes #4883
Closes #5868
Closes #6129
2022-08-05 17:53:24 +02:00
David de la Iglesia Castro
45ac64ddde
api: Fix params_show when stage has no params
...
Also fix when `deps=True` and no params in the entire pipeline.
Closes #8064
2022-08-05 16:26:19 +03:00
Sami Abdul-Wahid
c7b22b467c
Upgrade from toml to tomlkit library ( #7468 )
...
* Upgrade from toml to tomlkit library
2022-08-05 18:58:22 +05:45
karajan1001
ae83e3c787
Now exp remove can clean up failed tasks and associated successful tasks
...
fix : #8018
fix : #8071
1. Add one line to make `exp remove` can remove failed tasks, and will
also delete associated successful tasks
2. Add a new unit test for this behaviour.
3. Solve the unstable test_queue problem.
2022-08-05 16:09:51 +09:00
karajan1001 and Peter Rowlands
f68c4e9a4b
Refactor dvc.repo.experiment.remove to make matching exp by name also
...
return its queue entry info.
Some review changes.
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2022-08-05 16:09:51 +09:00
karajan1001
2182c4508d
Make exp remove flags and arguments mutually exclusive.
...
1. Current behavior didn't follow the either or description.
2. Make the underlying logic more clear.
2022-08-05 16:09:51 +09:00
karajan1001
eaab253e2b
Refactor dvc.repo.experiments.queue.remove.py
...
Make a better API for other place to call.
2022-08-05 16:09:51 +09:00
karajan1001
905c416ffc
Decouple queue clear and remove commands
2022-08-05 16:09:51 +09:00
karajan1001
a6063307b5
Replace the _clear_queue function with celery_queue.clear
2022-08-05 16:09:51 +09:00
Ruslan Kuprieiev
704191b15a
output: resolve relative to stage.wdir only on the same fs
...
Leftover from https://github.com/iterative/dvc/pull/8091
2022-08-04 19:25:31 +03:00
dependabot[bot]
5625a94365
build(deps): Bump dvc-data from 0.1.12 to 0.1.13
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.1.12 to 0.1.13.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.1.12...0.1.13 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-08-04 20:26:18 +05:45
dependabot[bot]
634894d3b1
build(deps): Bump dvc-data from 0.1.11 to 0.1.12
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.1.11 to 0.1.12.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.1.11...0.1.12 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-08-04 13:22:48 +03:00
Ruslan Kuprieiev
0ce4e769f1
repo: make lock/rwlock kinda work on non local fs
2022-08-03 21:10:28 +03:00
Ruslan Kuprieiev
2c3655f7ff
repo: use fs.makedirs instead of os.makedirs
2022-08-03 21:10:28 +03:00
Ruslan Kuprieiev
52bdd90840
repo: support basic workflow on s3fs/adlfs/etc
2022-08-03 21:10:28 +03:00
Ruslan Kuprieiev
fcc7240617
odb: use odb.path instead of odb.cache_dir
2022-08-03 21:10:28 +03:00
Ruslan Kuprieiev
ecd98bdf7d
odbmgr: separate repo and local odbs
2022-08-03 21:10:28 +03:00
Ruslan Kuprieiev
e525d9bedb
deps: bump dvc-data to 0.1.11
2022-08-03 21:10:28 +03:00
Yury
27b2a5cd6d
revert logger to lazy formatting
2022-08-03 13:18:10 +03:00
Peter Rowlands
8518fe639f
dvc-task: update to 0.1.2
2022-08-03 16:44:36 +09:00
Ruslan Kuprieiev
496599518a
deps: bump dvc-data to 0.1.9
2022-08-02 23:57:34 +03:00
Yury
116ad512e4
plots: remove legacy code from verify_metrics
...
Fixes : #7988
2022-08-02 14:38:29 +09:00
Ruslan Kuprieiev
6a7b55fdf7
datafs: use dvc-data's datafs
2022-08-02 03:13:06 +03:00
Paweł Redzyński
ed62ddb373
cmd: plots: update messaging
...
Related: iterative/dvc.org#3691
2022-08-01 17:29:13 +02:00
Peter Rowlands
38b1a41f2b
build: add pyinstaller hooks for dvc-task and celery
2022-08-01 12:26:53 +03:00
skshetry
6f0736142b
deps: bump dvc-data to 0.1.6
2022-07-28 21:45:23 +05:45
Gao
737d7cda4b
queue: missing f format for the error message.
2022-07-28 21:15:51 +08:00
dberenbaum
75745a70b4
readme: add exps to quickstart
2022-07-28 10:16:32 +02:00
Ivan Shcheklein
9ff18502b6
add gdrive remote profile field to config
2022-07-27 23:29:18 +03:00
Paweł Redzyński
44a4fb59a7
plots: account for wdir in stage plots
...
Fixes : #8003
2022-07-26 13:59:24 +02:00
Paweł Redzyński
6543683c0c
project: update dvc render and dvclive test dependencies
2022-07-26 13:40:59 +02:00
pre-commit-ci[bot]
8fee26c3d2
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-07-26 15:02:09 +05:45
Gao and skshetry
7c8994b538
Update dvc/repo/experiments/queue/workspace.py
...
Co-authored-by: skshetry <[email protected] >
2022-07-26 15:02:09 +05:45
karajan1001
9dfe88e2b1
exp run: workspace status wrong
...
fix : #8045
2022-07-26 15:02:09 +05:45
Saugat Pachhai (सौगात)
d0eda1d538
data status: add spinners during diff
2022-07-25 19:32:19 +05:45
Saugat Pachhai (सौगात)
896acedb07
data status: optimize printing status list
...
`--untracked-files` and `--unchanged` coupled with `--granular`
puts a lot of stress on `show_status`. Currently, with those options,
dvc spends ~26s on `_show_status` function.
Unhappy with the above result, I looked into improving the situation with
`console.out`. It did reduce that to 9s but it still felt like a lot.
Then I dropped to good old colorama, which dropped to 3s(term)/1.24(redirected).
I tested with buffering output which dropped this further to
~600ms(term)/~100ms(redirected).
This may seem like premature optimization, but this was preventing me
from figuring out perf issues in granular outputs, and I believe the
user should not be penalize for using feature that we already offer.
2022-07-25 17:47:23 +05:45
Saugat Pachhai (सौगात)
fd7dcae8aa
cli/log: handle SIGPIPE errors
...
`dvc <command> | head` for example could fail with SIGPIPE and
would print a traceback with BrokenPipeError exception. Now we
redirect do /dev/null in case of error as suggested in Python's
docs: https://docs.python.org/3/library/signal.html\#note-on-sigpipe .
2022-07-25 16:38:09 +05:45
karajan1001
a4763593c7
queue: clean local EXEC_HEAD & EXEC_BASELINE after we run exp with queue.
...
fix : #8031
Currently when we use tmp directory to run a experiment, we set
`EXEC_HEAD` , `EXEC_BASELINE` and `EXEC_MERGE` heads locally but forget
to remove it. This cause some problem when we use `exp show`
1. Clean `EXEC_HEAD` , `EXEC_BASELINE` and `EXEC_MERGE` after we pushed
them to tmp_dir
2. Add a unit test for it.
Co-authored-by:
2022-07-25 18:17:12 +08:00
dberenbaum
cc2d2495c0
readme: link to docs for related tech
2022-07-22 23:31:59 +02:00
Jorge Orpinel
9b30ef474a
exp branch: update -h stdout
...
per https://github.com/iterative/dvc.org/pull/3780#pullrequestreview-1043024878
2022-07-22 23:30:14 +03:00
David de la Iglesia Castro
f95e6340e0
utils: remove dead code
2022-07-22 16:30:51 +02:00
Saugat Pachhai (सौगात)
c3ac4f84bf
data status: fix untracked files output for subdir
2022-07-22 16:29:04 +03:00
Saugat Pachhai (सौगात)
61729ff66a
use M fixture for concise tests
2022-07-22 16:29:04 +03:00
Saugat Pachhai (सौगात)
3dfcb82e5c
add tests for data:status command
2022-07-22 16:29:04 +03:00
Saugat Pachhai (सौगात)
340a158595
introduce new dvc data status command
2022-07-22 16:29:04 +03:00
Ruslan Kuprieiev
4b965c3f9f
fs: gdrive: add gdrive_acknowledge_abuse
...
Fixes https://github.com/iterative/dvc/issues/7832
2022-07-22 14:58:45 +03:00
dependabot[bot]
b5220129e7
build(deps): Bump pyinstaller from 5.0 to 5.2
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.0 to 5.2.
- [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.0...v5.2 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-07-22 14:56:13 +03:00
Ruslan Kuprieiev
7a4886386f
deps: bump dvc-data to 0.1.4
2022-07-21 22:53:26 +03:00
Ruslan Kuprieiev
ae143505e4
deps: bump dvc-data to 0.1.3
2022-07-21 19:44:38 +03:00
Ruslan Kuprieiev
b9b2e5bbd9
Delete test_gdrive.py
...
Moved to dvc-gdrive.
2022-07-21 19:34:04 +03:00
Ruslan Kuprieiev
66420439c9
deps: bump dvc-data to 0.1.2
2022-07-21 19:16:21 +03:00
David de la Iglesia Castro
ed1d8e2b8f
exp: init: Use persist: true if checkpoint.
2022-07-21 13:21:06 +02:00
dberenbaum
0b07354361
readme: drop table of contents
...
readme: top-level links in comments
2022-07-21 09:01:17 +02:00
dependabot[bot]
fa200c9b4c
build(deps-dev): Bump pylint from 2.14.4 to 2.14.5
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.14.4 to 2.14.5.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.14.4...v2.14.5 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-07-20 10:04:44 +05:45
dependabot[bot]
1aaf836340
build(deps-dev): bump mypy from 0.961 to 0.971
...
Bumps [mypy](https://github.com/python/mypy ) from 0.961 to 0.971.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.961...v0.971 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-07-20 10:36:20 +08:00
Jorge Orpinel Perez
f51e96fe6d
Revert "readme: roll back non-vscode changes"
...
This reverts commit 5482de3582e366b86fb4923ba95e72cc39a2e37e.
2022-07-20 07:16:26 +05:45
Jorge Orpinel Perez
afefc0ddc1
readme: add paragraph about dvc exp, add GS links
2022-07-20 07:16:26 +05:45
Jorge Orpinel Perez
bd82af2e1e
readme: better Studio mention
2022-07-20 07:16:26 +05:45
Jorge Orpinel Perez
34f20bf69f
readme: 1 sentence = 1 line formatting
2022-07-20 07:16:26 +05:45
Jorge Orpinel Perez
2c339a7fb3
readme: move How it works after Quick started sections
2022-07-20 07:16:26 +05:45
Jorge Orpinel Perez
ec4d61e2b1
readme: improve and reformat How it works
2022-07-20 07:16:26 +05:45
Ruslan Kuprieiev
94eec50d27
deps: bump dvc-data to 0.1.1
2022-07-19 14:55:28 +03:00
Ruslan Kuprieiev
dd32ff6206
deps: bump dvc-data to 0.0.31
2022-07-19 04:54:34 +03:00
Ruslan Kuprieiev
52a9c58cc0
deps: bump dvc-data to 0.0.30
2022-07-19 04:36:41 +03:00
Ruslan Kuprieiev
01855b7dcf
deps: bump dvc-data to 0.0.28
2022-07-18 21:46:22 +03:00
Ruslan Kuprieiev
38f10884a7
deps: bump dvc-data to 0.0.27
2022-07-18 19:15:02 +03:00
Ruslan Kuprieiev
9e6d2163df
deps: bump dvc-data to 0.0.26
2022-07-18 01:03:06 +03:00
skshetry
dbfe88510f
deps: bump dvc-data to 0.0.24
2022-07-15 22:40:26 +05:45
Alexander Guschin
c04eb40f90
Update setup.cfg
2022-07-14 18:12:47 +05:45
David de la Iglesia Castro
c2668110b7
gc: Add --rev and --num.
...
Closes #7695
2022-07-12 20:13:07 +02:00
Peter Rowlands
80272a0770
queue: cleanup flaky tests
2022-07-12 21:39:49 +09:00
Peter Rowlands
5a6e363c16
queue: cleanup help/usage to match docs
2022-07-12 21:39:49 +09:00
Peter Rowlands
ed593493df
queue start: simply jobs validation
2022-07-12 21:39:49 +09:00
Peter Rowlands
3130a9a75f
queue status: use summary style output for worker status
2022-07-12 21:39:49 +09:00
Peter Rowlands
eeb516e7d3
queue: disable dvc-machine handling for queue
2022-07-12 21:39:49 +09:00
karajan1001
c0368e1756
Refactor: Move remove_revs from BaseStashQueue to expstash
2022-07-12 21:39:49 +09:00
Gao and Peter Rowlands
e19824fd2e
Update dvc/repo/experiments/queue/base.py dvc/repo/experiments/queue/remove.py
...
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2022-07-12 21:39:49 +09:00
karajan1001
02681f2e65
Rename _all to all_ remove some tricky func test.
2022-07-12 21:39:49 +09:00
karajan1001
b37524603a
Queue remove: Can remove successed,failed tasks msgs
...
Followed from #7592
1. Seperate remove method to a new file.
2. Add queued, failed, processed flags to remove.
3. Add new unit tests for queue status --queue/fail/success
4. Implement methods to remove done tasks.
5. add some new unit and functional test for celery_queue.remove
6. bump into dvc-task version 0.0.13
2022-07-12 21:39:49 +09:00
Peter Rowlands
ff3b23c1b6
dvc-task: bump to 0.1.0
...
- ends requirement to install kombu + dvc-task from source
2022-07-12 21:39:49 +09:00
Peter Rowlands
4e005411fe
exp show: use unique executor name for dvc-task & standalone tempdir exps
2022-07-12 21:39:49 +09:00
Peter Rowlands
1f7b802f79
exp show: collect running standalone tempdir experiments
2022-07-12 21:39:49 +09:00
Peter Rowlands
7c2bd340db
exp run: update --run-all logs behavior
2022-07-12 21:39:49 +09:00
Peter Rowlands
9e0788aa3a
exp run: preserve --temp standalone behavior
2022-07-12 21:39:49 +09:00
Peter Rowlands
e1cf62a583
exp queue: add separate standalone/tempdir implementation
2022-07-12 21:39:49 +09:00
Peter Rowlands
ce4cee184e
exp queue: separate queue implementations into their own modules
2022-07-12 21:39:49 +09:00
Peter Rowlands
db52c75221
dvc-task: bump to 0.0.12
2022-07-12 21:39:49 +09:00
karajan1001 and Peter Rowlands
bd74172633
queue status: add some unit test to increase the coverage
...
Followed by #7903
Add a new unit test to increase the coverage of test
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2022-07-12 21:39:49 +09:00
karajan1001
e5b4946309
queue status: some reviewed changes.
...
1. No `start -j` will only start worker (1,2,3,...,j). Will not start
j new worker.
2. Distinguish active worker and idle worker.
2022-07-12 21:39:49 +09:00
karajan1001
3918db945a
queue status: will show the current worker status
...
fix : #7950
Currently queue worker status are not show in `queue status` makes it
hard to tell if the worker is still living.
1. add a new method `active_worker` to return the currently running
worker node name.
2. give every worker a unique name.
3. `queue status` will show how much worker running at present.
2022-07-12 21:39:49 +09:00
karajan1001
25b5d1d522
queue start: give every worker a unique name
...
Currently, all of our celery workers are called `dvc-exp-worker` and
they will write to the same log path.
We give every single worker a unique name and seperate they logs if
under a debug log level
2022-07-12 21:39:49 +09:00
dberenbaum
164efe089f
queue: ui cleanup
2022-07-12 21:39:49 +09:00
karajan1001
4e82eb4978
queue remove: add remove support for short revs( #7840 )
...
fix : #7840
Now queue remove can not accept short rev as name.
1. Refactor the queue entry match in `queue remove`
2. Better output if no queue task found for name.
3. short rev on kill can only be work for rev with lens longer than 4
2022-07-12 21:39:49 +09:00
karajan1001
16bb31a284
queue worker shutdown: disable restore
...
fix : #7884
The complete task restored back to the queue causing a task duplication.
Might related to a bug from the celery celery/celery#5663
Follow what in https://github.com/celery/celery/issues/5663#issuecomment-734871162
Disabled the restore_at_shutdown
2022-07-12 21:39:49 +09:00
karajan1001
d7a917e2ab
queue status: use a short rev to represent tasks
...
1. use a short rev to represent tasks
2. Add a unit test for the result shown
2022-07-12 21:39:49 +09:00
Peter Rowlands
8dfcb0a36d
exp run: update Ctrl+C handling for --temp and --run-all
2022-07-12 21:39:49 +09:00
Peter Rowlands
67cbdf6de8
exp queue: remove dvc queue attach command
2022-07-12 21:39:49 +09:00
Peter Rowlands
f12091002f
exp queue: add dvc queue logs command
2022-07-12 21:39:49 +09:00
Peter Rowlands
570f4345a0
exp queue: implement queue.logs() support
2022-07-12 21:39:49 +09:00
Peter Rowlands
425d0701c9
exp queue: return completed exps in queue status
2022-07-12 21:39:49 +09:00
Peter Rowlands
99a11f7056
exp: save failed queue runs in separate stash/reflog
2022-07-12 21:39:49 +09:00
Peter Rowlands
8ab46c1549
exp: simplify shutdown behavior
2022-07-12 21:39:49 +09:00
Peter Rowlands
8b663f2719
exp: use single atomic task instead of chaining
2022-07-12 21:39:49 +09:00
Peter Rowlands
c0db513cf0
dvc-task: bump to 0.0.11
2022-07-12 21:39:49 +09:00
Peter Rowlands
bf1bc9625d
exp: use celery async wait in queue get_result
2022-07-12 21:39:49 +09:00
Peter Rowlands
686c15dab9
exp: use a single chain for all exp tasks
...
- removes separated scheduling for setup_exp
2022-07-12 21:39:49 +09:00
Peter Rowlands
10aa833f80
dvc-task: bump to 0.0.10
2022-07-12 21:39:49 +09:00
Peter Rowlands
9f5af04963
exp: update tests for match_queue_entry refactor
2022-07-12 21:39:49 +09:00
Peter Rowlands
ac5d72967a
dvc-task: bump to 0.0.9
2022-07-12 21:39:49 +09:00
karajan1001
bcc2f3b389
Reorganized get_queue_entry_by_names
2022-07-12 21:39:49 +09:00
karajan1001
3d0ee0d202
exp queue: monitor queue status ( #7590 )
...
fix : #7590
1. Add two new command `queue status` and `queue attach`
2. Add unit test for the CLI
3. Make `Running` exps can be found by `get_queue_entry_by_names`
2022-07-12 21:39:49 +09:00
karajan1001
6b8c87b58a
Add more unit test and implement a new method
...
1. Add some more unit test for `celery_queue.kill`
2. Implement `kill` argument for `celery_queue.shutdown`
3. Use dataclass's internal methods instead of `__eq__`
2022-07-12 21:39:49 +09:00
Peter Rowlands
fee1d02791
dvc-task: update to 0.0.8
2022-07-12 21:39:49 +09:00
Peter Rowlands
d766c01d2d
exp: enable late_ack to disable celery prefetch
2022-07-12 21:39:49 +09:00
Peter Rowlands
dc56c4c9b0
exp: use full task chain when checking active tasks
2022-07-12 21:39:49 +09:00
Peter Rowlands
7ece26d58a
tests: re-enable exp show celery tests
2022-07-12 21:39:49 +09:00
Peter Rowlands
f26664a569
exp: re-enable run --run-all with celery queue
2022-07-12 21:39:49 +09:00
Peter Rowlands
4b0c65093a
tests: use pytest-celery for exp tests
2022-07-12 21:39:49 +09:00
karajan1001
12fc8c4e7d
exp queue: Add two command queue start and stop ( #7589 )
...
fix : #7589
1. Add two sub-command `dvc queue start` and `dvc queue stop`
2. Add a unit test to test them
2022-07-12 21:39:49 +09:00
karajan1001 and Peter Rowlands
a6cb4eb72e
exp queue: remove queued experiments( #7591 )
...
fix : #7591
1. Add a new command `dvc queue`
2. Add two sub-command `dvc queue remove` and `dvc queue kill`
3. Add a unit test to test them
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2022-07-12 21:39:49 +09:00
karajan1001
4df5a1321d
exp: implement internal queue.kill support( #7587 )
...
fix : #7587
1. Add implement kill method for local queue class
2. Add a test to make sure the following job will be success after the
original job was killed.
3. Some refactoring work on `exp remove`
2022-07-12 21:39:49 +09:00
Peter Rowlands
22deca3a6a
exp: use celery threadpool worker instead of prefork
2022-07-12 21:39:49 +09:00
Peter Rowlands
dc4292c602
exp: implement queue shutdown
2022-07-12 21:39:49 +09:00
Peter Rowlands
56f90eb3c9
exp: add test_queue unit test helper for celery queue
2022-07-12 21:39:49 +09:00
Peter Rowlands
1c474e8f30
exp: re-enable most tmpdir/queue tests
2022-07-12 21:39:49 +09:00
Peter Rowlands
24654fe16c
exp: use dvc.daemon to run worker on windows
2022-07-12 21:39:49 +09:00
Peter Rowlands
44820e74a3
exp: wait for task collection when getting exp result
2022-07-12 21:39:49 +09:00
Peter Rowlands
c16908e9fc
exp: use queue remove in gc
2022-07-12 21:39:49 +09:00
Peter Rowlands
33dbdd20af
exp: exclude celery stash ref from util iterators
2022-07-12 21:39:49 +09:00
Peter Rowlands
69d7bdd0c0
exp: generate unique worker node names per DVC repo
2022-07-12 21:39:49 +09:00
Peter Rowlands
b9f4398826
exp: start migrating info logging to ui
2022-07-12 21:39:49 +09:00
Peter Rowlands
a6e7d43668
exp: return exp results for celery runs
2022-07-12 21:39:49 +09:00
Peter Rowlands
e2ee69ddb2
dvc-task: update to 0.0.6
2022-07-12 21:39:49 +09:00
Peter Rowlands
e8448345f1
exp: follow output on run-all
2022-07-12 21:39:49 +09:00
Peter Rowlands
acab008c65
dvc-task: update to 0.0.3
2022-07-12 21:39:49 +09:00
Peter Rowlands
8c74775a4e
exp: autostart celery worker
2022-07-12 21:39:49 +09:00
Peter Rowlands
9b31a4b463
exp: support remove from celery queue
2022-07-12 21:39:49 +09:00
Peter Rowlands
9f022c576c
dvc-task: update to 0.0.2
2022-07-12 21:39:49 +09:00
Peter Rowlands
316029a9d2
exp: use queue status in exp show
2022-07-12 21:39:49 +09:00
Peter Rowlands
34fe643cee
exp: add queue.iter_active for iterating over active exps
2022-07-12 21:39:49 +09:00
Peter Rowlands
6a01cc530e
exp: use queue.iter_queued to get queued status in exp show
2022-07-12 21:39:49 +09:00
Peter Rowlands
81475bee09
dvc-task: update to 0.0.1
2022-07-12 21:39:49 +09:00
Peter Rowlands
a167dff019
exp: implement celery exp task collection
2022-07-12 21:39:49 +09:00
Peter Rowlands
cffd587952
exp: add queue-worker plumbing command
2022-07-12 21:39:49 +09:00
Peter Rowlands
a0ae9d3f45
exp: migrate workspace repro to queues
2022-07-12 21:39:49 +09:00
Peter Rowlands
e74f8f9e11
exp: add naive workspace queue
2022-07-12 21:39:49 +09:00
Peter Rowlands
e45ca1e830
exp: start moving queueing/execution from __init__
2022-07-12 21:39:49 +09:00
Peter Rowlands
46c734eb7e
exp: temporarily mark tmpdir/queue tests as xfail
2022-07-12 21:39:49 +09:00
Peter Rowlands
c17f7f03bd
exp: initial celery app/task setup
2022-07-12 21:39:49 +09:00
Peter Rowlands
7113568c60
exp: refactor base.py into refs.py and exceptions.py
2022-07-12 21:39:49 +09:00
Peter Rowlands
6143146974
exp: refactor stash handling into separate module
2022-07-12 21:39:49 +09:00
15ada9a1c3
Implement --date to exp gc
...
1. Implement `--time` to `exp gc`
2. add a unit test for it.
3. Rename `--time` to `--date` and change the warning msg.
4. To get a better msg for `gc` and `exp gc`
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
Co-authored-by: Dave Berenbaum <[email protected] >
2022-07-12 13:53:46 +02:00
karajan1001 and Peter Rowlands
217eb13495
Add argument commit_time to gc/brancher and iter_revs
...
1. Add argument `commit_time` to `gc`/`brancher` and `iter_revs`
2. Add unit test for iter_revs.
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2022-07-12 13:53:46 +02:00
karajan1001 and Dave Berenbaum
20d1f7a87d
gc: add a new flag --time ( #678 )
...
fix #678
1. Add a new flag `--time` to `dvc gc`.
2. Modify the unit test of `dvc gc`
3. Fix an argument checking error and update the error msg.
Co-authored-by: Dave Berenbaum <[email protected] >
2022-07-12 13:53:46 +02:00
karajan1001
9c59689aa7
Gc: Move old unittest gc tests to pytest
2022-07-12 13:53:46 +02:00
David de la Iglesia Castro
d47e3c40b8
tests: limit printed durations to 50
2022-07-11 12:36:37 +03:00
Ruslan Kuprieiev
d8be68436f
deps: bump dvc-data to 0.0.23
2022-07-10 18:10:45 +03:00
Ruslan Kuprieiev
f6adc49089
deps: bump dvc-data to 0.0.22
2022-07-10 17:05:26 +03:00
Saugat Pachhai (सौगात)
a4c0ae9c73
deps: bump dvc-data, install dvc-data cli deps in dev mode
2022-07-10 18:37:38 +05:45
Ruslan Kuprieiev
8b3020aaf3
deps: bump dvc-data to 0.0.20
2022-07-08 21:37:38 +03:00
Alex Hall
182a22b8f6
checkout: use dvcignore
...
Fixes #7374
2022-07-07 17:20:30 +08:00
Alex Hall
892b235d0b
metrics: support TOML files
...
Fixes #6402
2022-07-06 14:46:46 +02:00
dependabot[bot]
da93e9a76c
build(deps-dev): Bump pytest-mock from 3.8.1 to 3.8.2
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.8.1 to 3.8.2.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.8.1...v3.8.2 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-07-06 11:38:18 +02:00
Ruslan Kuprieiev
bd93d85d47
deps: bump dvc-data
2022-07-05 21:29:34 +03:00
Ruslan Kuprieiev
eed6a8483c
data_cloud: remove logger check
...
Per https://github.com/iterative/dvc/pull/7961/files#r913635687
2022-07-05 13:22:23 +03:00
David de la Iglesia Castro
954de0cae4
api: params_show: Raise exception if no params found.
...
Fixes #7926
2022-07-05 09:18:22 +02:00
David de la Iglesia Castro
909941308b
parsing: Support dict unpacking in cmd.
...
Allow to use dictionaries as values for template interpolation but only inside the `cmd` key.
See tests/func/parsing/test_interpolated_entry.py::test_cmd_dict for detailed syntax.
Add `config.parsing` section for configuring behavior of ambiguous data types
like booleans and lists.
2022-07-05 09:02:15 +02:00
Alex Hall
c59f935cc5
Switch uses of %r to %s with quotes to avoid escaped backslashes in logs, especially in windows paths
2022-07-05 02:09:25 +03:00
Alex Hall
03b789e206
logger: use lazy formatting
...
Fixes #1843
2022-07-05 02:09:25 +03:00
pre-commit-ci[bot]
cacc2f14cb
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/ambv/black: 22.3.0 → 22.6.0](https://github.com/ambv/black/compare/22.3.0...22.6.0 )
2022-07-05 00:51:59 +03:00
Ruslan Kuprieiev
0d71194741
dvc: normalize targets before entering brancher
...
Fixes #7888
2022-07-04 16:34:49 +03:00
dependabot[bot]
683d22c42b
build(deps): Bump dvc-data from 0.0.16 to 0.0.18
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.0.16 to 0.0.18.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.0.16...0.0.18 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-07-04 14:02:40 +05:45
dberenbaum
c687d1bf21
cli: help text for dvc update
2022-07-01 20:42:52 +02:00
Paweł Redzyński
fbb98a87d1
plots: introduce flexible plots configuration to dvcfiles
...
Closes : #7086
2022-07-01 13:17:24 +02:00
Ruslan Kuprieiev
f42beb4433
pyinstaller: add note about frozen version
2022-06-30 15:25:24 +03:00
David de la Iglesia Castro
de8ab044f8
Downgrade pyinstaller
...
Per https://github.com/iterative/dvc/issues/7949#issuecomment-1170927010
2022-06-30 15:24:11 +03:00
skshetry
3c76885577
deps: remove setuptools_scm_git_archive
...
setuptools_scm can now work with git archives, so we don't need this plugin.
2022-06-30 17:00:24 +05:45
dependabot[bot]
c347d9f84b
build(deps-dev): Bump pytest-mock from 3.7.0 to 3.8.1
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.7.0 to 3.8.1.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.7.0...v3.8.1 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-30 12:20:05 +05:45
dependabot[bot]
efc4787cb0
build(deps-dev): Bump pylint from 2.14.3 to 2.14.4
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.14.3 to 2.14.4.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.14.3...v2.14.4 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-30 11:09:05 +05:45
skshetry
be3ec9dc59
deps: bump dvc-data to 0.0.16
2022-06-29 20:16:19 +05:45
dependabot[bot]
685a2d5579
build(deps): Bump styfle/cancel-workflow-action from 0.9.1 to 0.10.0
...
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action ) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases )
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/0.9.1...0.10.0 )
---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-28 09:15:05 +02:00
David de la Iglesia Castro
c336507e51
render: image_converter: Support slash in revision.
...
Fixes #7934
2022-06-27 10:53:03 +02:00
Ruslan Kuprieiev
d448eb5fc1
setup: bump dvc-data
2022-06-26 19:40:31 +03:00
skshetry
3dcd0107d2
deps: bump dvc-data to 0.0.13
2022-06-23 14:04:16 +05:45
dberenbaum
2773e99afc
config: remove core.jobs dead code
2022-06-22 11:36:01 +08:00
Amey Kulkarni
9a1a3a05f5
Merge pull request #7671 from ap-kulkarni/amey/6141
...
s3fs: Adds support for SSE client keys
2022-06-22 00:54:10 +03:00
Ruslan Kuprieiev
286fab4aab
setup: bump dvc-data to 0.0.12
2022-06-22 00:41:29 +03:00
David de la Iglesia Castro
20f69a121e
api: Move to sub-package.
...
Split into sub-modules.
Split tests.
2022-06-21 20:52:19 +03:00
David de la Iglesia Castro
b994c529a2
api: Add params_show.
...
Closes #6507
Uses `repo.params.show` with custom error_handler and postprocess the outputs for more user-friendly structure.
Extend `repo.params.show` to accept `stages` argument to cover the "params of current stage" use case.
2022-06-21 20:52:19 +03:00
David de la Iglesia Castro
f106a68424
params.show: Fix deps for stages using same params file.
2022-06-21 20:52:19 +03:00
David de la Iglesia Castro
66c2e8cbd8
repo.collect: Add duplicates option.
...
Defaults to `False`.
If `True`, multiple `outs` sharing a provided `target_path` will not be filtered.
2022-06-21 20:52:19 +03:00
Yury
735b563ce4
dvc plots: allow for setting output directory via config
...
Fixes : #7816
2022-06-20 18:12:12 +02:00
Jorge Orpinel Perez
604e0178f7
readme: make VS Code installation into a separate section.
...
per https://github.com/iterative/dvc/pull/7916#pullrequestreview-1011575851
2022-06-20 16:10:38 +03:00
Jorge Orpinel Perez
f210e41d5a
readme: single QS, VSC gif in Install
...
per https://github.com/iterative/dvc/pull/7916#pullrequestreview-1011465782
and https://github.com/iterative/dvc/pull/7916#pullrequestreview-1011465820
2022-06-20 16:10:38 +03:00
Jorge Orpinel
e07e79da52
readme: roll back non-vscode changes
2022-06-20 16:10:38 +03:00
Jorge Orpinel Perez
1284842f70
readme: fix link
2022-06-20 16:10:38 +03:00
Jorge Orpinel Perez
0aa063a1e7
readme: add VS Code Extension sction and gif
2022-06-20 16:10:38 +03:00
Jorge Orpinel and Dave Berenbaum
87c5cb7ebf
Update README.rst
...
Co-authored-by: Dave Berenbaum <[email protected] >
2022-06-20 16:10:38 +03:00
Jorge Orpinel Perez
59570c08a4
readme: add VS Code to Installation list + formatting
2022-06-20 16:10:38 +03:00
Jorge Orpinel Perez
eafe686dd6
readme: Link current Quick start to Cmd Ref
2022-06-20 16:10:38 +03:00
Jorge Orpinel Perez
d056d8a4c5
readme: blocks to link to DVC GS
2022-06-20 16:10:38 +03:00
Jorge Orpinel Perez
165d95be56
readme: intro updates (VSCE)
2022-06-20 16:10:38 +03:00
Ruslan Kuprieiev
ea1c54f48e
setup: bump dvc-data to 0.0.11
2022-06-20 11:55:50 +03:00
Peter Rowlands
31f67cd3de
exp apply: preserve untracked files
2022-06-19 22:41:22 -07:00
Peter Rowlands
ee87e2b260
scmrepo: bump to 0.0.25
2022-06-19 22:41:22 -07:00
dependabot[bot]
ae61143956
build(deps-dev): Bump pylint from 2.14.2 to 2.14.3
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.14.2 to 2.14.3.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.14.2...v2.14.3 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-20 11:13:19 +05:45
Ruslan Kuprieiev
1253e6cc46
setup: bump dvc-data to 0.0.10
2022-06-19 21:16:08 +03:00
Ruslan Kuprieiev
19f2186c8b
setup: bump dvc-data to 0.0.9
2022-06-18 22:34:25 +03:00
Ruslan Kuprieiev
2e21c92c4f
dvc: use dvc-data 0.0.8
2022-06-17 22:08:33 +03:00
dberenbaum
4262e26a15
readme: consolidate intro
2022-06-17 10:22:42 +02:00
dependabot[bot]
830c116b4e
build(deps-dev): Bump pylint from 2.14.1 to 2.14.2
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.14.1...v2.14.2 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-16 10:32:09 +05:45
David de la Iglesia Castro and Peter Rowlands
1663b97eaa
api: open: Raise ValueError if rev is used in wrong mode.
...
Closes #7405
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2022-06-15 18:19:27 +02:00
David de la Iglesia Castro
15e10a1d81
api: open: Add docstring and type hints.
2022-06-15 18:19:27 +02:00
Saugat Pachhai (सौगात)
4bc6b5699a
quote node names
2022-06-15 12:43:45 +03:00
dependabot[bot]
8e003e5022
build(deps): Update networkx requirement
...
Updates the requirements on [networkx](https://github.com/networkx/networkx ) to permit the latest version.
- [Release notes](https://github.com/networkx/networkx/releases )
- [Commits](https://github.com/networkx/networkx/compare/networkx-2.5...networkx-2.8.4 )
---
updated-dependencies:
- dependency-name: networkx
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-15 12:43:45 +03:00
Saugat Pachhai (सौगात)
af649af462
deps: bump dvc-data to 0.0.6; fix imports
2022-06-14 17:50:57 +05:45
dependabot[bot]
957d8d179b
build(deps): Bump dvc-render from 0.0.5 to 0.0.6
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.5 to 0.0.6.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/v0.0.5...0.0.6 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-14 08:36:27 +05:45
dberenbaum
e7b265a178
readme: change vscode to vs code
2022-06-14 00:17:59 +03:00
dberenbaum
422511f66d
readme: mention vs code extension
2022-06-14 00:17:59 +03:00
pre-commit-ci[bot]
6826d8ac35
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0 )
2022-06-14 00:08:50 +03:00
dependabot[bot]
bdea9847b5
build(deps-dev): Bump pylint from 2.13.9 to 2.14.1
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.13.9 to 2.14.1.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.13.9...v2.14.1 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-13 22:15:27 +05:45
Saugat Pachhai (सौगात)
8e6ea87b76
typing: executor: use queue.Queue instead of multiprocessing.Queue
2022-06-13 21:41:54 +05:45
dependabot[bot]
036ac8e7c2
build(deps-dev): Bump mypy from 0.942 to 0.961
...
Bumps [mypy](https://github.com/python/mypy ) from 0.942 to 0.961.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.942...v0.961 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-13 21:41:54 +05:45
dependabot[bot]
3306d2789b
build(deps-dev): Bump filelock from 3.7.0 to 3.7.1
...
Bumps [filelock](https://github.com/tox-dev/py-filelock ) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/tox-dev/py-filelock/releases )
- [Changelog](https://github.com/tox-dev/py-filelock/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.7.0...3.7.1 )
---
updated-dependencies:
- dependency-name: filelock
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-13 20:39:12 +05:45
dependabot[bot]
b094839210
build(deps): Bump actions/setup-python from 3 to 4
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-13 20:28:51 +05:45
Ruslan Kuprieiev
b9c04a247a
dvc: upgrade to dvc-data 0.0.5
2022-06-13 18:03:53 +05:45
Ruslan Kuprieiev
ef689c5593
dvc: upgrade to dvc-objects 0.0.4
2022-06-13 18:03:53 +05:45
Saugat Pachhai (सौगात)
7b16a377e5
deps: bump dvc-data to 0.0.3
2022-06-13 18:03:53 +05:45
Daniele Trifirò
793f97bdd5
fix dvc-objects/data imports
2022-06-13 18:03:53 +05:45
Saugat Pachhai (सौगात)
d30dbd50bc
run-cache: http: stage cache uploads in http remotes
...
Currently, there is no way to find run-cache in HTTP remotes.
In the future, we could use directory-listings from supported
webservers to find files.
Temporarily, we are restricting the run-cache uploads. This is a bit
strict, we could have only restricted the downloads, but it might be
more confusing to the users, so I went to categorically restrict
stage cache uploads and downloads for http filesystems.
2022-06-12 13:49:56 +03:00
Saugat Pachhai (सौगात)
e6db6ffc89
runcache: fix push from Windows to remote filesystems
...
We were passing paths with '\\' in the filename instead of posix paths to
remote filesystems which was causing failures to upload.
Although in some filesystems, this was failing silently, so upload would seem
to have passed, but the download later would fail.
2022-06-11 11:34:12 +03:00
Ruslan Kuprieiev
9ac2f49b57
Revert "fix dvc-objects/data imports"
...
This reverts commit 677da2b22c .
2022-06-10 12:01:07 +03:00
Ruslan Kuprieiev
9b2adfd3cc
Revert "deps: bump dvc-data to 0.0.3"
...
This reverts commit 6dd3f1e053 .
2022-06-10 12:01:07 +03:00
Saugat Pachhai (सौगात)
6dd3f1e053
deps: bump dvc-data to 0.0.3
2022-06-10 14:07:33 +05:45
Daniele Trifirò
677da2b22c
fix dvc-objects/data imports
2022-06-10 14:07:33 +05:45
dberenbaum
a3ee993739
remove .github/FUNDING.yml
2022-06-09 08:32:41 +05:45
dberenbaum
95f67445de
readme: remove donate requests
2022-06-09 08:32:41 +05:45
Peter Rowlands
c9a3cb803c
sshfs: bump min ver to 2022.6.0
2022-06-07 05:17:08 -07:00
Daniele Trifirò
41ecd2e204
scm: fix clone
...
`fetch_all_exp()` in `clone()` was called with `url="origin"`, which
resulted in the operation being performed with the remote URL defined
in the cloned repo's config, which did not include any credentials
initially provided to clone.
Fixes #7670
2022-06-07 05:11:05 -07:00
dberenbaum
33b3afa2f5
exp init: create output dirs
2022-06-07 17:55:24 +05:45
Daniele Trifirò
e849162018
exp: speed up repro execution with untracked directories in workspace
...
When large untracked directories are present in the workspace, a lot of
time is spent collecting untracked files in `scm.status` and `scm.is_dirty`.
2022-06-07 04:43:35 -07:00
Yury
c14f96391a
checkout: --relink show helpful message on completion
2022-06-07 00:31:42 +02:00
dependabot[bot]
88d3582d40
build(deps): Bump pre-commit/action from 2.0.3 to 3.0.0
...
Bumps [pre-commit/action](https://github.com/pre-commit/action ) from 2.0.3 to 3.0.0.
- [Release notes](https://github.com/pre-commit/action/releases )
- [Commits](https://github.com/pre-commit/action/compare/v2.0.3...v3.0.0 )
---
updated-dependencies:
- dependency-name: pre-commit/action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-06-06 04:20:08 -07:00
Ruslan Kuprieiev
8fa0e40669
setup: set upper bound on networkx
2022-06-06 13:31:59 +03:00
Ruslan Kuprieiev
a3d6b1299a
brancher: use scm.root_dir to determine relative cwd
...
Fixes #7776
2022-06-06 12:42:22 +03:00
Paweł Redzyński
20c7b0e3e6
plots: grouping: stop using dpath.util.search
2022-06-03 16:48:33 +03:00
huang06
6794dd28f7
docs: update package installation
2022-06-02 17:46:14 +08:00
Peter Rowlands
1cc803d12b
exp: output troubleshooting link on shallow merge failure
2022-06-02 01:15:16 -07:00
Ruslan Kuprieiev
2b6aa01392
setup: bump scmrepo to 0.0.24
...
Fixes #7824
2022-06-01 20:51:08 +03:00
Daniele Trifirò
906c87fdef
tests: replace unecessary map() call in test_live
...
caught by flake8
2022-06-01 20:41:14 +03:00
Daniele Trifirò
52f02d238d
bump scmrepo to 0.0.23
...
`scmrepo==0.0.23` includes proper support for windows file:// URLs
(https://github.com/iterative/scmrepo/pull/68 ), so Windows tests
relying on file URLs had to be fixed in order to be valid
[RFC 8089](https://datatracker.ietf.org/doc/html/rfc8089 ) URLs.
2022-06-01 09:20:07 +05:45
David de la Iglesia Castro
3d791778de
plots: Pass templates_dir to match_renderers.
...
We were forgetting to pass default template dir.
Fixes #7817 .
2022-05-31 16:17:58 +02:00
Saugat Pachhai (सौगात)
1e77be3ae3
testing: use shutil.copytree with dirs_exist_ok
...
See https://docs.python.org/3/library/shutil.html#shutil.copytree .
There is dirs_exist_ok kwarg in Python >3.8.
2022-05-30 20:40:31 +05:45
Ruslan Kuprieiev
844f77b4f9
dvc: drop python 3.7
...
Also upgraded with `pyupgrade --py38-plus`
Fixes #7708
2022-05-30 16:51:35 +03:00
David de la Iglesia Castro
34ef1807be
exp: show: Include additional info in --json.
...
Use relpath to repo.root_dir as keys in deps and outs.
Add `use_cache` and `is_data_source` for outs.
This allows to differentiate git-tracked dependencies and
intermediate outputs.
Closes #7575
Closes #7790
2022-05-25 09:01:39 +02:00
Dave Berenbaum
dae0000bcd
exp list: fix git_remote metavar
2022-05-24 18:47:26 -07:00
David de la Iglesia Castro
109d0e4e28
dag: mermaid: Use quotation marks to escape node name.
...
Fixes #7731
2022-05-24 18:27:58 +02:00
Saugat Pachhai (सौगात)
68b0d61c9e
tests: move run cache test to test_remote
2022-05-24 10:16:37 +05:45
Saugat Pachhai (सौगात)
942a080567
dvc.stage.cache: fix typo, was using src filesystem to transfer
...
This was working for LocalFileSystem as they work for any directories/path.
It's hard to test this these days, as we don't have remote tests inside
dvc, so it was not caught.
Potentially fixes #7718 .
2022-05-23 16:37:40 +03:00
Saugat Pachhai (सौगात)
60cbcec399
formatting: consider dvc-render as a known first party for ordering imports
2022-05-23 15:49:47 +05:45
Saugat Pachhai (सौगात)
0c5a18513c
fix linter issue
2022-05-23 14:12:54 +05:45
Alexander Schepanovski
b5c28dd9f9
Catch correct exception class in params.show()
2022-05-23 00:34:34 -07:00
dependabot[bot]
84439e6a04
build(deps): Bump dvc-data from 0.0.1 to 0.0.2
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.0.1 to 0.0.2.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.0.1...0.0.2 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-05-21 20:46:41 +05:45
Saugat Pachhai (सौगात)
75fa487406
dvc: remove unused utils and redundant tests
...
The tests should be in dvc-objects repo npw, and will be migrated soon.
The nanotime and diskcache are specified in dvc-objects, so we don't need
those here.
2022-05-20 19:17:00 +05:45
Saugat Pachhai (सौगात)
0ecd47b333
deps: remove jaraco.windows dependency
...
This is used by dvc-objects, and it has the dependency declared.
2022-05-20 15:18:13 +05:45
Saugat Pachhai (सौगात)
9710cafd38
deps: add dvc-objects dependency
2022-05-20 15:13:50 +05:45
Saugat Pachhai (सौगात)
e34767ca90
logging: show logs from dvc-data
2022-05-20 15:13:50 +05:45
Saugat Pachhai (सौगात)
9a2feaa4ed
dvc: remove dvc.data, fix imports
2022-05-20 15:13:50 +05:45
Saugat Pachhai (सौगात)
7bc98e3fb3
tests: remove objects related tests
2022-05-20 14:02:08 +05:45
Saugat Pachhai (सौगात)
5e561c1dfd
deps: add dvc-objects as a dependency
2022-05-20 14:02:08 +05:45
Saugat Pachhai (सौगात)
572b6dfca9
logging: show logs from dvc-objects
2022-05-20 14:02:08 +05:45
Saugat Pachhai (सौगात)
37921d618d
dvc: remove dvc.objects, fix imports
2022-05-20 14:02:08 +05:45
Saugat Pachhai (सौगात)
95c6cea36d
tests: restructure some tests for objects/data
2022-05-19 18:38:21 +05:45
Saugat Pachhai (सौगात)
455260b29c
data/objects: reduce log levels in dvc-objects and dvc-data
...
Also introduces a `validate_status` kwarg in `data.transfer`,
which is used in dvc to log for missing version info.
2022-05-19 18:33:39 +05:45
Saugat Pachhai (सौगात)
82dc67d890
objects: use separate Tqdm implementations
...
Now dvc.objects and dvc.data uses the implementation from dvc.objects
for Tqdm progress bars. This is temporary. :)
2022-05-19 18:07:47 +05:45
Saugat Pachhai (सौगात)
2057c471bb
data.checkout: remove dependency on DVC; prompts and DvcException
2022-05-19 15:11:27 +03:00
Saugat Pachhai (सौगात)
f23d31af64
fs/data: move repo related utils to dvc
...
This moves get_fs_config/get_fs_cloud and ODBManager to DVC
as they require DVC related utilities, and we don't need them
strictly in dvc-objects/dvc-data.
This also adds support to ReferenceHashFile to load from
any filesystem, using it's module name and filename.
Now we can get rid of DVCFileSystem dependency in
ReferenceHashFile.
This is a temporary solution, we really need a registry.
(I am not quite sure if this works in pyinstaller mode,
but I think it should, it's how fsspec does it if I understand
correctly.)
2022-05-18 19:39:09 +03:00
Saugat Pachhai (सौगात)
cf5d3830c5
dvc.objects: use own internal error instead of DvcException
...
transfer raises internal TransferError, merge raises internal MergeError
and local ODB raises ODBError on unprotect.
transfer's error is reraised to FileTransferError back in DataCloud.
2022-05-18 12:22:57 +03:00
Saugat Pachhai (सौगात)
32cd6c2c03
dvc.objects: use stub ignore in dvc.objects/dvc.data
...
This commit:
* defines a `Ignore` protocol in `dvc.objects`, that expects a `find` method.
This will be used in dvc-data and dvc-objects instead of depending on dvc.ignore.
dvcignore is expected to respect this protocol, which it does.
* renames `dvcignore` kwarg to `ignore` in `dvc-data` and `dvc-objects`.
* teaches dvc.cli that `IgnoreInCollectedError` is a known exception
and is logged correctly and adds a test for the behaviour.
I am not happy that we need to hardcode `.dvcignore` in dvc-data
but I don't see any easy way, since we always try to avoid
staging if the tree contains .dvcignore file, even if .dvcignore
is not passed.
2022-05-18 12:22:28 +03:00
Saugat Pachhai (सौगात)
54917e3255
dvc.objects: fix typing imports
2022-05-18 11:49:45 +05:45
dependabot[bot]
e8a439df8d
build(deps): Bump pyinstaller from 5.0 to 5.1
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.0 to 5.1.
- [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.0...v5.1 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-05-17 20:15:17 -07:00
Ruslan Kuprieiev
71a4b4823a
fs: path: don't overuse parts
...
These days we have `self.flavour` that is more efficient and more simple.
2022-05-17 22:29:34 +03:00
Ruslan Kuprieiev
01cc97f38a
fs: path: use flavour.basename
2022-05-17 20:21:46 +03:00
Saugat Pachhai (सौगात)
3872f79dad
objects.fs: do not use format_link, DvcException and fix_env from DVC
...
* Introduce ConfigError and AuthError in dvc.objects.fs and raise it
instead of dvc.config.ConfigError.
* Provide hints and links by catching those errors in dvc.cli.main,
i.e decouple UI messages from filesystems for AuthError and
ConfigError.
* Copy flatten/unflatten utils to dvc.objects.fs.utils.
2022-05-17 18:23:29 +03:00
Saugat Pachhai (सौगात)
48176b80f6
fs: do not use DvcException in filesystems
...
* Refactor check_requires, move UI messages to dvc.cli
* Refactor link related error
2022-05-17 16:48:38 +03:00
Saugat Pachhai (सौगात)
8c9a9e9a1f
objects.fs: move schemes to objects.fs
2022-05-17 17:02:14 +05:45
Saugat Pachhai (सौगात)
120eb09c4d
fs: move GitFileSystem out of dvc.objects.fs
...
This is more of a DVC thing than objects.
2022-05-17 16:50:33 +05:45
Saugat Pachhai (सौगात)
bf7892012d
objects.fs: copy executors to dvc.objects
2022-05-17 16:50:21 +05:45
Saugat Pachhai (सौगात)
36605eea4c
objects.hash: rename HashedStreamReader to HashStreamFile
2022-05-17 13:25:38 +03:00
Saugat Pachhai (सौगात)
01e5f9eadd
objects.hash: use fobj.read instead of read1
2022-05-17 13:25:38 +03:00
Saugat Pachhai (सौगात)
752e10a834
dvc.objects: move HashedStreamReader to objects, use it for calculating fobj_md5
...
Now HashedStreamReader will be used to calculate md5 in fobj_md5/hash_file.
Also:
* adds in `bytes_md5` that may be useful for testing.
* adds a hasher-registry with hashlib
* adds a `text=` kwarg to be able to specify to use dos2unix or not
(useful for testing)
* makes `localfs` the default filesystem when `fs` arg is not passed
(makes it easier to test in the REPL)
2022-05-17 13:25:38 +03:00
Saugat Pachhai (सौगात)
092eda183c
objects.fs: use getpass for prompts
...
Note that this will change the behaviour of DVC to always show
prompt even in --quiet mode, which is what we need.
Previously it'd prompt without any message.
2022-05-17 16:06:27 +05:45
Saugat Pachhai (सौगात)
d82e094b13
fs: move filesystems to dvc.objects.fs.implementations
2022-05-16 17:54:57 +03:00
Saugat Pachhai (सौगात)
570e3a5359
dvc.fs: move fs to dvc.objects.fs
...
Some of the APIs/FileSystems are reimported inside dvc.fs module.
2022-05-16 13:15:19 +03:00
Saugat Pachhai (सौगात)
b8e770747f
fs.utils: copy dvc.utils.fs to dvc.fs.utils
2022-05-16 11:51:48 +05:45
dependabot[bot]
1999ecf0d3
build(deps-dev): Bump pylint from 2.13.8 to 2.13.9
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.13.8 to 2.13.9.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.13.8...v2.13.9 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-05-16 08:54:42 +05:45
dependabot[bot]
1ff5f30839
build(deps-dev): Bump filelock from 3.6.0 to 3.7.0
...
Bumps [filelock](https://github.com/tox-dev/py-filelock ) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/tox-dev/py-filelock/releases )
- [Changelog](https://github.com/tox-dev/py-filelock/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.6.0...3.7.0 )
---
updated-dependencies:
- dependency-name: filelock
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-05-15 19:57:31 -07:00
Saugat Pachhai (सौगात)
c6ae91c907
dvc.fs: fix iscopy
2022-05-16 08:25:23 +05:45
Saugat Pachhai (सौगात)
dc1d3e880a
dvc.objects.cache: set type in a more compatible way
...
It turns out that diskcache.Disk saves passed arguments to the database
and uses that all the time. So this means that we are not forward
compatible as it breaks moving from newer version of DVC to an older
one. We don't promise this, but this breaks our benchmarks which
are probably not isolated enough.
Regarding the use of cache, it is a bit iffy to extend it this way.
We only need this type for error messages. We could consider removing
this, but since the error message is documented and it's not too hard
to extend this :), I decided to preserve the message.
2022-05-13 11:00:31 +05:45
Saugat Pachhai (सौगात)
3f5757a0a5
dvc.objects: move hashing functions to dvc.objects
...
This commit moves `HashedStreamReader`/`get_hash_file`/`file_md5`
into `dvc.objects.hash`.
The `get_hash_file` has been renamed to `hash_file`.
This also copies `relpath` and `is_exec` to the `dvc.fs.utils`.
2022-05-12 20:33:18 +03:00
Daniele Trifirò
7a795f79db
dvc.data: save and try loading raw dir objects
...
When staging a directory, always save a "raw dir object" to the odb.
If the corresponding ".dir" object has not been added to the odb,
`stage()` calls can load the tree from the raw dir object instead of
rebuilding it by walking the directory.
This can lead to significant speed improvements when calling
`dvc status` for modified directories.
Fixes #7390
2022-05-12 19:27:36 +03:00
skshetry
b3fb0dfdad
dvc.objects: extend diskcache to handle pickle errors ( #7734 )
...
dvc.objects: extend diskcache to handle pickle errors
2022-05-12 21:12:33 +05:45
Saugat Pachhai (सौगात)
ee29888e18
dvc.objects: move get_mtime_and_size to dvc.objects.utils
2022-05-12 18:02:42 +03:00
Saugat Pachhai (सौगात)
11eaa87849
add typings to istextfile and system
...
Also moves umask to dvc.fs.system
2022-05-12 18:02:42 +03:00
Saugat Pachhai (सौगात)
b4faa5616f
system: change System class to a dvc.fs.system module
2022-05-12 18:02:42 +03:00
Saugat Pachhai (सौगात)
4d6df989f2
dvc.objects: change imports to relative
2022-05-12 18:02:42 +03:00
Saugat Pachhai (सौगात)
e585c52187
istextfile: move to dvc.objects
2022-05-12 18:02:42 +03:00
Saugat Pachhai (सौगात)
4add88f627
objects: move System to dvc.fs
2022-05-12 18:02:42 +03:00
Saugat Pachhai (सौगात)
aac2fc0ca0
dvc.fs: rename fs.utils to fs.generic
...
In the spirit of fsspec.generic, it is for cross-filesystem operations.
Trying to avoid `fs.utils` as much as possible, but we have some
functions that are really utilities coming, so I am making a place
for them. :)
2022-05-12 18:02:15 +03:00
Ruslan Kuprieiev
005d56eedf
fs: rename RepoFileSystem to DvcFileSystem
2022-05-12 00:39:41 +03:00
Ruslan Kuprieiev
b6d25825c8
fs: rename DvcFileSystem to DataFileSystem
...
Current naming for `DvcFileSystem` and `RepoFileSystem` is confusing, because
dvc is not only about data and it is much more natural to expect something
named `dvcfs` to include complete view for your whole repo (including git
files), which is what `repofs` is doing right now.
`DvcFileSystem` can provide a view not only for the repo data, but also for
external data (e.g. local external outputs). So it makes more sense to call
it a `DataFileSystem`, since it really represents the data management side
of dvc.
2022-05-11 21:49:57 +03:00
dberenbaum
799dca8b67
update value prop in readme
2022-05-11 19:52:11 +03:00
Karthikeyan Singaravelan and David de la Iglesia Castro
3faf413288
Use sorted output in test since order is not deterministic.
...
Co-authored-by: David de la Iglesia Castro <[email protected] >
2022-05-11 18:40:21 +03:00
Karthikeyan Singaravelan
a3261637de
dag: fix dot file rendering order.
2022-05-11 18:40:21 +03:00
Karthikeyan Singaravelan
b8d738220d
Revert other tests and test only glob exception.
2022-05-11 18:37:09 +03:00
pre-commit-ci[bot]
fb36db450f
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-05-11 18:37:09 +03:00
Karthikeyan Singaravelan and David de la Iglesia Castro
946ceb288d
Update tests/func/test_data_cloud.py
...
Co-authored-by: David de la Iglesia Castro <[email protected] >
2022-05-11 18:37:09 +03:00
Karthikeyan Singaravelan
8d99ce06aa
Move test to test_data_cloud.
2022-05-11 18:37:09 +03:00
Karthikeyan Singaravelan
9b3873c4f0
Move exception raising to glob_targets to cover all commands.
2022-05-11 18:37:09 +03:00
Karthikeyan Singaravelan
e177f041c8
Fail on sync when there is no match for glob.
2022-05-11 18:37:09 +03:00
Ruslan Kuprieiev
a80a85e6bd
dvc: detach gitfs from local paths
...
Our gitfs paths are currently tied to the local path in which the cloned
repository resides in, which results in a lot of hacky assumptions throughout
the code.
This PR detaches gitfs from local paths completely, making dvc work with a
proper fsspec gitfs implementation.
Part of #7543
2022-05-11 18:17:39 +03:00
Saugat Pachhai (सौगात)
14c9348f93
dvc.objects: move hash_info, state and meta into dvc.objects
2022-05-11 17:35:48 +03:00
karajan1001
7a1f133f29
dvc ls: not raise PathMissingError on empty dir.
...
fix #5841
2022-05-11 16:38:58 +03:00
Gao
45a01c6a30
Revert "dvc ls: not raise PathMissingError on empty dir."
...
This reverts commit 09afd2a0cd .
2022-05-11 14:54:13 +03:00
karajan1001
09afd2a0cd
dvc ls: not raise PathMissingError on empty dir.
...
fix #5841
2022-05-11 11:24:32 +03:00
Saugat Pachhai (सौगात)
d92c6fed67
fs.callbacks: simplify, ensure None does not break them, lazy richcallbacks
2022-05-10 20:37:21 +05:45
Saugat Pachhai (सौगात)
f10dbef0cf
TqdmCallback: minor fixup, check for None explicitly
...
Tqdm supports __bool__, so we should really use `is not None` test
rather than boolean check. This is not used anywhere right now, but
I'd prefer being correct.
2022-05-10 14:22:13 +05:45
Saugat Pachhai (सौगात)
8fb2f65d4b
TqdmCallback: make it lazy
2022-05-10 13:41:54 +05:45
dberenbaum
477f266dc5
exp init: fixes #7534 ; simplifies/updates exp init --live
2022-05-09 20:58:27 +05:45
Ruslan Kuprieiev
b14a972cd0
repofs: use / as root_marker
...
This makes dvcfs/repofs much easier to work with and allows it to support
isabs/abspath/etc correctly, as previously any full path (with root_marker "")
would be impossible to distinguish from a relative one.
This also detaches external workspaces from the main repo workspace in
DvcFileSystem, which was necessary to be able to distinguish dvcfs abspaths
from local external output paths. Note that currently we still have limited
support for those (e.g. get/api supports them, but import doesn't) and this
change keeps it that way.
2022-05-08 17:19:53 +03:00
Saugat Pachhai (सौगात)
562e61235b
objects: do not inherit from DvcException
2022-05-06 13:24:41 +03:00
David de la Iglesia Castro
9bd9ac4a37
FileSystem: Handle encoding via kwargs.
...
Drop if None.
Closes #7691
2022-05-06 02:34:38 +03:00
Saugat Pachhai (सौगात)
f89f4ac152
fs.put: introduce non-recursive put
2022-05-05 21:22:29 +03:00
Saugat Pachhai (सौगात)
54dd3ae90c
fs.get: use async implementation when supported by the filesystem
2022-05-05 14:15:21 +03:00
dberenbaum
35d2963069
repro/run/stage: reorder options
2022-05-05 16:42:29 +08:00
Samuel Knight
1f5f2f5c97
dvcfile: preserve 'remote' on add and commit
...
Preserves 'remote' output on dvc add and dvc commit.
Fixes #7356
2022-05-05 08:36:37 +05:45
Saugat Pachhai (सौगात)
c64db917f5
fs: add more fsspec methods
2022-05-05 08:16:34 +05:45
Paweł Redzyński
9d476aab8b
plots: image converter return absolute paths
2022-05-04 10:57:13 +02:00
Saugat Pachhai (सौगात)
5067e1f5bc
fs.utils.transfer: remove tqdm progress bars
2022-05-03 15:15:48 +05:45
Saugat Pachhai (सौगात)
8a0c5680e0
fs: remove download
2022-05-03 14:42:19 +05:45
Saugat Pachhai (सौगात)
61699d1d66
fs: remove upload function
2022-05-03 11:22:21 +05:45
dependabot[bot]
94c776182e
build(deps-dev): Bump pytest from 7.1.1 to 7.1.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.1 to 7.1.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.1...7.1.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-05-03 10:18:39 +05:45
dependabot[bot]
e3d3500db8
build(deps-dev): Bump pylint from 2.13.7 to 2.13.8
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.13.7 to 2.13.8.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.13.7...v2.13.8 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-05-03 09:48:49 +05:45
Saugat Pachhai (सौगात)
d0e05c4b66
deps: bump s3fs to 2022.02.0
...
The callbacks on _get_file/_put_file was only supported on >2022.02.0.
Fixes #7669 .
2022-05-02 12:57:00 +03:00
Ruslan Kuprieiev
58d960a47c
Revert "fs.utils: add upload that can be conditionally atomic"
...
This reverts commit dd187df667 .
2022-04-30 17:34:39 +03:00
Saugat Pachhai (सौगात)
dd187df667
fs.utils: add upload that can be conditionally atomic
...
The PR also makes odb.add operations atomic, but the checkout is still
not atomic.
2022-04-29 23:02:15 +03:00
Saugat Pachhai (सौगात)
b71ea349d2
repofs: only use dvcfs when --dvc-only is specified
2022-04-29 12:03:46 +03:00