pre-commit-ci[bot] and Saugat Pachhai
356dfa0327
[pre-commit.ci] pre-commit autoupdate ( #10981 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2026-03-31 10:49:52 +05:45
skshetry
0f4e8a23c8
fix(ls): support tabulate 0.10.0 preserve_whitespace ( #11021 )
2026-03-31 10:32:56 +05:45
dependabot[bot]
333edb2cbf
build(deps): bump codecov/codecov-action from 5 to 6 ( #11020 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 5 to 6.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-31 09:26:06 +05:45
Ivan Shcheklein
a65523a86a
feat(gc): allow num with all-branches ( #11013 )
2026-03-18 22:21:20 +05:45
Christian W. Feldmann
fb42429107
Resolve PyparsingDeprecationWarning for enablePackrat setParseAction parseString ( #11016 )
2026-03-18 22:02:17 +05:45
dependabot[bot]
e40e378fc9
build(deps): bump actions/download-artifact from 7 to 8 ( #11006 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-27 11:08:23 +05:45
dependabot[bot]
b1aaeb94c0
build(deps): bump actions/upload-artifact from 6 to 7 ( #11007 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-27 11:08:15 +05:45
skshetry
dcf6f48fb3
bench: add version constraint for pathspec ( #10986 )
2026-02-01 09:15:42 +05:45
Caleb P. Burns and Saugat Pachhai
c6c680d2b2
Support pathspec v1 ( #10951 )
...
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2026-01-31 11:12:13 +05:45
skshetry
1e8962bf0c
Remove boto3 from metadata copying in hook-dvc.py ( #10983 )
2026-01-28 19:08:15 +05:45
skshetry and pre-commit-ci[bot]
0f2361f218
fix(benchmarks): pin dulwich<1.0.0 for DVC versions before 3.44.0 ( #10979 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-01-23 23:33:50 +05:45
pre-commit-ci[bot]
e9c0a99083
[pre-commit.ci] pre-commit autoupdate ( #10975 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-01-21 16:01:48 +05:45
Ritoban Dutta
3c71fdbb0d
fix: replace deprecated parseAll with parse_all in interpolate.py ( #10971 )
2026-01-16 18:27:02 +05:45
pre-commit-ci[bot]
04cbd40df5
[pre-commit.ci] pre-commit autoupdate ( #10967 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-01-13 22:44:02 +05:45
Pandikunta Anand Reddy
5725780790
refactor: drop stale exceptions related to dvc machine ( #10963 )
2026-01-08 21:54:13 +05:45
skshetry
2dc6261a66
Update dvc-data version to 3.18.2 ( #10962 )
2026-01-08 21:25:25 +05:45
skshetry
0f73c0a725
tests: add a regression test for #10959 ( #10960 )
2026-01-08 21:14:22 +05:45
Wyatt
ff8752c3dc
gc: log paths during dry-run garbage collection ( #10937 )
2026-01-07 18:16:05 +05:45
Wei Ji
dbc7531f0d
Typo on flatten-dict dependency ( #10953 )
2026-01-07 09:49:51 +05:45
skshetry
d4594c749c
fix(cli/dag): improve help message ( #10949 )
2026-01-06 14:34:06 +05:45
fhausmann and skshetry
e062f545c9
Add option to collapse foreach/matrix stages into a single stage ( #10945 )
...
Co-authored-by: skshetry <[email protected] >
2026-01-06 08:38:08 +00:00
vorj
3c77443696
fix pathspec version requirement ( #10948 )
2026-01-06 11:46:26 +05:45
dependabot[bot]
b5555b7285
build(deps-dev): update pytest requirement from <9,>=7 to >=7,<10 ( #10946 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-06 11:16:49 +05:45
dependabot[bot]
fbdcb6e140
build(deps): update flufl-lock requirement from <9,>=8.1.0 to >=8.1.0,<10 ( #10947 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-06 11:16:27 +05:45
skshetry
7ed8d896df
update test fixture to use matchers from dvc.testing ( #10940 )
2025-12-30 09:08:31 +05:45
skshetry
9fb761772c
update test fixture to use tmp_path_factory ( #10939 )
2025-12-29 23:50:15 +05:45
skshetry
f523105219
Remove pytest-test-utils from dependencies ( #10938 )
2025-12-28 23:51:56 +05:45
pre-commit-ci[bot]
e1ccc2c7c5
[pre-commit.ci] pre-commit autoupdate ( #10935 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-12-23 09:18:53 +05:45
a6594e0cc9
Use bulk calls for checking which entries are not in remote ( #10923 )
...
Co-authored-by: Sami Jawhar <[email protected] >
Co-authored-by: skshetry <[email protected] >
2025-12-22 07:42:36 +00:00
skshetry
796903a14b
drop pytest-test-utils ( #10934 )
2025-12-20 21:26:00 +05:45
pre-commit-ci[bot]
62ae466af2
[pre-commit.ci] pre-commit autoupdate ( #10931 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-12-16 09:08:45 +05:45
dependabot[bot]
e6dba6ef91
build(deps-dev): bump mypy from 1.19.0 to 1.19.1 ( #10932 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-16 09:08:33 +05:45
dependabot[bot]
be4fd3b197
build(deps): bump actions/upload-artifact from 5 to 6 ( #10929 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-15 11:14:50 +05:45
dependabot[bot]
f05211113a
build(deps): bump actions/download-artifact from 6 to 7 ( #10930 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-15 11:14:03 +05:45
dependabot[bot]
9b42dc534e
build(deps): bump actions/cache from 4 to 5 ( #10928 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 13:40:29 +05:45
pre-commit-ci[bot]
01b0f3bb52
[pre-commit.ci] pre-commit autoupdate ( #10924 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-12-09 09:02:02 +05:45
f342cc7db5
feat(webdav): add bearer_token_command for dynamic token acquisition ( #10917 )
...
Co-authored-by: GreenHatHG <[email protected] >
Co-authored-by: skshetry <[email protected] >
2025-12-05 11:07:22 +05:45
pre-commit-ci[bot]
0eb279ea35
[pre-commit.ci] pre-commit autoupdate ( #10921 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-12-03 13:17:20 +05:45
Staszek Markowski
d086bbbd3a
exp: add support for --no-hydra flag ( #10866 )
2025-12-02 16:05:13 +05:45
Saugat Pachhai (सौगात)
046d2fd72e
update copyright
2025-12-01 16:54:40 +05:45
skshetry
cb96cf1487
fix name ( #10920 )
2025-12-01 15:52:37 +05:45
dependabot[bot]
cf5168af74
build(deps-dev): bump mypy from 1.18.2 to 1.19.0 ( #10919 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-01 12:02:39 +05:45
Saugat Pachhai (सौगात)
dc123102cc
fix tests
2025-11-27 09:00:19 +05:45
Saugat Pachhai (सौगात)
438259cc70
fix repository owner name to treeverse
2025-11-27 08:54:23 +05:45
pre-commit-ci[bot]
7b978fec5b
[pre-commit.ci] pre-commit autoupdate ( #10918 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-11-26 23:24:34 +05:45
dependabot[bot]
9f901e57a2
build(deps): bump actions/checkout from 5 to 6 ( #10916 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-21 09:03:04 +05:45
pre-commit-ci[bot]
ab5ac17925
[pre-commit.ci] pre-commit autoupdate ( #10914 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-11-18 18:23:58 +05:45
pre-commit-ci[bot]
72abd013cf
[pre-commit.ci] pre-commit autoupdate ( #10908 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-11-11 10:21:29 +05:45
pre-commit-ci[bot]
fa5c33ed24
[pre-commit.ci] pre-commit autoupdate ( #10906 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-11-04 13:56:29 +05:45
pre-commit-ci[bot]
9dda30b7a0
[pre-commit.ci] pre-commit autoupdate ( #10901 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-28 09:18:51 +05:45
skshetry
19c146e392
fix(data-status): iterate/expand index upto tracked directory in shallow mode ( #10900 )
2025-10-27 17:06:07 +00:00
dependabot[bot]
749c22bbcb
build(deps): bump actions/upload-artifact from 4 to 5 ( #10897 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 09:18:20 +05:45
dependabot[bot]
19a0bf48f1
build(deps): bump actions/download-artifact from 5 to 6 ( #10898 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 09:18:08 +05:45
skshetry
bda614baa8
support Python 3.14 ( #10896 )
2025-10-24 19:26:50 +05:45
pre-commit-ci[bot]
d6fa8b67ff
[pre-commit.ci] pre-commit autoupdate ( #10894 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-21 09:30:04 +05:45
skshetry
498a4d5d3a
move: fix error message when dst stage file exists ( #10893 )
2025-10-17 19:07:51 +05:45
pre-commit-ci[bot]
b74711d5fe
[pre-commit.ci] pre-commit autoupdate ( #10892 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-14 13:05:03 +05:45
skshetry
61d5de54e5
support moving missing file keeping the metadata intact ( #10890 )
2025-10-13 05:34:14 +00:00
skshetry
ca7454980d
move: support moving output from import/import-url stages ( #10889 )
2025-10-12 17:28:41 +00:00
skshetry
8912ca7d2b
exp: add a retry when removing temporary refs to avoid FileLocked errors ( #10840 )
2025-10-12 10:05:21 +05:45
dependabot[bot]
f13ae75a45
build(deps): bump astral-sh/setup-uv from 6 to 7 ( #10883 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-08 12:51:45 +05:45
dependabot[bot]
aa090ecf8d
build(deps): bump github/codeql-action from 3 to 4 ( #10884 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-08 12:40:20 +05:45
pre-commit-ci[bot]
0c4a5cbbb7
[pre-commit.ci] pre-commit autoupdate ( #10882 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.2 → v0.13.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.2...v0.13.3 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-07 09:05:01 +05:45
skshetry
2b19c724c5
exp run: add test for running inside a linked worktree ( #10834 )
2025-10-04 06:20:43 +00:00
pre-commit-ci[bot]
28b92c8b03
[pre-commit.ci] pre-commit autoupdate ( #10877 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.1 → v0.13.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.1...v0.13.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-30 10:42:39 +05:45
pre-commit-ci[bot]
cd740fed42
[pre-commit.ci] pre-commit autoupdate ( #10872 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.0 → v0.13.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.0...v0.13.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-23 08:41:34 +05:45
dependabot[bot]
5f31ed2b08
build(deps): update pytest-rerunfailures requirement from <16.0 to <17.0 ( #10859 )
...
Updates the requirements on [pytest-rerunfailures](https://github.com/pytest-dev/pytest-rerunfailures ) to permit the latest version.
- [Changelog](https://github.com/pytest-dev/pytest-rerunfailures/blob/master/CHANGES.rst )
- [Commits](https://github.com/pytest-dev/pytest-rerunfailures/compare/1.0.0...16.0 )
---
updated-dependencies:
- dependency-name: pytest-rerunfailures
dependency-version: '16.0'
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-20 23:20:43 +05:45
pre-commit-ci[bot] and Saugat Pachhai
6e896d396c
[pre-commit.ci] pre-commit autoupdate ( #10869 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.13.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.12...v0.13.0 )
* fix ruff errors
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2025-09-20 10:22:37 +05:45
dependabot[bot]
336c8695da
build(deps): bump mypy from 1.18.1 to 1.18.2 ( #10871 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.18.1 to 1.18.2.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.18.1...v1.18.2 )
---
updated-dependencies:
- dependency-name: mypy
dependency-version: 1.18.2
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>
2025-09-20 08:57:28 +05:45
dependabot[bot]
3915fa26aa
build(deps): bump mypy from 1.17.1 to 1.18.1 ( #10868 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.17.1 to 1.18.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.17.1...v1.18.1 )
---
updated-dependencies:
- dependency-name: mypy
dependency-version: 1.18.1
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>
2025-09-15 12:43:46 +05:45
pre-commit-ci[bot]
114fd8075c
[pre-commit.ci] pre-commit autoupdate ( #10867 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.12.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.11...v0.12.12 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-11 09:43:27 +05:45
dependabot[bot]
b39a888948
build(deps): bump actions/setup-python from 5 to 6 ( #10865 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-05 15:05:32 +05:45
skshetry
c1af66c0a6
completion: support completing config variables ( #10864 )
2025-09-04 12:00:10 +05:45
skshetry
75c5d17d1e
fix(data status): handle missing DVC repo at Git HEAD ( #10862 )
...
Avoid raising errors in `data_status()` when Git HEAD does not contain a DVC
repository. Instead, fall back to an empty index.
Tests now cover both unborn and committed Git repos, with and without subdirs.
2025-09-02 12:15:20 +05:45
pre-commit-ci[bot]
ea9dd5fc3e
[pre-commit.ci] pre-commit autoupdate ( #10860 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.10 → v0.12.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.10...v0.12.11 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-02 11:12:59 +05:45
skshetry
763cbf6bd1
feat(cli): support initializing DVC repository in an arbitrary directory ( #10861 )
...
Previously, it could be only initialized in the current working directory.
2025-09-02 10:52:27 +05:45
skshetry
6f4b8c98fc
completion: complete remote in zsh/bash ( #10858 )
2025-08-31 11:25:31 +05:45
skshetry
a8bda305cd
feat(cli): support multiple --keep and --drop arguments in exp show ( #10857 )
...
* feat(cli/exp-show): support multiple --keep and --drop arguments
Closes #10851 .
* set upper bound for pytest-rerunfailures to <16.0
v16.0 started breaking in CI.
See https://github.com/pytest-dev/pytest-rerunfailures/issues/303 .
2025-08-29 21:13:15 +05:45
skshetry
4f4c5b1d01
ignore: simplify and reuse same implementation across check-ignore and is_ignored API ( #10856 )
2025-08-28 17:09:33 +05:45
skshetry
76cfe92960
minor refactor on check-ignore ( #10854 )
2025-08-27 19:14:29 +05:45
pre-commit-ci[bot]
79454557bb
[pre-commit.ci] pre-commit autoupdate ( #10853 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-26 12:29:43 +05:45
skshetry
85046843ef
fix(status): treat target as a dataset path for cloud instead of search path for dvcfiles ( #10849 )
2025-08-19 12:04:18 +05:45
pre-commit-ci[bot]
e10b27acbd
[pre-commit.ci] pre-commit autoupdate ( #10848 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-19 10:17:08 +05:45
skshetry
5a86586f3a
feat(data status): detect file moves/renames by default ( #10846 )
2025-08-18 21:23:01 +05:45
skshetry
d142d0d6af
fix dvc.yaml filepath in error message when reading from git revisions ( #10847 )
2025-08-16 13:44:48 +00:00
skshetry
9b5ee43ce1
fix(diff): do not show missing cache entries on diff result ( #10845 )
2025-08-16 05:11:54 +00:00
skshetry
6e223633e7
fix(diff): show in "Not in cache" if dir entry is missing ( #10844 )
2025-08-15 17:17:57 +00:00
skshetry
29386a0dbb
data status: add --remote option to check files against a different remote ( #10843 )
2025-08-15 21:23:46 +05:45
skshetry
e027bc6a87
checkout/pull: report granular summary of changes ( #10842 )
2025-08-15 20:54:13 +05:45
skshetry
82efd3e780
fix some, suppress some issues from ty check ( #10841 )
2025-08-14 21:05:49 +05:45
skshetry
a68dda4164
commit: batch dump stages, do not re-read on save from the workspace ( #10839 )
2025-08-14 16:45:42 +05:45
skshetry
4b1adfd646
fix(perf): only load a stage/.dvc file if the target is an address to that stage ( #10838 )
2025-08-13 15:54:04 +05:45
dependabot[bot]
748c45655e
build(deps): bump actions/checkout from 4 to 5 ( #10837 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 16:47:06 +05:45
pre-commit-ci[bot]
225bfa6a19
[pre-commit.ci] pre-commit autoupdate ( #10836 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-12 09:10:42 +05:45
KoyoMatsuda-hacarus
09079d50ff
fix: remove apostrophe and hyphen words from NOUNS and ADJECTIVES. ( #10833 )
2025-08-07 20:41:40 +05:45
skshetry
5485e5662e
exp run: fix failure when dependencies are from inside submodules ( #10832 )
2025-08-06 21:32:00 +05:45
skshetry
e619b6dccd
exp run: fix failure when dependencies are from inside submodules ( #10831 )
2025-08-06 21:07:07 +05:45
dependabot[bot]
396e71f30c
build(deps): bump actions/download-artifact from 4 to 5 ( #10830 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-06 09:10:09 +05:45
pre-commit-ci[bot]
c6a393e3fe
[pre-commit.ci] pre-commit autoupdate ( #10828 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-05 08:59:19 +05:45
B. John Braddock
a72402c843
hashing: Add usedforsecurity=False on hashlib calls ( #10826 )
2025-08-03 11:19:44 +05:45
dependabot[bot]
08f3197cdd
build(deps): bump mypy from 1.17.0 to 1.17.1 ( #10824 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-02 08:39:23 +05:45
Samandar Mirjalilov and Saugat Pachhai
1f325bc21e
exp: add --hide-workspace flag to exp show ( #10798 )
...
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2025-07-31 14:23:00 +05:45
skshetry
ca73078b80
fix(data status): handle missing .dir file from the cache on not_in_remote checks ( #10822 )
2025-07-31 07:57:15 +00:00
skshetry
fade6c5991
cli: status: return integer instead of bool on --quiet ( #10820 )
2025-07-29 09:07:24 +05:45
pre-commit-ci[bot]
446a59c806
[pre-commit.ci] pre-commit autoupdate ( #10819 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-29 08:16:34 +05:45
skshetry
a370f80f90
try to fix test with new rich ( #10815 )
2025-07-28 15:49:58 +05:45
skshetry
dc13186759
analytics: send remote types and git-remote's path hashes ( #10816 )
2025-07-28 15:07:41 +05:45
skshetry
ba1281a41c
queue: show a hint to check celery logs if logs are missing and is a failed experiment ( #10814 )
2025-07-28 11:20:28 +05:45
pre-commit-ci[bot]
abb5977a38
[pre-commit.ci] pre-commit autoupdate ( #10811 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-22 00:12:09 +05:45
Saugat Pachhai (सौगात)
50487e931f
Set COVERAGE_CORE during pytest run
2025-07-21 14:23:19 +05:45
skshetry
397f4c6f28
skip install related tests if git is missing ( #10809 )
2025-07-21 14:11:15 +05:45
skshetry
1f5bace250
improve performance of tests in Python>=3.12 when used with coverage ( #10810 )
2025-07-21 14:09:31 +05:45
skshetry
5a68e821f2
stop using gitpython in tests ( #10808 )
2025-07-21 11:59:27 +05:45
skshetry
b4d8690799
data status: fix remote check progress bar ( #10804 )
2025-07-16 18:13:43 +05:45
skshetry
7f0c835eed
Update badges
2025-07-15 21:19:37 +05:45
skshetry
c2506abf74
Update README.rst
2025-07-15 17:01:56 +05:45
dependabot[bot]
d938a1c700
build(deps): bump mypy from 1.16.1 to 1.17.0 ( #10802 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-15 11:06:26 +05:45
pre-commit-ci[bot]
a0b6b12a4f
[pre-commit.ci] pre-commit autoupdate ( #10801 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-15 09:23:00 +05:45
skshetry
1b9b1f870a
try to reset log-level after setting it ( #10800 )
2025-07-11 20:17:29 +05:45
pre-commit-ci[bot]
be1b529bdf
[pre-commit.ci] pre-commit autoupdate ( #10799 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-08 16:36:47 +05:45
pre-commit-ci[bot]
da55c0da1f
[pre-commit.ci] pre-commit autoupdate ( #10797 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-07-01 11:07:42 +05:45
skshetry
a23810f0b5
partially rollback batch remote checks ( #10796 )
2025-06-30 17:19:26 +05:45
Italos Estilon, PhD and Saugat Pachhai
0adf6679d9
cache: use configured cache directory for fs cache path ( #10795 )
...
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2025-06-30 12:29:40 +05:45
skshetry
75083cc472
bench: git-ignore dataset fixture used for data status ( #10793 )
2025-06-27 21:27:40 +05:45
skshetry
493279c7e8
perf(data status): batch remote checks ( #10792 )
2025-06-27 13:42:20 +00:00
dependabot[bot]
95c5ea81e0
build(deps): bump mypy from 1.15.0 to 1.16.1 ( #10781 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-26 19:28:24 +05:45
skshetry
3aca0edfce
test_lock: increase timeout ( #10791 )
2025-06-26 13:24:55 +00:00
pre-commit-ci[bot]
5bec7d1bb9
[pre-commit.ci] pre-commit autoupdate ( #10786 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-06-26 18:49:25 +05:45
f3836ab29a
[cli,lock] Allow wait_for_lock ( #10784 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2025-06-26 18:34:57 +05:45
skshetry and pre-commit-ci[bot]
e278c9cdf4
fix(data status): show committed changes in a new Git repository ( #10790 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-06-26 11:11:04 +00:00
skshetry
aac32e1b64
data status: support targets to limit scope of command ( #10789 )
2025-06-26 16:21:17 +05:45
Thorvald Molthe Ballestad and Saugat Pachhai
45fd1025e2
feat: ignore files not in remote when push is false ( #10749 )
...
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2025-06-26 15:02:20 +05:45
Rodrigo Goya
c7c7ba69fb
(fix) DVC_SITE_CACHE_DIR environment variable should override core.site_cache_dir ( #10778 )
...
* Prioritize DVC_SITE_CACHE_DIR over core.site_cache_dir
* Add tests for proper prioritization of env var and config
* Tests require python-3.9 compatible typing, use Optional
* Remove comment
* Fixup
2025-06-12 14:19:30 +05:45
Rodrigo Goya
346b1c064e
(fix) site_cache_dir() must return DVC_SITE_CACHE_DIR if it exists ( #10776 )
...
* DVC_SITE_CACHE_DIR must be sent first, deal with platformdirs afterwards
* Test should check default behaviour when no env var is set
* Add test: site_cache_dir() must return the env var if set
2025-06-12 07:12:04 +00:00
pre-commit-ci[bot]
b89cb893a1
[pre-commit.ci] pre-commit autoupdate ( #10773 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.11.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.12...v0.11.13 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-06-10 07:25:40 +05:45
skshetry
549821e6be
deps: bump dvc-s3 to >=3.2.1 ( #10771 )
...
Fixes https://github.com/iterative/dvc/issues/10767 .
Related:
- https://github.com/iterative/dvc-s3/pull/129
- https://github.com/iterative/dvc/discussions/10768
2025-06-09 08:00:44 +05:45
skshetry
bf26126e37
release(test-pypi): set dynamic url ( #10766 )
2025-06-06 22:51:08 +05:45
skshetry
8f1c4424d3
release(env): set dynamic url ( #10765 )
2025-06-06 22:48:20 +05:45
skshetry
5fb8986dbd
bench: check for dvc_bin.version instead of dvc_rev ( #10764 )
...
* bench: check for dvc_bin.version instead of dvc_rev
* Update dvc/testing/benchmarks/cli/stories/use_cases/test_sharing.py
* Update dvc/testing/benchmarks/cli/stories/use_cases/test_sharing.py
2025-06-05 11:41:04 +05:45
skshetry
18177a6579
tests(bench): also check if dvc_rev is set ( #10763 )
2025-06-05 09:26:27 +05:45
skshetry
ea02a18b23
tests(bench): remove allow_anonymous_login config use from dvc<3.59.3 ( #10762 )
2025-06-05 09:21:44 +05:45
skshetry
e04f1499a3
fix(dvcfs): rename argument url to repo ( #10754 )
...
See #10700 for the motivation.
2025-06-05 08:30:22 +05:45
skshetry
488c30d1ea
tests(bench): adapt for pytest>=8.4 ( #10761 )
2025-06-04 10:13:28 +05:45
Clouds
88c3103cf3
fix: treated S3 configpath as a relpath ( #10758 )
...
Update config.py
2025-06-03 19:31:03 +05:45
pre-commit-ci[bot]
c37bef7add
[pre-commit.ci] pre-commit autoupdate ( #10755 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.11 → v0.11.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.11...v0.11.12 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-06-03 11:59:26 +05:45
skshetry
7ea1daa2b8
deps: bump minver version for dvc-gs to 3.0.2 ( #10757 )
...
To support allow_anonymous_login that was added in dvc-gs 3.0.2.
Related:
- https://github.com/iterative/dvc-gs/pull/115
- https://github.com/iterative/dvc/pull/10756
- https://github.com/iterative/dvc/issues/5797
2025-06-03 10:55:35 +05:45
skshetry
fd181c78d2
fs(gs): allow configuring anonymous login ( #10756 )
2025-06-03 10:41:08 +05:45
pre-commit-ci[bot]
1de7f89af8
[pre-commit.ci] pre-commit autoupdate ( #10751 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.10 → v0.11.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.10...v0.11.11 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-05-27 07:10:08 +05:45
pre-commit-ci[bot] and skshetry
b7e13dbd07
[pre-commit.ci] pre-commit autoupdate ( #10748 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.9 → v0.11.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.9...v0.11.10 )
* Update .pre-commit-config.yaml
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2025-05-20 11:04:00 +05:45
pre-commit-ci[bot]
dc513a98e4
[pre-commit.ci] pre-commit autoupdate ( #10745 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.8 → v0.11.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.8...v0.11.9 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-05-14 07:15:39 +05:45
skshetry
9908ca7f8e
drop inputs passed to codecov-action ( #10740 )
...
It can already search and find these coverage files.
2025-05-07 14:34:27 +05:45
skshetry
0eebeb9900
tests: fix flaky test in test_get_used_objs ( #10739 )
...
Clear logs before assertions so that logs from other tests do not interfere with the test.
Some destructors may also run in between due to GC, so hopefully this will fix that issue too,
or reduce the chances of it happening.
See
https://github.com/iterative/dvc/actions/runs/14873217814/job/41775314725#step:6:97 .
```console
> assert first(caplog.messages) == expected_message
E assert 'RC: discarding all clients' == "Output 'path... 'stage.dvc'."
E
E + RC: discarding all clients
E - Output 'path'(stage: 'stage.dvc') is missing version info. Cache for it will not be collected. Use `dvc repro` to get your pipeline up to date.
E - You can also use `dvc commit stage.dvc` to associate existing 'path' with stage: 'stage.dvc'.
```
2025-05-07 12:40:51 +05:45
skshetry
415d4bc980
repo: try to support opening uninitialized/broken repositories ( #10736 )
...
This `_get_remote_config()` should use `uninitialized=True` so that it supports
more broader kinds of broken/partially-initialized repositories, including some that have
`.dvc` directory missing, or `.git` directory missing.
This partially reverts #10719 . #10608 is also fixed, and no longer requires `core.no_scm` to be passed.
This was already supported by `dvc.api.get_url` as it uses `uninitialized=True`, but this was not respected
in `_get_remote_config()` where it would fail before.
That said, this whole `open_repo`/`_get_remote_config` is terribly broken. For one, it is opening
a local repository, and forcing it's remote config to a repository opened with `Repo(rev=...)`,
where the config may be different.
2025-05-06 08:39:23 +00:00
pre-commit-ci[bot]
f3be7d761f
[pre-commit.ci] pre-commit autoupdate ( #10735 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.7 → v0.11.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.7...v0.11.8 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-05-06 07:05:11 +05:45
Rodrigo Goya and skshetry
4bde0e754e
Forward args to _get_remote_config() and honour core/no_scm if present ( #10719 )
...
* Forward args to _get_remote_config and honour core/no_scm if present
* Pass full config, except cache, to Repo()
* Avoid modifying original kwargs contents
* Simplify if config
* Add test
* Relax error matching.. .. Avoid windows vs unix paths
* Update dvc/repo/open_repo.py
---------
Co-authored-by: skshetry <[email protected] >
2025-04-30 12:20:09 +05:45
skshetry
88f1ada4bf
tests: func test for #4344 ( #10732 )
...
See https://github.com/iterative/dvc-data/pull/601 that fixed the issue.
The test is based on reproduction steps from:
https://github.com/iterative/dvc/issues/4344#issuecomment-2822000925
2025-04-29 13:25:28 +05:45
pre-commit-ci[bot]
bd65c205df
[pre-commit.ci] pre-commit autoupdate ( #10731 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.4 → v0.11.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.4...v0.11.7 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-04-29 04:52:42 +05:45
skshetry
e6ce5f825d
Revert "pre-commit: set autoupdate schedule to monthly" ( #10730 )
...
Revert "pre-commit: set autoupdate schedule to monthly (#10685 )"
This reverts commit 25d2638a57 .
2025-04-28 18:23:08 +05:45
dependabot[bot]
d30d66c1d3
build(deps): bump astral-sh/setup-uv from 5 to 6 ( #10729 )
...
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv ) from 5 to 6.
- [Release notes](https://github.com/astral-sh/setup-uv/releases )
- [Commits](https://github.com/astral-sh/setup-uv/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-28 14:55:14 +05:45
Fabian Zills
19f31d7cac
Bring the banner back ( #10728 )
...
Update README.rst
2025-04-24 06:19:28 +05:45
Ivan Shcheklein
99d9ca714d
remove banner in README ( #10726 )
2025-04-22 04:36:16 +00:00
dependabot[bot]
a3b6722523
build(deps): bump rtCamp/action-slack-notify from 2.3.2 to 2.3.3 ( #10718 )
...
Bumps [rtCamp/action-slack-notify](https://github.com/rtcamp/action-slack-notify ) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/rtcamp/action-slack-notify/releases )
- [Commits](https://github.com/rtcamp/action-slack-notify/compare/v2.3.2...v2.3.3 )
---
updated-dependencies:
- dependency-name: rtCamp/action-slack-notify
dependency-version: 2.3.3
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>
2025-04-10 13:02:20 +05:45
skshetry
b824bc4db7
ci(build): use envvar override to omit local version for Test PyPI upload ( #10720 )
...
Uses `SETUPTOOLS_SCM_OVERRIDES_FOR_DVC` to omit the local version
when uploading to Test PyPI. This is needed because (Test) PyPI
does not support local version.
This requires bumping minimum version of `setuptools_scm` to `8.0.0`.
The envvar is documented here: https://setuptools-scm.readthedocs.io/en/latest/overrides/ .
Also see:
https://github.com/pypa/setuptools-scm/issues/455#issuecomment-2791301186 .
2025-04-10 12:59:32 +05:45
pre-commit-ci[bot] and Saugat Pachhai
6cc349edb4
[pre-commit.ci] pre-commit autoupdate ( #10717 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.11.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.9...v0.11.4 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix ruff errors
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2025-04-08 03:15:09 +00:00
Rory Crean and RMCrean
e455ee69aa
remote: show default when run "dvc remote list" ( #10711 )
...
* remote: show default when run "dvc remote list"
Fixes #10708
* Indent other remotes if there is a default remote
Now regardless of whether there is a default remote or not, all remotes are equally indented
* stricter test for listing remotes shows default
* Rewrite dvc remote list implemetation
- Default remote is indicated at end of the output and colored green
- Remotes no longer reordered to show default first
- Test updated to reflect changes and remove need for function escape_ansi.
---------
Co-authored-by: RMCrean <[email protected] >
2025-04-07 09:02:09 +05:45
skshetry
31270c14e3
pyproject: update license to PEP 639 format ( #10709 )
...
Requires bumping `setuptools` to 77.0.0 or later.
See:
- [PEP 639](https://peps.python.org/pep-0639 )
- [Writing pyproject.toml - license](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license )
2025-03-25 09:48:50 +05:45
pre-commit-ci[bot]
28b7c8b723
[pre-commit.ci] pre-commit autoupdate ( #10699 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.4...v0.9.9 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-06 18:21:14 -08:00
skshetry
1d6ea68133
ls/ls-url: do not show entry with size<=0 for a directory ( #10687 )
...
ls/ls-url: do not show size=0 when the entry is a directory
2025-02-09 12:16:53 +05:45
skshetry
25d2638a57
pre-commit: set autoupdate schedule to monthly ( #10685 )
...
Update .pre-commit-config.yaml
2025-02-06 09:33:04 +05:45
dependabot[bot]
0b03714097
build(deps): bump mypy from 1.14.1 to 1.15.0 ( #10684 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.14.1 to 1.15.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.14.1...v1.15.0 )
---
updated-dependencies:
- dependency-name: mypy
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>
2025-02-06 09:30:37 +05:45
pre-commit-ci[bot]
9392bbdd4b
[pre-commit.ci] pre-commit autoupdate ( #10682 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-02-04 11:00:36 +05:45
pre-commit-ci[bot] and skshetry
c4b18b710a
[pre-commit.ci] pre-commit autoupdate ( #10676 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2025-01-31 20:04:56 +05:45
da1e0b57b8
import: fix broken progressbar when importing folder ( #10678 )
...
Co-authored-by: Petr Chmelar <[email protected] >
Co-authored-by: skshetry <[email protected] >
2025-01-31 19:41:27 +05:45
pre-commit-ci[bot]
b2a873d13b
[pre-commit.ci] pre-commit autoupdate ( #10674 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-21 15:34:13 +05:45
pre-commit-ci[bot]
89ef3463dc
[pre-commit.ci] pre-commit autoupdate ( #10671 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.0 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.0...v0.9.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-13 13:37:31 -08:00
skshetry
7d14acb5a7
3.13 support for Windows ( #10667 )
...
python/cpython#113829 changed `os.path.isabs` on Windows to not consider a path starting a single backslash to be an absolute path.
We do a lot of naive `posixpath` to `ntpath` conversions, and it broke DVC in multiple places. DVC is likely broken in many other places, and these bugs are difficult to identify.
In this commit, I have tried to fix in the places where the tests failed. And mostly by trying to imitate pre-3.13 behaviour.
Some of the changes may not be correct but keeps the old behaviour in place.
Also re-enabled the CI for all Python versions supported for Windows.
2025-01-10 18:39:38 +05:45
skshetry
dd501554fe
tests: try to make tests pass on Python 3.13 on unix platforms ( #10665 )
2025-01-09 22:36:35 +05:45
skshetry
54acfda687
fix implicit concatenated strings ( #10666 )
2025-01-09 22:05:33 +05:45
pre-commit-ci[bot]
e70a1e9bfc
[pre-commit.ci] pre-commit autoupdate ( #10663 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-09 21:49:48 +05:45
dependabot[bot]
aea0e6b6cc
build(deps): bump mypy from 1.14.0 to 1.14.1 ( #10662 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-09 21:14:40 +05:45
skshetry
2c6b917fc5
ls-url: add support for --tree/--level ( #10664 )
2025-01-09 21:12:34 +05:45
a43c1b31f7
chore(studio): Update Studio URL to new domain ( #10538 )
...
* chore(studio): Update Studio URL to new domain
The https://studio.dvc.ai is deprecated, and we switched to the new domain https://studio.datachain.ai .
The domain change is backwards compatible. The **older versions** of the `dvc` will still work. 🎉
Related PR: https://github.com/iterative/dvc-studio-client/pull/181
* Apply suggestions from code review
---------
Co-authored-by: Marcin Jasion <[email protected] >
Co-authored-by: Helio Machado <[email protected] >
2024-12-31 01:51:20 +00:00
pre-commit-ci[bot]
683a9f09bd
[pre-commit.ci] pre-commit autoupdate ( #10661 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-26 14:45:00 +05:45
dependabot[bot]
53a7230da0
build(deps): bump astral-sh/setup-uv from 4 to 5 ( #10660 )
...
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv ) from 4 to 5.
- [Release notes](https://github.com/astral-sh/setup-uv/releases )
- [Commits](https://github.com/astral-sh/setup-uv/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-22 18:55:56 -08:00
dependabot[bot]
f078a572dd
build(deps): bump mypy from 1.13.0 to 1.14.0 ( #10659 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.13.0 to 1.14.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.13.0...v1.14.0 )
---
updated-dependencies:
- dependency-name: mypy
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>
2024-12-22 18:16:06 -08:00
pre-commit-ci[bot]
007041bfe9
[pre-commit.ci] pre-commit autoupdate ( #10651 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.8.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.2...v0.8.3 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-17 17:45:15 +05:45
pre-commit-ci[bot]
965dbea75e
[pre-commit.ci] pre-commit autoupdate ( #10646 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-10 13:53:15 +05:45
pre-commit-ci[bot]
f5cbf97eea
[pre-commit.ci] pre-commit autoupdate ( #10642 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.0 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.0...v0.8.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-07 08:07:50 +05:45
Raphaël Michel and pre-commit-ci[bot]
198c8f2ffd
Fix #10638 : makes remove return correct list when used with both --queue and -A ( #10641 )
...
* fixed a bug where using both `--queue` and `-A` would yield a "removed" list without the queued experiments
* added a test to validate the fix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* clearer name for test
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-01 08:21:46 -08:00
Raphaël Michel and pre-commit-ci[bot]
368c785410
Fix #10593 -- add --keep option for dvc experiments remove ( #10633 )
...
* Add keep_selected parameter, and corresponding code to keep only the selected exps (and remove all the other ones)
* test keep_selected_by_name
* test keep_selected_by_rev
* test keep_selected multiple, by name
* test keep all by name
* test keep by rev, with num=2
* added option to cli
* refactoring to meet pr needs
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixed test_experiments to add keep_selected=False to remove tests
* rename parameter to match cli option
* follow the normal path, then invert the selection before removing
* fixed tests for list ordering + fixed test with non existent name, it didn't make sense to delete everything if an exp name did not exist
* changed cli option comment
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixed typing issue
* updated parameter name
* removed handling queued experiments (since --queue would remove them all)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* code simplification, added __eq__ and __hash__ to be able to compare ExpRefs, updated and parametrized tests.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixed linting issues
* - --keep and --queue together raise an InvalidArgumentError
- added a test to check if the error is raised
- fixed CLI message
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* re-run gh tests. Some tests which did not involve my changes started failing while they were passing fine before.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-30 10:43:13 -08:00
skshetry
64ccd9cfdb
set DVC_NO_ANALYTICS on lint ( #10640 )
2024-11-29 18:48:01 +05:45
skshetry
d38b2dbcb8
deps: bump configobj minver to 5.0.9 ( #10636 )
2024-11-26 10:59:28 +05:45
dependabot[bot]
8cb0f02bf9
build(deps): bump astral-sh/setup-uv from 3 to 4 ( #10634 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-26 07:34:58 +05:45
pre-commit-ci[bot]
7e75b0616f
[pre-commit.ci] pre-commit autoupdate ( #10635 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-26 07:34:46 +05:45
pre-commit-ci[bot]
fb24775bc0
[pre-commit.ci] pre-commit autoupdate ( #10626 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.3...v0.7.4 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-19 11:36:20 -08:00
82e2446eb4
Update pre-commit to use pinned version of dvc and correct stage names ( #10621 )
...
Co-authored-by: skshetry <[email protected] >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-18 08:22:11 +05:45
dependabot[bot]
1e08cc5da3
build(deps): bump codecov/codecov-action from 3 to 5 ( #10622 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-15 09:31:06 +05:45
pre-commit-ci[bot]
e56a729e3b
[pre-commit.ci] pre-commit autoupdate ( #10619 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-12 09:52:05 +05:45
skshetry
9a050684f7
fix issue with pytest-benchmark==5 ( #10618 )
2024-11-11 17:54:08 +05:45
Ivan Shcheklein
2431ec6189
Rename dvcx to DataChain in DVC <> DataChain integration ( #10611 )
2024-11-05 12:27:45 +05:45
dependabot[bot]
70fc4e6cda
build(deps): update platformdirs requirement from <4,>=3.1.1 to >=3.1.1,<5 ( #10603 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 12:27:30 +05:45
pre-commit-ci[bot]
bbc01b40d2
[pre-commit.ci] pre-commit autoupdate ( #10610 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-05 10:45:10 +05:45
skshetry
6302e5f1d3
PEP 703 attestation is the default ( #10607 )
2024-10-31 07:00:59 +05:45
pre-commit-ci[bot]
df5429f7d8
[pre-commit.ci] pre-commit autoupdate ( #10606 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.0 → v0.7.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.0...v0.7.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-29 06:34:56 +05:45
dependabot[bot]
f9583f0c3d
build(deps): bump rtCamp/action-slack-notify from 2.3.1 to 2.3.2 ( #10602 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-24 08:03:55 +05:45
dependabot[bot]
9e26a46323
build(deps): bump mypy from 1.12.1 to 1.13.0 ( #10600 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-23 08:18:14 +05:45
skshetry
746f028f6c
ls: implement --tree to show as a tree and --level to limit depth for recursion ( #10598 )
2024-10-23 07:56:24 +05:45
pre-commit-ci[bot]
3651939e11
[pre-commit.ci] pre-commit autoupdate ( #10597 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-22 08:27:09 +05:45
Pete Bachant
d236667048
Add option to show MD5 checksums in dvc ls ( #10573 )
2024-10-21 16:32:03 +05:45
dependabot[bot]
d22a68f7a8
build(deps): bump mypy from 1.12.0 to 1.12.1 ( #10595 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.12.0 to 1.12.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.12.0...v1.12.1 )
---
updated-dependencies:
- dependency-name: mypy
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>
2024-10-20 20:10:06 -07:00
dependabot[bot] and Ivan Shcheklein
683ae7a951
build(deps): bump mypy from 1.11.2 to 1.12.0 ( #10586 )
...
* build(deps): bump mypy from 1.11.2 to 1.12.0
Bumps [mypy](https://github.com/python/mypy ) from 1.11.2 to 1.12.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.11.2...v1.12.0 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
* fix mypy complaintes
---------
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ivan Shcheklein <[email protected] >
2024-10-20 18:42:48 -07:00
dependabot[bot]
d5054ce861
build(deps): bump rtCamp/action-slack-notify from 2.3.0 to 2.3.1 ( #10591 )
...
Bumps [rtCamp/action-slack-notify](https://github.com/rtcamp/action-slack-notify ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/rtcamp/action-slack-notify/releases )
- [Commits](https://github.com/rtcamp/action-slack-notify/compare/v2.3.0...v2.3.1 )
---
updated-dependencies:
- dependency-name: rtCamp/action-slack-notify
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>
2024-10-19 18:10:03 -07:00
Saipavan Lingamallu
e884f1b8f0
Update warning message gc.py ( #10592 )
...
Corrected warning message
2024-10-18 10:54:00 -07:00
pre-commit-ci[bot] and skshetry
9b5772fab8
[pre-commit.ci] pre-commit autoupdate ( #10582 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2024-10-08 18:05:36 +05:45
Santiago Smith and Santiago Silva
c1aaeffc2d
fix: directory creation on pulling data ( #10580 )
...
Co-authored-by: Santiago Silva <[email protected] >
2024-10-08 17:55:24 +05:45
Ivan Shcheklein
ad70dd322b
bump scmrepo version ( #10570 )
...
Context https://github.com/iterative/dvc/issues/10563
2024-10-02 18:04:11 -07:00
pre-commit-ci[bot]
72b6971730
[pre-commit.ci] pre-commit autoupdate ( #10574 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.7 → v0.6.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.7...v0.6.8 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-02 18:03:56 -07:00
skshetry
ee1864af8e
fix tests with the new pydot release ( #10567 )
2024-09-26 08:13:06 +05:45
skshetry
52877485d1
chore: ci: disable caching ( #10565 )
2024-09-25 08:41:30 +05:45
pre-commit-ci[bot]
a923f110e3
[pre-commit.ci] pre-commit autoupdate ( #10564 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-24 09:29:54 +05:45
skshetry
b8266ed15f
add/commit: use hardlink to transfer files to the cache when cache.type is hardlink and on relink mode ( #10557 )
2024-09-17 13:09:32 +05:45
dependabot[bot]
2c871ba432
build(deps): bump astral-sh/setup-uv from 2 to 3 ( #10559 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 08:13:24 +05:45
pre-commit-ci[bot]
32d11f1e05
[pre-commit.ci] pre-commit autoupdate ( #10558 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-17 08:13:09 +05:45
pre-commit-ci[bot]
f56343d6ae
[pre-commit.ci] pre-commit autoupdate ( #10551 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-10 09:07:55 +05:45
skshetry
7b8922b20f
ci: use uv's official action, and uv build command ( #10548 )
2024-09-06 08:36:18 +05:45
pre-commit-ci[bot]
436a2ac793
[pre-commit.ci] pre-commit autoupdate ( #10547 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-03 08:41:43 +05:45
skshetry
eec3d48731
pyproject.toml: remove stale comment from dependency ( #10546 )
2024-08-30 18:51:56 +05:45
skshetry
5417ccd7b6
dvcfs.get: simplify and separate files into respective filesystems while walking ( #10544 )
...
dvcfs.get: simplify and separate files into respective filesystems while collecting/walking
2024-08-29 16:47:16 +00:00
skshetry
f2b7b00af5
dvcfilesystem.get: prefer downloading from repo.fs before dvc.fs ( #10543 )
2024-08-29 13:06:21 +00:00
skshetry
4f3fb15f2e
dvcfs: optimize get() by reducing index.info calls() ( #10540 )
2024-08-27 18:08:40 +05:45
pre-commit-ci[bot]
016f285fe3
[pre-commit.ci] pre-commit autoupdate ( #10541 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-27 06:43:45 +05:45
dependabot[bot]
f6dd641855
build(deps): bump mypy from 1.11.1 to 1.11.2 ( #10539 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.11.1 to 1.11.2.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.11.1...v1.11.2 )
---
updated-dependencies:
- dependency-name: mypy
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>
2024-08-26 08:21:55 +05:45
Saugat Pachhai (सौगात)
3f2584d155
bench: add --benchmark-cprofile-dump
2024-08-22 14:35:23 +05:45
skshetry
705b7bbea6
simplify running benchmarks ( #10536 )
2024-08-21 21:09:59 +05:45
Saugat Pachhai (सौगात)
26ad01bec0
bench: drop add/checkout from test_sharing
2024-08-21 08:00:19 +05:45
Saugat Pachhai (सौगात)
e76aaeac57
benchmarks: fix for local versions
2024-08-20 21:32:37 +05:45
skshetry
6f24d04b5e
ci (bench): skip benchmark for test_import on versions >=3.53,<3.54.1 ( #10535 )
2024-08-20 21:22:08 +05:45
skshetry
2dcaea8119
dependency/repo: do not suppress OSError on info() ( #10533 )
2024-08-20 18:14:21 +05:45
Dave Berenbaum and Saugat Pachhai
81db9b4572
save import hash info to state ( #10531 )
...
* save import hash info to state
* clean up path handling
* avoid walking
* tests: do not use as_posix to check for output
---------
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-08-20 13:41:37 +05:45
pre-commit-ci[bot]
98dde6cd27
[pre-commit.ci] pre-commit autoupdate ( #10532 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.0 → v0.6.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.0...v0.6.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-20 04:19:17 +05:45
skshetry
e42d094310
remove epic template ( #10530 )
2024-08-17 09:40:57 +05:45
skshetry
38ee0a01f7
update ruff to 0.6 ( #10526 )
2024-08-15 20:02:09 +05:45
dependabot[bot] and Saugat Pachhai
d494126cc5
build(deps): bump mypy from 1.10.1 to 1.11.1 ( #10495 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-08-15 19:59:05 +05:45
skshetry
fd3b43df05
fix test_daemon.py::test_analytics flakiness ( #10523 )
...
Turns out `iterative-telemetry` spends a long time trying to
generate an id. Sometimes it gets frozen for a long time (>30s).
2024-08-14 16:55:18 +05:45
Saugat Pachhai (सौगात)
b9bcb45aaa
ci: add python version for cache suffix
2024-08-14 15:17:31 +05:45
skshetry
7bca71db2e
ci: use pytest-split based on least_duration ( #10522 )
2024-08-14 14:58:55 +05:45
skshetry
52405a0e10
ci: use uv to install dependencies ( #10507 )
...
* ci: use uv to install dependencies
* split Windows tests into four for each python versions
* split tests and check into two jobs
* increase timeout
2024-08-14 13:24:56 +05:45
skshetry
c514b0ea31
use uv for benchmark tests while installing/creating virtualenv ( #10520 )
2024-08-13 22:27:05 +05:45
skshetry
853116a0e3
bump dvc-data to >=3.16.2 ( #10519 )
2024-08-13 08:59:06 +05:45
skshetry
5e4daf6cfb
deps: bump dvc-data to >=3.16.0 ( #10513 )
2024-08-13 07:15:05 +05:45
pre-commit-ci[bot]
991a816995
[pre-commit.ci] pre-commit autoupdate ( #10518 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-13 06:40:30 +05:45
Jan Stratil
9735b5aaa9
dvc dependency repo: Catch FileNotFoundError ( #10501 )
...
- When checkouting non-existent file the _checkout_file recursively
calls os.stat on a symlinked file which destination doesn't exist.
This causes a FileNotFoundError but it is not catched and it causes
an unexpected error instead.
Fixes #10500 .
2024-08-12 20:49:26 +05:45
Ivan Shcheklein
fa317d5b1d
fix(readme): add style to datachain banner ( #10517 )
2024-08-12 13:36:48 +05:45
Ivan Shcheklein
1b0fb6487b
add datachain link ( #10514 )
2024-08-08 10:57:31 -07:00
Saugat Pachhai (सौगात)
43e6229308
stabilize import db: remove experimental warning
2024-08-07 08:40:56 -04:00
skshetry
1bef0da4fb
import_db: set dependency.is_in_repo to false ( #10504 )
2024-08-06 14:02:24 +05:45
pre-commit-ci[bot]
284d83f390
[pre-commit.ci] pre-commit autoupdate ( #10493 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-06 06:51:31 +05:45
Dave Berenbaum
417e6d4b76
revert to --no-run-cache default for push/pull/fetch
2024-07-30 14:23:24 -04:00
dberenbaum
248ba3b6b6
limit reimport behavior to checkout
2024-07-24 09:37:32 -04:00
dberenbaum
8a91c2b303
add back code to avoid downloading imports
2024-07-24 09:37:32 -04:00
Dave Berenbaum
544dad75e9
try force overwriting run cache entries on push
2024-07-24 08:15:01 -04:00
pre-commit-ci[bot]
8f50f2509f
[pre-commit.ci] pre-commit autoupdate ( #10487 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-23 07:58:55 +05:45
pre-commit-ci[bot]
cdc1857559
[pre-commit.ci] pre-commit autoupdate ( #10484 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.5.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.1...v0.5.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-15 13:42:20 -07:00
Dave Berenbaum
358dd163da
set lower bound on fsspec ( #10479 )
2024-07-11 17:53:37 +05:45
pre-commit-ci[bot]
aae1a93cb5
[pre-commit.ci] pre-commit autoupdate ( #10478 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.5.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.0...v0.5.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-08 14:22:12 -07:00
pre-commit-ci[bot] and Ivan Shcheklein
c9b7218659
[pre-commit.ci] pre-commit autoupdate ( #10473 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.10...v0.5.0 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* lint daemon.py
* lint run.py
* lint fixtures.py
* lint checkout.py
* lint collect.py
* lint index.py
* lint index.py
* lint checkout.py
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ivan Shcheklein <[email protected] >
2024-07-06 17:05:42 +00:00
dependabot[bot]
88c4b9525d
build(deps): update flufl-lock requirement from <8,>=5 to >=8.1.0,<9 ( #10470 )
...
---
updated-dependencies:
- dependency-name: flufl-lock
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-01 15:25:45 -07:00
pre-commit-ci[bot]
69d36eeb06
[pre-commit.ci] pre-commit autoupdate ( #10466 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-27 20:09:40 +05:45
3201794553
chore(studio): Update Studio URL to new domain ( #10468 )
...
Co-authored-by: Marcin Jasion <[email protected] >
Co-authored-by: skshetry <[email protected] >
2024-06-27 16:43:17 +05:45
dependabot[bot]
4464f8b4b9
build(deps): bump mypy from 1.10.0 to 1.10.1 ( #10467 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.10.0 to 1.10.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.10.0...v1.10.1 )
---
updated-dependencies:
- dependency-name: mypy
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>
2024-06-24 21:00:48 -07:00
pre-commit-ci[bot]
efc7e05893
[pre-commit.ci] pre-commit autoupdate ( #10463 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-18 08:21:54 +05:45
skshetry
a555c3d29a
skip stage cache push/pull test for http ( #10462 )
2024-06-15 21:51:20 +05:45
George Geddes
676645b1ca
Read studio hostname from config when not present on cli or env ( #10459 )
2024-06-14 17:29:56 -07:00
pre-commit-ci[bot]
93c3100bad
[pre-commit.ci] pre-commit autoupdate ( #10455 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.4.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.7...v0.4.8 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-12 06:41:09 +05:45
pre-commit-ci[bot]
c74156288d
[pre-commit.ci] pre-commit autoupdate ( #10443 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-03 17:40:31 +05:45
George Kussumoto and Saugat Pachhai
0e38ccc031
fix(pull): normalize dependency path ( #10446 )
...
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-06-03 16:43:43 +05:45
Ivan Shcheklein
b69b368ffe
fix(benchmarks): force older pygit2 for older DVC versions ( #10447 )
2024-06-03 15:56:43 +05:45
6cc80fdeaa
fix fish shell support ( #10445 )
...
Co-authored-by: Alexey Stern [email protected]
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-06-03 15:45:21 +05:45
Ivan Shcheklein
8f8d49d023
fix(push/pull): don't fail on unsupported run cache ( #10441 )
2024-05-27 14:37:44 +05:45
Dave Berenbaum
83ec952da1
improve repro --pull --run-cache test
2024-05-23 14:26:42 -04:00
Dave Berenbaum
c0d7e2a8de
test repro --pull failure
2024-05-23 14:26:42 -04:00
Dave Berenbaum
9aad09164c
update repro --pull description
2024-05-23 14:26:42 -04:00
Dave Berenbaum
1f7733fec1
refactor
2024-05-23 14:26:42 -04:00
Dave Berenbaum
856c902b65
add tests
2024-05-23 14:26:42 -04:00
Dave Berenbaum
ebb459f9e2
refactor dvc repro --pull
2024-05-23 14:26:42 -04:00
Dave Berenbaum
2e0b024efe
Apply suggestions from code review
2024-05-23 13:45:48 -04:00
Dave Berenbaum
135fa26515
Update dvc/repo/artifacts.py
2024-05-23 13:45:48 -04:00
Dave Berenbaum
ef507efa04
artifacts: get studio info from local config
2024-05-23 13:45:48 -04:00
Dave Berenbaum
05db79e7cf
add dvc artifacts get --show-url
2024-05-23 12:46:21 -04:00
Dave Berenbaum
0a813bbcbc
push/pull run cache by default
2024-05-22 08:21:55 -04:00
skshetry
e82356ba92
deps: bump scmrepo to >=3.3.4 ( #10432 )
...
Closes https://github.com/iterative/dvc/issues/10431 .
Upstream PR: https://github.com/iterative/scmrepo/pull/359
2024-05-20 18:13:25 +05:45
Sigurd Spieckermann
5bfacec974
import/get: escape non-pattern LFS path parts ( #10416 )
2024-05-13 10:24:06 -07:00
pre-commit-ci[bot]
1848074ac9
[pre-commit.ci] pre-commit autoupdate ( #10409 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.1...v0.4.3 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-10 10:52:02 +00:00
Sigurd Spieckermann
a7c0f6ef39
import/get: optimize LFS prefetching ( #10414 )
2024-05-03 08:58:53 -07:00
Thomas Roehr
0a8a9deceb
Update s3 dependency to dvc-s3>=3.2.0
2024-04-26 11:01:03 -04:00
Thomas Roehr
c5d98681c0
s3: align config name for anonymous login
2024-04-26 11:01:03 -04:00
Thomas Roehr
15e05e4b3e
dvc: s3: allow configuring anonymous access
2024-04-26 11:01:03 -04:00
pre-commit-ci[bot]
7df8b0c09b
[pre-commit.ci] pre-commit autoupdate ( #10397 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.7...v0.4.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-26 15:25:52 +05:45
Amirmohammad Sadat Shokouhi
2e1faf2979
add replication factor argument for hdfs in config schema ( #10396 )
2024-04-25 12:03:35 -07:00
skshetry
cbaeff2ea1
deps: bump scmrepo minver to >=3.3.2,<4 ( #10406 )
...
Update pyproject.toml
2024-04-25 14:41:58 +05:45
dependabot[bot]
132e625ae8
build(deps): bump mypy from 1.9.0 to 1.10.0 ( #10405 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.9.0 to 1.10.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: mypy
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>
2024-04-25 09:54:50 +05:45
skshetry
8517cccff4
artifacts: add support for monorepo ( #10386 )
2024-04-16 21:13:02 +05:45
dberenbaum
c52a25e011
fix tests
2024-04-16 11:15:52 -04:00
dberenbaum
c4678736b0
add option to not relink
2024-04-16 11:15:52 -04:00
pre-commit-ci[bot]
ec92cc14d1
[pre-commit.ci] pre-commit autoupdate ( #10390 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.3.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.5...v0.3.7 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-16 10:37:51 +05:45
Dave Berenbaum
e6048287cb
fix test for dvc-render updates to plots title anchor ( #10387 )
2024-04-11 19:23:03 +05:45
pre-commit-ci[bot]
72a353d8b9
[pre-commit.ci] pre-commit autoupdate ( #10384 )
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-09 06:45:19 +05:45
pre-commit-ci[bot]
dd2b515c97
[pre-commit.ci] pre-commit autoupdate ( #10376 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.4...v0.3.5 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-02 06:52:09 +05:45
skshetry
c223cdaecd
params/metrics: do not fail during dir expansion ( #10375 )
...
params/metrics: assume file when dir expansion raises error
Closes https://github.com/iterative/dvc/issues/10018 .
We have to be careful when expanding paths. This PR fall backs to assume it
as a file when either of `isdir` and `find` raises error due to some mishaps.
The consequence of this assumption happens when we try to read the file.
In that case, if the directory exists, and we happen to try to open it
as a file, dvc will raise `IsADirectoryError`, but that is handled correctly
and won't fail catastrophically like this did.
2024-03-28 07:30:12 +05:45
skshetry
5379aa2348
add: raise DoesNotExistError only if the output path does not exist ( #10373 )
...
`dvc add` command incorrectly raises a `DoesNotExistError` when a
broken symlink exists in an output directory, and the target name
is same as the directory's name.
eg: If `data` is an output, and is the command is invoked as `dvc add data`
(i.e. no virtual directory operations to perform).
The expected behavior to raise a `FileNotFoundError`.
`DoesNotExistError` should only be raised if the output itself does not
exist.
Related: https://github.com/iterative/dvc/issues/3717
2024-03-26 11:16:35 +00:00
pre-commit-ci[bot] and Saugat Pachhai
3375a7c39f
[pre-commit.ci] pre-commit autoupdate ( #10372 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.3 → v0.3.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.3...v0.3.4 )
* fixes
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-03-26 06:37:53 +00:00
dberenbaum
519c47f5fc
sync: skip if remote doesn't match output remote
2024-03-25 15:12:33 -04:00
skshetry
6f6038888f
sort imports for all libraries starting with dvc_ as a first party ( #10371 )
...
dvc_studio_client, dvc_ssh, etc. were not properly sorted.
2024-03-23 20:13:13 +05:45
skshetry
e223f51e7e
explicitly specify dependencies that are imported inside dvc ( #10370 )
...
Most of these are also transitive dependencies, but we should explicitly
specify them if they are imported within dvc.
2024-03-23 18:51:25 +05:45
skshetry
fb628bf9ea
add a regression test for #10309 ( #10369 )
...
https://github.com/iterative/dvc/issues/10309
2024-03-23 11:37:36 +05:45
dependabot[bot] and skshetry
4f4e977e53
build(deps-dev): update dvc-data requirement from <3.15,>=3.13 to >=3.15,<3.16 ( #10368 )
...
* build(deps-dev): update dvc-data requirement
Updates the requirements on [dvc-data](https://github.com/iterative/dvc-data ) to permit the latest version.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/3.13.0...3.15.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
* Update pyproject.toml
---------
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] >
2024-03-23 05:48:17 +00:00
skshetry
8b1f8847fe
add CITATION file so that users can cite dvc ( #10366 )
2024-03-23 07:05:07 +05:45
skshetry
c62a0380e9
templating: support on top-level params/metrics/plots/artifacts/datasets ( #10359 )
...
* templating: support on top-level params/metrics/plots/artifacts/datasets
* make resolving top-level ordered
* prevent updating parametrized dataset
* fix dataset tests
* add tests
* fix comment
* support parametrizing artifacts name
2024-03-22 12:22:16 +00:00
Rishabh Sharma and Rishabh Sharma
8d8939fb67
DVC_STAGE: Added environment variable to track DVC stage name ( #10357 )
...
DVC_STAGE_NAME: Added environment variable to track DVC stage name
Fixes #10355
Co-authored-by: Rishabh Sharma <[email protected] >
2024-03-20 13:28:02 -07:00
dependabot[bot]
f7a54bf2d0
build(deps): bump rtCamp/action-slack-notify from 2.2.1 to 2.3.0 ( #10364 )
...
Bumps [rtCamp/action-slack-notify](https://github.com/rtcamp/action-slack-notify ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/rtcamp/action-slack-notify/releases )
- [Commits](https://github.com/rtcamp/action-slack-notify/compare/v2.2.1...v2.3.0 )
---
updated-dependencies:
- dependency-name: rtCamp/action-slack-notify
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>
2024-03-20 08:15:27 +05:45
pre-commit-ci[bot] and Saugat Pachhai
1a9f5d3aa8
[pre-commit.ci] pre-commit autoupdate ( #10362 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.2 → v0.3.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.2...v0.3.3 )
* fix lint issue
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-03-19 13:25:39 +05:45
Ivan Shcheklein
017a510b83
add attrs explicit dependency ( #10354 )
...
fixes AttrsInstance import failing, fixed by https://github.com/python-attrs/attrs/issues/987
2024-03-16 08:58:37 +05:45
skshetry
a80d224c58
fix dvcx import ( #10351 )
2024-03-14 15:20:17 +05:45
pre-commit-ci[bot] and Saugat Pachhai
49709a4810
[pre-commit.ci] pre-commit autoupdate ( #10350 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.2 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix ruff errors
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-03-13 16:43:10 +05:45
dberenbaum
7df58ce404
Revert "refactor notify_refs_to_studio"
...
This reverts commit c16d615b55f2bb359b731939ad22712a502d8a8d.
2024-03-11 10:47:01 -04:00
dberenbaum
827e58f305
Revert "fix mypy"
...
This reverts commit 029b68ef77b7f82d5e72c8bb48f3eb980fe8204e.
2024-03-11 10:47:01 -04:00
dberenbaum
8bc6ba7cd5
fix mypy
2024-03-11 10:47:01 -04:00
dberenbaum
a96a446742
refactor notify_refs_to_studio
2024-03-11 10:47:01 -04:00
dberenbaum
837c8e8de4
exp: use exp git remote for studio repo url
2024-03-11 10:47:01 -04:00
dberenbaum
603da1ca1e
api: update remote config tests
2024-03-11 09:47:05 -04:00
dberenbaum
377d0c9d58
get: update show-url to take remote args
2024-03-11 09:47:05 -04:00
dependabot[bot]
6bdf41a217
build(deps-dev): bump mypy from 1.8.0 to 1.9.0 ( #10348 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.8.0 to 1.9.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.8.0...1.9.0 )
---
updated-dependencies:
- dependency-name: mypy
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>
2024-03-11 08:44:35 +05:45
dberenbaum
1aeb8750b6
drop debugging comment
2024-03-07 07:39:53 -05:00
dberenbaum
5aae934379
test auto push with tmp dir
2024-03-07 07:39:53 -05:00
dberenbaum
de1338caaf
write git config to exp tmp repos
2024-03-07 07:39:53 -05:00
Ivan Shcheklein and skshetry
9957410998
fix(plots): handle empty directories ( #10344 )
...
* fix(plots): handle empty directories
* Update tests/integration/plots/test_plots.py
Co-authored-by: skshetry <[email protected] >
* cleanup after review
---------
Co-authored-by: skshetry <[email protected] >
2024-03-07 12:50:49 +05:45
dberenbaum
cf9855af45
handle auto push errors
2024-03-05 09:44:48 -05:00
skshetry
0001cc3a4b
drop 2.x branch ( #10339 )
...
* drop 2.x branch
* Update tests.yaml
2024-03-05 14:39:51 +05:45
skshetry
440e1491f0
Delete .github/mergify.yml ( #10338 )
2024-03-05 14:37:44 +05:45
AlexandreKempf and Saugat Pachhai
b0384f8f51
dvc studio login automatically push experiments by default (#10331 )
...
* studio login set auto_push + add logs for the user
* set a separate global config dir for studio login tests
The `isolate` fixture sets a separate, _isolated_ global config directory.
But it is shared among other tests. So any mutations to it affects other
tests too.
We should force `studio login` tests to use a separate tmp_dir for global config.
* cleanup message
---------
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-03-05 11:48:16 +05:45
cd1e228e55
experiments: auto push experiments ( #10323 )
...
* add auto_push for experiment on run and on save.
add config.exp.auto_push and config.exp.git_remote
* add func tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* separate auto_push behaviour out of commit
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-03-04 14:20:56 +05:45
skshetry
3b2e031e60
replace flaky with pytest-rerunfailures ( #10335 )
...
* Revert "limit pytest version to <8.1 (#10334 )"
This reverts commit bc95b650a4 .
* replace flaky with pytest-rerunfailures
`flaky` project seems to be unmaintained (see box/flaky#192 ).
`pytest-rerunfailures` seems to be maintained under `pytest-dev`
and tests 5 minor releases of pytest.
Note that this plugin is not compatible with `flaky` plugin.
You will have to uninstall it if it exists.
2024-03-04 11:12:45 +05:45
skshetry
e5ee82bc99
support newer pytest-docker ( #10336 )
2024-03-04 11:09:56 +05:45
skshetry
bc95b650a4
limit pytest version to <8.1 ( #10334 )
...
Change in pytest==8.1.0 breaks `flaky` plugin.
See https://github.com/box/flaky/issues/198 .
2024-03-04 10:31:58 +05:45
skshetry
257ea5f4cb
tests: use default branch for rev ( #10332 )
...
`isolate` fixture don't run in plugin's tests.
So the tests will fail to run if you have `init.defaultBranch`
something other than `master`.
2024-03-01 11:16:59 +05:45
AlexandreKempf
5f7acd4cbe
add subdir test to integration tests
2024-02-29 13:50:30 -05:00
AlexandreKempf
13325ea89b
use explicit code to fix copy bug
2024-02-29 13:50:30 -05:00
AlexandreKempf
fd71434df5
fix test
2024-02-29 13:50:30 -05:00
AlexandreKempf
2ff4ff2daa
implement logic for closest parent detection
2024-02-29 13:50:30 -05:00
AlexandreKempf
0ee6d6eba8
add more extensive tests
2024-02-29 13:50:30 -05:00
pre-commit-ci[bot]
7c34370464
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-02-29 13:50:30 -05:00
AlexandreKempf
b67b254287
add test
2024-02-29 13:50:30 -05:00
AlexandreKempf
212928a1fa
fix plots nested configuration
2024-02-29 13:50:30 -05:00
dependabot[bot]
5be23cfd4e
build(deps-dev): update dvc-data requirement from <3.14,>=3.13 to >=3.13,<3.15 ( #10329 )
...
build(deps-dev): update dvc-data requirement
Updates the requirements on [dvc-data](https://github.com/iterative/dvc-data ) to permit the latest version.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/3.13.0...3.14.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 19:28:29 +05:45
skshetry
4d3a631e60
fix PathInfo instantiation in Python 3.12 ( #10328 )
2024-02-28 14:40:56 +05:45
skshetry
491155cdb0
experimental upath implementation for dvcfilesystem ( #10302 )
2024-02-27 20:08:12 +05:45
skshetry
9bb4501bf0
ds add: use --dvc/--dvcx/--url flags to accept url ( #10326 )
...
* ds add: use --dvc/--dvcx/--url flags to accept url
.. instead of relying on `scheme://`
I think this is more simpler from user's perspective, easier to
teach and easier to maintain as we won't have to do url parsing.
I am taking inspiration from `cargo install` has `--git`/`--rev`, etc.
to install from alternate sources.
```console
Options:
--version <VERSION> Specify a version to install
--index <INDEX> Registry index to install from
--registry <REGISTRY> Registry to use
--git <URL> Git URL to install the specified crate from
--branch <BRANCH> Branch to use when installing from git
--tag <TAG> Tag to use when installing from git
--rev <SHA> Specific commit to use when installing from git
--path <PATH> Filesystem path to local crate to install
--root <DIR> Directory to install packages into```
```
The `name` is also changed from an option to an argument.
### Examples
```console
dvc ds add example-get-started --dvc [email protected] :iterative/example-get-started.git
dvc ds add dogs --dvcx dogs
dvc ds add dogs --url s3://bucket/key/path
```
* add --version alias
2024-02-27 20:06:38 +05:45
skshetry
4cb658f96c
dataset: provide --rev to track a different dvcx dataset version or git rev ( #10325 )
...
* dataset: provide --rev to track a different dvcx dataset version or git rev
* fix message
* add tests; disallow --rev for url datasets
2024-02-27 08:26:07 +05:45
Matt Seddon
9f66897bf7
plots: support x-dict in nested dvc.yaml ( #10318 )
2024-02-26 19:54:20 +00:00
skshetry
84a1750013
cli: fix typo in help message, replace / with : in scp style url ( #10322 )
2024-02-26 21:59:28 +05:45
skshetry
6cb37ac27b
tests: add tests for datasets ( #10321 )
2024-02-26 21:45:09 +05:45
skshetry
f38490c897
dvc.api for dataset ( #10316 )
...
* add support for tracking remote dataset
This adds support for virtually tracking a
dataset such as dvcx dataset, dataset from remote dvc/git
registries, and cloud-versioned remotes.
This PR introduces two different commands under `ds` namespace:
`add` and `update`.
`dvc ds add` command adds the dataset to `dvc.yaml` and tracks
the sources in `dvc.lock` file. Similarly, `dvc ds update`
updates the sources in `dvc.lock` file.
Example Usage:
```console
dvc ds add --name dogs --url dvcx://dogs # tracking dvcx dataset
# tracking dvc/git registries
dvc ds add --name example --url dvc://[email protected] /iterative/example.git
# cloud-versioned-remotes
dvc ds add --name versioning --url s3://cloud-versioning-demo
```
To update, specify the name.
```console
dvc ds update <name>
```
`dvc ds add` freezes (in the traditional sense of `dvc import/import-url`).
It keeps a "specification" of the dataset in `dvc.yaml` and also freezes
information about the dataset in the `dvc.lock` file. They are kept
inside `datasets` section in both `dvc.yaml` and `dvc.lock` files.
This metadata is used in the pipelines. You can add a dependency to your
stage using `ds://` scheme, followed by the name of the dataset in
`dvc.yaml` file. As it is used in pipelines, the `name` of the dataset
has to be unique in the repository. Different dataset of same names
are not allowed. On `dvc repro`, `dvc` copies the frozen information
about the particular dataset into the `deps` field for the stage in
`dvc.lock`. On successive invocation, `dvc` will compare the information
from the deps field of the lock with the frozen information in the
`datasets` section and decides whether to rerun or not.
As the dataset is frozen, `dvc repro` won't rerun until the dataset is
updated via `dvc update`.
Here are some examples for how `dvc.yaml` looks like:
```yaml
datasets:
- name: dogs
url: dvcx://dogs
type: dvcx
- name: example-get-started
url: [email protected] :iterative/example-get-started.git
type: dvc
path: path
- name: dogs2
url: dvcx://dogs@v2
type: dvcx
- name: cloud-versioning-demo
url: s3://cloud-versioning-demo
type: url
```
```yaml
schema: '2.0'
datasets:
- name: dogs
url: dvcx://dogs
type: dvcx
version: 3
created_at: '2023-12-11T10:32:05.942708+00:00'
- name: example-get-started
url: [email protected] :iterative/example-get-started.git
type: dvc
path: path
rev_lock: df75c16ef61f0772d6e4bb27ba4617b06b4b5398
- name: cloud-versioning-demo
url: s3://cloud-versioning-demo
type: url
meta:
isdir: true
size: 323919
nfiles: 33
files:
- relpath: myproject/model.pt
meta:
size: 106433
version_id: 5qrtnhnQ4fBzV73kqqK6pMGhTOzd_IPr
etag: 3bc0028677ce6fb65bec8090c248b002
# truncated
```
The pipeline stages keep them in `dataset` section of individual deps.
```console
dvc stage add -n train -d ds://dogs python train.py
cat dvc.yaml
```
```yaml
# truncated
stages:
train:
cmd: python train.py
deps:
- ds://dogs
```
When it is reproduced, the `dvc.lock` will look something like follows:
```yaml
# truncated
stages:
train:
cmd: python train.py
deps:
- path: ds://dogs
dataset:
name: dogs
url: dvcx://dogs
type: dvcx
version: 3
created_at: '2023-12-11T10:32:05.942708+00:00'
```
* remodeling
* remove non-cloud-versioned remotes
* improve deserializing; handle invalidation
* dvc.api for dataset
* expose the API in the top-level
2024-02-26 21:29:16 +05:45
skshetry
34d80fbfce
add support for tracking remote dataset ( #10287 )
...
* add support for tracking remote dataset
This adds support for virtually tracking a
dataset such as dvcx dataset, dataset from remote dvc/git
registries, and cloud-versioned remotes.
This PR introduces two different commands under `ds` namespace:
`add` and `update`.
`dvc ds add` command adds the dataset to `dvc.yaml` and tracks
the sources in `dvc.lock` file. Similarly, `dvc ds update`
updates the sources in `dvc.lock` file.
Example Usage:
```console
dvc ds add --name dogs --url dvcx://dogs # tracking dvcx dataset
# tracking dvc/git registries
dvc ds add --name example --url dvc://[email protected] /iterative/example.git
# cloud-versioned-remotes
dvc ds add --name versioning --url s3://cloud-versioning-demo
```
To update, specify the name.
```console
dvc ds update <name>
```
`dvc ds add` freezes (in the traditional sense of `dvc import/import-url`).
It keeps a "specification" of the dataset in `dvc.yaml` and also freezes
information about the dataset in the `dvc.lock` file. They are kept
inside `datasets` section in both `dvc.yaml` and `dvc.lock` files.
This metadata is used in the pipelines. You can add a dependency to your
stage using `ds://` scheme, followed by the name of the dataset in
`dvc.yaml` file. As it is used in pipelines, the `name` of the dataset
has to be unique in the repository. Different dataset of same names
are not allowed. On `dvc repro`, `dvc` copies the frozen information
about the particular dataset into the `deps` field for the stage in
`dvc.lock`. On successive invocation, `dvc` will compare the information
from the deps field of the lock with the frozen information in the
`datasets` section and decides whether to rerun or not.
As the dataset is frozen, `dvc repro` won't rerun until the dataset is
updated via `dvc update`.
Here are some examples for how `dvc.yaml` looks like:
```yaml
datasets:
- name: dogs
url: dvcx://dogs
type: dvcx
- name: example-get-started
url: [email protected] :iterative/example-get-started.git
type: dvc
path: path
- name: dogs2
url: dvcx://dogs@v2
type: dvcx
- name: cloud-versioning-demo
url: s3://cloud-versioning-demo
type: url
```
```yaml
schema: '2.0'
datasets:
- name: dogs
url: dvcx://dogs
type: dvcx
version: 3
created_at: '2023-12-11T10:32:05.942708+00:00'
- name: example-get-started
url: [email protected] :iterative/example-get-started.git
type: dvc
path: path
rev_lock: df75c16ef61f0772d6e4bb27ba4617b06b4b5398
- name: cloud-versioning-demo
url: s3://cloud-versioning-demo
type: url
meta:
isdir: true
size: 323919
nfiles: 33
files:
- relpath: myproject/model.pt
meta:
size: 106433
version_id: 5qrtnhnQ4fBzV73kqqK6pMGhTOzd_IPr
etag: 3bc0028677ce6fb65bec8090c248b002
# truncated
```
The pipeline stages keep them in `dataset` section of individual deps.
```console
dvc stage add -n train -d ds://dogs python train.py
cat dvc.yaml
```
```yaml
# truncated
stages:
train:
cmd: python train.py
deps:
- ds://dogs
```
When it is reproduced, the `dvc.lock` will look something like follows:
```yaml
# truncated
stages:
train:
cmd: python train.py
deps:
- path: ds://dogs
dataset:
name: dogs
url: dvcx://dogs
type: dvcx
version: 3
created_at: '2023-12-11T10:32:05.942708+00:00'
```
* remodeling
* remove non-cloud-versioned remotes
* improve deserializing; handle invalidation
2024-02-26 21:28:39 +05:45
Matt Seddon
89537a77b5
studio: add subdir to live metrics post messages to support live experiments in monorepos ( #10303 )
2024-02-21 12:05:31 +11:00
Peter Rowlands
c72e1fb0b8
repo.imports: remove unused code
2024-02-20 15:08:07 +09:00
pre-commit-ci[bot]
9fbe5d929d
[pre-commit.ci] pre-commit autoupdate ( #10310 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.2.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.1...v0.2.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-20 09:09:04 +05:45
Ruslan Kuprieiev
0635b0ca15
index: check dep.hash_name for imports
2024-02-19 15:16:57 +02:00
Ruslan Kuprieiev
06abf73c22
deps: bump dvc-data >=3.13.0
2024-02-15 23:18:49 +02:00
pre-commit-ci[bot]
5e2c441d28
[pre-commit.ci] pre-commit autoupdate ( #10301 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.2.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.2.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-15 09:03:30 +05:45
skshetry
6efd699267
deps: bump dvc-studio-client to >=0.19,<1 ( #10298 )
2024-02-10 09:56:09 +05:45
skshetry
f639ab50ab
simplify message in studio login/logout flow ( #10297 )
2024-02-09 23:02:35 +05:45
dependabot[bot] and skshetry
953ae56536
build(deps-dev): update dvc-data requirement from <3.11,>=3.10 to >=3.10,<3.12 ( #10295 )
...
* build(deps-dev): update dvc-data requirement
Updates the requirements on [dvc-data](https://github.com/iterative/dvc-data ) to permit the latest version.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/3.10.0...3.11.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
* bump dvc-ssh to >=4,<5.
---------
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] >
2024-02-08 18:00:37 +05:45
dependabot[bot]
ac0397e536
build(deps-dev): update pytest requirement from <8,>=7 to >=7,<9 ( #10274 )
...
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest ) to permit the latest version.
- [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.0.0...8.0.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 17:20:10 +05:45
skshetry
b243ccab1f
tests: remove pytest-lazy-fixture ( #10294 )
...
Since it's no longer being maintained. See https://github.com/TvoroG/pytest-lazy-fixture/issues/65 .
2024-02-08 17:10:58 +05:45
dependabot[bot]
c31a5d9df9
build(deps): bump pre-commit/action from 3.0.0 to 3.0.1 ( #10290 )
...
Bumps [pre-commit/action](https://github.com/pre-commit/action ) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/pre-commit/action/releases )
- [Commits](https://github.com/pre-commit/action/compare/v3.0.0...v3.0.1 )
---
updated-dependencies:
- dependency-name: pre-commit/action
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>
2024-02-08 17:07:25 +05:45
Matt Seddon
44b78b81b9
repo: add get_subrepo_relpath helper for studio live experiments monorepo support
2024-02-06 04:02:37 +02:00
skshetry
d25cb79e0a
deps: bump dvc-objects, dvc-data and scmrepo ( #10280 )
...
* deps: bump dvc-objects, dvc-data and scmrepo
* bump dvc-azure
* fix typo
2024-02-06 03:36:37 +02:00
skshetry
79238fd2a3
cli: sort commands ( #10281 )
2024-02-05 23:54:26 +05:45
skshetry
2bf7bd990a
pep584ify: use dict merge operator ( #10279 )
...
This was introduced in Python 3.9. The change makes
dict merges 'obvious' and looks cleaner.
I haven't changed `.update()` to `|=` (update operator),
as I find the former to be more readable and "obvious".
2024-02-03 15:58:07 +05:45
skshetry
68b9ecb95c
chore: update to ruff 0.2 ( #10278 )
...
update to ruff 0.2
2024-02-02 12:07:49 +05:45
Dave Berenbaum
594716ec79
status: add option to skip imports ( #10277 )
2024-02-01 21:49:50 +02:00
Ruslan Kuprieiev
84b2e685e2
repo: index: don't set cache storage if there is no out.cache ( #10275 )
2024-02-01 15:15:35 +02:00
Ruslan Kuprieiev and pre-commit-ci[bot]
0bb2f3d10c
repo: site_cache_dir: separate subdir from root_dir ( #10273 )
...
* repo: site_cache_dir: separate subdir from root_dir
Currently we join scm root_dir with subrepo root dir to have something that would represent that subrepo, but that directory might not exist in reality as we might be using a bare git repo. So we should just treat those as separate things.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update __init__.py
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-01 09:32:22 +02:00
skshetry
f42468bcaf
Revert "build(deps-dev): update pytest requirement from <8,>=7 to >=7,<9" ( #10269 )
2024-01-31 12:31:21 +05:45
dependabot[bot]
28545c0cc5
build(deps-dev): update pytest requirement from <8,>=7 to >=7,<9 ( #10259 )
...
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest ) to permit the latest version.
- [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.0.0...8.0.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-31 11:12:41 +05:45
dependabot[bot]
0ee752d464
build(deps-dev): update pytest-docker requirement from <3,>=1 to >=1,<4 ( #10262 )
...
Updates the requirements on [pytest-docker](https://github.com/avast/pytest-docker ) to permit the latest version.
- [Release notes](https://github.com/avast/pytest-docker/releases )
- [Changelog](https://github.com/avast/pytest-docker/blob/master/CHANGELOG.md )
- [Commits](https://github.com/avast/pytest-docker/compare/v1.0.0...v3.0.0 )
---
updated-dependencies:
- dependency-name: pytest-docker
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-31 11:12:32 +05:45
skshetry
9a1bcd7f1d
nit: fit statement/expr in the same line instead of hanging ( #10267 )
...
The code are wrapped due to us using line-length=79 before, but now some
of the code can easily fit in 88 chars.
The formatter did not change this automatically when we changed line-length,
because of magic trailing commas that gets added when they turn into multiple lines.
Black/ruff wrapping them in parens and splitting them into multiple lines
was making it difficult to read.
2024-01-30 18:23:04 +05:45
skshetry
422caa13c4
introduce dataset dependency ( #10164 )
...
* introduce dataset dependency
* support Annotated types
* split
* drop dvc.api.datasets
* drop pydantic and typing-extensions
* drop dvc.datasets
2024-01-30 16:44:28 +05:45
skshetry
3b56c40add
remove Python 3.8 compat for threadpoolexecutor.shutdown(cancel_futures=True) ( #10266 )
2024-01-30 15:40:38 +05:45
skshetry
b647475a64
drop Python 3.8 support ( #10265 )
...
* drop Python 3.8
Note that this PR only makes typing related changes.
Other changes can be done once this gets merged, they
are relatively few in numbers.
* bump build python version
* add typing_extensions to lint group
2024-01-30 11:33:25 +02:00
skshetry
966adec21c
ruff: enable RET501 ( #10264 )
2024-01-30 14:03:49 +05:45
skshetry
4eb073868c
update ruff to 0.1.15 ( #10263 )
...
update ruff
2024-01-30 13:09:55 +05:45
Peter Rowlands
196c1c7a17
exp show: output executor info for successful exps when available
2024-01-29 16:33:48 +09:00
Ruslan Kuprieiev and dberenbaum
df5b582c3f
fetch: handle missing/modified imports ( #10220 )
...
tests: pull after imp-url no-download
Co-authored-by: dberenbaum <[email protected] >
2024-01-25 18:34:06 +02:00
Dave Berenbaum
20edd72a43
status: always show json ( #10253 )
2024-01-24 03:09:02 +02:00
Ruslan Kuprieiev
ba06c0504a
deps: bump dvc-data to >=3.8 ( #10254 )
2024-01-24 02:42:07 +02:00
18a9fea4af
hydra: support plugins ( #10240 )
...
* hydra: support plugins
* Update dvc/utils/hydra.py
* fix tests
* load plugins after some checks run
---------
Co-authored-by: Ruslan Kuprieiev <[email protected] >
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
Co-authored-by: skshetry <[email protected] >
2024-01-23 19:58:14 +05:45
pre-commit-ci[bot]
bfb65870a4
[pre-commit.ci] pre-commit autoupdate ( #10238 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.14](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.11...v0.1.14 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-23 10:06:34 +05:45
Matt Seddon
a122b80d52
update min version of dvc-render to 1.0.1 ( #10250 )
2024-01-23 04:29:43 +02:00
dberenbaum
71afff6db3
exp save: add recursive arg
2024-01-19 12:57:27 +09:00
dberenbaum
48ec86de28
exp save: add target arg
2024-01-19 12:57:27 +09:00
Ruslan Kuprieiev and Dave Berenbaum
78ab929ad1
config: azure: don't forget Coerce() for timeouts ( #10247 )
...
Co-authored-by: Dave Berenbaum <[email protected] >
2024-01-19 03:19:37 +02:00
Dave Berenbaum
5c31189a91
repro --pull: always pull deps ( #10187 )
...
* repro --pull: always pull deps
* drop unused allow_missing args
2024-01-18 05:11:03 +02:00
skshetry
b46bd9ca65
top-level plot collections: fail on empty dict ( #10233 )
...
* top-level plot collections: skip empty dict
* tighten schema for plots; require key name
2024-01-12 09:56:50 +05:45
skshetry
d711ecda04
cli: remove fix_subparsers ( #10229 )
...
It does not look like we need this.
2024-01-11 15:54:44 +05:45
skshetry
e3b0f190ab
Revert "import-db: fix metavar" ( #10228 )
2024-01-11 13:30:10 +05:45
skshetry
eae4fe21ce
cli: lowercase metavar by default ( #10227 )
...
* cli: lowercase metavar by default
* add tests for help message
2024-01-11 12:53:17 +05:45
skshetry
1c06302a47
import-db: fix metavar ( #10226 )
2024-01-11 11:35:08 +05:45
skshetry
71669225c5
db: atomically create output file ( #10224 )
2024-01-09 14:32:26 +05:45
pre-commit-ci[bot]
60c5f202a1
[pre-commit.ci] pre-commit autoupdate ( #10223 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.1.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.1.11 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-09 13:28:14 +05:45
skshetry
426a7149a4
database: drop dbt implementation ( #10222 )
...
* remove dbt implementation in the database
* lazy load client
* fixup
* fixup
* fix server side cursors
* use exec_driver_sql for testing connection
2024-01-05 19:16:12 +05:45
skshetry
0100c14d6a
import-db: support importing a table ( #10219 )
...
* import-db: support importing a table
* unhide the import-db command
2024-01-05 09:26:07 +05:45
Ruslan Kuprieiev
f1de712710
index: data_tree: handle partial imports
2024-01-04 18:17:45 +02:00
dberenbaum
bf5fe95c30
imp_url: gitignore during to_remote op
2024-01-03 16:12:45 +02:00
Ruslan Kuprieiev
fe008d9748
index: load files from import
2024-01-03 13:16:05 +02:00
Ruslan Kuprieiev
dad464285e
deps: bump dvc-data to >=3.6
2024-01-02 18:20:34 +02:00
skshetry
d218b6ac2b
import-db: simplify error message ( #10214 )
2024-01-02 20:40:51 +05:45
Ruslan Kuprieiev
041ea17233
index: fix storage for imports
2024-01-02 13:38:39 +02:00
Ruslan Kuprieiev
987b1c4213
output: get rid of out.odb
...
We use out.files to build index these days, making out.odb redundant.
2024-01-02 07:24:43 +02:00
Ruslan Kuprieiev
f2e479422f
index: mark remote as read_only for imports
...
Fixes #10206
2023-12-28 08:08:45 +02:00
Ruslan Kuprieiev
73820cc596
push: don't try to update meta for non versioned remotes
...
Per https://github.com/iterative/dvc/pull/10191#issuecomment-1870716262
2023-12-28 06:11:16 +02:00
skshetry
e7b695dbef
fix partial fetch ( #10205 )
...
Closes #10199 . Bumps dvc-data to >=3.4.
2023-12-27 19:05:33 +05:45
Guido Diepen and skshetry
27a8222e2a
webhdfs: implement support for basic auth and proxy ( #10075 )
...
* remote: add user key to config schema webhdfs
This was already supported according to documentation, but missing in
code
Fixes: 10062
* remote: add password key to support Basic Auth
* remote: add data_proxy_target for webhdfs remote
This key is needed to construct a potential rewrite dictionary in
webhdfs to deal with HDFS behind High Availability Proxy servers
* bump dvc-webhdfs
---------
Co-authored-by: skshetry <[email protected] >
2023-12-26 08:37:07 +05:45
pre-commit-ci[bot]
5850639a97
[pre-commit.ci] pre-commit autoupdate ( #10200 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.8 → v0.1.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.8...v0.1.9 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-26 08:36:30 +05:45
dberenbaum
f2b56bbb8a
drop lock from params_show and metrics_show
2023-12-25 10:15:38 +02:00
dependabot[bot]
cf8195c829
build(deps-dev): bump mypy from 1.7.1 to 1.8.0 ( #10189 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.7.1 to 1.8.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.7.1...v1.8.0 )
---
updated-dependencies:
- dependency-name: mypy
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-12-24 15:31:31 +05:45
Ruslan Kuprieiev
402c107823
ui: push: use blank pbar for the header
...
Same as in `dvc fetch`.
2023-12-23 04:40:23 +02:00
Ruslan Kuprieiev
b73754edd1
deps: bump dvc-data to >=3.3
2023-12-23 01:19:21 +02:00
Ruslan Kuprieiev
333f2f04f0
push: set desc explicitly
...
Leftover from https://github.com/iterative/dvc/pull/10190
2023-12-22 08:03:29 +02:00
Ruslan Kuprieiev
470c50a22b
push: use set_size instead of set_total
...
From https://github.com/iterative/dvc/pull/10191
2023-12-22 07:55:52 +02:00
Ruslan Kuprieiev
01f49b7f24
push: only collect needed files when updating version_ids
2023-12-22 07:38:26 +02:00
Ruslan Kuprieiev
19f2246bee
push: leave ui messages
...
Same as we do in pull/fetch/checkout.
2023-12-22 05:51:54 +02:00
Ruslan Kuprieiev
6a44783d72
index: load meta from outs.files
2023-12-22 05:26:18 +02:00
Ruslan Kuprieiev
98a286d88d
repo: don't forget to close data_index when dropping
2023-12-22 05:26:18 +02:00
Ruslan Kuprieiev
499c2dda01
testing: don't forget to check dvc.lock for cloud versioned dirs
2023-12-21 01:05:08 +02:00
Ruslan Kuprieiev
5f2615ff53
deps: bump dvc-data to >=0.3.1
2023-12-21 01:05:08 +02:00
dberenbaum
457d615a51
gc: fix test_gc_no_dir_cache
2023-12-20 00:21:23 +02:00
dberenbaum
827f9a7f03
gc: add --skip-failed
2023-12-20 00:21:23 +02:00
pre-commit-ci[bot]
7821e126fe
[pre-commit.ci] pre-commit autoupdate ( #10183 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.7 → v0.1.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.7...v0.1.8 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-19 15:31:12 +05:45
Helio Machado and pre-commit-ci[bot]
72ab5a12df
param: optimize fix for exponential memory allocation ( #10180 )
...
* param: simplify fix for exponential memory allocation
* Apply suggestions from code review
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove `deepcopy` again
* Restore deepcopy
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-18 08:37:31 +05:45
Helio Machado and pre-commit-ci[bot]
abcd70b9cf
param: fix exponential memory allocation ( #10178 )
...
* param: fix exponential memory allocation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-16 20:08:44 +05:45
Ruslan Kuprieiev
3e4e143bee
deps: update dvc-data to >=3
2023-12-15 08:02:40 +02:00
dependabot[bot]
766b43bc2d
build(deps): bump actions/upload-artifact from 3 to 4 ( #10170 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 10:11:19 +05:45
dependabot[bot]
92c66b2331
build(deps): bump actions/download-artifact from 3 to 4 ( #10171 )
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 10:11:06 +05:45
Ruslan Kuprieiev
b1211366cd
dvcfs: make repo creation lazy
2023-12-14 21:43:24 +02:00
Ruslan Kuprieiev
92823f1d84
tests: repro: don't depend on particular order
2023-12-14 21:43:24 +02:00
dependabot[bot]
f3fa67440d
build(deps): bump github/codeql-action from 2 to 3
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-12-14 06:04:54 +02:00
Ruslan Kuprieiev
3275f1ebf5
deps: bump dvc-data to >= 2.25.0
2023-12-14 05:04:36 +02:00
Ruslan Kuprieiev
4392af6d95
cli: debug: finalize profiler reports on errors
...
Even if a command failed, it might still be useful to look at the profiler report.
2023-12-13 20:34:30 +02:00
pre-commit-ci[bot]
a02c5a7405
[pre-commit.ci] pre-commit autoupdate ( #10153 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.1.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.1.7 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-13 19:56:38 +05:45
skshetry
dec1ac7346
deps: update dvc-data to >=2.24 ( #10158 )
2023-12-13 16:55:45 +05:45
Ruslan Kuprieiev
8ccae0a086
dvcfs: implement basic du
2023-12-12 23:56:19 +02:00
skshetry
3c31234151
unprotect: add progress bar ( #10152 )
...
* unprotect: add progress bar
* Update pyproject.toml
2023-12-12 09:47:35 +05:45
skshetry
77b451d118
database: rename Adapter to Client ( #10151 )
2023-12-09 11:28:47 +05:45
Ruslan Kuprieiev
1d47b03cd5
bench: mark test_get/import as flaky ( #10148 )
...
Sometimes seeing those error out in 2.x and early 3.x with:
```
ERROR: unexpected error - [Errno 95] no more link types left to try out: [Errno 95] Operation not supported
```
It seems like we've fixed it at some point, but I was not able to quickly find a link.
2023-12-08 17:15:57 +02:00
Dave Berenbaum
7c898cfad7
exp: ignore workspace errors during push/pull ( #10128 )
...
* exp: ignore workspace errors during push/pull
* refactor fetch revs warning
* mention failed revs are skipped
* add workspace arg to brancher
* pass workspace=False only for dvc exp push/pull
2023-12-07 13:46:18 +02:00
dependabot[bot]
1f07023d17
build(deps): bump actions/setup-python from 4 to 5 ( #10145 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 09:06:35 +05:45
Ruslan Kuprieiev
1e6b0242aa
deps: bump dvc-data to 2.22.6 ( #10144 )
2023-12-06 18:41:52 +02:00
skshetry
3c1e9ee9be
run test on 3.12 ( #10140 )
2023-12-06 21:47:50 +05:45
Ruslan Kuprieiev
9622157565
deps: bump dvc-data to >=2.22.5 ( #10141 )
2023-12-06 13:32:37 +02:00
Ruslan Kuprieiev
6ff4342f02
deps: bump dvc-data to >=2.22.4 ( #10139 )
...
* deps: bump dvc-data to >=2.22.4
* Update test_odb.py
2023-12-06 11:51:05 +02:00
Matt Seddon
5bb72b36cb
plots: standardise across DVC/Studio/VS Code (#9931 )
...
* standardise plot data output
* add data required for new anchors to renderer properties
* feed dvc-render updates into API output
* update --json --split api with new data types (send split anchor definitions as strings)
* accomodate zoom and pan anchor
* switch anchor_revs to revs_with_datapoints
* accomodate height and width anchors
* drop terrible idea of holding all data as strings
* fix plot having multiple x fields
* move inferred properties off vega converter class
2023-12-06 11:25:13 +11:00
Ruslan Kuprieiev
1aed230cd0
deps: bump dvc-oss to >=2.22.0
...
First release with unpinned fsspec version.
2023-12-05 18:48:36 +02:00
pre-commit-ci[bot]
c50b2e1e71
[pre-commit.ci] pre-commit autoupdate ( #10100 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.5 → v0.1.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.5...v0.1.6 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-05 21:36:22 +05:45
dependabot[bot]
34bc410075
build(deps-dev): bump mypy from 1.7.0 to 1.7.1 ( #10108 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.7.0 to 1.7.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.7.0...v1.7.1 )
---
updated-dependencies:
- dependency-name: mypy
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-12-05 21:23:17 +05:45
47ff40da0c
studio: Add Studio authentication to DVC ( #10074 )
...
* Add Studio authentication to DVC
Implemented a new feature to authenticate DVC with Iterative Studio. This includes generating an access token, starting device login, checking if user code is authorized, and handling any request exceptions. Furthermore, the commit creates a new authentication command for DVC. This feature was added to allow DVC users to authenticate with Studio, which is necessary for functionality such as sharing live experiments and notifying Studio about pushed experiments.
* Add authentication validation and error handling to DVC Studio
This commit introduces validation for scopes used in DVC Studio's authentication process. If an unsupported scope is passed, the user will receive an error message listing the invalid scopes and the program will return an error status. Additionally, this commit changes the program's exit behavior when device code authorization fails or authentication process is successful, replacing 'sys.exit' with appropriate returned values.
* Add logout functionality to DVC Studio commands
This commit introduces the logout command for DVC Studio. It allows users to manually log out from DVC Studio via the command line interface. The logout command only removes the user's token if it exists, otherwise, it will print an error message and return an error status. This adds an extra layer of control for the users and enhances the security for the usage of DVC Studio.
* Improve User Authentication process for DVC Studio
Implemented a new 'token' command facilitating users to check their authentication token while operating with DVC Studio. This implementation enhances user experience by providing the ability to validate logged-in status. If not logged in, it rightly prompts an error, ensuring secure access.
* Add unit tests for auth commands
Unit tests are added for the authentication commands used in DVC Studio. The modifications include tests for login with invalid scope, standard login, logout, and token commands. The tests verify successful execution and appropriate responses for different user authentication scenarios, thereby increasing the robustness and reliability of the auth module.
* Update unit tests for auth commands
Unit tests for DVC Studio authentication commands have been updated. These checks verify successful execution and appropriate responses under various authentication scenarios, including login with invalid scope, standard login, logout, and token commands in order to enhance the robustness and reliability of the auth module.
* Add unit tests and modify authentication function in studio utils
This commit adds several new unit tests in test_studio.py. Tests for start_device_login and check_token_authorization functionality are included to verify the correct behavior of these methods. Moreover, it also modifies the authentication function in studio.py for improving the robustness. Changes in the function aimed to handle unexpected error scenarios and make the code more resilient.
* Refactor mock_response usage in tests and add test_auth.py
This commit refactors the way mock responses are used in test_studio.py to follow DRY principles, changing the private _mock_response to a public reusable function. It also adds a new file, test_auth.py, that provides functional tests for authorisation methods, ensuring their functionality. The patches in test_auth.py helps test different cases like expired authorization and successful authorization. Furthermore, test_auth.py also tests if correct configuration is set on successful authorization. Modifications on the method test_auth_login_arguments in test_auth.py were made to refine test cases, thus making the tests more precise and straightforward.
* Refactor error handling in `dvc/utils/studio.py`
Refactored error handling by removing redundant code blocks and introducing more detailed logging for request exceptions. This makes the failure cases handled explicitly and streamlines the traceability. Also, tests for authorization have been refined and more specific cases like 'expired authorization' have been included.
* Replace `auth` module with `studio` in DVC
Renamed all instances of `auth` to `studio`, as we are moving the authentication process into a new module `studio`. This includes changes to command names, classes, and test file names to reflect the updated module. It improves the organization of the authentication features related to DVC Studio, separating them from other types of authorization.
* Remove device login methods in utils/studio
Removed methods related to device login and token authorization in `utils/studio.py` and its corresponding test cases. These functionalities have been moved to the `dvc-studio-client` module to decouple the login process and make the code maintainable. Updated the dependencies in `pyproject.toml` to use the new `dvc-studio-client` module. Also, updated the command/studio to use the `dvc-studio-client` module for auth functionalities.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update dvc-studio-client dependency in pyproject.toml
The "dvc-studio-client" dependency in pyproject.toml is updated from a specific git commit to v0.16.0, removing the TODO comment. This change was made because the necessary features from the PR linked in the TODO comment have been merged and released in v0.16.0, making the git commit unnecessary. Now the code is cleaner and easier to track with versioned dependency.
* Update DVC Studio components and simplify authentication process
This commit modifies several parts of the ‘dvc/commands/studio.py’ and updates DVC Studio Client's version in 'pyproject.toml' for compatibility with the changes.
Primarily, the authentication process has been simplified. The unnecessary generation of a random token name is removed while initiating authorization in the run method of CmdStudioLogin class, enhancing the code quality.
Changes made in 'dvc/commands/studio.py' are mainly restructuring the code to adapt to the newer version of DVC Studio Client, including changes to the scopes and methods used from this client.
The corresponding changes were also reflected in unit tests. The test files 'tests/func/test_studio.py' and 'tests/unit/command/test_studio.py' are updated in accordance with the approach now used in 'dvc/commands/studio.py'.
* Remove unnecessary tests and update StudioClient methods
Removed functional test file `test_studio.py`from DVC to move it to studio client. The new mock response no longer needs a full testing file, simplifying our test environment.
In `dvc/commands/studio.py`, adjusted function imports to align with new StudioClient function names, which better indicate their purpose: `initiate_authorization` changed to `get_access_token`.
Additionally, `DEFAULT_SCOPES` was removed from both `dvc/commands/studio.py` and `tests/unit/command/test_studio.py`, simplifying the token acquisition process and removing unnecessary global variable. The `--scopes` command, if needed, can be passed directly without requiring a default fallback.
The corresponding changes were reflected in unit tests : the mock functions in `tests/unit/command/test_studio.py` were changed to align with the new authentication method, and updated the usage of the `get_access_token` function.
* Update token success message in dvc/commands/studio.py
This commit replaces f-string (formatted string literal) with a regular string for the success message after token authentication. The change was necessary as the variable `token_name` is already being passed as a formatted string, thus no need for f-string in the success message sentence. This makes code cleaner and more consistent.
* Refactor tests in `test_studio.py` for better readability
* Updated terminology in `studio.py` and `test_studio.py`
Changes terminology from 'authorize' to 'authenticate' to better align with common practices and improve understanding. Also fixed the `get_access_token` function in 'test_studio.py' where 'AuthorizationExpired' was replaced with 'AuthenticationExpired' for better error handling.
* Change 'dvc' to 'DVC' in `studio.py`
Updates all instances of 'dvc' to 'DVC' in `studio.py` for enhanced consistency with the rest of the project. This change aims to standardize the usage of the term across all project files.
* Improve Studio commands information clarity
Updated descriptions in various commands on 'dvc/commands/studio.py' focused on improving clarity and context. Authentication message, command helper, and descriptions have been expanded to provide better understanding. Also, 'dvc' has been changed to 'DVC' in 'studio.py' for consistency with the rest of the project files.
* Not relevant anymore
* Change argument name in studio login
Renamed the argument from "--use-device-code" to "--no-open" in the login function under the Studio authentication. The option's name was changed to make it more intuitive and better align with its actual effect, avoiding potential user confusion. Corresponding changes have also been made in unit tests.
* Modify flag for Studio login function
Updated the argument name from "-d" to "-o" in `studio.py` for the Studio login function. The change makes the argument's intention clearer for users. This is significant in improving user interaction with the feature and mitigating potential user misinterpretation.
* Apply suggestions from code review
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2023-12-05 16:30:10 +05:45
Peter Rowlands
ee35ec10a2
cache migrate: include dvc.lock dependencies in --dvc-files
2023-12-05 15:42:26 +09:00
Ruslan Kuprieiev
e18fd34b2c
testing: bench: use --dataset instead of --size ( #10134 )
...
This is no longer just about size (e.g. we have mnist/openorca/used-cars),
so the --dataset makes more sense.
2023-12-04 14:43:37 +02:00
Ruslan Kuprieiev
c0b64b0a10
testing: bench: add openorca ( #10133 )
...
Need to move the data into dvc at some point.
2023-12-04 12:43:50 +02:00
Ruslan Kuprieiev and pre-commit-ci[bot]
3927e75ef1
testing: bench: add pytest_report_header ( #10132 )
...
* testing: bench: add pytest_report_header
Useful for sanity checks in logs.
* Update dvc/testing/benchmarks/plugin.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-04 11:23:12 +02:00
skshetry
e5ae5ef24b
add security-extend to codeql queries ( #10131 )
2023-12-04 13:29:29 +05:45
skshetry
e187508f40
database: fix ui issues ( #10129 )
2023-12-04 13:27:05 +05:45
skshetry
8768b50aed
experimental: support connection strings for databases ( #10125 )
...
* experimental: support connection strings for databases using connectorx
This adds an experimental support for connector strings using connectorx.
User has to provide config for the connection strings with:
Example:
```console
dvc config --local db_connection.pg postgres://user:pass@localhost:5432/database
```
And then, they can import using:
```console
dvc import-db --sql 'query' --conn pg
```
Check supported databases and how to configure in https://sfu-db.github.io/connector-x/databases.html .
This `db_connection` config is subject to change.
connectorx still has the same problem with dbt as before: no support for streaming,
but it'll be a bit more simpler to configure with the connection strings.
* add pandas to deps
* sqlalchemy
* dbt streaming sql
* fix test
* remove connectorx
* remove check in set
* use mode='wb' for serialization
2023-12-03 19:23:09 +05:45
skshetry
7c61463d2d
tests: do not setup pytest plugin entrypoint ( #10121 )
...
We should not register a pytest plugin automaticallly, as we may
have fixtures that might override user's fixtures. Also, it might
raise import errors as in https://github.com/iterative/dvc/issues/10118 .
We can still use this as a plugin ourselves by setting the following
in `conftest.py` file.
```python
pytest_plugins = ['dvc.testing.plugin']
```
2023-11-29 12:05:46 +05:45
Peter Rowlands
b0d0315689
import/get: support pre-fetching LFS objects from Git-LFS repos
2023-11-29 14:39:54 +09:00
Peter Rowlands
7edcb6b1e5
deps: bump scmrepo minver to 1.5.0
2023-11-29 14:39:54 +09:00
Ruslan Kuprieiev
b6d231f9cf
testing: import virtualenv lazily
...
Fixes https://github.com/iterative/dvc/issues/10118
2023-11-28 22:20:34 +02:00
Ruslan Kuprieiev
322fcec5ca
bench: test_sharing: use fetch instead of pull
2023-11-28 19:31:32 +02:00
Ruslan Kuprieiev
1e5b3603cc
bench: test fetch instead of pull
...
`pull` is literally `fetch` + `checkout` and our main interest there is downloading, so let's just test fetch instead.
2023-11-28 19:31:32 +02:00
Ruslan Kuprieiev
ffa630e8d5
push: handle missing/failed version_aware file
...
Previously we used recorded index which had stub entries
for missing/failed outputs, but now we actually collect
everything ourselves and those are missing.
2023-11-28 18:52:46 +02:00
Ruslan Kuprieiev
1e9b60dc48
deps: bump dvc-data to >=2.22.1
2023-11-27 16:17:42 +02:00
skshetry
83dd2b2a7b
test: import-db: test for external model ( #10112 )
...
* test: import-db: test for external model
* close repo
2023-11-27 16:13:44 +05:45
Ivan Shcheklein
d238350a2d
fix(config): respect global config env variable
2023-11-23 20:51:52 +02:00
skshetry
06b9196371
pytest.ini_options: add --benchmark-skip to suppress pytest-benchmark warning with xdist ( #10106 )
...
We don't run benchmarks here, and benchmarking should always be a separate command than regular test run.
2023-11-23 19:55:23 +05:45
skshetry
b4f42242c9
tmp_dir: fix object initialization for Python 3.12 ( #10105 )
2023-11-23 16:00:30 +05:45
skshetry and pre-commit-ci[bot]
fbdb566079
remove pytest-virtualenv ( #10103 )
...
* remove pytest-virtualenv
It does not look like it's being actively maintained.
* force virtualenv
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-23 14:53:39 +05:45
skshetry
3d7bbb8492
tests: add functional test for db ( #10101 )
...
* tests: add functional test for db
* fix test
2023-11-22 16:15:07 +05:45
skshetry
fd7c891217
implement import-db command ( #10040 )
...
* implement import-db command
* generate .dvc file
* update
* fix tests
* pin dbt-fal
* try to run on ci
* use os.chdir
* fix
* revert
* require dbt-core>=1.5
* add db config schema
* remove platformdirs constraints
* use logger.getChild
* improve error messaging
* rename cli flag --export-format to --output-format
* use feature flag for db config
* hide command from dvc commands list
* refactor dependency._get
* remove todo
* refactor dependency._get
* fix dbt installation check
2023-11-21 19:38:50 +05:45
Ruslan Kuprieiev
2b3b15f767
deps: bump dvc-data to 2.22.0
...
Related https://github.com/iterative/dvc/issues/10059
2023-11-17 20:01:57 +02:00
Ruslan Kuprieiev
8c9358957c
push: fix cloud versioning
2023-11-15 16:28:17 +02:00
Ivan Shcheklein
86dd0785a0
add tests for the index param keys
2023-11-14 13:21:44 +02:00
Ivan Shcheklein
a8aec51c35
add params collection to index
2023-11-14 13:21:44 +02:00
Ruslan Kuprieiev
e9f2da4451
repo: drop_data_index: delete all first level nodes
2023-11-13 11:23:08 +02:00
dependabot[bot] and Ruslan Kuprieiev
8d23a5e65a
build(deps-dev): bump mypy from 1.6.1 to 1.7.0 ( #10088 )
...
* build(deps-dev): bump mypy from 1.6.1 to 1.7.0
Bumps [mypy](https://github.com/python/mypy ) from 1.6.1 to 1.7.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.6.1...v1.7.0 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
* fix misc mypy errors
---------
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2023-11-13 10:59:32 +02:00
skshetry
b2fc194e2b
fix name of the loggers used ( #10085 )
...
__name__ looks something like `dvc.commands.diff`, but if we are already instantiating
root logger with `dvc`, it adds up to create something like `dvc.dvc.commands.diff`.
We should be using a root logger here instead.
2023-11-10 15:54:08 +05:45
dependabot[bot] and Saugat Pachhai
0def298b8c
build(deps-dev): bump mypy from 1.5.1 to 1.6.1 ( #10035 )
...
* build(deps-dev): bump mypy from 1.5.1 to 1.6.1
Bumps [mypy](https://github.com/python/mypy ) from 1.5.1 to 1.6.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.5.1...v1.6.1 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
* pre-commit autoupdate
* mypy fixes
---------
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-11-10 15:40:57 +05:45
skshetry
d678773b53
remove more pylint suppression comments ( #10084 )
2023-11-10 15:19:52 +05:45
skshetry
519cce3fe4
logger: type-safe logger.trace ( #10083 )
...
* use logger.getChild from `dvc.log` instead of `logging.getLogger`
I got tired adding `# type: ignore[attr-defined]` while using `logger.trace`.
So, now you need to import logger from `from dvc.log import logger` and
create a child logger using `logger.getChild(__name__)`. `logger.getChild`
will return a logger type-hinted as a logger having a `trace` method.
So, from now on, instead of:
```python
import logging
logger = logging.getogger(__name__)
```
you'll have to do following:
```python
from dvc.log import logger
logger = logger.getChild(__name__)
```
* remove all dvc imports from dvc.logger
* use Tqdm back
2023-11-10 12:55:49 +05:45
skshetry
cbc111b519
remove flake8/bandit ( #10082 )
...
ruff already runs most of the flake8/bandit checks
2023-11-09 21:26:37 +05:45
skshetry
4ee8f554a5
use ruff formatter ( #10081 )
...
Replaces black with ruff-formatter, and isort with ruff.
2023-11-09 20:58:58 +05:45
skshetry
06565e18b4
remove pylint suppression comments ( #10080 )
2023-11-09 20:31:50 +05:45
skshetry
2085bc8053
drop pylint from linter checks ( #10079 )
...
drop pylint
2023-11-09 19:25:28 +05:45
Peter Rowlands
14cbf6470d
artifacts get: fix issue where global/system config could be ignored
2023-11-09 16:19:02 +09:00
Ivan Shcheklein
36fa116e75
chore(deps): bump scmerepo to 1.4.1+
...
After this fix https://github.com/iterative/scmrepo/issues/280 , to make sure that we don't install by mistake an older version in Studio.
2023-11-06 15:23:18 +09:00
Ivan Shcheklein
97f3d07480
fix(readme): link to VS Code extension ( #10063 )
2023-11-02 20:37:32 -07:00
dberenbaum
4a2c4f76e5
fix for DVCFileSystem().ls()
2023-10-31 23:38:21 +02:00
dberenbaum
eb8999a86b
gc: force no prompts during dry run
2023-10-31 10:24:01 -05:00
dberenbaum
db870335e3
gc: don't prompt when for dry run
2023-10-31 10:24:01 -05:00
Piotr Bielak
23d2ed3d59
Unroll dict-comprehension in matrix test
2023-10-31 08:05:38 -05:00
skshetry
46db3ac419
Update dvc/parsing/__init__.py
2023-10-31 08:05:38 -05:00
Piotr Bielak
fcc69ab6eb
parsing: Add key to matrix stages
...
This commit adds the `key` property to the templaing context of `matrix`
stages. Similarly to `foreach` stages, the `key` is available using
`${key}` substitution.
Fixes #10043
2023-10-31 08:05:38 -05:00
Ruslan Kuprieiev
d60557dd08
deps: bump dvc-data to >=2.20.0
2023-10-31 04:51:30 +02:00
dberenbaum
fc5147767f
api: make exp_show return float instead of None for zeroes
2023-10-30 13:54:31 -05:00
skshetry
89b4beb7a4
daemon: ipc to log pid from the child ( #10058 )
...
* daemon: ipc to log pid from the child
* fix tests to use pid
* also test for updater/analytics keyword
2023-10-30 20:47:52 +05:45
skshetry
48f1f52c1b
refactor: dvc.daemon ( #10045 )
...
* minor refactor to dvc.daemon
* fix tests
* run daemon only inside a subprocess
2023-10-30 11:09:55 +05:45
Ruslan Kuprieiev
3fee81f1be
push: use index push
2023-10-26 20:58:45 +03:00
Peter Rowlands
0bfce0b643
exp apply: use force dvc-checkout by default
2023-10-26 14:48:41 +09:00
Peter Rowlands
d9b2e67a0b
Revert "Enable forcing exp apply (unsaved files in the workspace)"
...
This reverts commit 3661b8998b .
2023-10-26 14:48:41 +09:00
Ruslan Kuprieiev
4a0d56a793
cli: DictAction: set default metavar ( #10047 )
2023-10-20 16:46:14 +03:00
skshetry
825c823a37
avoid failing on standard streams that are None. ( #10041 )
...
See https://docs.python.org/3/library/sys.html#sys.__stdin__ .
> [!Note]
> Under some conditions stdin, stdout and stderr as well as the original values __stdin__, __stdout__ and __stderr__ can be None. It is usually the case for Windows GUI apps that aren’t connected to a console and Python apps started with pythonw.
This is a best-effort solution. External libraries (eg: `tqdm`) and future code that is unaware of this stuff may still fail.
As a console application, `stdout`/`stderr` being `None` is not really something that we should support in general.
Regarding the failure of the daemon, it has been fixed so that it'll always have a stream attached (if not, it falls back to
/dev/null). Today, this is a problem in daemon only if the main process is run with no streams attached, which is not
something that we support or go on length to support.
It is tricky to write tests for this case, and I could not come up with one. Also decided not to test daemon as it should no longer be a problem.
2023-10-19 22:16:26 +05:45
skshetry
b23ba58cd6
tests: daemon: log body of the request ( #10039 )
...
log body of the request
2023-10-19 17:16:34 +05:45
skshetry
8fb67b71a5
expose test webserver as an executable for easier testing ( #10037 )
2023-10-19 16:28:47 +05:45
skshetry
5693775459
refactor: use int as the factory ( #10036 )
...
makes it thread-safe if we need in the future. Also looks a bit clean.
2023-10-19 15:31:33 +05:45
skshetry
17f5508f49
daemon: add logging support, tests and generalize popen based runs for future ( #10033 )
...
* use popen to run updater/analytics in detached mode
subprocess does not provide a way to avoid a zombie process. Not to confuse with orphaned processes, which will be `wait`-ed by `pid 1`.
It might not work for long-running processes, but I don't think zombie processes are going to be a problem for us, as the parent process immediately exits after spawning a child process.
Even in case of `queue` based experiment runner, parent will exit before than the child process. So I don't think it's a requirement here. But it does feel wrong to leak the processes, so I have to sleep on that.
---
This PR:
1. makes `daemonized` process inherit the logging verbosity, so if the parent process used `-vv`, the daemonized process will run the same way.
2. Add `DVC_DAEMON_LOGFILE` envvar, that the daemon will log to the file. By default, the verbosity is the same as running parent processes. Without `DVC_DAEMON_LOGFILE`, the output will be redirected to `/dev/null`.
3. Adds debug/trace for updater/analytics.
I hope by doing this, we can make our life easier on debugging and make daemon more transparent/observable.
* add tests
* fixes
* use kwargs
* pass all os.environ with some modified
2023-10-19 15:14:41 +05:45
skshetry
c39ce6157d
redirect fds rather than closing ( #10028 )
2023-10-18 22:29:45 +05:45
skshetry
d59231febf
log exit code and pid on verbose-verbose logging ( #10031 )
...
log exit code and pid on verbose logging
Is useful for debugging on daemon.
2023-10-18 17:11:07 +05:45
Ruslan Kuprieiev
b35b9420a1
config: azure: expose timeouts ( #10027 )
2023-10-17 19:10:08 +03:00
Ruslan Kuprieiev
46c65fdba2
worktree: don't modify index entries in place ( #10024 )
2023-10-17 16:30:19 +03:00
Matt Seddon
5f8afb911e
Remove VegaConverter TODO and update misleading comment
2023-10-16 20:42:48 -04:00
Dave Berenbaum
ef226a96cd
analytics: fix mac not sending reports ( #10026 )
2023-10-16 23:28:29 +03:00
Heinz-Alexander Fuetterer
8ea9d3edef
chore: fix typos ( #10022 )
2023-10-14 12:54:57 +05:45
dependabot[bot]
cafcefa758
build(deps-dev): bump pylint from 2.17.6 to 3.0.1
...
Bumps [pylint](https://github.com/pylint-dev/pylint ) from 2.17.6 to 3.0.1.
- [Release notes](https://github.com/pylint-dev/pylint/releases )
- [Commits](https://github.com/pylint-dev/pylint/compare/v2.17.6...v3.0.1 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-10-13 23:50:16 +03:00
Ruslan Kuprieiev
72fd265a8f
get-url/ls-url: support remote:// with in-repo config
2023-10-13 18:58:23 +03:00
Brady Johnson
c2f8115c9a
exp rename: verify exp name follows ref format
2023-10-13 11:27:05 +09:00
Peter Rowlands
e5dd2bb2cc
cache migrate: add --dvc-files flag to migrate .dvc and dvc.lock files
2023-10-12 09:47:08 +09:00
Ruslan Kuprieiev
50d6788411
exp: preserve hidden alias -M for --message ( #10006 )
...
Followup for #10005
2023-10-10 04:41:43 +03:00
Matt Seddon
37a4a36dc7
exp save: use -m for --message short option
2023-10-09 09:03:44 -04:00
Dave Berenbaum
279f8cb68f
repro --pull: don't fail for cloud-versioned remotes ( #10001 )
...
* repro --pull: don't fail for cloud-versioned remotes
* raise RunCacheNotSupported for cloud-versioned remotes
2023-10-06 18:11:30 +03:00
dberenbaum
8a70877748
fix artifact name test
2023-10-05 13:39:06 -04:00
dberenbaum
f60091e64f
bump gto
2023-10-05 13:39:06 -04:00
Matt Seddon
3661b8998b
Enable forcing exp apply (unsaved files in the workspace)
2023-10-04 16:12:52 -04:00
Matt Seddon
dcb678d606
exp rename: update help text
2023-10-04 15:14:49 -04:00
Ruslan Kuprieiev
6394a503be
deps: bump dvc-data to >=2.18.1
...
To ensure people are getting a fix related to iterative/dvc#9826
2023-10-04 16:03:22 +03:00
Ruslan Kuprieiev
00c10eb6bd
repo: bump site_cache_dir salt
...
Caused by a cache corruption fix in https://github.com/iterative/dvc-data/pull/447
2023-10-04 04:01:26 +03:00
Ruslan Kuprieiev
b0a25f11b7
deps: bump dvc-data to >= 2.18.0
2023-10-04 04:01:26 +03:00
Dave Berenbaum
bc1a700254
gc: add dry option and log num removed objs ( #9952 )
...
Closes #9330
2023-09-30 02:33:44 +00:00
Ruslan Kuprieiev
9f4b67cec4
site_cache_dir: use .dvc/tmp/btime and fallback to st_birthtime
...
This will ensure that we won't be using index cache if you delete your repo
and start/clone fresh.
2023-09-29 20:30:28 +03:00
Ruslan Kuprieiev
4d5a0163ea
diff: handle granular targets
2023-09-28 21:54:06 +03:00
Ruslan Kuprieiev
0053b1ccd2
index: check parents when trying to detect hash_name
2023-09-28 21:54:06 +03:00
Ruslan Kuprieiev
f981500862
cli: data_sync: show warning about missing default remote ( #9979 )
2023-09-26 23:29:33 +03:00
David de la Iglesia Castro
a6e0d68cd2
run-cache: Load newest instead of first found in os.listdir. ( #9908 )
...
Closes https://github.com/iterative/dvc/issues/9420
2023-09-26 15:07:13 +03:00
David de la Iglesia Castro
2aa2bef9d6
artifacts: Bring back name_is_compatible. ( #9972 )
...
* artifacts: Bring back `name_is_compatible`.
Unfortunately, DVCLive was importing this function so I am bringing back the name for backwards compatibility.
* Update artifacts.py
2023-09-26 14:32:27 +03:00
skshetry
95c9790368
Revert "build: temporarily pin setuptools-scm" ( #9978 )
...
This reverts commit 7b40968741 .
2023-09-26 13:47:31 +05:45
pre-commit-ci[bot]
b8106e50fb
[pre-commit.ci] pre-commit autoupdate ( #9976 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.290 → v0.0.291](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.290...v0.0.291 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-26 08:55:57 +05:45
dependabot[bot]
ccc84a0a43
build(deps-dev): bump pylint from 2.17.5 to 2.17.6 ( #9977 )
...
Bumps [pylint](https://github.com/pylint-dev/pylint ) from 2.17.5 to 2.17.6.
- [Release notes](https://github.com/pylint-dev/pylint/releases )
- [Commits](https://github.com/pylint-dev/pylint/compare/v2.17.5...v2.17.6 )
---
updated-dependencies:
- dependency-name: pylint
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-09-26 08:55:03 +05:45
Ruslan Kuprieiev
2e1166d520
fetch: don't clear pbars
...
There is more we can do during the `Fetching` stage, but it will
require additional tweaks, so just keeping it simple here.
Similar to https://github.com/iterative/dvc/pull/9974
2023-09-26 01:27:59 +03:00
Ruslan Kuprieiev
18b4d610d6
checkout: tweak messages and don't clear pbars
2023-09-25 23:17:26 +03:00
Ruslan Kuprieiev
b77218aa5b
fetch: use ui.progress instead of raw Callback
2023-09-25 22:21:42 +03:00
Peter Rowlands (변기호)
12b572596f
repo: add API and CLI for reading artifacts ( #9770 )
...
* deps: add GTO as a dependency
* deps: bump dvc-studio-client to 0.13.0
* fs: return downloaded count in fs.download()
* utils: add type hints for resolve_output
* artifacts: add `dvc artifacts get`
* api: add `api.artifacts_show`
* artifacts get: support --remote, --remote-config
* gto: update to 1.3.0
2023-09-25 20:21:34 +05:45
dberenbaum
e8362db9bc
exp: force add include_untracked paths
2023-09-25 19:02:38 +09:00
skshetry
6502234022
ci: build: split publishing and building into separate jobs ( #9970 )
...
https://github.com/pypa/gh-action-pypi-publish suggests separating building from publishing
for security reasons.
2023-09-23 18:05:03 +05:45
Ruslan Kuprieiev
1fa9f1f6ea
index: fix fs cache location
...
Existing logic might result in weird fs cache location like
`.dvc/cache/files/md5/fs`, while we really only want
`.dvc/cache/fs`, since it is not an odb cache.
2023-09-23 05:44:05 +03:00
Peter Rowlands
4645975ee3
gc -c: always gc both 2.x and 3.x odbs for remotes
2023-09-22 09:55:50 +09:00
Peter Rowlands
5139da5f8e
output: return both 2.x and 3.x remote odbs in get_used_objects
2023-09-22 09:55:50 +09:00
Peter Rowlands
f801eb4380
studio: remove redundant type cast
2023-09-21 15:20:27 +09:00
Peter Rowlands
acb54a3462
deps: bump dvc-data to 2.16.3
2023-09-21 15:20:27 +09:00
Peter Rowlands
7b40968741
build: temporarily pin setuptools-scm
2023-09-21 15:08:28 +09:00
pre-commit-ci[bot]
b85608121f
[pre-commit.ci] pre-commit autoupdate ( #9960 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.288 → v0.0.290](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.288...v0.0.290 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-19 09:29:23 +05:45
Ruslan Kuprieiev
4bf19debb4
index: don't load external outs
2023-09-19 01:21:04 +03:00
BradyJ27 and daavoo
51dc78a135
exp: add rename command ( #9812 )
...
* Add renaming for finished experiments
* Update arg parser
* Add rename by rev
* Add rename tests
* Change remove to rename; Refactor arguments error
* Remove --rev; Use resolve_name; Add test
* Update testing; Fix python3.10 rename failure
* Update rename test
* Update tests and error handling
* exp rename: Add `--force`.
Fail if experiment new_name exists but allow to overwrite it.
---------
Co-authored-by: daavoo <[email protected] >
2023-09-18 17:01:32 +00:00
Peter Rowlands
784a5b5199
api.DVCFileSystem: fix fsspec compliance
2023-09-16 00:05:31 +09:00
dberenbaum
bf2af86397
drop irrelevant errors in tests/unit/render/test_match.py
2023-09-14 10:36:46 -04:00
dberenbaum
08d37912d6
add util function to group plot definitions
2023-09-14 10:36:46 -04:00
dberenbaum
0e66aa2b6a
add integration test for dvclive 2.x->3.x plots
2023-09-14 10:36:46 -04:00
dberenbaum
f9340ed7b9
add test cases for plots group_definitions
2023-09-14 10:36:46 -04:00
dberenbaum
e6ddb31525
keep config_file in plot_id if multiple config_files
2023-09-14 10:36:46 -04:00
dberenbaum
7f2ddf943f
dropped config_file from calls to _matches
2023-09-14 10:36:46 -04:00
dberenbaum
3d664f1dbf
drop unused arg
2023-09-14 10:36:46 -04:00
Dave Berenbaum and David de la Iglesia Castro
cdbed33386
Update dvc/render/match.py
...
Co-authored-by: David de la Iglesia Castro <[email protected] >
2023-09-14 10:36:46 -04:00
dberenbaum
e1599ae280
add test for merging plot ids across config files
2023-09-14 10:36:46 -04:00
pre-commit-ci[bot]
ee367dcb1b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-09-14 10:36:46 -04:00
dberenbaum
7e7d0e1dd8
merge plot ids across dvc.yaml files
2023-09-14 10:36:46 -04:00
dberenbaum
d81a1bbf56
make exp run --dry imply --temp
2023-09-13 15:06:46 +09:00
Bilel Omrani
ba0834caa0
Fix Repo instantiation error when using fsspec chaining API
2023-09-12 21:41:48 +03:00
pre-commit-ci[bot]
9a4578cc72
[pre-commit.ci] pre-commit autoupdate ( #9937 )
...
updates:
- [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1 )
- [github.com/astral-sh/ruff-pre-commit: v0.0.287 → v0.0.288](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.287...v0.0.288 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-12 20:44:17 +05:45
Helio Machado and skshetry
ccf461bc84
Migrate from PyPI tokens to Trusted Publishers ( #9933 )
...
* Migrate Python repositories to Trusted Publishers
* Update build.yaml
* Update .github/workflows/build.yaml
Co-authored-by: Helio Machado <[email protected] >
* Update build.yaml
---------
Co-authored-by: skshetry <[email protected] >
2023-09-12 20:27:37 +05:45
Ruslan Kuprieiev
e9c7cd63a2
dvcfs: add tests for fsid
2023-09-11 21:20:12 +03:00
skshetry
33b6c1d876
params/metrics: cache remote files ( #9932 )
2023-09-11 19:13:47 +05:45
skshetry
f2673acb53
metrics/params: support reading from cached files and directories, use repo-relative path consistently ( #9909 )
...
* metrics
* fix path handling
* fix dvc metrics diff
* params show/diff
* share common utils
* remove onerror_collect from exp_show
* extract read_params
* move around code
* fix path handling on Windows
* rename _show to _gather_metrics
* remove _collect_vars
* add tests
* Revert "remove _collect_vars"
This reverts commit 6d2cb500c32a882497406d66fb13e613790c3436.
* bring back _collect_vars
* fix tests
* fix paths
2023-09-11 17:41:37 +05:45
David de la Iglesia Castro
7e52c233ae
import: Expose --force flag ( #9927 )
2023-09-08 18:43:13 +05:45
Peter Rowlands (변기호)
408d23f285
repo: use is_repo_import to check for imports in outs_graph ( #9925 )
...
repo: use is_repo_import to check for imports
2023-09-08 16:13:11 +05:45
David de la Iglesia Castro
7fb8a9a427
checkout: Expose --allow-missing arg. ( #9919 )
2023-09-07 09:55:50 +00:00
Ruslan Kuprieiev
784f5a5d63
deps: bump dvc-data to 2.16.0
2023-09-07 04:13:56 +03:00
Ruslan Kuprieiev
1710e379f5
dvcfs: add basic fsid
...
Implements fsspec's fsid https://github.com/fsspec/filesystem_spec/pull/1122
Required for #9904
2023-09-07 04:13:56 +03:00
Joe Scott
aa9636e2ae
Typo rwlock.py#107 Remove -> Removed
...
closes #9920
2023-09-06 09:21:29 -04:00
Peter Rowlands
65d412bfa3
stage.run: always set DVC_ROOT env var
2023-09-06 18:43:52 +09:00
Peter Rowlands
20606d480b
exp show: drop internal legacy checkpoint support
2023-09-06 14:58:53 +09:00
dependabot[bot]
e2aedb7e97
build(deps): bump actions/checkout from 3 to 4 ( #9911 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 08:43:43 +05:45
pre-commit-ci[bot]
bacae48f96
[pre-commit.ci] pre-commit autoupdate ( #9910 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.286 → v0.0.287](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.286...v0.0.287 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-05 08:34:38 +05:45
Peter Rowlands
bf119e70a9
exp run: track files for skipped/run-cached stages
2023-09-04 16:23:54 +09:00
BradyJ27
3528c37b66
move: Alias mv to move ( #9905 )
...
* Alias mv to move
* Add alias for mv
* Add aliases for rm, exp rm, exp ls
2023-09-03 22:11:41 +03:00
Ruslan Kuprieiev
f47d21b0c2
[WIP] ls-url/get-url/import-url: introduce --fs-config ( #9888 )
...
ls-url/get-url/import-url: introduce --fs-config
Fixes #9886
2023-09-01 02:17:17 +03:00
Ruslan Kuprieiev
7a9da0f4a1
cli: utils: DictAction: limit split to 2 elements ( #9887 )
2023-08-30 03:15:21 +03:00
Ruslan Kuprieiev
8bfe8e3328
site_cache_dir: add salt to token ( #9884 )
...
See comment in the code.
2023-08-29 17:48:38 +03:00
Ruslan Kuprieiev
c290d5c008
repo: don't try to gitignore custom cache locations ( #9883 )
...
If user uses some custom cache location, there is really no reason for us
to try to gitignore it, as we have no idea what he is planning to do with
that and overall it often might be sign of this being misused. Maybe we could
also have some warnings/errors, but that's out of scope for this PR.
Fixes https://github.com/iterative/studio/issues/7405
2023-08-29 16:31:37 +03:00
Matt Seddon
3c2c1fe72a
Remove dead Stage method ( #9881 )
2023-08-29 13:10:40 +00:00
pre-commit-ci[bot]
0602eca00e
[pre-commit.ci] pre-commit autoupdate ( #9882 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.285 → v0.0.286](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.285...v0.0.286 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-29 07:17:32 +05:45
Matt Seddon
5b69a16ea7
Add DVC_ROOT env var into queued experiment runs ( #9879 )
2023-08-28 22:37:03 +00:00
Dave Berenbaum and pre-commit-ci[bot]
ef260eaf2e
exp show: show metrics that include separator ( #9819 )
...
* exp show: show metrics that include separator
* sort using partition instead of lpartition
* handle ':' in file and metric names
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix sorting with leading :
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-24 10:31:56 -04:00
Peter Rowlands
88431b1c0a
update: preserve def_path for version-aware import update
2023-08-24 16:16:43 +09:00
dependabot[bot]
bd2dc9dfed
build(deps): bump rtCamp/action-slack-notify from 2.2.0 to 2.2.1 ( #9874 )
...
Bumps [rtCamp/action-slack-notify](https://github.com/rtcamp/action-slack-notify ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/rtcamp/action-slack-notify/releases )
- [Commits](https://github.com/rtcamp/action-slack-notify/compare/v2.2.0...v2.2.1 )
---
updated-dependencies:
- dependency-name: rtCamp/action-slack-notify
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-08-24 08:30:32 +05:45
Dave Berenbaum and pre-commit-ci[bot]
428c094b8d
update msg for multiple overlapping outputs ( #9862 )
...
* update msg for multiple overlapping outputs
* update msg for multiple overlapping outputs
* fix type checking
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* use sets of stages to fix mypy errors
* fix tests/func/test_add.py::test_try_adding_multiple_overlaps
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-24 00:06:32 +03:00
Dave Berenbaum
fc955c1917
Rename partial add/remove benchmarks ( #9868 )
...
* Rename partial add/remove benchmarks
* Update dvc/testing/benchmarks/cli/stories/test_modify_data.py
2023-08-23 19:04:51 +05:45
skshetry
8cb7e4948d
tests: dvcfs: use fspath while testing ( #9872 )
...
get_file does not support PathLike objects. fsspec does not support them in get_file.
See https://github.com/fsspec/filesystem_spec/issues/896 .
Fixes test failures in dvc-webhdfs and dvc-hdfs.
2023-08-23 17:33:22 +05:45
skshetry
8e353f9fce
deps: unpin dvc-oss ( #9871 )
2023-08-23 17:20:41 +05:45
dependabot[bot]
a4e2bce5b2
build(deps-dev): bump dvc-oss from 2.19 to 2.20.0 ( #9870 )
...
Bumps [dvc-oss](https://github.com/iterative/dvc-oss ) from 2.19 to 2.20.0.
- [Release notes](https://github.com/iterative/dvc-oss/releases )
- [Commits](https://github.com/iterative/dvc-oss/compare/2.19.0...2.20.0 )
---
updated-dependencies:
- dependency-name: dvc-oss
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-08-23 08:45:43 +05:45
Ruslan Kuprieiev
736ca9a5e5
cache: check-missing: add type, oid name and oid
2023-08-23 02:07:32 +03:00
Ruslan Kuprieiev
cae1b1b647
ls/ls-url: use tqmd instead of humanize.naturalsize
...
Per https://github.com/iterative/dvc/pull/9857#issuecomment-1683185006
2023-08-22 20:21:08 +03:00
pre-commit-ci[bot] and Saugat Pachhai
3783d65dde
[pre-commit.ci] pre-commit autoupdate ( #9841 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.285](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.282...v0.0.285 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix ruff issues
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-08-22 15:22:57 +05:45
skshetry
0342e4f1c3
fix type hints ( #9863 )
2023-08-22 14:56:11 +05:45
skshetry
fc9af7a976
assert that the test is getting parametrized correctly ( #9859 )
...
Otherwise this may end up generating 0 or not enough commands, and passing tests
2023-08-19 13:57:48 +05:45
skshetry
fea59cfc52
tests: simplify test parametrization ( #9858 )
...
i.e. remove metafunc/pytest_generate_tests
2023-08-19 10:02:31 +05:45
Ruslan Kuprieiev
31ffce4fba
ls/ls-url: use humanize.naturalsize instead of tqdm
...
Currently we get odd formatting like
```
456 .devcontainer.json
139 .dvcignore
61.0 .gitattributes
96.0 .github
7.00 .gitignore
5.76k README.md
160 data
1.84k dvc.lock
519 dvc.yaml
4.00 foo
96.0 models
96.0 notebooks
225 params.yaml
46.0 requirements.txt
128 results
160 src
```
(notice stuff like 46.0)
and there doesn't seem to be a simple way to fix that in tqdm, in addition to
the general feeling that we are abusing tqdm's util for this.
So let's just use `humanize`, which gets us a more pleasing result:
```
456B .devcontainer.json
139B .dvcignore
61B .gitattributes
96B .github
7B .gitignore
5.8K README.md
160B data
1.8K dvc.lock
519B dvc.yaml
4B foo
96B models
96B notebooks
225B params.yaml
46B requirements.txt
128B results
160B src
```
2023-08-18 02:54:31 +03:00
dependabot[bot]
2da959acd1
build(deps-dev): update pytest-docker requirement from <2,>=1 to >=1,<3
...
Updates the requirements on [pytest-docker](https://github.com/avast/pytest-docker ) to permit the latest version.
- [Release notes](https://github.com/avast/pytest-docker/releases )
- [Changelog](https://github.com/avast/pytest-docker/blob/master/CHANGELOG.md )
- [Commits](https://github.com/avast/pytest-docker/compare/v1.0.0...v2.0.0 )
---
updated-dependencies:
- dependency-name: pytest-docker
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-08-18 00:41:47 +03:00
Ruslan Kuprieiev
72a42fce20
Update local.py
2023-08-18 00:31:52 +03:00
Dave Berenbaum and Ruslan Kuprieiev
1cbe64face
Update tests/unit/command/test_experiments.py
...
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2023-08-18 00:31:52 +03:00
dberenbaum
057b0112ea
exp: make run/save less noisy
2023-08-18 00:31:52 +03:00
Ruslan Kuprieiev
1805edbd32
import: set core.remote when both --remote and --remote-config are specified
...
From https://github.com/iterative/dvc/pull/9853#issuecomment-1682797083
2023-08-18 00:16:33 +03:00
Ruslan Kuprieiev
1723abcd79
ls/ls-url: introduce --size
...
I really need it only for studio right now, but this is really nice to have in a daily life
as well.
E.g.
```
$ dvc ls-url . --size
108 Metadata-and-Results.dvc
97 AudioMP3.dvc
97 AudioWAV.dvc
12181 README.md
54 .gitignore
168 .gitattributes
99 VideoFlash.dvc
312 LICENSE.txt
139 .dvcignore
96 AudioMP3
96 Asset
192 .dvc
64 Metadata-and-Results
64 AudioWAV
192 Scripts
64 VideoFlash
384 .git
96 .vscode
```
```
$ dvc list . --size
139 .dvcignore
168 .gitattributes
54 .gitignore
96 .vscode
96 Asset
96 AudioMP3
97 AudioMP3.dvc
64 AudioWAV
97 AudioWAV.dvc
312 LICENSE.txt
64 Metadata-and-Results
108 Metadata-and-Results.dvc
12181 README.md
192 Scripts
64 VideoFlash
99 VideoFlash.dvc
```
2023-08-18 00:08:48 +03:00
Ruslan Kuprieiev
3081c60414
dep: repo: handle dict as config ( #9853 )
2023-08-17 19:37:04 +03:00
dependabot[bot]
152991d878
build(deps-dev): bump mypy from 1.4.1 to 1.5.1 ( #9852 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.4.1 to 1.5.1.
- [Commits](https://github.com/python/mypy/compare/v1.4.1...v1.5.1 )
---
updated-dependencies:
- dependency-name: mypy
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-08-17 18:43:31 +05:45
skshetry
8098fd109d
plots: fix caching of legacy format ( #9849 )
...
* plots: fix caching of legacy format
* deps: bump dvc-data minversion to 2.15.0
2023-08-17 07:40:07 +05:45
Ruslan Kuprieiev
f0c1ff0219
fs: make _prepare_credentails/fs_args lazy ( #9848 )
...
* tests: unit: move s3 tests to dvc-s3
* deps: bump dvc-data to 2.14.0
* tests: unit: move azure tests to dvc-azure
2023-08-16 05:51:20 +03:00
Ruslan Kuprieiev
27c548575c
pyinstaller: declare dvc_ssh as hidden import ( #9840 )
...
Likely with removal of dvc-machine pyinstaller stopped picking up dvc_ssh automatically, so we need to declare it explicitly just like the rest of plugins.
2023-08-13 00:26:43 +03:00
Dave Berenbaum
79cc28501b
don't unprotect outs if not cached ( #9838 )
...
* don't unprotect outs if not cached
* fix tests
2023-08-11 18:12:25 +03:00
Peter Rowlands
a051b8b60f
remove support for dvc machine
2023-08-11 14:42:52 +09:00
Ruslan Kuprieiev
bee04c6d5f
deps: bump dvc-data to 2.13.1
...
Fixes #9733
2023-08-11 05:53:19 +03:00
Tibor Mach and Tibor Mach
04e891cef9
exp: Unify dvc exp list and show output ( #9808 )
...
* use _describe in exp list
* fix pre-commit checks
* simplistic fix
* single _describe, too complex
* slightly simpler
* even simpler
* simple, but with regex
* less substitutions
* describe public
* name handling in UI (tests need updating)
* fixed old tests
* lazy imports
---------
Co-authored-by: Tibor Mach <[email protected] >
2023-08-10 19:23:27 +09:00
Peter Rowlands
f5dda2d3cc
deps: bump scmrepo minver to 1.2.1
2023-08-10 19:21:06 +09:00
Ruslan Kuprieiev
e9545c8b55
fetch: merge config instead of updating
...
Update will replace sections instead of merging them together, which
is not desirable here.
Related https://github.com/iterative/studio/pull/6541
2023-08-10 04:52:08 +03:00
Ruslan Kuprieiev
09cfd911bb
config: use local config from local_dvc_dir
...
This used to work like so but by accident, when we didn't reload config
at all when collecting other revisions.
Regression from https://github.com/iterative/dvc/pull/9758
2023-08-10 04:36:42 +03:00
Ruslan Kuprieiev
4f61a63afd
config: resolve: handle ~ home dir
...
Fixes #9822
2023-08-10 03:28:32 +03:00
Ruslan Kuprieiev
c71b07b996
index: plot_keys: relparts -> parts
...
`_plot_sources` is messed up and needs a rewrite hard, but this will
do for now for studio purposes.
Related https://github.com/iterative/studio/pull/6541
2023-08-08 17:14:28 +03:00
Ruslan Kuprieiev
f4c0946f65
repo: cache: support some view options
2023-08-08 01:09:50 +03:00
Ruslan Kuprieiev
e35fb76dac
repo: add basic cache_check_missing
2023-08-07 22:23:49 +03:00
Ruslan Kuprieiev
722839dda6
fetch: add basic onerror
...
Related https://github.com/iterative/studio/pull/6541
2023-08-07 03:24:39 +03:00
Ruslan Kuprieiev
d5533348f7
deps: bump dvc-data to 2.12.0
2023-08-07 02:42:41 +03:00
dberenbaum
5d2ca11557
exp: abstract random name gen from repo
2023-08-06 13:13:11 +02:00
009b238807
Feature/hydra config modules ( #9783 )
...
* hydra: enable config modules
Lets the user specify Hydra configs in installed Python modules as well
as inside directories. Adds `hydra.config_module` to `.dvc/config`.
Fixes #9740
old tests green
tests for config modules
* hydra: fix linter errors
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* hydra: fix mypy error
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* hydra: fix tests
* Update dvc/utils/hydra.py
Co-authored-by: David de la Iglesia Castro <[email protected] >
* address comments
* convince mypy not to worry
* split long line
* fix test
* check for raised error in test
---------
Co-authored-by: Dom Miketa <[email protected] >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: David de la Iglesia Castro <[email protected] >
2023-08-06 10:39:09 +02:00
Ruslan Kuprieiev
43b371c43a
deps: bump dvc-data to 2.11.0
2023-08-04 15:42:25 +03:00
skshetry
d1160a28e0
dvc.yaml: add matrix-do ( #9725 )
...
* dvc.yaml: add matrix-do
* remove docs
* no do in matrix
* add types
2023-08-04 13:29:15 +05:45
skshetry
bc86fa0643
completion: fix broken completion generation for zsh ( #9797 )
...
`dvc commit --help` was also completely broken, which is also fixed.
This adds unit tests for completion generation for both zsh/bash, and
tests that --help works for all commands.
2023-08-04 09:21:01 +05:45
Saugat Pachhai (सौगात)
4067a86926
fix flaky test for repro --keep-going and --ignore
2023-08-04 05:46:58 +03:00
Ruslan Kuprieiev
9d1d51caa7
deps: bump dvc-data to 2.10.0
2023-08-04 03:40:36 +03:00
Peter Rowlands
761422638f
output: add progress for commit
2023-08-03 18:19:19 +09:00
Peter Rowlands
d01e2355d4
push/pull: generate explicit progress bars for dvc-data transfers
2023-08-03 18:19:19 +09:00
Peter Rowlands
aa94bfd66b
deps: bump dvc-data to 2.9.1
2023-08-03 18:19:19 +09:00
skshetry
b9b9f91084
ruff: enable autofix ( #9790 )
2023-08-03 11:08:29 +05:45
Ruslan Kuprieiev
8a382f51fd
deps: bump dvc-data to 2.9.0
2023-08-03 02:05:14 +03:00
Ruslan Kuprieiev
b235487ecc
ls/import/get: introduce --remote and --remote-config
...
Fixes #9656
2023-08-02 16:28:16 +03:00
pre-commit-ci[bot] and Saugat Pachhai
502b3df6c9
[pre-commit.ci] pre-commit autoupdate ( #9756 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](https://github.com/asottile/pyupgrade/compare/v3.9.0...v3.10.1 )
- [github.com/astral-sh/ruff-pre-commit: v0.0.278 → v0.0.281](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.278...v0.0.281 )
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0 )
* fix issues reported by ruff
- also remove redundant flake8 plugins
- remove beautysh as we don't have any scripts now
- remove pyupgrade as it is redundant due to ruff
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-08-02 18:08:30 +05:45
dependabot[bot]
5c2fd67e6d
build(deps-dev): bump pylint from 2.17.4 to 2.17.5 ( #9769 )
...
Bumps [pylint](https://github.com/pylint-dev/pylint ) from 2.17.4 to 2.17.5.
- [Release notes](https://github.com/pylint-dev/pylint/releases )
- [Commits](https://github.com/pylint-dev/pylint/compare/v2.17.4...v2.17.5 )
---
updated-dependencies:
- dependency-name: pylint
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-07-31 16:35:40 +05:45
Fabian Zills
ed34c0f0bd
dvc commit update description (#9760 )
...
* Update commit.py
* fix formatting
2023-07-31 08:45:52 +00:00
Ruslan Kuprieiev
7c60dfd3c5
deps: bump dvc-data to >=2.8.1
2023-07-30 04:18:09 +03:00
Ruslan Kuprieiev
225814fdde
dvc: don't use realpath where not needed
2023-07-30 02:24:00 +03:00
Ruslan Kuprieiev
ca0ad239f7
deps: bump dvc-data to 0.28.0
2023-07-28 01:37:46 +03:00
Ruslan Kuprieiev
f57ac609e9
deps: bump dvc-data to 0.27.1
2023-07-27 20:44:34 +03:00
Ruslan Kuprieiev
cc4f505f99
api: open/read: introduce remote_config
2023-07-26 16:29:14 +03:00
Ruslan Kuprieiev
4d011718a6
out: str: don't try to relpath paths outside of the repo
...
This is not very useful overall, but also results in a ValueError from
relpath on windows if your repo and output are on different drives.
2023-07-25 23:49:27 +03:00
Ruslan Kuprieiev
9c89841637
fetch: support passing config
...
For now not exposing it in CLI since there is no need/use yet.
Requirement for https://github.com/iterative/studio/pull/6541
2023-07-25 20:03:38 +03:00
Peter Rowlands
92cae74512
exp.collect: strip metrics from queued experiments
2023-07-25 20:57:15 +09:00
Ruslan Kuprieiev
73dad4780f
repo: brancher: reset parsed fields
...
Related #9754 and fixes `dvc fetch`.
2023-07-25 14:00:33 +03:00
Ruslan Kuprieiev
65ba9ba527
fs: get_cloud_fs: accept config instead of repo
...
Config is a more immutable thing and using `repo` is confusing and might be error
prone in the bigger picture.
Related to #9754
2023-07-25 00:58:47 +03:00
Peter Rowlands
7806afd4ad
fs: prefer generic.copy over fsspec fs.get()
2023-07-24 17:01:34 +09:00
Ivan Shcheklein
a9d0ac2ba9
fix(exceptions): add parent ctr init in InvalidArgumentError
2023-07-21 08:27:53 +02:00
Ruslan Kuprieiev
41df96fcdb
cli: ls/import/get: fix help
...
Leftover from https://github.com/iterative/dvc/pull/9747
2023-07-20 21:53:14 +03:00
Ruslan Kuprieiev
53ec0fa41d
ls/import/get: introduce --config
...
Adds support for `--config` to all three commands. For `ls` and `get`, it is
a purely runtime option that will merge the config you provide with target
repo's configs (similar to how .dvc/config.local works). E.g.
```
$ cat myconfig
[remote "myremote"]
access_key_id = 12345
secret_access_key = 98765
$ dvc get https://github.com/efiop/mydataregistry recent-grads.csv --config myconfig
```
In case of `dvc import`, the semantics are the same, but the value is also
recorded in the resulting dvcfile. E.g.
```
$ dvc import https://github.com/efiop/mydataregistry recent-grads.csv --config myconfig
...
$ cat recent-grads.csv.dvc
md5: 85c86eeb3afa6d1f7d11beedc644d28e
frozen: true
deps:
- path: recent-grads.csv
repo:
url: https://github.com/efiop/mydataregistry
config: myconfig
rev_lock: af22e06bbfe34d62a140437abf32f48b535944a7
outs:
- md5: f447e23a170a9f25a7799f069a1ba934
size: 26872
hash: md5
path: recent-grads.csv
```
This is the most general and powerful mechanism that we can give, that works
for everything from reconfiguring your default remote to completely changing
your remote layout and beyond (will be handy in the future).
Fixes #2466
2023-07-20 18:41:10 +03:00
Dave Berenbaum and Ruslan Kuprieiev
41194b7975
dvcfs: handle NotADirectoryError from datafs.ls ( #9746 )
...
* dvc_fs: ignore NotADirectoryError in ls
* deps: bump dvc-data to >= 2.6.0
* add test
---------
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2023-07-19 20:54:55 +03:00
skshetry
ea5f7d40c1
ruff: enable a few more rules, and merge tests' config with the main config ( #9739 )
2023-07-15 14:33:34 +05:45
dependabot[bot]
eb06351062
build(deps-dev): bump mypy from 1.3.0 to 1.4.1 ( #9664 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.3.0 to 1.4.1.
- [Commits](https://github.com/python/mypy/compare/v1.3.0...v1.4.1 )
---
updated-dependencies:
- dependency-name: mypy
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-07-14 20:30:47 +05:45
pre-commit-ci[bot] and Saugat Pachhai
ca3704997b
[pre-commit.ci] pre-commit autoupdate ( #9632 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.3.1 → v3.9.0](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.9.0 )
- https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit
- [github.com/astral-sh/ruff-pre-commit: v0.0.261 → v0.0.277](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.261...v0.0.277 )
- [github.com/codespell-project/codespell: v2.2.4 → v2.2.5](https://github.com/codespell-project/codespell/compare/v2.2.4...v2.2.5 )
* fix ruff complaints
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-07-14 20:11:15 +05:45
Saugat Pachhai (सौगात)
f1764bdc77
stage add: remove --external
2023-07-14 15:38:57 +03:00
skshetry
eb212a7ba3
repro: introduce --keep-going/--ignore to continue on error ( #9712 )
...
* repro: introduce --keep-going/--ignore to continue on error
`-k`/`--keep-going` will skip all dependents of a stage if it fails.
It'll still try to reproduce the other dependencies of the pending
targets, before it exits with a non-zero status.
`--ignore-errors` will treat any error during stage execution as a
success, and will continue executing other dependencies as if it
succeeded. Exits with 0 even on failure.
Also fixes:
* --force-downstream used to force everything even if one upstream nodes changed.
This used to work when we supported a single targets, but there could be independent
pipelines, so we should not force everything if any node changes.
Now we'll force reproduce the stage only if one of its dependency changed upstream
or it's upstream node was also forced.
* Makes `--downstream` more correct, in relation to `--allow-missing` and `--pull`.
Now we use an active graph for downstream/upstream logic instead of a subgraph.
Note that this does not affect the downstream logic though, as dvc always goes
downstream, so subgraph was no different than active graph.
The subgraph only did not have the upstream nodes.
* add tests
* add spacing in the message
2023-07-12 21:52:41 +05:45
skshetry
4c8f539c56
plots: log failures during datapoint conversions ( #9726 )
...
Fixes #9441 .
Note that we do merge props, and use that for all revision. So you may
see warning for multiple revisions.
2023-07-12 19:14:31 +05:45
skshetry
45aefc8423
parsing: pass config instead of loading every time ( #9729 )
2023-07-12 17:22:42 +05:45
Peter Rowlands
67a747a356
stage.cache: override both legacy+local cache link types on save/commit
2023-07-12 17:17:49 +09:00
Peter Rowlands
a5dda1b8ad
open_repo: return without entering context for both local and erepo
2023-07-12 14:45:11 +09:00
Peter Rowlands
dd4035bc05
repo: add get_data_index_entry to handle subrepo lookup
2023-07-12 14:45:11 +09:00
Peter Rowlands
f69b3533e4
erepo: drop dvcx for_write support
2023-07-12 14:45:11 +09:00
Ruslan Kuprieiev
1b2291ca83
fetch: catch collection errors in revisions
...
https://github.com/iterative/studio/pull/6541
2023-07-11 04:03:26 +03:00
Ruslan Kuprieiev
4de4f0fd65
fetch: introduce --type metrics/plots
...
Needed for https://github.com/iterative/studio/pull/6541 but is also generally useful.
2023-07-10 15:24:30 +03:00
Ruslan Kuprieiev
2ef2caafd3
deps: bump dvc-data to 2.5.0
2023-07-09 20:30:35 +03:00
Ruslan Kuprieiev
adcefbec66
output: pass explicit callback to hashfile.build()
2023-07-09 17:40:49 +03:00
Ruslan Kuprieiev
2102ba8465
output: fix formatting ( #9716 )
...
Regression from https://github.com/iterative/dvc/pull/9715
2023-07-09 19:50:00 +05:45
skshetry
d736d0a3ef
output: checkout: use f-string ( #9715 )
...
Regression from https://github.com/iterative/dvc/pull/9673 .
2023-07-09 11:49:22 +05:45
dberenbaum
0d1f1f6436
update link for external data sources
2023-07-05 19:42:07 +03:00
Ruslan Kuprieiev
63de16ced1
readme: point to dvc.org for packages
...
We no longer attach bin packages to github releases, so old link is completely misleading.
2023-07-04 18:47:32 +03:00
Ruslan Kuprieiev
2f6c308c84
repo: site_cache_dir: take major version into account
...
So that different major dvc versions don't use the same cache path.
2023-07-04 18:24:20 +03:00
skshetry
c8d180d2b0
repro: move code around ( #9701 )
...
emphasizing on building the graph correctly,
and preparing for being able to work with graph directly.
2023-07-04 21:02:53 +05:45
skshetry
d69972d199
repro: ignore --downstream if used together with --pipeline ( #9692 )
...
* repro: no need to build pipelines for --all-pipeline
* repro: ignore --downstream when using --pipeline
2023-07-04 19:03:09 +05:45
Peter Rowlands
eb1ed40228
repo.open_repo: use abspath for local fs URL
2023-07-04 12:28:09 +03:00
Peter Rowlands
120289128e
dvcfs: cleanup subrepo contexts on close()
2023-07-04 12:28:09 +03:00
Peter Rowlands
a607e7b3d7
dvcfs: return md5-dos2unix in info
2023-07-04 12:28:09 +03:00
Peter Rowlands
86e199c6f2
api.get_url: use index remote storage for getting remote URL
2023-07-04 12:28:09 +03:00
Ruslan Kuprieiev
8661abf224
fetch: introduce --max-size ( #9696 )
...
Needed for iterative/studio#4782
2023-07-04 02:17:53 +03:00
Jon Crall and skshetry
541def388b
environment variable to show debug options ( #9693 )
...
* environment variable to show debug options
* lint
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add message to debug opts
* spelling
* Add argument group and move cprofile-dump
line length
linelen
lint
* use DVC_DEBUG instead of DVC_SHOW_DEBUG_OPTIONS
* use -v instead of environ
* Update dvc/_debug.py
Co-authored-by: skshetry <[email protected] >
* fix
---------
Co-authored-by: skshetry <[email protected] >
2023-07-04 01:35:33 +03:00
Ruslan Kuprieiev
58eb145b6a
Delete hook-google_compute_engine.logger.py
2023-07-03 22:13:22 +03:00
Ruslan Kuprieiev
16465e0b63
Delete hook-dvc.system.py
2023-07-03 22:13:22 +03:00
Ruslan Kuprieiev
6614efd35a
Delete hook-dvc.tree.gs.py
2023-07-03 22:13:22 +03:00
skshetry
2becfd9344
refactor repro: split logic for planning stages to run for repro ( #9690 )
...
The planning logic has now been moved to `plan_repro` api, that allows us
to test without creating stages.
2023-07-03 17:53:48 +05:45
skshetry
b7b6642428
repro: do not autostage stage files ( #9689 )
...
The logic is now moved to experiments, where it tracks all the stage related files
itself. The `_get_stage_files()` has been modified to also return lockfile path,
so that it can be staged, and has been moved to `stage/utils.py`, and out of `reproduce.py`.
Fixes #9688 .
2023-07-03 14:42:22 +05:45
skshetry
fea2e6bb30
repro: simplify _reproduce_stages ( #9687 )
2023-07-03 12:25:25 +05:45
skshetry
bfa5b1a0c3
repro: make stages run in order of the graph ( #9675 )
...
* repro: make stages run in order of the graph.
In case of --single-item, this means it'll run in the order of arguments passed.
For --downstream, this fixes running of stage out of order when multiple arguments are passed.
For normal case, this enforces the same logic, so that they are never run out-of-order.
* add tests
* tests: repro: add test for --single-item with multiple targets
* graph: support when no nodes are provided
2023-07-03 11:44:51 +05:45
Peter Rowlands
24d9a05d69
fetch: warn if cloud-versioned file has no version ID
2023-07-03 14:05:15 +09:00
skshetry
1f31a9c696
bandit: add exclusion for dvc/repo/experiments/utils.py back ( #9686 )
...
See https://github.com/PyCQA/bandit/pull/940 .
Will not be needed when new version of bandit comes.
2023-07-03 09:56:45 +05:45
skshetry
097e48fcc9
remove scripts/ related suppresses ( #9685 )
2023-07-03 09:46:27 +05:45
skshetry
453a8f9516
ci: use kebab-case ( #9684 )
2023-07-03 09:16:53 +05:45
skshetry
9f59d8652e
remove build scripts and scripts directory ( #9683 )
2023-07-03 09:05:06 +05:45
Ruslan Kuprieiev
b1834f34e7
deps: limit flufl-lock to <8 ( #9681 )
...
Looks like flufl-lock switched to pdm in 8.0 which triggered a
```
pkg_resources.DistributionNotFound: The 'flufl.lock>=5' distribution was not found and is required by dvc
```
error in multiple scenarious. Can't put my finger on anything specific
in flufl-lock yet, so will just limit its version for now.
Fixes https://github.com/iterative/dvc/issues/9654
2023-07-03 03:13:50 +03:00