Dave Berenbaum
7f6890ff25
Live metrics config ( #9433 )
...
* exp: live metrics config token and offline
* refactor live metrics config
* use get_studio_config
* revert to using env vars for studio config
* update dvc-studio-client to support live metrics config changes
* upgrade dvc-studio-client
* don't change environ when posting live metrics events
2023-05-17 09:21:01 +00:00
skshetry
99daf5d113
add: fail loudly if there's no dir cache ( #9466 )
2023-05-17 12:03:06 +05:45
dependabot[bot] and skshetry
83ffb8803e
build(deps-dev): bump pylint from 2.17.2 to 2.17.4 ( #9418 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.17.2 to 2.17.4.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.17.2...v2.17.4 )
---
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>
Co-authored-by: skshetry <[email protected] >
2023-05-17 09:22:30 +05:45
dependabot[bot]
ace8464acb
build(deps-dev): bump mypy from 1.2.0 to 1.3.0 ( #9439 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.2.0 to 1.3.0.
- [Commits](https://github.com/python/mypy/compare/v1.2.0...v1.3.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-05-17 09:21:45 +05:45
skshetry
0dbdfd2b9b
run tests and codeql on 2.x branch ( #9465 )
2023-05-17 09:17:36 +05:45
skshetry and pre-commit-ci[bot]
6d4251798a
ci(Mergify): configuration update ( #9463 )
...
* ci(Mergify): configuration update
Signed-off-by: null <null>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Signed-off-by: null <null>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-17 09:09:33 +05:45
skshetry
11d031935d
packaging: use PyPI trusted publishers ( #9459 )
...
https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers
2023-05-17 06:26:19 +05:45
daavoo
64beb1578a
repro: Add --allow-missing.
...
Point 2 in https://github.com/iterative/dvc/pull/9375#issuecomment-1531683194
2023-05-16 22:43:24 +02:00
dberenbaum
f888544554
gc: disallow --remote without other flags
2023-05-16 17:18:57 +02:00
daavoo
1e538ed87b
repro: Move pull logic to inside Stage.
2023-05-16 16:11:43 +02:00
Ruslan Kuprieiev
e69deaa132
import: don't forget to set other cache config options ( #9423 )
2023-05-16 15:53:41 +03:00
Peter Rowlands
be0a1a4a12
exp: fix temporary ref namespacing
2023-05-16 15:59:48 +09:00
skshetry
004f49744e
tests: isolate dvc config and directories ( #9450 )
...
* tests: isolate dvc config and directories
by introducing envvars to change default values. This lets pytest
handle the deletion of tmpdirs, instead of filling /var/tmp with
hundreds of thousands of directories. Also isolates test run from
faulty global/system config files.
* move to dvc/env and sort
2023-05-15 18:16:02 +05:45
Alexander Guschin and Oded Messer
45181504ea
Add API to add artifacts ( #9345 )
...
* api call to add/write artifact
* return dvcyaml path on add
* create dir for dvc.yaml if needed
* create dir for dvc.yaml if needed - fix
* allow nested artifact names
* make dvc get download artifacts
* Apply suggestions from code review
Co-authored-by: Oded Messer <[email protected] >
* use feedback
* remove 'dvc get' from this PR, keep only adding artifacts
* allow first char of artifact name to be a number
* add note about constants
* fix parsing artifact name
* remove 'parse_name' and write tests for 'add'
* Apply suggestions from code review
Co-authored-by: Oded Messer <[email protected] >
* updates from comments
* fix for studio
* fix again
* making check_name_format to raise an exception
* Update dvc/repo/artifacts.py
---------
Co-authored-by: Oded Messer <[email protected] >
2023-05-15 07:55:43 +00:00
skshetry
915dd5062e
disable nested progress bar during checkout ( #9446 )
2023-05-12 18:43:33 +05:45
skshetry
d08c85f7d1
fix checkout callback during add/commit ( #9445 )
...
* fix checkout callback
Fix https://github.com/iterative/dvc/issues/6226 .
* bump minversion of dvc-data to 0.49.1
2023-05-12 18:14:13 +05:45
skshetry
2342099bd8
add: support virtual operation ( #9389 )
2023-05-11 08:31:25 +05:45
dberenbaum
06d8e3c639
add random seed to benchmark stories
2023-05-10 11:08:57 +02:00
David de la Iglesia Castro
195e67c0c1
repro: pull all missing files ( #9395 )
...
* reproduce: Update `pull` to also pull `run cache`.
* reproduce: Update `pull` to also pull changed stages.
2023-05-10 00:29:44 +03:00
Peter Rowlands
c75a5583b3
testing: sanitize venv names containing slashes
2023-05-09 18:52:42 +09:00
David de la Iglesia Castro
981baa8c30
studio: Send message on start event.
...
- Bump `dvc-studio-client>=0.9.0,<1`
Part of #8870
2023-05-08 20:08:47 +02:00
David de la Iglesia Castro
aa517bc90e
exp save: Support --message.
...
Custom commit message to use when committing the experiment.
Part of #8870
2023-05-08 20:08:47 +02:00
David de la Iglesia Castro
c74dc20b97
exp run: Support --message.
...
Custom commit message to use when committing the experiment.
Part of #8870
2023-05-08 20:08:47 +02:00
David de la Iglesia Castro
1ba3944944
api: exp_show: Postprocess empty strings as None.
...
Makes it easier to manipulate when converting to pandas DataFrame.
2023-05-08 17:10:27 +02:00
David de la Iglesia Castro
8620b6e5af
exp: Update --rev to support append action.
...
Closes #9390
2023-05-08 14:15:07 +02:00
Ruslan Kuprieiev
6b6084a848
tests: import: check that dvcfs is using main repo's cache ( #9417 )
...
Followup for https://github.com/iterative/dvc/pull/9415
2023-05-08 00:34:00 +03:00
Ruslan Kuprieiev
967dd5ea2b
import: don't forget to set cache.dir ( #9415 )
...
* import: don't forget to set cache.dir
* repo: open: try setting remote for local repos
2023-05-07 05:28:58 +03:00
Ruslan Kuprieiev
ad39bf14ed
repo: external_repo -> _external_repo
2023-05-07 04:14:25 +03:00
Ruslan Kuprieiev
01416df5a4
get: use Repo.open instead of external_repo
...
This should use `Repo.open` just like `dvc import`, to benefit from
handling local repos without cloning and redundant downloaads.
2023-05-07 04:14:25 +03:00
Ruslan Kuprieiev
eb592e7e33
repo: consolidate Repo.open logic
2023-05-07 04:14:25 +03:00
dberenbaum
2db07b047e
data status: exclude remote status by default
2023-05-06 18:21:11 +03:00
pre-commit-ci[bot]
8ecc66ae9a
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-05-05 22:25:38 +02:00
paulourbano
dfa5f4d9a0
utils: removing diff key from result dictionary
2023-05-05 22:25:38 +02:00
paulourbano
75952c4e36
tests: changing tests to reverted diff functionality
2023-05-05 22:25:38 +02:00
paulourbano
31b0b8de73
tests: adapting tests to new diff output
...
Issue #7960
2023-05-05 22:25:38 +02:00
paulourbano
fae47e6122
metrics: adds support for strings in metrics
...
Fixes #7960
2023-05-05 22:25:38 +02:00
Ruslan Kuprieiev
ac3eef439f
gha: try setting PYTHONUTF8
...
Trying to see if that will help with encoding error on windows with python 3.11
2023-05-05 21:55:31 +03:00
Ruslan Kuprieiev
b044bcce5e
tests: lockfile: use different way of changing a cmd
2023-05-05 04:16:58 +03:00
Ruslan Kuprieiev
a251cffdb5
deps: unpin ruamel.yaml
2023-05-05 04:16:58 +03:00
Peter Rowlands
37858be02f
testing: separate session and function level scope behavior for dvc_bin
2023-05-04 17:05:43 +09:00
Ruslan Kuprieiev
9b7240e9e0
deps: temporarily pin ruamel.yaml
...
Temporary workaround for https://github.com/iterative/dvc/issues/9397
2023-05-04 03:22:48 +03:00
Peter Rowlands
e362438f03
testing.benchmarks: support installing remote deps in benchmark venv
2023-05-03 18:19:31 +09:00
Peter Rowlands
6c79f6bbfc
testing: register pytest plugin
2023-05-03 14:58:54 +09:00
Peter Rowlands
58cd1cbc09
testing.benchmarks: separate fixtures and config
2023-05-03 14:58:54 +09:00
Peter Rowlands
96e3b48afd
testing: import dvc-bench benchmarks
2023-05-03 14:58:54 +09:00
dberenbaum
1f03c40dbe
add: msg for overlapping parent
2023-05-02 19:03:19 +03:00
skshetry
e93e8f05a3
exp push: notify studio even if cache push fails ( #9380 )
...
* exp push: notify Studio even when cache push fails
* exp push: refactor and extract exp_ref resolving logic as the function is getting complex
2023-05-02 08:46:10 +05:45
David de la Iglesia Castro
0f1326e547
api: exp_show: Cleanup flags.
...
Per https://github.com/iterative/dvc/pull/9356#discussion_r1180782320
2023-05-01 19:29:47 +02:00
David de la Iglesia Castro
2a04263f02
api: Add scm module with all_{X} methods for listing revs.
2023-04-28 12:33:03 +02:00
David de la Iglesia Castro
348446050e
api: Add exp_show.
...
Closes #8775
Closes #7167
2023-04-28 12:33:03 +02:00
Ruslan Kuprieiev
7e1036b30d
doctor: add system/global config location
2023-04-28 01:23:44 +03:00
Ruslan Kuprieiev
a15dbc8e03
info: get_fs_type -> _get_fs_type
...
This is not used anywhere outside so should be private like the rest. Likely a leftover from the past.
2023-04-28 00:53:03 +03:00
Ruslan Kuprieiev
4e02197245
info: replace self -> repo
...
Minor cleanup of an old leftover.
2023-04-28 00:40:11 +03:00
Peter Rowlands
4ab7ef06e5
exp: pass -v loglevel into dvc-task workers
2023-04-27 20:39:26 +09:00
Peter Rowlands
dae2faf36d
dvc-task: bump to 0.2.1
2023-04-27 20:39:26 +09:00
David de la Iglesia Castro
58f10a4661
gc: Add ui hint for not_in_remote.
2023-04-27 10:30:39 +02:00
David de la Iglesia Castro
64e787fa02
gc: Handle remote field in --cloud and --not-in-remote.
2023-04-27 10:30:39 +02:00
David de la Iglesia Castro
c7e2ec9707
gc: Add --not-in-remote arg.
...
Closes #2036
2023-04-27 10:30:39 +02:00
skshetry
a4cc198ac7
exp push: soft wrap link so that the URL does not break ( #9368 )
...
soft wrap link so that URL does not break
2023-04-27 06:50:33 +05:45
Oded Messer
d203bf9024
Fix: Prettifying unexpected error on FileExists for get/get-url/imp-url/add and introducing --force ( #9365 )
2023-04-27 00:41:09 +00:00
David de la Iglesia Castro
baeec8ec2d
Update pyproject.toml
2023-04-26 10:38:08 +02:00
dependabot[bot]
9c689a3b51
build(deps-dev): update dvc-render requirement
...
Updates the requirements on [dvc-render](https://github.com/iterative/dvc-render ) to permit the latest version.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.3.1...0.4.0 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-04-26 10:38:08 +02:00
skshetry
e1bf418e72
tests: lazy tpi imports, ignore deprecation warning from setuptools ( #9362 )
2023-04-24 21:34:07 +05:45
David de la Iglesia Castro
b6d8c07d4d
studio: Ensure studio_repo_url works with exp run --queue.
...
Closes #9349
2023-04-21 21:04:48 +02:00
Peter Rowlands
b814531c84
exp: use mocked queue in test_apply_failed
2023-04-21 16:17:01 +09:00
Peter Rowlands
3b3cd0a0b2
exp: drop test_queue_remove_done func test in favor of mocked unit test
2023-04-21 16:17:01 +09:00
skshetry
b2101a85ad
reproduce: remove callback ( #9354 )
...
Callback was added for working around scm_context, since we don't use it, we don't need callback now.
2023-04-21 13:01:00 +05:45
dberenbaum
ba760c56e5
exp: show active experiments first
2023-04-21 12:51:34 +09:00
dependabot[bot]
787c72ea18
build(deps-dev): bump dvc-gdrive from 2.19.1 to 2.19.2
...
Bumps [dvc-gdrive](https://github.com/iterative/dvc-gdrive ) from 2.19.1 to 2.19.2.
- [Release notes](https://github.com/iterative/dvc-gdrive/releases )
- [Commits](https://github.com/iterative/dvc-gdrive/compare/2.19.1...2.19.2 )
---
updated-dependencies:
- dependency-name: dvc-gdrive
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-04-20 17:01:04 +09:00
dependabot[bot]
a2b7a59322
build(deps-dev): bump dvc-s3 from 2.21 to 2.22.0
...
Bumps [dvc-s3](https://github.com/iterative/dvc-s3 ) from 2.21 to 2.22.0.
- [Release notes](https://github.com/iterative/dvc-s3/releases )
- [Commits](https://github.com/iterative/dvc-s3/compare/2.21.0...2.22.0 )
---
updated-dependencies:
- dependency-name: dvc-s3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-04-20 17:00:21 +09:00
Peter Rowlands
ec090c5680
exp: use new collection in show/cli commands
...
- Updates 'dvc exp show --json' to use new data format
2023-04-20 16:58:32 +09:00
Peter Rowlands
58f74ae543
exp: standardize exp data collection
2023-04-20 16:58:32 +09:00
Peter Rowlands
2e8bcbf719
exp: add structured datatypes for collection
2023-04-20 16:58:32 +09:00
skshetry
10f523430b
exp run: do not autostage on dvc repro ( #9344 )
2023-04-19 16:11:13 +05:45
skshetry
5563a595d5
utils.studio: allow any base url to be set, not just the hostname ( #9341 )
...
This keeps it in symmetry with
https://github.com/iterative/dvc-studio-client/pull/28 , and allows
setting the base url with path, not just limited to netloc.
This was always intended to work, urljoin with the added slash was
causing this bug.
2023-04-18 22:22:26 +05:45
skshetry
dd3deb6cbd
add DVC_STUDIO_URL envvar support ( #9340 )
...
add DVC_STUDIO_URL envvar
2023-04-18 09:56:17 +05:45
skshetry
7841020b2b
[DO NOT MERGE] release: remove feature flags for experiment sharing ( #9257 )
...
release: remove feature flags for experiment sharing
2023-04-17 12:53:27 +05:45
dberenbaum
1c394986db
fix tests
2023-04-15 23:46:47 +03:00
dberenbaum
870935ebdc
import-url: make version-aware and to-remote exclusive
2023-04-15 23:46:47 +03:00
Saugat Pachhai (सौगात)
1be82fa56d
tests: remove unnecessary variable interpolation
...
dvc.run does not expand variables. It is only done when it's actually read from dvc.yaml file.
So during dvc run, the shell will try to expand the variable, which does not exist.
I don't think that the intention was to use shell variables. But I don't think we should ever
use them, as they will fail on some shells (eg: fish) and keep the scripts as simple as possible.
2023-04-14 13:01:53 +02:00
Ruslan Kuprieiev
ce0f6c187e
deps: put lower bound on dvc-http
...
People are still running into `ImportError: cannot import name 'fsspec_loop' from 'fsspec.asyn' ` because of it.
2023-04-12 22:26:31 +03:00
pre-commit-ci[bot]
559ec392f6
[pre-commit.ci] pre-commit autoupdate ( #9319 )
...
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.260 → v0.0.261](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.260...v0.0.261 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-11 14:58:43 +03:00
Peter Rowlands
c71a4082e6
testing: expose force=... in scm_add
2023-04-10 13:17:47 +03:00
Peter Rowlands
ce269ffa58
exp: use explicit scm.add(force=True) when necessary
...
- add test for dir dep containing gitignored files
2023-04-10 13:17:47 +03:00
Peter Rowlands
61d0893d7c
deps: bump scmrepo to 1.0.0
2023-04-10 13:17:47 +03:00
dependabot[bot]
eef5fb9b37
build(deps-dev): bump mypy from 1.1.1 to 1.2.0 ( #9313 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v1.1.1...v1.2.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-04-07 10:39:06 +05:45
Peter Rowlands
f03d555747
deps: bump dvc-ssh to 2.22.1
2023-04-06 19:28:30 +09:00
skshetry
a91993616f
logger: add DVC_SHOW_TRACEBACK envvar to show traceback on exception ( #9310 )
...
This will come useful in debugging, where you don't have to add --verbose just to
see where it failed or go through verbose logs (which might be useful when working
with UI issues as you want to see what the user sees).
Ideally this should be handled in main when we exit with error instead of using
logger.{warning,error,exception} to log exception as the intention is to only log
last exception that makes it exit. But since we don't have that capability and
we don't abuse logging.{warning,error,exception} to log and suppress exceptions, this is a good
enough solution for now without complicating `dvc.cli.main()`.
2023-04-06 09:56:19 +05:45
skshetry
3c570a2177
exp push: improve ui ( #9308 )
...
* exp push: improve ui
* fix misc suggestions
- show url even when the refs are up-to-date.
- show url at the end
- add Git remote information in up-to-date UI message.
* fix diverged exps message
2023-04-06 09:54:39 +05:45
David de la Iglesia Castro
3312a90949
exp run: Add --copy-paths arg.
...
List of paths to copy inside the temp directory. Only used if `--temp` or `--queue` is specified.
Closes #5800
2023-04-05 23:17:07 +02:00
Alexander Guschin
32bebc0246
Add top-level artifacts: section ( #9220 )
...
* add artifacts section
* adding and removing artifacts
* delete code for add/remove; add tests
* fix pre-commit
* remove extra piece of writing to dvc.yaml
* remove extra piece
* simplify kwargs
* allow same names for artifacts in different dvc.yaml files
* set ID as path; don't return dvc.yaml(s) with no artifacts
* fix PR feedback
* issue warning at incorrect artifact name
* issue warning at incorrect artifact name
* reference right schema
* add r to regexp
* add tests for regexp
* set artifacts for SingleStageFile
* fix windows test
* make path required; simplify regexp and remove slash from it
* allow to use gto's artifacts.yaml
* remove extra piece of code for migration from gto
2023-04-05 13:31:35 +00:00
David de la Iglesia Castro
35648134f7
exp run: git add param files that will be modified.
...
Only if they are currently untracked and `--temp` or `--queue` is passed.
Closes #7842
2023-04-05 10:28:18 +02:00
Peter Rowlands
df09e522ec
deps: bump scmrepo minver to 0.2.1
2023-04-05 16:50:03 +09:00
Ruslan Kuprieiev
40f7f34889
api: data: set default remote instead of using it directly
...
Fixes #9139
Fixes #7341 (see https://github.com/iterative/dvc/pull/7363#issuecomment-1032959843 )
2023-04-05 02:47:35 +03:00
skshetry
cf52efb8c3
notify_refs; rename studio_url to base_url ( #9303 )
2023-04-04 17:43:05 +05:45
skshetry
8be71be540
utils.studio: disallow redirects, misc API refactoring ( #9301 )
2023-04-04 13:15:08 +05:45
pre-commit-ci[bot] and skshetry
071a5b7ba4
[pre-commit.ci] pre-commit autoupdate ( #9251 )
...
updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0 )
- [github.com/charliermarsh/ruff-pre-commit: v0.0.257 → v0.0.260](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.257...v0.0.260 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2023-04-04 10:12:52 +05:45
dependabot[bot]
ed6cf093a8
build(deps-dev): bump pylint from 2.17.1 to 2.17.2 ( #9299 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.17.1 to 2.17.2.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.17.1...v2.17.2 )
---
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-04-04 10:11:47 +05:45
skshetry
7c3c47b4a2
bump ruff to 0.0.260 and enable bandit ( #9300 )
...
* bump ruff to 0.0.260 and enable bandit
* install toml extra for bandit
* suppress insecure use of hash md5
2023-04-04 10:01:43 +05:45
David de la Iglesia Castro
3a2259821b
exp save: Include LOCK_FILE
2023-04-03 10:33:52 +02:00
Ruslan Kuprieiev
649ee67e4b
config: introduce core.site_cache_dir
2023-04-03 00:29:44 +03:00
Ruslan Kuprieiev
7cdb3b0ae2
repo: site_cache_dir: isolate by user
...
Related #9249
2023-04-03 00:29:44 +03:00
Ruslan Kuprieiev
ecdc44e010
dep: repo: use dvcfs
...
Makes dvc get/import/etc use dvcfs, which already supports cloud versioning,
circular imports and other stuff.
Also makes dvc import behave more like dvc import-url, so that we can use
the same existing logic for fetching those using index instead of objects.
Fixes #8789
Related iterative/studio#4782
2023-04-02 03:55:02 +03:00
David de la Iglesia Castro
24e10e0278
exp save: Track top level files
2023-03-31 19:23:40 +02:00
David de la Iglesia Castro
7c8e6e3156
exp run: Track top level files.
2023-03-31 19:23:40 +02:00
David de la Iglesia Castro
d2812fa48f
studio: Don't fail on empty params.
2023-03-31 19:23:40 +02:00
skshetry
086d51d9de
plots json: return definition errors unrelated to renderers ( #9293 )
2023-03-31 16:34:26 +05:45
David de la Iglesia Castro
1d8b2e5fa6
exp run: Propagate .dvc/config.local in TempDirExecutor.
...
Closes #7254
2023-03-31 09:02:22 +02:00
David de la Iglesia Castro
894f530d22
deps: bump dvc-studio-client>=0.6.1,<1
2023-03-30 11:23:07 +02:00
skshetry
1b9d40960f
utils.studio: reduce verbosity on exception logging ( #9284 )
2023-03-30 12:55:19 +05:45
skshetry
696fabc745
exp-push: show url to the Studio project ( #9283 )
2023-03-30 12:52:09 +05:45
skshetry
780dc72301
Revert "exp-push: show url to the Studio project" ( #9282 )
...
Revert "exp-push: show url to the Studio project (#9278 )"
This reverts commit 1ca3ef14a3 .
2023-03-30 08:28:44 +05:45
skshetry
1ca3ef14a3
exp-push: show url to the Studio project ( #9278 )
2023-03-30 08:27:47 +05:45
skshetry
a6c89cac8d
replace funcy.cat with itertools.chain.from_iterable ( #9279 )
...
It's just an alias to the function from itertools.
2023-03-29 20:56:26 +05:45
skshetry
593f1064cf
utils.studio: refactor to return json response ( #9277 )
2023-03-29 20:02:40 +05:45
Ruslan Kuprieiev
35bb261b89
config: don't look for .dvc dir implicitly
...
Currently if dvc_dir doesn't exists (e.g. we are creating an uninitialized
repo), config will try looking for `.dvc` dir in the current directory,
which might be inside of another dvc repository resulting in mixed configs.
Use explicit `from_cwd` method to make `Config` try to find repo configs
if available to avoid the usage mixup.
2023-03-29 16:27:54 +03:00
David de la Iglesia Castro
fe6d543c1f
tests: Add UnresolvedExpNamesError check in test_remove_remote
2023-03-29 12:56:59 +02:00
dberenbaum
4351d32de4
exp remove: fix ui for removing from git remotes
2023-03-29 12:56:59 +02:00
skshetry
efc2d7ad3d
remove unused type-ignore comment ( #9258 )
2023-03-28 14:30:33 +05:45
skshetry
7c65739e7e
refactor notify_refs_to_studio to take in repo instance as dependency ( #9256 )
2023-03-28 13:53:31 +05:45
skshetry
cc4816f652
utils.studio: require token ( #9255 )
...
This is a simple refactoring which makes the caller to choose appropriate token instead of
the studio.notify_refs making a decision for them.
2023-03-28 13:32:05 +05:45
skshetry
faa1bdfbce
use git remote to find out remote repo url when pinging Studio ( #9254 )
2023-03-28 12:17:48 +05:45
skshetry
006b6f3513
exp push/remove: show message on failure when notifying to Studio ( #9253 )
2023-03-28 09:40:41 +05:45
skshetry
1bc4c1dceb
exp share refactor - ping on exp:remove, do not fail on error ( #9248 )
...
studio experiments share refactor
1) Pings Studio on exp remove
2) Does not fail on any error during request.post
3) UI improvement on exp remove
2023-03-27 22:51:50 +05:45
skshetry
531b2110cf
Revert "exp push: add trailing slash to the endpoint url" ( #9243 )
...
Revert "exp push: add trailing slash to the endpoint url (#9240 )"
This reverts commit 5485275b92 .
2023-03-27 14:19:12 +05:45
skshetry
c1917ed751
output: ignore missing size from files when calculating total size ( #9242 )
...
output: ignore missing size from files when calculating hash info
2023-03-27 12:56:43 +05:45
skshetry
43195a806d
plots: return errors in json format ( #9146 )
...
* plots: return errors in json format
* plots --json: move plots data into data key
* rename revision key to rev
* move imports to top-level
* add tests
2023-03-27 12:53:43 +05:45
Ruslan Kuprieiev
d41512c85c
deps: bump dvc-data to 0.46.0 ( #9241 )
...
* utils: determine_linecol: ignore mypy attr-defined error
* deps: bump dvc-data to 0.46.0
2023-03-26 22:06:23 +03:00
David de la Iglesia Castro and Dave Berenbaum
e9fb0b92aa
exp branch: Make branch arg optional.
...
Default to `f"{ref_info.name}-branch"` where ref_info is inferred from the `exp_rev` argument.
Co-authored-by: Dave Berenbaum <[email protected] >
2023-03-24 19:11:06 +01:00
skshetry
5485275b92
exp push: add trailing slash to the endpoint url ( #9240 )
2023-03-24 22:35:20 +05:45
Peter Rowlands
1f80f2f2ed
deps: bump scmrepo to 0.1.17
2023-03-24 19:31:27 +09:00
David de la Iglesia Castro
6b6dc01ac4
exp save: Reintroduce implementation based on executor/queue.
...
Closes #9058 .
Ensures behavior of `_stash_exp` in `exp run` is matched in `exp save` without duplicating logic.
The simpler implementation ended up being worse for maintenance when wanting to make `exp run` and `exp save` behavior in sync.
2023-03-24 10:43:24 +01:00
Peter Rowlands
91d3ff0f69
exp: mark q remove test as flaky
2023-03-24 17:53:40 +09:00
dependabot[bot]
701f48197e
build(deps): bump pyinstaller from 5.8.0 to 5.9.0 ( #9169 )
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.8.0 to 5.9.0.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases )
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst )
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.8.0...v5.9.0 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 16:45:11 +00:00
Dave Berenbaum
da3bbccf66
Update duplicate output error msg ( #9138 )
...
* update dup output error msg
* update dup output error msg
* stage add: add test for duplicated output error msg
* cleanup OutputDuplicationError code
2023-03-23 15:54:44 +00:00
Ruslan Kuprieiev
40484e8d57
dvcfs: handle broken symlink/TreeError ( #9231 )
...
* plots: handle broken symlink/TreeError
* dvcfs: ls: raise FileNotFoundError on broken symlink/TreeError
* deps: bump dvc-data to 0.45.1
2023-03-23 15:38:21 +02:00
pre-commit-ci[bot] and David de la Iglesia Castro
48b56c83dc
[pre-commit.ci] pre-commit autoupdate ( #9168 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.254 → v0.0.257](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.254...v0.0.257 )
- [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.4 )
* pre-commit: fix ruff errors
* pre-commit: fix flake8
---------
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-03-23 13:05:31 +00:00
Peter Rowlands
f8bbf20b77
exp: use individual q for timeout dependent tests
2023-03-23 19:18:52 +09:00
Peter Rowlands
cd2c4d0caf
tests: remark flaky queue tests as xfail on windows
2023-03-23 19:18:52 +09:00
David de la Iglesia Castro
9b329d01bf
api: Add exp_save.
2023-03-23 10:33:55 +01:00
dependabot[bot]
5c442cb867
build(deps-dev): bump pylint from 2.17.0 to 2.17.1 ( #9229 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.17.0 to 2.17.1.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.17.0...v2.17.1 )
---
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-03-23 09:24:52 +01:00
Ruslan Kuprieiev
2d5c15bee1
erepo: move legacy exceptions to api ( #9228 )
...
* erepo: get rid of NoRemoteInExternalRepoError
This exception hasn't been making any sense at all since we've introduced
get and import, as they can be chained in repos.
* erepo: get rid of NoOutputInExternalRepoError
This is dead code these days.
* erepo: get rid of FileMissingError and PathMissingError
* api: preserve legacy exc wrappers
2023-03-23 01:40:42 +02:00
Peter Rowlands
7868c1301c
exp: enforce waiting for task completion in CI
2023-03-22 18:58:42 +09:00
Ruslan Kuprieiev
dfe76c54d7
erepo: set subrepos/uninitialized explicitly
2023-03-22 02:26:44 +02:00
Ruslan Kuprieiev
392c15e1d4
erepo: pass rev instead of fs/scm
...
Towards unifying `Repo.open` and `external_repo` behaviour to get rid
of the latter.
2023-03-22 00:21:25 +02:00
David de la Iglesia Castro
121d56b739
hydra: resolve OmegaConf interpolations. ( #9212 )
...
Closes #9196
2023-03-20 21:38:22 +05:45
skshetry
66406e6c99
scm: fetch_all_exps pass kwargs to scm.fetch_refspecs ( #9214 )
2023-03-20 21:26:24 +05:45
skshetry
8399bf612a
sconfig: add support for studio token ( #9213 )
...
config: add support for studio token
2023-03-20 20:59:52 +05:45
daniele
6c1b786564
parsing: fix foreach resolution with int keys ( #8904 )
2023-03-20 18:40:30 +05:45
Oded Messer and pre-commit-ci[bot]
d1c5fcc1b8
Add template for epic/story issues ( #9208 )
...
* Add template
* [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-03-20 09:56:55 +01:00
skshetry
4ee3271b0c
dvc.repo.exp: import some modules lazily ( #9207 )
2023-03-18 17:24:01 +05:45
skshetry
dae8515933
plots: small refactorings ( #9206 )
2023-03-17 19:42:27 +05:45
Saugat Pachhai (सौगात)
f02dd83e53
close all streams in child
2023-03-17 14:43:44 +02:00
skshetry
a2066d75f9
add a note why we are flushing ( #9205 )
2023-03-17 17:52:04 +05:45
skshetry
283d8245e1
flush streams before fork ( #9203 )
2023-03-17 17:14:34 +05:45
skshetry
c52b12ac2a
dvcfs: support caching remote streams; use that in plots ( #9183 )
...
* dvcfs: support caching remote streams; use that in plots
* plots: show progress bar, cap max_workers to 16
* bump dvc-data to 0.44.1
2023-03-17 16:04:16 +05:45
Peter Rowlands
440cb9d2bc
ui: flush stdout/stderr before colorama re-init
2023-03-17 14:52:30 +09:00
David de la Iglesia Castro
2d820cccad
deps: bump dvc-render>=0.3.1<0.4.0.
...
For https://github.com/iterative/dvc-render/pull/124
2023-03-16 21:36:02 +01:00
skshetry
30c3e3e4d4
exp push: set default endpoint ( #9198 )
2023-03-16 17:50:38 +05:45
skshetry
58029e9719
exp push: push experiments revs to studio ( #9160 )
...
* exp push: push experiments revs to studio
* log json data that is sent
2023-03-16 11:24:50 +05:45
Ruslan Kuprieiev
990e834f1d
repo: open: handle bare git repos
...
If we are asked to open a potentially unitialized repo, we need to make sure
it is not a bare git repo, so that we don't accidentally start putting dvc
files inside git control dir.
Discovered while working on #8789
2023-03-16 02:03:31 +02:00
Ruslan Kuprieiev
33a2449c91
deps: repo: use _get_rev when creating dvcfs
2023-03-16 01:05:04 +02:00
Ruslan Kuprieiev
e2ce95e17e
deps: repo: pass url explicitly to DVCFileSystem
...
Otherwise our wrapper ignores it.
2023-03-16 00:35:15 +02:00
Ruslan Kuprieiev
53f9953cd1
index: data: support imports
...
Stepping stone to simplifying `dvc fetch/pull` by using index.
Fetch handles regular imports through index already, but not repo
imports because their processing is much more involved (e.g. chained
imports) in the current arch.
With `FileStorage` support introduced into `DataIndex` and `datafs`
supporting imports overall, `dvcfs` can now handle repo imports (even
chained ones). This will soon allow us to handle repo imports the same
way we handle regular ones, improve performance and get rid of a lot of
messy code (e.g. DependencyRepo).
Related https://github.com/iterative/scmrepo/issues/207
Related https://github.com/iterative/dvc-data/pull/315
Related https://github.com/iterative/studio/issues/5261
2023-03-15 20:32:13 +02:00
skshetry
e6419b939d
do not disable colorama in tests ( #9187 )
...
skip disabling colorama in tests
It might affect pytest as it wraps sys.stderr/sys.stdout for capsys fixture.
This is a temporary hack, as we might get rid of colorama soon.
2023-03-15 18:23:26 +05:45
Ruslan Kuprieiev
37ccc5e8d8
repo: create site_cache_dir with proper perms
...
Fixes #9184
2023-03-15 14:26:17 +02:00
skshetry
8312eb9b42
ui: disable colorama on write_json when highlighting is disabled ( #9186 )
...
On a large json output (say ~300MB), this saves about ~6 seconds of time.
2023-03-15 17:42:45 +05:45
Ruslan Kuprieiev
c8745dd580
deps: bump dvc-data to 0.44.0
2023-03-15 03:41:19 +02:00
Ruslan Kuprieiev
1cf8b5e582
install: pre-commit: install all deps by default
...
Fixes #9178
2023-03-15 01:19:42 +02:00
Dave Berenbaum
12955da3c3
exp: fail fast in empty git repo ( #8840 )
2023-03-14 17:16:17 +00:00
David de la Iglesia Castro
e73cc9b40a
exp: Include STUDIO_REPO_URL in run_env.
...
Closes #8951 .
2023-03-14 13:43:03 +01:00
Ruslan Kuprieiev
b56f6b69dd
exp: push/pull: don't include baseline commit
...
Fixes #6592
2023-03-14 14:00:14 +02:00
Ruslan Kuprieiev
54a6709d99
Update pyproject.toml
2023-03-13 21:03:33 +02:00
Ruslan Kuprieiev
e4a5a2aec5
deps: bump dvc-data to >=0.43.0
2023-03-13 21:03:33 +02:00
skshetry
16ecd53b71
tests: remove gc.collect() from windows ( #9159 )
2023-03-13 13:37:57 +05:45
Ruslan Kuprieiev
612f3039e0
repo: move state/index/data_index to site_cache_dir
...
We use all of these for optimization and should not depend on a potentially slow or broken
filesystem on which repository resides (could be HDD or CIFS/NFS/overlayfs/etc).
This PR means a few things:
* all odd filesystems that dvc repo might be on will work quickly out of the box
* when we start caching cloned repositories for `dvc get/import`, we will be
able to cache indexes for them as well (note that bare clones don't have a
worktree so there is no place for .dvc/tmp with the old approach).
* `index.dir` and `state.dir` are now obsolete.
* `dvc init` will cleanup site_cache_dir.
Related #5562
2023-03-13 02:58:23 +02:00
Ruslan Kuprieiev
17f523bf86
deps: bump dvc-data to >=0.42.3
2023-03-11 02:01:31 +02:00
Ruslan Kuprieiev
a0bf2d997a
repo: data_index: fallback to in-memory
...
Makes for a much simpler resource management elsewhere.
2023-03-11 01:23:12 +02:00
Ruslan Kuprieiev
8ed9b911db
deps: bump dvc-data to >= 0.42.2
2023-03-10 22:40:59 +02:00
skshetry
ef22b1d77e
plots: disable syntax highlighting on plots json output ( #9155 )
...
I don't think it's worth it to highlight given the size of json output.
2023-03-11 00:50:06 +05:45
skshetry
aaa825a9a8
config: ignore unspecified keys from feature section ( #9153 )
...
A warning is shown to the user for the unsupported/ignored keys, and then ignored.
The warning is raised only once per interpreter session.
2023-03-10 21:52:05 +05:45
Ivan Shcheklein
2a40a55bb4
fix(exp): cleanup help messages
2023-03-10 11:13:06 +09:00
Ruslan Kuprieiev
3aa9f51e36
output: suppress cloud.pull errors on cache collection
...
Fixes https://github.com/iterative/studio/issues/5261
2023-03-09 22:44:32 +02:00
dependabot[bot]
1cfdc22549
build(deps-dev): bump pylint from 2.16.4 to 2.17.0 ( #9141 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.16.4 to 2.17.0.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.16.4...v2.17.0 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-09 16:23:47 +05:45
skshetry
2b889baa5e
plots: avoid printing anything on --json output ( #9144 )
2023-03-09 16:10:46 +05:45
Peter Rowlands
8589aa4001
tests: mark test_queue_remove_done xfail
2023-03-09 16:25:09 +09:00
Peter Rowlands
8cbc4c43f1
tests: use session-scoped exp celery fixtures when possible
2023-03-09 16:25:09 +09:00
Peter Rowlands
417c327143
exp: add session-scoped celery test fixtures
2023-03-09 16:25:09 +09:00
Peter Rowlands
204eebaf15
tests: use brancher.switch
2023-03-09 15:02:26 +09:00
Peter Rowlands
3a6fd75d98
repo: use brancher.switch
2023-03-09 15:02:26 +09:00
Peter Rowlands
351b952d5f
brancher: add brancher.switch helper
2023-03-09 15:02:26 +09:00
dberenbaum
fe7db32311
studio: handle revision errors when posting
2023-03-08 22:19:32 +01:00
Ivan Shcheklein
0bd34c8977
fix(push): allow no default remote
2023-03-08 21:26:47 +02:00
skshetry
48a63ca588
try to improve test speed ( #9136 )
...
* tests: fix logic to gc.collect() on Windows + 3.11
* dvc.cli: cache get_main_parser()
* tests: isolate environment on a session-level
* bring back gc.collect()
2023-03-08 22:11:42 +05:45
Gao
4459d6ac57
Add back an dvc ignore test
...
Original from
https://github.com/iterative/dvc/pull/8767#discussion_r1070778749
2023-03-08 12:03:07 +02:00
skshetry
08a50ee36e
tests: error on ResourceWarning ( #9123 )
...
* tests: error on ResourceWarning
* run-cache: avoid leaking temp files on Windows
* set returncode to popen to avoid ResourceWarning on gc.collect()
2023-03-08 15:36:10 +05:45
David de la Iglesia Castro
f1ea64c4ef
studio: Send metrics on done event. ( #9027 )
2023-03-07 19:47:22 +01:00
dependabot[bot]
7ede45af2d
build(deps-dev): bump mypy from 1.0.1 to 1.1.1 ( #9126 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.0.1 to 1.1.1.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v1.0.1...v1.1.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-03-07 23:13:54 +05:45
skshetry
51db1765ee
migrate from appdirs to platformdirs ( #9131 )
...
appdirs has been deprecated/unmaintained, platformdirs is now recommended.
Closes #9130 .
2023-03-07 23:13:28 +05:45
Peter Rowlands
9101fce761
proc: remove dvc.proc
2023-03-07 18:17:01 +09:00
Peter Rowlands
3f842a205f
exp show: fix cached running checkpoint state bug
2023-03-07 16:55:23 +09:00
dependabot[bot]
77e900fed2
build(deps-dev): bump pylint from 2.16.3 to 2.16.4 ( #9127 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.16.3 to 2.16.4.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.16.3...v2.16.4 )
---
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-03-07 10:17:04 +05:45
David de la Iglesia Castro
dde456c923
plots: Fix match_defs_renderers when plots are defined in nt format.
...
`plots.show` returned `definitions` in native `nt` format but sources in `posixpath` format so the matching was failing.
Closes #8689
- Add `test_show_plots_defined_with_native_os_path`.
2023-03-06 19:16:29 +01:00
David de la Iglesia Castro
cb9d3529af
plots: Remove --from-config
2023-03-06 19:16:29 +01:00
David de la Iglesia Castro
876c10fcf5
plots: Remove unnecessary OrderedDict usage in load_sv.
2023-03-06 19:16:29 +01:00
skshetry
93eea0cd42
deps: bump scmrepo to 0.1.15; close subrepo.dvc on tests teardown ( #9122 )
2023-03-06 20:21:42 +05:45
skshetry
25fd274090
increase timeout for tests to 40 minutes
2023-03-06 20:04:26 +05:45
skshetry
ddfa607437
tests: don't leak files/descriptors when tests finish ( #9119 )
...
close open files/descriptors when tests finish
2023-03-06 18:06:37 +05:45
skshetry
c5a3566e49
deps (tests): require pytest-xdist>=3.2, use -n=logical workers and workstealing scheduler ( #9116 )
2023-03-06 15:54:45 +05:45
skshetry
e7d4f5b24e
tests: filter warnings ( #9115 )
2023-03-06 15:41:45 +05:45
Peter Rowlands
1d2892efac
exp show: don't cache collection errors
2023-03-06 15:25:27 +09:00
dependabot[bot]
83835afa69
build(deps-dev): bump pylint from 2.16.2 to 2.16.3 ( #9113 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.16.2 to 2.16.3.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.16.2...v2.16.3 )
---
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-03-06 10:33:02 +05:45
skshetry
4c5d052d8c
update ruff to v0.0.254 ( #9110 )
2023-03-04 17:26:59 +05:45
David de la Iglesia Castro
e4d514c990
scm: Remove unused GitMergeError.
...
Not used after https://github.com/iterative/dvc/pull/9096
2023-03-03 18:09:57 +01:00
David de la Iglesia Castro
baeecd1972
deps: Bump scmrepo>=0.1.14
2023-03-03 15:42:41 +01:00
David de la Iglesia Castro
dbd098506c
deps: Drop dvclive.
...
See https://github.com/iterative/dvclive/pull/481
2023-03-03 14:45:48 +01:00
Ruslan Kuprieiev
4779c248f8
deps: bump dvc-data to >=0.42.1
2023-03-02 17:53:07 +02:00
Peter Rowlands
2cf3a12e46
tests: unmark exp celery tests as xfail
2023-03-02 15:44:34 +09:00
Peter Rowlands
78fb5275e5
exp: add dvc exp clean command
2023-03-02 12:35:54 +09:00
Peter Rowlands
ccbe2de89e
exp: auto cleanup celery on queue worker exit
2023-03-02 12:35:54 +09:00
Peter Rowlands
54e39e4abd
deps: bump dvc-task to >=0.2.0
2023-03-02 12:35:54 +09:00
Ruslan Kuprieiev
59a4c4f67c
remote: set hash_name as md5
...
Fixes #7977
2023-03-01 13:26:24 +02:00
Peter Rowlands
1a7ae16f69
exp: use stash-apply instead of merge
2023-03-01 19:11:12 +09:00
Peter Rowlands
286f4fda3e
repo: call Repo.close() on Repo.__exit__()
2023-03-01 17:49:27 +09:00
Peter Rowlands
d2c63bffcb
exp: ensure repo instance is closed after executor.reproduce
2023-03-01 17:49:27 +09:00
Peter Rowlands
2b41305c51
exp: fix queued run file descriptor leak
2023-03-01 17:49:27 +09:00
Ruslan Kuprieiev
546becddaf
deps: bump dvc-gs to 2.22.0
2023-03-01 08:36:33 +02:00
David de la Iglesia Castro
c6015a05a3
exp save: Don't relink during commit
...
Same change as in https://github.com/iterative/dvc/pull/9076 but for `exp save`
2023-02-28 22:29:57 +02:00
Ruslan Kuprieiev
c0754ee5b3
deps: bump dvc-data to 0.42.0
2023-02-28 14:48:34 +02:00
skshetry
4db2e89938
build: use macos-11 to build package ( #9091 )
...
macos-10.15 image has been deprecated for a while, see https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/ and https://github.com/actions/runner-images/issues/5583 .
setup-ruby removed the support for these images yesterday: https://github.com/ruby/setup-ruby/pull/467 .
which fails our package builds. Now using macos-11 to build packages.
2023-02-28 17:33:05 +05:45
skshetry
4a6f3ed64a
dvc.testing: fix lockfile in docker_services fixture ( #9088 )
...
dvc.testing.docker_services: rollback to previous state
where we were not tearing down the containers
2023-02-28 16:54:33 +05:45
David de la Iglesia Castro
9f0c4350bd
deps: Bump scmrepo>=0.1.13.
...
Closes #9080
2023-02-28 17:46:09 +09:00
Ruslan Kuprieiev
a91528c3c9
Revert "testing: fixtures: fix docker regression"
...
This reverts commit b80d84e689 .
2023-02-27 15:02:22 +02:00
Ruslan Kuprieiev
b80d84e689
testing: fixtures: fix docker regression
2023-02-27 14:17:07 +02:00
skshetry
2a2c02c184
remove typing.cast ( #9082 )
2023-02-26 13:15:54 +05:45
Dave Berenbaum
35b648bbcf
plots: shorten names in the legend ( #8900 )
...
* plots: shorten field names
* plots: handle missing field names
* plots: make compatible with py3.8
* plots: fix for missing data
* plots: add test for field shortening
* plots: strip separators regardless of os
* plots: don't shorten field name
* plots: drop test for shortening field name
2023-02-24 17:26:16 +01:00
Peter Rowlands
96ac321dd5
repo: use local root when determining state/index db dirname
2023-02-24 16:33:42 +09:00
Peter Rowlands
50fd8ca15d
exp show: cache git refs per show() call
2023-02-24 16:33:26 +09:00
David de la Iglesia Castro
184cc35cf0
pull: Add allow_missing flag.
...
Allows `pull` to succeed even if some files or directories are missing.
Closes #4746
2023-02-24 09:11:50 +02:00
Ruslan Kuprieiev
81da91a973
exp: run: don't relink during commit
...
Part of #8809
2023-02-24 08:09:35 +02:00
Peter Rowlands
ad5b91e51a
exp show: cache collected git revs
2023-02-24 14:18:58 +09:00
Peter Rowlands
391cf80e7b
exp: support caching collected exp data
2023-02-24 14:18:58 +09:00
Peter Rowlands
8d13486048
exp: add SerializableExp dataclasses
2023-02-24 14:18:58 +09:00
Ruslan Kuprieiev
37761a2627
data: status: get rid of --not-in-remote
2023-02-21 12:32:40 +02:00
Ruslan Kuprieiev
968a8fde99
data: status: introduce --remote-refresh
2023-02-21 12:32:40 +02:00
David de la Iglesia Castro
3043b6588f
exp save: Use pathspec to handle include_untracked.
...
Closes #9061
2023-02-21 09:43:25 +01:00
47208533a2
Add metrics_show to dvc.api ( #9042 )
...
* refactor: add metrics_show, rename module to show
* tests: add functional tests for metrics_show
* api.show: return empty dict for no params/metrics
* test_show: Return relpaths in `metrics_repo`.
---------
Co-authored-by: codamuse <[email protected] >
Co-authored-by: David de la Iglesia Castro <[email protected] >
2023-02-20 21:53:38 +00:00
Ruslan Kuprieiev
09ccd9c7e4
repo: data_index: store in .dvc/tmp/index/data
2023-02-20 21:57:27 +02:00
Ruslan Kuprieiev
cd9dd0a312
index: use has_node instead of ls
...
Current code doesn't work for prefixes longer than one, which makes index cache
effectively not work and it should've used has_node from the very start anyway.
2023-02-20 17:45:15 +02:00
Ruslan Kuprieiev
6fbbbeccc5
index: store data index under tree prefix
...
Tidying it up, so root of the index will look like this:
```
tree/
remote/
```
This hasn't been released yet, so we are not breaking anything.
2023-02-20 13:33:22 +02:00
Ruslan Kuprieiev
c34cbf63af
data: status: introduce --not-in-remote
...
Also supports cloud versioning.
Fixes #8761
2023-02-20 12:25:17 +02:00
Ruslan Kuprieiev
b76aad8d56
data: status: rename with_missing to not_in_cache
2023-02-20 12:25:17 +02:00
Ruslan Kuprieiev
68bf095eae
remote: rename index prefix from remotes to remote
2023-02-20 12:24:46 +02:00
Ruslan Kuprieiev
ea6e01d0e0
dvcfs: implement get_file
...
Currently we use `open`, which is much slower. For example,
```
$ dvc get dvc-bench data/small/dataset
```
goes down from 110sec to 50sec.
Discovered as a part of https://github.com/iterative/dvc-bench/issues/419
2023-02-20 11:10:13 +02:00
dependabot[bot] and Saugat Pachhai
19038b32bd
build(deps-dev): unpin pytest-docker
...
* fix docker fixtures and unpin pytest-docker
* git_server: mount volume to different /custom-cont-init.d
---------
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-02-20 12:57:31 +05:45
Peter Rowlands
648edd71eb
exp: move apply tests into their own module
2023-02-20 14:36:38 +09:00
Peter Rowlands
0c95cde712
exp: remove unused ApplyConflictError
2023-02-20 14:36:38 +09:00
Peter Rowlands
e218431f64
apply: add --no-force deprecation message
2023-02-20 14:36:38 +09:00
Peter Rowlands
d3182e0dd9
exp apply: drop --no-force CLI option
2023-02-20 14:36:38 +09:00
Peter Rowlands
e040e875dc
exp apply: simplify apply behavior to use checkout instead of merge
2023-02-20 14:36:38 +09:00
Peter Rowlands
303da84b18
exp: add ApplyStash implementation
2023-02-20 14:36:38 +09:00
Peter Rowlands
03bfdf2663
deps: use ranges for dvc sub-packages
2023-02-20 14:35:08 +09:00
skshetry
8edaef0103
deps: drop importlib-resources and typing-extensions ( #9055 )
...
deps: remove importlib-resources and typing-extensions
2023-02-19 11:36:48 +05:45
skshetry
fd8a8c2729
pyproject: format using pyproject-fmt ( #9053 )
...
I haven't added pyproject-fmt to pre-commit hook because of two reasons:
1. There is a bug that keeps adding empty lines after `[[tool.mypy.overrides]]`.
2. The list gets exploded to multiple lines. However, this is a minor issue.
2023-02-18 23:07:57 +05:45
dependabot[bot]
30337bf0ba
build(deps): bump pyinstaller from 5.7.0 to 5.8.0 ( #9013 )
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.7.0 to 5.8.0.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases )
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst )
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.7.0...v5.8.0 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-18 22:53:17 +05:45
skshetry
5426ca6f79
deps (tests): unpin test deps ( #9052 )
2023-02-18 22:41:50 +05:45
skshetry
a89c25700f
pyproject.toml: cleanup metadata ( #9051 )
2023-02-18 17:40:36 +05:45
dependabot[bot]
0e0bb8ad76
build(deps-dev): bump mypy from 0.991 to 1.0.1 ( #9049 )Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
...
Bumps [mypy](https://github.com/python/mypy ) from 0.991 to 1.0.1.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.991...v1.0.1 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-18 17:03:41 +05:45
skshetry
1de37556d5
bump ruff to v0.0.247 ( #9050 )
...
* bump ruff to v0.0.247
* ruff: enable pep8-naming check
rename some camelCased APIs, especially in logger
rename G variables to graph
ignore some variable namings and help messages in dvc.commands
2023-02-18 16:50:35 +05:45
Ruslan Kuprieiev
098685b8f3
deps: bump dvc-data to 0.40.4
...
Improves index view related performance (e.g. `dvc diff`).
2023-02-18 11:35:01 +02:00
Ruslan Kuprieiev
8f549c8a8d
config: enable data index caching by default
2023-02-18 08:00:58 +02:00
Ruslan Kuprieiev
e56d97bb28
gha: user ubuntu 20.04 for deb packages
...
18.04 will reach EOL in april and will be dropped by gha.
18.04 also comes with an old sqlite version which forces us to use obsolete
syntax.
2023-02-18 08:00:58 +02:00
Ruslan Kuprieiev
07b72c20e9
repo: move data_index to .dvc/tmp/index
2023-02-17 21:43:57 +02:00
Ruslan Kuprieiev
592f251481
repo: use tmp_dir if available
2023-02-17 21:43:57 +02:00
Ruslan Kuprieiev
890c0020ed
Revert "repo: use tmp_dir if available"
...
This reverts commit 7ccf35b47e .
2023-02-17 21:25:46 +02:00
Ruslan Kuprieiev
7ce0b1cba2
Revert "repo: move data_index to .dvc/tmp/index"
...
This reverts commit d68599a5f7 .
2023-02-17 21:25:46 +02:00
Ruslan Kuprieiev
b8a9c37af5
Revert "config: enable data index caching by default"
...
This reverts commit 1af63acae5 .
2023-02-17 21:25:46 +02:00
Ruslan Kuprieiev
1af63acae5
config: enable data index caching by default
2023-02-17 19:55:25 +02:00
Ruslan Kuprieiev
d68599a5f7
repo: move data_index to .dvc/tmp/index
2023-02-17 19:55:25 +02:00
Ruslan Kuprieiev
7ccf35b47e
repo: use tmp_dir if available
2023-02-17 19:55:25 +02:00
Ruslan Kuprieiev
4f49023a08
config: don't set default cache dir
...
Setting default values is very untypical for all other applications and the
info config has is not enough to make a decision on the default cache dir,
especially when dealing with gitfs.
Fixes #8705
2023-02-17 07:57:39 +02:00
skshetry
d7ea7c358d
Revert "scm: use dulwich backend when fetching exps during clone/pull" ( #9041 )
...
Revert "scm: use dulwich backend when fetching exps during clone/pull (#9023 )"
This reverts commit ed1ab7fa75 .
2023-02-16 18:07:45 +05:45
dependabot[bot]
3f0da8f6cc
build(deps-dev): bump scmrepo from 0.1.10 to 0.1.11 ( #9039 )Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
...
Bumps [scmrepo](https://github.com/iterative/scmrepo ) from 0.1.10 to 0.1.11.
- [Release notes](https://github.com/iterative/scmrepo/releases )
- [Commits](https://github.com/iterative/scmrepo/compare/0.1.10...0.1.11 )
---
updated-dependencies:
- dependency-name: scmrepo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-16 18:03:13 +05:45
David de la Iglesia Castro
b7b7eff4a3
tests: Fix test_deleted.
...
Closes #6297
#9017 actually fixed this but the test was incorrect (something wrong with caplog).
2023-02-16 11:43:09 +01:00
skshetry
ddeb32ed33
ui: log footer support message to standard error ( #9034 )
2023-02-16 11:31:31 +05:45
Ruslan Kuprieiev
c7be921f44
cachemgr: don't use tmp_dir
...
We used to use it in gdrive before https://github.com/iterative/PyDrive2/pull/211
2023-02-16 06:43:20 +02:00
Ruslan Kuprieiev
c95c3f0f7a
deps: limit types-tqdm
...
See https://github.com/iterative/dvc/pull/9036
2023-02-16 06:43:20 +02:00
skshetry
be824ede0d
render: avoid deepcopying ( #9033 )
...
* render: avoid deepcopying
* remove unnecessary line
2023-02-15 16:25:45 +05:45
Ruslan Kuprieiev
cbe46cccd8
data: status: fix typo
...
Leftover from #9031
2023-02-15 07:18:19 +02:00
Ruslan Kuprieiev
49b5157abe
diff: use index
2023-02-15 06:40:02 +02:00
Ruslan Kuprieiev
6f87c14bf9
data: status: bring back ui.status
2023-02-15 05:57:50 +02:00
Ruslan Kuprieiev
0f80d16ba7
data: status: fix typing
2023-02-15 05:57:50 +02:00
Ruslan Kuprieiev
4b23b4f8ae
repo: cache index for cloud versioning
...
This allows us to reuse cloud versioning index that we've built in other
operations like `data status`.
Note, this only works with `dvc config feature.data_index_cache true`
right now.
Also note that index is not populated for regular remotes, it will come
in a separate PR as there are some http-related issues to figure out.
Related #8962
2023-02-15 04:53:48 +02:00
Ruslan Kuprieiev
446871d84f
index: build_data_index: use dvcignore
...
Fixes #9008
2023-02-14 21:33:43 +02:00
dependabot[bot]
99bbe15980
build(deps-dev): bump pylint from 2.16.1 to 2.16.2 ( #9020 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.16.1 to 2.16.2.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.16.1...v2.16.2 )
---
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-02-14 22:35:59 +05:45
David de la Iglesia Castro
320771551b
exp: Preserve staged changes after experiments.
...
- Detach head after stashing workspace.
- Use reinstate_index.
2023-02-14 16:59:10 +01:00
David de la Iglesia Castro
1676d1f344
Add test_stash_exp.
2023-02-14 16:59:10 +01:00
David de la Iglesia Castro
c8ae2895f0
deps: bump scmrepo==0.1.10
...
https://github.com/iterative/scmrepo/releases/tag/0.1.10
2023-02-14 16:59:10 +01:00
skshetry
ed1ab7fa75
scm: use dulwich backend when fetching exps during clone/pull ( #9023 )
...
refspecs uses pygit2 backend by default, which does not support git credential
helpers. This PR forces to use dulwich backend during clone/pull operations.
2023-02-14 19:18:40 +05:45
Karan Jakhar
73497dae9e
Handle filenames which has ":" ( #9000 )
...
* Fixes #8773 issue
* added test for #8773 issue
* skip test for windows
2023-02-14 11:21:32 +00:00
skshetry
eff775c760
brancher: add trace when switching filesystem ( #9022 )
...
brancher: add trace info when switching filesystem
2023-02-14 15:27:18 +05:45
Ruslan Kuprieiev
e73d662686
repo: introduce data_index
...
Extracting from `index.data` as a "root" data index that contains indexes
for different revisions/workspaces.
This is a setup for putting cloud versioning remote indexes and also replacing
old state.
2023-02-13 06:31:44 +02:00
Ruslan Kuprieiev
86a6fb104a
index: experimental persistent data index
...
Related https://github.com/iterative/dvc-data/issues/208
2023-02-13 02:57:30 +02:00
Ruslan Kuprieiev
3b097dcccd
deps: bump dvc-data to 0.40.1
2023-02-12 09:12:08 +02:00
David de la Iglesia Castro
e910dac0dc
Update pyproject.toml
2023-02-10 10:59:32 +01:00
David de la Iglesia Castro
17a71d6011
plots: Rename template_path to html_template.
2023-02-10 10:59:32 +01:00
dependabot[bot]
5a6ccc8027
build(deps-dev): bump dvc-render from 0.1.1 to 0.1.2
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.1.1...0.1.2 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-02-10 10:59:32 +01:00
pre-commit-ci[bot]
6dccfcb3f9
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-02-10 04:47:57 +02:00
karajan1001
2b0c365f35
Fix some mypy error.
2023-02-10 04:47:57 +02:00
dberenbaum
611e2f4311
update rich
2023-02-09 23:18:50 +02:00
dberenbaum
561a375b48
update: drop worktree from cli
2023-02-09 23:03:50 +02:00
skshetry
e51345e276
get/import: lazy import dvc.scm; reduces dvc --help by ~20% ( #8996 )
2023-02-09 15:04:55 +05:45
skshetry
00e61e18ae
logging: do not disable other loggers ( #8995 )
...
Closes https://github.com/iterative/dvc/issues/8631
2023-02-09 15:04:29 +05:45
skshetry
5490fc00d1
logger: check isatty stream to print colored logs or not instead of depending on colorama ( #8993
...
logger: check isatty stream to print colored logs or not
2023-02-09 13:50:38 +05:45
skshetry
f1043676da
[WIP] logging: change from dictConfig to equivalent code for creating logge… ( #8985
...
logging: change from dictConfig to equivalent code for creating loggers/handlers/formatters
dictConfig clears all handlers, and potentially disables existing loggers (we disabled this functionality
though). There's much more code than necessary in dictConfig than what we need.
I have tried to keep the setup equivalent to what we had in the config, so I have not tried to cleanup
the code.
2023-02-09 09:34:14 +05:45
Ruslan Kuprieiev
f7ebcbb974
deps: bump dvc-data to 0.39.3
2023-02-09 05:44:50 +02:00
dependabot[bot]
c637b963e0
build(deps-dev): bump dvc-azure from 2.21.0 to 2.21.1 ( #8991 )
...
Bumps [dvc-azure](https://github.com/iterative/dvc-azure ) from 2.21.0 to 2.21.1.
- [Release notes](https://github.com/iterative/dvc-azure/releases )
- [Commits](https://github.com/iterative/dvc-azure/compare/2.21.0...2.21.1 )
---
updated-dependencies:
- dependency-name: dvc-azure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-09 08:31:13 +05:45
Ruslan Kuprieiev
9156bb80db
output: rename odb -> cache
2023-02-09 00:44:18 +02:00
Ruslan Kuprieiev
58295ca0ab
repo: rename odb -> cache
...
We used to have it named `cache` before, but these days it is clear that
you can have three odbs: just odb (e.g. in-memory), cache (typically local)
or remote (typically cloud). Fixing naming here before proceeding with
introducing `out.odb` and `out.cache`.
In preparation for migration to https://github.com/iterative/dvc-data/pull/304
2023-02-08 23:05:45 +02:00
skshetry
4176007493
push: check if versioning is supported or not during checkout on cloud versioning ( #8949 )Fixes https://github.com/iterative/dvc/issues/8824
...
* push: check if versioning is supported or not during checkout on cloud versioning
* bump dvc-data to 0.38.4
2023-02-08 17:05:27 +05:45
dependabot[bot] and Gao
9d7883f529
build(deps-dev): bump pytest-xdist from 3.1.0 to 3.2.0 ( #8981 )
...
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases )
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.1.0...v3.2.0 )
---
updated-dependencies:
- dependency-name: pytest-xdist
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gao <[email protected] >
2023-02-08 07:31:21 +00:00
Peter Rowlands
93c556acdd
index: fix index entries for partial import stages
2023-02-08 15:34:15 +09:00
Peter Rowlands
676b1e47e9
import-url: update stage md5 after unpartialing imports
2023-02-08 15:34:15 +09:00
Peter Rowlands
0b141ac08a
testing: test cloud versioned import-url --no-download
2023-02-08 15:34:15 +09:00
dependabot[bot]
b4db1e06a1
build(deps-dev): bump dvc-render from 0.1.0 to 0.1.1 ( #8982 )
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.1.0...0.1.1 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-08 09:11:42 +05:45
dependabot[bot]
0d0fff6ddc
build(deps-dev): bump dvc-data from 0.38.1 to 0.38.3 ( #8983 )
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.38.1 to 0.38.3.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.38.1...0.38.3 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-08 09:11:28 +05:45
Hagai Kariti
6c8c26f741
Support setting a exp name prefix in hydra sweeps
2023-02-07 18:49:23 +01:00
Peter Rowlands
f68a12558a
testing: mark 00 prefix tests xfail on fs without find()
2023-02-07 15:17:29 +09:00
Ruslan Kuprieiev
a8a5b29fb7
deps: bump dvc-data to 0.38.1 ( #8976 )
2023-02-07 06:58:15 +02:00
skshetry
037e2e54f0
serialization: reorder files section metadata ( #8950
...
serialization: reorder files section
2023-02-07 10:05:36 +05:45
skshetry
ae80889477
logging: defer calling colorama.init() in jupyter, otherwise initialize immediately ( #8969 )Closes https://github.com/iterative/dvc/issues/8957
...
logging: init colorama before logging if outside jupyter env
Otherwise, tty detection does not work as `colorama.init()` mutates
sys.stdout/sys.stderr, and after `dictConfig()`, the handlers will hold
on to the stream.
2023-02-07 10:05:05 +05:45
Gao
e1acab5113
Use pygit2 backend for fetch_refspecs ( #8907 )
...
fix : #8762
1. partly solve #8787 and #8477
2. Improve the performance
3. Bump `scmrepo` into 0.1.9
2023-02-06 16:07:00 +02:00
d84196db62
studio: Move post_live_metrics from queue to executor ( #8955 )
...
* studio: Move `post_live_metrics` from `queue/workspace` to `executor/base`.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update dvc/repo/experiments/utils.py
Co-authored-by: skshetry <[email protected] >
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2023-02-06 13:31:10 +00:00
Peter Rowlands
80c2815e67
deps: bump dvc-data to 0.37.8
2023-02-06 21:18:44 +09:00
Peter Rowlands
e42a01a3dd
testing: re-add 00 prefix remote traverse tests
2023-02-06 21:18:44 +09:00
Ruslan Kuprieiev
8e1b75feb5
index: build_data_index: handle empty dirs ( #8959 )
...
Fixes https://github.com/iterative/dvc/issues/8958
2023-02-06 01:44:15 +02:00
Saugat Pachhai (सौगात)
4ec6d64629
add .git-blame-ignore-revs
2023-02-04 10:02:31 +05:45
skshetry
a86470ccbc
update black and change line-length to 88 ( #8953 )
2023-02-04 05:28:07 +02:00
dependabot[bot]
5d2701341b
build(deps-dev): bump pylint from 2.16.0 to 2.16.1 ( #8944 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 14:06:36 +05:45
Peter Rowlands
97589a1358
testing: add tests for pull after import-url --version-aware
2023-02-03 15:50:57 +09:00
Peter Rowlands
9e72ce53cd
deps: bump dvc-data to 0.37.5
2023-02-03 15:50:57 +09:00
Peter Rowlands
e34a6d3b30
update: fix meta & version ID merge on worktree update
2023-02-03 13:23:04 +09:00
Peter Rowlands
25dcc33580
output: build from files in get_obj() regardless is hash_info set
2023-02-03 13:23:04 +09:00
frederik-sandfort
18fa1a0272
Custom header for dvc webdav ( #8933 )Fix https://github.com/iterative/dvc/issues/8931
...
* include custom auth header for webdav
* Revert "include custom auth header for webdav"
This reverts commit d2f2b2889b6bcf0429e4a28076f709a04642ae3a.
* include custom auth header for dvc webdav, ran unit tests
* update dvc-webdav version
2023-02-02 16:36:11 +05:45
dependabot[bot]
49a27f4140
build(deps-dev): bump dvc-render from 0.0.17 to 0.1.0 ( #8935 )
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.17 to 0.1.0.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.17...0.1.0 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-02 14:13:27 +05:45
dependabot[bot]
9b2aa79c18
build(deps-dev): bump pylint from 2.15.10 to 2.16.0 ( #8936 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.10 to 2.16.0.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.10...v2.16.0 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-02 14:12:53 +05:45
Ruslan Kuprieiev
24023c6977
index: introduce data_keys ( #8938 )
...
`data_keys` are similar to `outs`, but they provide more granularity, so we
can use them in `build_data_index` to rebuild index views with filtered
outputs. E.g. when running `dvc diff dir/file`, workspace index should only
have `dir/file` in it.
This also could be used for standalone (non-output) data in the future.
Pre-requisite for #8930
2023-02-02 05:50:16 +02:00
Ruslan Kuprieiev
5310bcdcec
deps: bump dvc-data to 0.37.3 ( #8923 )
2023-02-02 04:18:18 +02:00
dependabot[bot]
ae92154cec
build(deps-dev): bump beautifulsoup4 from 4.11.1 to 4.11.2 ( #8928 )
...
Bumps [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/ ) from 4.11.1 to 4.11.2.
---
updated-dependencies:
- dependency-name: beautifulsoup4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 09:10:50 +05:45
Ruslan Kuprieiev
f661cee8f6
stage: use repo.fs directly without copying ( #8929 )
...
Otherwise when using brancher we end up in a strange situation where even
though we are collecting targets from `gitfs`, we are still using `localfs`
as `self.fs`, which make operations like `self.fs.abspath` in
`collect_granular` return invalid paths.
2023-02-01 05:21:53 +02:00
Ruslan Kuprieiev
e07c85a993
index: collect_targets: introduce onerror ( #8925 )
2023-02-01 03:49:27 +02:00
Ruslan Kuprieiev
58d9e379fe
tests: gc: use timedelta again ( #8926 )
...
Leftover from #8912
2023-02-01 03:14:22 +02:00
skshetry
524162dc3f
version/info: match dashes' length below DVC version ( #8921 )
2023-01-31 18:32:04 +05:45
skshetry
aa15b21dce
logging: log pkg version/type, platform info and cli arguments ( #8918 )
...
logging: log pkg version and type, platform info and cli arguments
2023-01-31 15:46:14 +05:45
Peter Rowlands
0404967591
deps: bump dvc-gs to 2.21.1
2023-01-31 17:26:44 +09:00
Peter Rowlands
465d886c29
testing: add tests for version-aware import-url
2023-01-31 15:55:44 +09:00
Peter Rowlands
459adfb40f
import-url: disable push on version aware imports before saving
2023-01-31 15:55:44 +09:00
Peter Rowlands
fe9f8654a3
testing: add test for worktree update
2023-01-31 15:55:44 +09:00
skshetry
8208846003
bump ruff to 0.0.238 ( #8915 )
2023-01-31 11:24:03 +05:45
Peter Rowlands
73aea2d972
ci: run dvc-s3 tests on DVC pull requests
2023-01-31 14:13:55 +09:00
Ruslan Kuprieiev
10184e9370
tests: gc: use timedelta ( #8912 )
...
Bug from https://github.com/iterative/dvc/pull/8880
2023-01-31 05:18:09 +02:00
Ruslan Kuprieiev
2690f05cee
pre-commit: bump isort to 5.12.0
...
https://github.com/PyCQA/isort/issues/2077
2023-01-31 04:02:24 +02:00
Ruslan Kuprieiev
34c2c95115
index: expose rev property ( #8909 )
...
index: add rev property
This is very useful to identify indexes that are built from git revisions
and so are describing an immutable state and can be used for caching.
We were already using this for `__repr__`.
2023-01-30 20:18:54 +02:00
skshetry
5c6c1dc719
mypy: unignore module override ( #8902 )
2023-01-28 15:08:52 +05:45
98bcfad8e7
build(deps-dev): bump scmrepo from 0.1.6 to 0.1.7 ( #8821 )
...
* build(deps-dev): bump scmrepo from 0.1.6 to 0.1.7
Bumps [scmrepo](https://github.com/iterative/scmrepo ) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/iterative/scmrepo/releases )
- [Commits](https://github.com/iterative/scmrepo/compare/0.1.6...0.1.7 )
---
updated-dependencies:
- dependency-name: scmrepo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
* mypy: remove scmrepo from ignored modules
* Fix mypy issues
---------
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-01-28 14:26:00 +05:45
skshetry
7ab4c59d70
test: run pytest-style checks ( #8901 )
2023-01-28 14:10:53 +05:45
skshetry
a137b2a6bc
update ruff and enable flake8-logging-format and flake8-type-checking ( #8894 )
...
* update ruff and enable flake8-logging-format and flake8-type-checking check
* Update dvc/external_repo.py
* Update dvc/fs/dvc.py
* Update dvc/repo/experiments/__init__.py
* Update dvc/repo/experiments/queue/base.py
* Update pyproject.toml
2023-01-27 19:14:19 +05:45
Daniele Trifirò
6f0e8a8db5
tests: fix test_iter_revs mock
2023-01-27 12:52:46 +01:00
Daniele Trifirò
d294945499
gc: fix usage with --date
2023-01-27 12:52:46 +01:00
Dave Berenbaum
db70d1cc5c
analytics: differentiate ci users ( #8838 )
2023-01-26 21:50:14 +05:45
Andrii Korzhuk
ed6e11e856
Fixed typo in _format_field function
2023-01-26 13:50:40 +01:00
skshetry
c1cd13c34f
serialize: fix loading of cloud metadata from .dvc/dvc.lock files ( #8889 )
2023-01-26 16:18:03 +05:45
David de la Iglesia Castro
12dd746165
output: Pass version_aware=True to fs if files is present.
...
This will be ignored by filesystems that don't support `version_aware`.
Closes #8853
2023-01-26 10:48:59 +01:00
5165fb67a1
[pre-commit.ci] pre-commit autoupdate ( #8869 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.223 → v0.0.230](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.223...v0.0.230 )
* Update .pre-commit-config.yaml
* fix lint issues
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-01-26 14:24:09 +05:45
Peter Rowlands
b2c1c4dccd
data_cloud: move version_aware config check to get_remote
2023-01-26 17:21:47 +09:00
Peter Rowlands
b060cadbf1
deps: bump dvc-data to 0.36.2
2023-01-26 17:21:47 +09:00
Peter Rowlands
7c55a9c7cd
testing: add initial versioned remote tests
2023-01-26 17:03:50 +09:00
Peter Rowlands
037b5b2e0a
testing: add cloud versioning remote fixtures
2023-01-26 17:03:50 +09:00
dependabot[bot]
99acb8e335
build(deps-dev): bump dvc-data from 0.36.0 to 0.36.1 ( #8887 )
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.36.0 to 0.36.1.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.36.0...0.36.1 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-26 08:32:02 +05:45
Ruslan Kuprieiev
b46cfbda5d
deps: bump dvc-data to 0.36.0 ( #8885 )
2023-01-26 00:22:12 +02:00
Dave Berenbaum
a8d193bf2a
queue: update kill ui messages ( #8798 )
...
* queue: update kill ui messages
* queue kill: update ui, kill all valid tasks
* queue kill: update wording of ui
2023-01-25 20:08:27 +05:45
dependabot[bot]
0b1cf6c771
build(deps-dev): bump dvc-gs from 2.20.0 to 2.21.0 ( #8841 )
...
Bumps [dvc-gs](https://github.com/iterative/dvc-gs ) from 2.20.0 to 2.21.0.
- [Release notes](https://github.com/iterative/dvc-gs/releases )
- [Commits](https://github.com/iterative/dvc-gs/compare/2.20.0...2.21.0 )
---
updated-dependencies:
- dependency-name: dvc-gs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-25 19:29:21 +05:45
skshetry
b3aa698cd4
dumpd: serialize files at the end in .dvc files ( #8879 )
2023-01-25 18:52:15 +05:45
skshetry
bb9a3a0403
import/import-url: try not to delete dvcfile before import/import-url completes ( #8876 )
...
* import/import-url: try not to delete dvcfile before import/import-url completes
* use repo.stage.create instead of internal create_stage utility
2023-01-25 18:16:45 +05:45
skshetry
3427e115eb
data status: check if change.old.hash_info is None or not ( #8878 )
...
data:status: check if change.old.hash_info is None or not
2023-01-25 14:24:38 +02:00
skshetry
3d5f4dc66c
add support for output-specific remotes ( #8862 )
...
Also splits metadata in `files` to cloud vs local. But this happens
during dump/load, so actual behaviour is changed. During runtime,
the metadata is merged and loaded. During dump, the metadata
are split if there is a `remote` set.
2023-01-25 18:06:12 +05:45
David de la Iglesia Castro
80633f4fad
stage.save: Remove merge_versioned option.
...
If we want `add`, `commit` and `move` to work for cloud versioning, option must be always True so it is the same as not having it.
Closes #8828
(We were not passing `merge_versioned=True` in `dvc commit`)
2023-01-25 10:35:37 +01:00
Ruslan Kuprieiev
8bda3650c5
deps: bump dvc-data to 0.35.3
2023-01-24 23:06:34 +02:00
David de la Iglesia Castro
ea2e5dc3e5
output: Don't serialize hash_info or meta in cloud versioning.
...
Closes #8357
2023-01-24 18:40:39 +01:00
dependabot[bot]
61afdca3a6
build(deps-dev): bump dvc-data from 0.35.1 to 0.35.2 ( #8871 )
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.35.1 to 0.35.2.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.35.1...0.35.2 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-24 20:47:16 +05:45
Ruslan Kuprieiev
6a6bc7035a
data: status: use data index ( #8846 )
...
Pre-requisite for #8761
2023-01-23 21:29:32 +02:00
Ruslan Kuprieiev
ccc97622fa
deps: bump dvc-ssh to 2.21.0 ( #8865 )
...
* deps: bump dvc-ssh to 2.21.0
* Update pyproject.toml
2023-01-23 01:36:52 +02:00
Ruslan Kuprieiev
916b5d169f
deps: bump dvc-azure to 2.21.0
2023-01-23 00:46:58 +02:00
Peter Rowlands
38e9b2ba95
deps: bump dvc-data to 0.35.1
2023-01-21 03:44:02 +09:00
Dave Berenbaum and skshetry
18f039d7c7
add viztracer async option ( #8856 )
...
* add viztracer async option
* Update dvc/_debug.py
Co-authored-by: skshetry <[email protected] >
2023-01-20 22:29:11 +05:45
skshetry
f1c9e9365b
remove setup.py file ( #8851 )
2023-01-20 20:26:13 +05:45
Ruslan Kuprieiev
b50d1ee674
deps: bump dvc-data to 0.35.0
2023-01-20 04:16:12 +02:00
Peter Rowlands
1c33024b2c
deps: bump dvc-data to 0.34.0
2023-01-19 19:09:45 +09:00
David de la Iglesia Castro and Peter Rowlands
dd2d2dce19
param: Fix status check for Tuples.
...
Closes #8803
Update dvc/dependency/param.py
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2023-01-19 08:19:16 +01:00
David de la Iglesia Castro
5f558d003a
deps: bump dvc-data to 0.33.0
...
- Update `test_gc`
2023-01-18 15:17:07 +02:00
David de la Iglesia Castro
3676f35b7c
output.remove: Pass explicit recursive flag.
...
Per changes in https://github.com/iterative/dvc-objects/pull/176
2023-01-18 15:17:07 +02:00
David de la Iglesia Castro
9af6fcad4a
exp run: Fix --dry option.
...
Closes #8831
2023-01-17 13:32:20 +01:00
skshetry
6d80b72434
lint: run lint checks on all platforms ( #8832 )
2023-01-17 10:51:57 +05:45
pre-commit-ci[bot]
46d9290fc2
[pre-commit.ci] pre-commit autoupdate ( #8830 )
...
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.222 → v0.0.223](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.222...v0.0.223 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-01-17 08:55:33 +05:45
skshetry
c47c2123fb
cleanup linters: get rid of pylint-pytest, run pylint only on dvc/ directory, etc ( #8822 )
...
* cleanup linters: get rid of pylint-pytest, run pylint only on dvc/ directory, etc.
* remove pylint direcitves
* Apply suggestions from code review
* Update pyproject.toml
2023-01-17 08:35:19 +05:45
Dave Berenbaum
d25d26ff74
exp: drop some words from exp names ( #8811 )
2023-01-16 17:11:04 +01:00
Peter Rowlands
c2e4f51479
serialize: fix mypy error
2023-01-16 15:58:21 +09:00
Peter Rowlands
977a1f9f43
tests: update for dvc-objects batched transfer
2023-01-16 15:58:21 +09:00
Peter Rowlands
608269dc88
status: remove deprecated/unused dvc-data.hashfile.status flag
2023-01-16 15:58:21 +09:00
Peter Rowlands
e48d0d1d9c
tests: remove duplicated dvc-objects/dvc-data tests
2023-01-16 15:58:21 +09:00
Peter Rowlands
bf08bd3f12
deps: bump dvc-data to 0.32.0
2023-01-16 15:58:21 +09:00
dependabot[bot]
db5dfdd6bc
build(deps-dev): bump pytest from 7.2.0 to 7.2.1 ( #8819 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.2.0 to 7.2.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.2.0...7.2.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 08:37:15 +05:45
dependabot[bot]
3b10f40ca3
build(deps-dev): bump dvc-task from 0.1.10 to 0.1.11 ( #8820 )
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.10 to 0.1.11.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.10...0.1.11 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-16 08:36:39 +05:45
Ruslan Kuprieiev
4660443d0e
deps: bump dvc-data to 0.31.4
2023-01-16 04:09:00 +02:00
Ruslan Kuprieiev
a92ace0054
deps: bump dvc-data to 0.31.3
2023-01-16 01:16:35 +02:00
skshetry
309ae4d995
mypy: enable check-untyped-defs ( #8815 )
2023-01-15 21:40:40 +05:45
daniele
e1254c9ece
Add misc type hints ( #8430 )
2023-01-15 17:58:34 +05:45
skshetry
7a65ac06b2
mypy: don't ignore all imports, also disallow implicit optional ( #8814 )
...
* mypy: don't ignore all imports
* mypy: disallow implicit_optional
2023-01-15 16:25:03 +05:45
skshetry
b0052aa666
pre-commit update: flake8/ruff/pyupgrade/black/isort ( #8813 )
2023-01-15 14:56:54 +05:45
skshetry
da27174e02
dvcfile: rename PipelineFile to ProjectFile, get rid of Dvcfile class, cleanups, etc. ( #8812 )
...
dvcfile: rename PipelineFile to ProjectFile, get rid of Dvcfile class, cleanups etc
2023-01-15 12:45:10 +05:45
Ruslan Kuprieiev
aabdddc2b7
index: introduce build_data_index
...
This is a generally useful function that builds a data index from repo index.
This is currently only used in cloud versioning, but it is going to be used in
`status`, `diff` and other data-centric operations
2023-01-15 01:45:09 +02:00
karajan1001
fc1a192c90
Bump pathspec to 0.10.3
...
fix : #8217
1. Replace group name to avoid conflict.
2. Disable failed tests.
3. Bump pathspec to 0.10.3
2023-01-13 22:47:36 +08:00
dependabot[bot] and Saugat Pachhai
178244f666
build(deps-dev): bump dvc-task from 0.1.9 to 0.1.10 ( #8807 )
...
* build(deps-dev): bump dvc-task from 0.1.9 to 0.1.10
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.9...0.1.10 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
* remove xfail on json.JSONDecodeError/PermissionError
JSONDecodeError should be fixed by the new release. Next we need to investigate
PermissionError.
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2023-01-13 17:25:36 +05:45
skshetry
dba7d3c320
mypy: use typesafe cached_property ( #8799 )
2023-01-13 09:08:59 +05:45
David de la Iglesia Castro
8b075eb754
stage: Skip run-cache if any out has cache: false.
...
Closes https://github.com/iterative/dvc/issues/4428
2023-01-12 19:10:01 +01:00
David de la Iglesia Castro
f507e4d9c0
config: Reraise ConfigError from ConfigObjError.
...
Closes #8801
2023-01-12 18:11:54 +01:00
skshetry
5169205229
deps: bump minimum version req for grandalf to 0.7.
2023-01-12 18:38:45 +05:45
skshetry
3bcd683677
repo.check_graph: rename method ( #8800 )
2023-01-12 16:03:51 +05:45
Saugat Pachhai (सौगात)
30ec1cf5e9
index/stage: move repo collection logic to index
2023-01-11 19:38:43 +02:00
skshetry
a814f04ee0
tests: xfail test_apply_failed on JSONDecodeError/PermissionError ( #8796 )
2023-01-11 18:04:23 +05:45
skshetry
90a27179eb
ruff: ignore complex functions and remove dvc.utils.fs.makedirs ( #8795 )
...
We may want to prevent any new functions from getting complex.
2023-01-11 17:58:51 +05:45
skshetry
175c578579
ruff: ban relative parent/grandparent imports ( #8794 )
2023-01-11 16:48:46 +05:45
skshetry
5441964fdb
add ruff ( #8793 )
...
* add ruff linter
* enable few more checks
2023-01-11 15:20:38 +05:45
Ivan Shcheklein
d4bfe38a54
perf: remove fs exists check in plots, parallel data collect
2023-01-10 20:27:02 -08:00
dependabot[bot]
a060049186
build(deps-dev): unpin grandalf
...
See https://github.com/bdcht/grandalf/issues/26#issuecomment-1378175273 .
2023-01-11 08:44:49 +05:45
Ruslan Kuprieiev
c02285ab49
deps: bump dvc-data to 0.29.0
2023-01-11 03:03:38 +02:00
Jorge Orpinel
bccbbc1d94
Update dvc/commands/imp_url.py
2023-01-10 19:05:18 +02:00
Jorge Orpinel
d736b31d8b
import-url: Update options order
...
Per https://github.com/iterative/dvc.org/pull/3934
2023-01-10 19:05:18 +02:00
Peter Rowlands
68c1cc095c
deps: bump dvc-data to 0.28.6
2023-01-11 00:20:22 +09:00
Peter Rowlands
c94d28594d
worktree push: remove existing version id optimization for file outs
2023-01-10 16:21:31 +09:00
Peter Rowlands
d3d429ef7f
push/fetch: respect --jobs on worktree push/fetch
2023-01-10 16:21:31 +09:00
dependabot[bot]
6ac88104da
build(deps-dev): Bump pylint from 2.15.9 to 2.15.10
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.9 to 2.15.10.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.9...v2.15.10 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-01-10 10:39:48 +05:45
skshetry
d87cdba6d8
gha: remove env vars SHELL
2023-01-10 10:19:29 +05:45
Ruslan Kuprieiev
b25ef5cdfb
metrics/params: show: add hide_workspace flag
2023-01-09 16:57:18 +02:00
dberenbaum
435407185f
params/metrics diff: address test failures for missing branch key
2023-01-09 16:57:18 +02:00
dberenbaum
0b192af6f4
params: fix diff bt active branch and workspace
2023-01-09 16:57:18 +02:00
dberenbaum
c6b602a167
metrics: fix diff bt active branch and workspace
2023-01-09 16:57:18 +02:00
David de la Iglesia Castro
1d5de9c5ba
repro: Disable run-cache if --no-commit.
...
As described in https://github.com/iterative/dvc/issues/4428#issuecomment-778263005 .
Add `run_cache` argument to `Stage.save`. Set it to `False` if `no_commit`.
2023-01-09 12:38:57 +01:00
Ruslan Kuprieiev
0e5674ffea
ls: compute relparts once for every dir
...
Cuts down `dvc ls . data/mnist/dataset --recursive` for me from ~25 to ~12
seconds.
`relparts` is an expensive operation as it calls `relpath` that calls `abspath`,
so we want to avoid calling it as much as possible.
2023-01-08 03:44:50 +02:00
Ruslan Kuprieiev
684fc32e36
dvcfs: ls: don't call info()
...
Cuts down `dvc ls . data/mnist/dataset --recursive` for me from ~37 to ~25
seconds.
Note that this also changes behaviour for ls with a broken symlink, as we
were not able to see it before because of a failing `info()` call, but now
we can follow a normal UNIX ls behaviour more closely.
2023-01-08 00:37:40 +02:00
Saugat Pachhai (सौगात)
81f37be9d6
ci: timeout tests if it takes >5min
...
It most likely means it's frozen and unlikely to resume again. We'd want
to see where it froze, so this will provide us with a traceback.
2023-01-06 20:16:20 +05:45
Saugat Pachhai (सौगात)
3dfdd577e7
tests: xfail experiments-related flakey tests
2023-01-06 18:59:53 +05:45
dependabot[bot]
bfb6a32b51
build(deps-dev): Bump dvc-data from 0.28.4 to 0.28.5
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.28.4 to 0.28.5.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.28.4...0.28.5 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2023-01-06 16:36:48 +09:00
Daniele Trifirò
33de761560
deps: unpin dvc-http
2023-01-05 21:15:33 +01:00
Daniele Trifirò
ff38aed927
config: expose timeouts in http config
...
- `read_timeout` timeout for reading new data portions from the peer
- `connect_timeout` timeout for establishing new connections
For more information about individual timeouts meanings:
- `read_timeout` maps to `aiohttp`'s `sock_read` timeout
- `connect_timeout` applies to `aiohttp`'s `connect`, `sock_connect`
timeouts
https://docs.aiohttp.org/en/stable/client_reference.html?highlight=clienttimeout#clienttimeout
2023-01-05 21:15:33 +01:00
Daniele Trifirò
b62f17ffaf
tests: move tests/unit/remote/test_http.py to dvc-http repo
2023-01-05 19:54:14 +01:00
Daniele Trifirò
a0c781a676
exp save: fix help for --force
2023-01-04 17:57:29 +01:00
dberenbaum
6ac7dfc008
exp: fix tests and remove reset checks
2023-01-04 17:29:12 +01:00
dberenbaum
b0372918ea
exp: stop checking for unchanged experiments
2023-01-04 17:29:12 +01:00
Daniele Trifirò
4b0fa4d559
update: prevent re-download on every update
2023-01-03 18:52:48 +01:00
Saugat Pachhai (सौगात)
a24c389674
internal: hoist resolver/top-level metrics/plots/params data into file level
2023-01-03 17:46:06 +05:45
karajan1001
f386f7c082
exp apply can accept exp names and failed exps as target
...
fix : #8182
1. `exp apply` can apply to failed experiments.
2. `exp apply` can accept exp names as target.
3. Add a new functional test for it.
2022-12-30 17:40:18 +08:00
karajan1001
eadd0da394
Refactor get_ref_and_entry_by_names
...
1. Move get_ref_and_entry_by_names from `exp remove` to `celery` for
other commands usage.
2022-12-30 17:40:18 +08:00
karajan1001
06673dd212
Use SIGINT as the default signal in queue kill
...
fix : #8624
1. Add a new flag `--force` for `queue kill`
2. Make `SIGINT` to be the default option and `SIGKILL` to be with
`--force`
3. Add tests for `queue kill`
4. Bump dvc-task into 0.1.9
2022-12-30 16:19:39 +08:00
dependabot[bot]
5f0b1edb40
build(deps-dev): Bump filelock from 3.8.2 to 3.9.0
...
Bumps [filelock](https://github.com/tox-dev/py-filelock ) from 3.8.2 to 3.9.0.
- [Release notes](https://github.com/tox-dev/py-filelock/releases )
- [Changelog](https://github.com/tox-dev/py-filelock/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.8.2...3.9.0 )
---
updated-dependencies:
- dependency-name: filelock
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-30 09:20:26 +05:45
dependabot[bot]
05701e26db
build(deps-dev): Bump scmrepo from 0.1.4 to 0.1.5
...
Bumps [scmrepo](https://github.com/iterative/scmrepo ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/iterative/scmrepo/releases )
- [Commits](https://github.com/iterative/scmrepo/compare/0.1.4...0.1.5 )
---
updated-dependencies:
- dependency-name: scmrepo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-30 11:23:42 +09:00
Daniele Trifirò
109288e1cd
exp save: update --help
2022-12-29 20:51:52 +01:00
Daniele Trifirò
9e6f44bc1c
get/ls/import: improve clone error messages
2022-12-29 20:13:39 +01:00
David de la Iglesia Castro
68b24307f9
post_live_metrics: Pass params on start event.
2022-12-28 11:43:37 +01:00
skshetry
ea8a4a3db4
GHA: remove unused env from tests workflow
2022-12-27 10:26:29 +05:45
karajan1001
08ae68caf4
Make temp dir executed checkpoint experiment return result to workspace.
...
fix : #8612
For checkpoint experiment in some case users might want to give it a early
stopping to reduce variance. But currently if we interrupt/kill the
experiment it will be marked as failed, and all of the completed
checkpoints will be removed as we cleanup all the running directly after
the process failed.
1. We raise CheckpointKilledError intead of StageCmdFailed error if at
least one checkpoint had been commited.
2. Temp_dir executor will continue collecting data if the Checkpoint
stage was interrupted.
3. Raise warnings if a checkpoint stage was incomplete and the other
stages were not forwarded.
4. Add a new functional test for this
2022-12-26 18:25:43 +05:45
karajan1001
4400fb4090
queue stop --kill can kill false running status tasks
...
fix : #8702
1. replace simple `proc.kill` in `queue stop --kill` with the same logic as in
`queue kill` to make it possible to set false status `running` tasks
as faileed.
2. Modified the tests.
2022-12-26 17:16:46 +09:00
Fabian Zills
28848c5407
exp run --run-all: re-enable --jobs concurrency (#8608 )
...
* re-enable --jobs concurrency
* use `start_workers` instead of `spawn_worker`
* make `spawn_worker` a private method.
* update tests: make `spawn_worker` a private method.
2022-12-26 16:49:46 +09:00
David de la Iglesia Castro
b13184fcec
tests: Fix flaky test_show_only_changed.
...
Some of the random exp names could start with `bar`.
https://github.com/iterative/dvc/actions/runs/3757008396/jobs/6383731723#step:5:79
2022-12-22 13:01:46 +01:00
dependabot[bot]
ee5fbc72ab
build(deps-dev): Bump dvc-render from 0.0.15 to 0.0.17
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.15 to 0.0.17.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.15...0.0.17 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-22 12:17:56 +01:00
David de la Iglesia Castro
d7fd68a1ae
Add start and done calls with post_live_metrics.
2022-12-22 11:33:59 +01:00
Daniele Trifirò
59d6d5ea98
exp save: simplify implementation
2022-12-22 11:01:41 +01:00
dberenbaum
6fc0a6ff98
plots: accept any number of y data sources
2022-12-20 14:32:40 +01:00
dberenbaum
b4b5db4b4e
plots: accept list of y vals
2022-12-20 14:32:40 +01:00
Saugat Pachhai (सौगात)
23e4d376c9
index: remove unused APIs
...
These are being used by some users, but removing it for easier refactoring.
We are not using it ourselves.
2022-12-20 13:17:28 +05:45
dependabot[bot]
089a90c969
build(deps-dev): Bump pylint from 2.15.8 to 2.15.9
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.8 to 2.15.9.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.8...v2.15.9 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-19 11:28:58 +05:45
dependabot[bot]
198daec421
build(deps): Bump pyinstaller from 5.6.2 to 5.7.0
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.6.2 to 5.7.0.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases )
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst )
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.6.2...v5.7.0 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-15 19:05:41 +05:45
dependabot[bot]
04eb6a9f00
build(deps-dev): Bump mypy from 0.990 to 0.991
...
Bumps [mypy](https://github.com/python/mypy ) from 0.990 to 0.991.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.990...v0.991 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-15 19:05:27 +05:45
Saugat Pachhai (सौगात)
0467f6a036
add index._plot_sources
2022-12-15 13:00:27 +05:45
David de la Iglesia Castro
dc3d9c9677
bump DVCLive lower bound
2022-12-14 20:45:57 +01:00
Daniele Trifirò
fcf92b2755
remove a few experiments names
2022-12-14 18:14:36 +01:00
David de la Iglesia Castro and Dave Berenbaum
c806275167
Bump dvclive lower bound ( #8683 )
...
* Bump dvclive lower bound
* Update pyproject.toml
Co-authored-by: Dave Berenbaum <[email protected] >
Co-authored-by: Dave Berenbaum <[email protected] >
2022-12-14 14:13:20 +00:00
dependabot[bot]
bd1add0b95
build(deps-dev): Bump dvc-task from 0.1.6 to 0.1.8
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.6 to 0.1.8.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.6...0.1.8 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-14 11:23:26 +08:00
Ivan Shcheklein
e36f0e9d85
reset all indecies of brancher switch
2022-12-13 23:43:23 +02:00
dependabot[bot]
bc1b8f3494
build(deps-dev): Bump pylint from 2.15.7 to 2.15.8
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.7 to 2.15.8.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.7...v2.15.8 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-13 14:53:57 +01:00
dependabot[bot]
9169d273e3
build(deps-dev): Bump filelock from 3.8.0 to 3.8.2
...
Bumps [filelock](https://github.com/tox-dev/py-filelock ) from 3.8.0 to 3.8.2.
- [Release notes](https://github.com/tox-dev/py-filelock/releases )
- [Changelog](https://github.com/tox-dev/py-filelock/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.8.0...3.8.2 )
---
updated-dependencies:
- dependency-name: filelock
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-12 20:38:22 +01:00
David de la Iglesia Castro
bb7512687c
exp: Generate a human-readable name beforehand.
...
- Add `get_random_exp_name` to utils.
Generates a name (`f"{adjective}-{noun}"`) by randomly chosing pairs of adjetive, noun.
Recieves `scm` and `baseline_rev` and retries the random choice until a non-existing ref is found.
Closes https://github.com/iterative/dvc/issues/8650
2022-12-09 10:32:38 +01:00
Saugat Pachhai (सौगात)
334f297ad3
deps: remove 3.11 checks for hydra; has 3.11 support now
2022-12-09 10:32:12 +05:45
Peter Rowlands
ace3ba0ef9
worktree push: disable rev flags
2022-12-09 09:21:19 +09:00
Peter Rowlands
959d149381
worktree fetch: support revs flags
2022-12-09 09:21:19 +09:00
Peter Rowlands
7a65d67e7f
worktree: support recursive/with_deps targets
2022-12-09 09:21:19 +09:00
Peter Rowlands
e9be6779ea
worktree: disable run-cache push/fetch
2022-12-09 09:21:19 +09:00
Peter Rowlands
876d123f04
index: use lazy view loading
2022-12-08 20:56:05 +09:00
Peter Rowlands
2bfe403a28
deps: bump dvc-data to 0.28.4
2022-12-08 20:56:05 +09:00
Peter Rowlands
9bef123182
worktree: fix default worktree remote/odb exception
2022-12-08 11:01:42 +09:00
Peter Rowlands
e98ca36f39
worktree push: only index known (tracked) files/dirs in the remote
2022-12-07 18:48:34 +09:00
Peter Rowlands
b9bf73f043
push/fetch: support targets in cloud version push/fetch
2022-12-07 18:48:34 +09:00
dependabot[bot]
7628fe9d44
build(deps-dev): Bump pytest-xdist from 3.0.2 to 3.1.0
...
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist ) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases )
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.0.2...v3.1.0 )
---
updated-dependencies:
- dependency-name: pytest-xdist
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-06 20:16:21 +05:45
Peter Rowlands
d415a05460
remote: disable gc and status -c for versioned remotes
2022-12-06 19:33:52 +09:00
Peter Rowlands
f5699ce16b
update: disable rev/to-remote/no-download for worktrees
2022-12-06 15:14:17 +09:00
Peter Rowlands
baeedead3a
update: add support for worktree update
2022-12-06 15:14:17 +09:00
Peter Rowlands
5630db55ad
worktree: add support for updating outs
2022-12-06 15:14:17 +09:00
Peter Rowlands
f1bd47ce0e
index: make collect_targets public
2022-12-06 15:14:17 +09:00
dependabot[bot]
74a13a4d9a
build(deps-dev): Bump dvc-render from 0.0.14 to 0.0.15
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.14 to 0.0.15.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.14...0.0.15 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-12-02 08:30:37 +01:00
dberenbaum
b7732a591d
stage add: don't fail if unable to create .gitignore
2022-12-01 16:43:31 +01:00
Saugat Pachhai (सौगात)
d57bb23c93
fix windows path handling
2022-12-01 15:56:26 +01:00
Saugat Pachhai (सौगात)
28402dedf1
add tests
2022-12-01 15:56:26 +01:00
Saugat Pachhai (सौगात)
df60f5d9bf
collect top-level params/plots/metrics together with stages
2022-12-01 15:56:26 +01:00
Saugat Pachhai (सौगात)
7ea73b2596
wip: top level params and metrics
2022-12-01 15:56:26 +01:00
Peter Rowlands
aa2e830511
deps: bump dvc-data to 0.28.3
2022-12-01 16:02:59 +09:00
dependabot[bot]
6fdd6673f3
build(deps-dev): Bump pylint from 2.15.5 to 2.15.7
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.5 to 2.15.7.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.5...v2.15.7 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-30 16:33:01 +01:00
dberenbaum
fac5f18dea
plots: add tests for errors in vega converter
2022-11-29 16:08:29 +01:00
dberenbaum
d8068430e7
plots: fix multi-file plots
2022-11-29 16:08:29 +01:00
Peter Rowlands
25b1ef9971
worktree push: separate worktree from version_aware
2022-11-29 22:45:16 +09:00
Peter Rowlands
df563e43c1
remote: make worktree imply version_aware
2022-11-29 22:45:16 +09:00
karajan1001
3ba6b1f0bf
Solve the unexpected error at the end of the queued tasks running
...
fix : #8615
1. This is because, at the end of the tasks,
the temp running directly will be deleted
1. Only fetch result during running (not during the result collection)
2. Bump into scmrepo 0.1.4 in which we wrapped `KeyError` into
`SCMError`.
2022-11-29 15:24:19 +08:00
Peter Rowlands
6a9fbaf3d2
deps: bump dvc-data to 0.28.2
2022-11-29 14:37:11 +09:00
David de la Iglesia Castro
a036eaf817
exp: save: Add include_untracked.
...
Allow to include a list of potentially untracked files.
Covers the DVCLive use case where in the first run the generated files won't be tracked in Git yet.
2022-11-28 15:49:34 +01:00
David de la Iglesia Castro
665185b9e7
exp: save: Handle staged changes.
...
Staged changes were causing a merge error.
Warn and unstage instead of erroring, to match exp run behavior.
2022-11-28 15:49:34 +01:00
David de la Iglesia Castro
43e281521e
exp save: cleanup.
...
Remove metrics.
Move tests to separate file.
Fix `experiments.get_exact_name` usage.
Remove unused checkpoint logic.
2022-11-28 15:49:34 +01:00
Daniele Trifirò
73b46a5789
exp save: initial implementation
2022-11-28 15:49:34 +01:00
David de la Iglesia Castro
8124396218
exp: Expose baseline and name via run_env.
...
Required by DVCLive for the experiments onboarding and live metrics features.
Related (not sure if closes): https://github.com/iterative/dvc/issues/6668
2022-11-28 13:13:04 +01:00
Peter Rowlands
e95ae5613d
index: skip data index load on empty view
2022-11-28 18:49:32 +09:00
karajan1001
ca4dd08e37
Use temp branch name to avoid locking the exec branches in temp dir executor
...
fix : #8448
In our current temp dir executor, we use will first set EXEC_* branches
to revisions retrieved from stash entry. And push them to remote, but
because the push operation is very slow, our locking operation will make
the whole repository unusable.
1. Now we set revisions from stash entry to some temp branches and then
push them to remote.
2022-11-28 17:04:16 +08:00
karajan1001
0ebc253a43
rwlock auto solve corrupted lockfile
2022-11-28 17:04:16 +08:00
karajan1001
6bfce5a5db
Use a more granular lock on exp operations.
...
For now in `experiment.new`, `init_executor` and `collect_exectuor` we
lock the whole scm repo. We can make a more granular lock in these
operations.
2022-11-28 17:04:16 +08:00
karajan1001
5fa33a06bc
Move EXEC_TMP_DIR and EXEC_PID_DIR to experiment.utils
2022-11-28 17:04:16 +08:00
Peter Rowlands
6a75f3c327
deps: bump dvc-data to 0.28.1
2022-11-28 16:10:31 +09:00
Ivan Shcheklein
d7587556c9
exp list: cleanup and move logic inside repo api
2022-11-25 16:15:17 -08:00
skshetry
bb80eab77a
deps: add support for hdfs in Python 3.11
2022-11-25 11:16:42 +05:45
Ruslan Kuprieiev
ab3f8fb1a4
Create hook-asyncssh.py
...
Fixes #7577
2022-11-24 23:25:00 +02:00
Yury
6edca79b79
repro dry: show information if the stage is cached
...
Fixes : #8342
2022-11-24 21:49:52 +02:00
Ruslan Kuprieiev
2a888970e8
build: fpm: don't double quote cli option
...
Leftover from #8611
2022-11-24 01:34:18 +02:00
Ruslan Kuprieiev
73fdfc8059
build: fpm: don't create .build-id/* files
...
These are leaking into our rpm packages.
Related https://github.com/iterative/dvc-s3-repo/issues/86
2022-11-24 01:02:44 +02:00
Ruslan Kuprieiev
8dc11417d2
testing: api: test opening a file in subdir
...
Related to #8420
2022-11-23 17:47:13 +02:00
b02855fb93
ui: Fix WSL check in open_browser ( #8604 )
...
* ui: Fix WSL check in `open_browser`
* Update dvc/ui/__init__.py
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-23 09:57:57 +00:00
Peter Rowlands
af255a46b4
worktree: use progress bars in push/fetch
2022-11-23 13:05:51 +09:00
Peter Rowlands
2748492f6b
worktree push: don't push existing versions
2022-11-23 13:05:51 +09:00
Peter Rowlands
c69d3188a6
deps: bump dvc-data to 0.28.0
2022-11-22 19:04:18 +09:00
karajan1001
9b9c04e633
Solve the problem during executor running
...
fix #7693
The problem was when we gathered experiments, and at the same time,
the executor are creating new commits. It will make the checkpoint
top/head return by `get_running_exps`/`get_ref`/`branch_revs` not the
same one. And cause the problem described in #7693
To solve this we did
1. move the `get_rev` to the beginning of `exp show` to make sure the
return results in `branch_revs`
2. Add a new function to move all of the properties that only belong to
`head` of the checkpoint from the wrong place to the top.
3. Add a new unit test for it.
4. Force fetch_running_exp to return data.
5. fix a bug in tmp_dir_executor.
2022-11-22 17:44:55 +08:00
karajan1001
350e0fb1f7
queue kill: we can manually mark problematic tasks as failure
...
fix : #8461
fix : #8473
For now, for those inactive but uncompleted tasks, they still shown as
Running in `exp show` and `task queue`, we cannot remove them because
they are regarded as running, we cann't kill them because their are no
real process behind them.
1. Now we can examine these false running tasks and mark them as failure
in `queue kill` command. #8461
2. Better msg handle for initliaizing tasks in `queue kill`#8473
3. Add new unit tests for both cases.
4. bump into new dvc-task 0.1.6
2022-11-22 13:33:23 +08:00
dberenbaum
f14358bc72
plots: add test for default x label
2022-11-21 21:05:12 +01:00
David de la Iglesia Castro
705bc6ec82
Added test_infer_x_label
2022-11-21 21:05:12 +01:00
dberenbaum
61a02e6f56
plots: set default x label
2022-11-21 21:05:12 +01:00
Saugat Pachhai (सौगात)
8e5226ece0
cli: remove version action
2022-11-21 20:37:05 +05:45
Peter Rowlands
2a1af0b880
add: merge existing file meta for versioned dirs
2022-11-21 19:18:41 +09:00
Peter Rowlands
014d149512
out: move restore_fields logic into Output
2022-11-21 19:18:41 +09:00
Peter Rowlands
77ae4aa92e
deps: bump dvc-azure to 2.20.5
2022-11-21 18:21:02 +09:00
Peter Rowlands
588471a811
deps: bump dvc-data to 0.27.0
2022-11-21 18:21:02 +09:00
dependabot[bot]
e59c19e752
build(deps-dev): Bump dvc-render from 0.0.13 to 0.0.14
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.13 to 0.0.14.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.13...0.0.14 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-21 10:08:09 +01:00
David de la Iglesia Castro and Dave Berenbaum
b0a92414fa
hydra: Use OmegaConf.to_yaml for dumping .yaml output. ( #8587 )
...
* hydra: Use `OmegaConf.to_yaml` for dumping `.yaml` output.
Combining `OmegaConf.to_object` with our yaml DUMPER (ruaml.yaml) was not correctly handling strings like 'no'.
`OmegaConf.to_yaml` uses a custom string representer that correctly handles those cases.
Fixes #8583
* Update dvc/utils/hydra.py
Co-authored-by: Dave Berenbaum <[email protected] >
Co-authored-by: Dave Berenbaum <[email protected] >
2022-11-19 12:37:18 +00:00
Peter Rowlands
dae500d7c7
worktree: use view instead of full index in push/fetch
2022-11-19 09:55:58 +09:00
Peter Rowlands
a01bc2918e
push/fetch: move worktree logic into repo.worktree
2022-11-19 09:55:58 +09:00
David de la Iglesia Castro
a33bbc97d5
parsing: Escape str interpolation in dict unpacking.
...
Use subprocess.list2cmdline (windows) / shlex.quote
Closes #8203
Closes #8370
2022-11-18 20:00:16 +01:00
Paweł Redzyński
ba2e8bdac7
plots: data conversion: adjust for viewer backend ( #8421 )
...
* plots: vega: converter: support multi series data split and props inference
Fixes : #7754 , #8399
Related: iterative/studio#4369
* plots: converter: make converter infer x and y labels if not provided
* plots: vega: converter: roll back to datapoints format
* plots: vega: converter: refactor
* plots: infer labels on
* plots: get_plot_id: fix naming
* plots: vega: converter: notes regarding converting
2022-11-18 12:36:00 +00:00
Peter Rowlands
4d6e045989
status -c: exclude push: false outs
2022-11-18 16:32:29 +09:00
Peter Rowlands
00eea4560e
import-url: default to push: false for cloud-versioned imports
2022-11-18 16:32:29 +09:00
Peter Rowlands
6e02dddabd
output: check push in get_used_objs
2022-11-18 16:32:29 +09:00
Peter Rowlands
b550c5e625
output: add PARAM_PUSH
2022-11-18 16:32:29 +09:00
Ruslan Kuprieiev and Peter Rowlands
b36861ada9
tests: import: use odb.clear()
...
Co-authored-by: Peter Rowlands <[email protected] >
2022-11-17 10:56:01 +02:00
Ruslan Kuprieiev
d482e26c99
deps: bump dvc-data to 0.26.0
2022-11-17 10:56:01 +02:00
dependabot[bot]
a8ad59ae4e
build(deps-dev): Bump dvc-render from 0.0.12 to 0.0.13
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.12 to 0.0.13.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.12...0.0.13 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-16 11:13:05 +01:00
Ivan Shcheklein
76cc649f5e
fix/8550+: cover with test
2022-11-16 15:16:37 +05:45
Ivan Shcheklein
d52e1aa17b
fix: exp list ref heads handling
2022-11-16 15:16:37 +05:45
Saugat Pachhai (सौगात)
65f61acffa
tests: garbage collect sqlite connections on Windows + Python 3.11
...
There seems to be a regression in Python 3.11, where the sqlite
connections are not deallocated, due to some internal changes in
Python 3.11, where they are now using LRU cache. They are not deallocated
until `gc.collect()` is not called.
See https://github.com/python/cpython/issues/97641 .
This affects only Windows, because when we try to remove the tempdir for
the exp run, the sqlite connection is open which prevents us from
deleting that folder.
Although this may happen in real scenario in `exp run`, I am only fixing
the tests by mocking `dvc.close()` and extending it by calling
`gc.collect()` after it. We could also mock `State.close()` but didnot
want to mock something that is not in dvc itself.
The `diskcache` uses threadlocal for connections, so they are expected
to be garbage collected, and therefore does not provide a good way to
close the connections. The only API it offers is `self.close()` and that
only closes main thread's connection. If we had access to connection,
an easier way would have been to explicitly call `conn.close()`.
But we don''t have such option at the moment.
Related: https://github.com/iterative/dvc/pull/8404#issuecomment-1310024661
GHA Failure: https://github.com/iterative/dvc/actions/runs/3437324559/jobs/5731929385#step:5:57
2022-11-16 08:02:43 +05:45
Peter Rowlands
fdc689954f
pyinstaller: drop google-api-client hooks
2022-11-15 22:07:05 +09:00
Peter Rowlands
076c48532d
deps: bump dvc-gdrive to 2.19.1
2022-11-15 22:07:05 +09:00
David de la Iglesia Castro
e4ea463c73
hydra: Raise error when name and sweeps.
2022-11-14 21:34:55 +01:00
Saugat Pachhai (सौगात)
87d8269365
typecheck: fix type error in _git_info
2022-11-14 10:21:31 +05:45
Peter Rowlands
a753ee215f
output: fix get_entry dep object generation for imports
2022-11-13 14:41:21 +02:00
dependabot[bot]
014a38fae2
build(deps-dev): Bump iterative-telemetry from 0.0.5 to 0.0.6
...
Bumps [iterative-telemetry](https://github.com/iterative/telemetry-python ) from 0.0.5 to 0.0.6.
- [Release notes](https://github.com/iterative/telemetry-python/releases )
- [Commits](https://github.com/iterative/telemetry-python/compare/0.0.5...0.0.6 )
---
updated-dependencies:
- dependency-name: iterative-telemetry
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-11 14:54:07 +09:00
Peter Rowlands
8913f5a6fe
mypy: allow implicit-optional
2022-11-11 14:17:17 +09:00
dependabot[bot]
4ce9825c2b
build(deps-dev): Bump mypy from 0.982 to 0.990
...
Bumps [mypy](https://github.com/python/mypy ) from 0.982 to 0.990.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.982...v0.990 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-11 14:17:17 +09:00
dependabot[bot]
e9c5b5fa84
build(deps-dev): Bump dvc-gs from 2.19.1 to 2.20.0
...
Bumps [dvc-gs](https://github.com/iterative/dvc-gs ) from 2.19.1 to 2.20.0.
- [Release notes](https://github.com/iterative/dvc-gs/releases )
- [Commits](https://github.com/iterative/dvc-gs/compare/2.19.1...2.20.0 )
---
updated-dependencies:
- dependency-name: dvc-gs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-11 13:33:10 +09:00
karajan1001
fa54c1af7c
Solve run_all flaky tests
...
1. Modify run all to include currently running exps.
2. bump dvc-task to 0.1.5
2022-11-11 07:04:43 +05:45
karajan1001
9fbbfd07a6
Fix some celery queue realted ci failure
...
fix : #8403
1. remove some of the flaky mark
2. In `get_result` make sure the celery task is completed.
2022-11-11 07:04:43 +05:45
karajan1001
929de7c651
Solve the crash on getting name of applied experiment branch
...
fix : #8526
1. The current `get_names` will crash if an experiment branch had
already been given a new branch name to it.
1. Solve the crash when we getting the name of a newly fixed experiment
branch.
2. Add a new unit test to it.
2022-11-10 13:18:45 +08:00
blakeNaccarato
49af6e1435
plots: support svg
...
Add SVG to parser and parametrize an existing functionality test on SVG as well as JPG.
Fixes #6714 .
2022-11-09 19:23:49 +02:00
skshetry
a6bfc7db4e
ci: test with 3.11 on all OSes ( #8543 )
...
* ci: test with 3.11 on all OSes
* Update tests.yaml
* Update tests.yaml
2022-11-09 12:05:27 +00:00
Yury
872a0d663e
dvc exceptions CyclicGraphError: add more clear message for the exception
...
Fixes : #7915
2022-11-09 14:33:08 +05:45
dependabot[bot]
c01583f3dd
build(deps-dev): Bump dvc-task from 0.1.4 to 0.1.5
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.4...0.1.5 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-09 16:37:14 +09:00
karajan1001
e0d41c7012
Make exp show handle errors better
...
fix : #8350
We shouldn't add locks to exp show to prevent race conditions
as this command is calling continuously by the extension.
So we make a better way to handle all kinds of reference failures.
1. Drop all based experiments if got a SCMError in baseline.
2. Drop all checkpoint experiments if any commit got a SCMError in
one of checkpoint commit.
3. Drop the entire experiments if got a SCMError.
4. Add tests for each of the conditions above.
2022-11-08 20:12:22 +08:00
Peter Rowlands
628b992442
index: fix granular dir output view filtering
2022-11-08 19:28:10 +09:00
Peter Rowlands
99e7f52bbd
index: support filtering by output in views
2022-11-08 19:28:10 +09:00
skshetry
b2a275ee9e
Create codeql.yml
2022-11-08 13:21:20 +05:45
skshetry
7e423b668f
pkging: also post released packages to test.pypi.org
2022-11-07 18:57:53 +05:45
Saugat Pachhai (सौगात)
2c3956bdb0
exp init: fix live metrics path
2022-11-07 12:45:32 +01:00
Saugat Pachhai (सौगात)
a48a19ce31
tests: ignore versions for subprojects
2022-11-07 12:45:32 +01:00
David de la Iglesia Castro
1de983f0de
Remove live section support.
2022-11-07 12:45:32 +01:00
David de la Iglesia Castro
eb20a8e049
deps: Bump dvclive to >= 1.0
2022-11-07 12:45:32 +01:00
David de la Iglesia Castro
78e25747a4
exp init: Update DVCLive paths.
...
Closes #8531
2022-11-07 12:45:32 +01:00
dberenbaum
240f0ebdc3
fix hydra_sweeps referenced before assignment
2022-11-04 15:59:26 +01:00
skshetry
69f78d3bb6
ci: bench: use 3.11 in benchmarks
2022-11-04 18:43:02 +05:45
skshetry
740fe504c9
Update README.rst
2022-11-04 18:27:50 +05:45
skshetry
7bb84286f5
readme: show downloads badge
2022-11-04 18:27:50 +05:45
Peter Rowlands
3891e81bdd
index: load dir entries before generating target views
2022-11-04 19:09:48 +09:00
Peter Rowlands
bb62833897
index: move import specific entry building out of index.data() property
2022-11-04 19:09:48 +09:00
Peter Rowlands
fb703150ce
output: load precomputed md5 from PARAM_FILES for non-local fs
2022-11-04 19:09:48 +09:00
Peter Rowlands
33d4ead8b6
import-url: save files for version-aware dir
2022-11-04 19:09:48 +09:00
Peter Rowlands
76b1f8c907
deps: bump dvc-data to 0.25.3
2022-11-04 19:09:48 +09:00
Paweł Redzyński
d7152e360e
Update dvc/repo/plots/__init__.py
2022-11-04 09:54:45 +05:45
dberenbaum
ab69b88a21
plots: allow top-level strings
2022-11-04 09:54:45 +05:45
dependabot[bot]
43a8eab2e0
build(deps-dev): Bump dvc-s3 from 2.20.1 to 2.21.0
...
Bumps [dvc-s3](https://github.com/iterative/dvc-s3 ) from 2.20.1 to 2.21.0.
- [Release notes](https://github.com/iterative/dvc-s3/releases )
- [Commits](https://github.com/iterative/dvc-s3/compare/2.20.1...2.21.0 )
---
updated-dependencies:
- dependency-name: dvc-s3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-11-04 08:09:29 +05:45
Saugat Pachhai (सौगात)
15f35e827e
fix windows
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
4d17c171f1
tests: use mocker
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
c27005a8b7
migrate test_{repro,run}*.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
ecd371f8ae
migrate test_move.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
bda1388bff
migrate test_gc.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
c02bd7f318
migrate some files to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
fe1d805c80
migrate test_cli.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
f9b0de883f
migrate test_checkout.py to pytest
2022-11-03 23:07:28 +05:45
Saugat Pachhai (सौगात)
1cad8ea7fd
migrate test_{add,analytics,init,unprotect,local,process}.py to pytest
2022-11-03 23:07:28 +05:45
David de la Iglesia Castro
08a643e005
hydra: Raise lazy DvcException for Python >= 3.11
2022-11-03 12:14:18 +01:00
Peter Rowlands
97a8b6978c
deps: bump scmrepo to 0.1.3
2022-11-03 15:56:50 +09:00
Peter Rowlands
b44099367e
exp run: catch hydra import in 3.11
2022-11-03 15:38:53 +09:00
skshetry
29b3dc1f9e
fix 3.10 in setup-python
2022-11-01 16:35:24 +05:45
Saugat Pachhai (सौगात)
6e73bd0b5b
use setuptools_scm provided version
2022-11-01 12:44:31 +02:00
skshetry
fa5a9abdeb
build: bump pyinstaller packages python version to 3.10 ( #8511 )
...
bump pyinstaller packages python version to 3.10
As 3.11 is now released, let's bump pyinstaller packages to 3.10 (we always keep them 1 version behind).
2022-11-01 16:24:00 +05:45
dependabot[bot]
30775f7b31
build(deps): Bump pyinstaller from 5.6.1 to 5.6.2 ( #8499 )
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.6.1 to 5.6.2.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases )
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst )
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.6.1...v5.6.2 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 15:19:02 +05:45
Peter Rowlands
e07aca9fd3
commit: skip changed_entries check on force commit
2022-11-01 18:05:41 +09:00
skshetry
d2265f36ba
ci: run only single macOS job ( #8509 )
...
* ci: run only single macOS job
* ci: use alls-green@release gate check
2022-11-01 14:30:46 +05:45
Saugat Pachhai (सौगात)
d548618291
codecov: disable patch status
2022-11-01 14:02:59 +05:45
skshetry
48ff332f4a
tests: remove old cleanup handler for Windows subprocess ( #8508 )
2022-11-01 13:57:50 +05:45
Saugat Pachhai (सौगात)
97f5ffc3c6
codecov: re-add codecov.yml
2022-11-01 13:56:54 +05:45
skshetry
f6849d2f06
chore: remove bin dir and simplify tests.__main__ ( #8507 )
2022-11-01 13:05:53 +05:45
skshetry
a172240536
Update release.yml
2022-11-01 11:43:25 +05:45
skshetry
129a4fbb92
fix release note config, it has to be inside changelog key ( #8504 )
2022-11-01 11:42:05 +05:45
skshetry
c101514677
ci: add release note config ( #8503 )
2022-11-01 11:37:11 +05:45
skshetry
5e883bc00c
tests: remove TestDir ( #8502 )
...
remove TestDir
2022-11-01 11:28:09 +05:45
skshetry
4b720e5820
remove .codecov.yml and MANIFEST.in, move .coveragerc to pyproject.toml ( #8500 )
...
* remove .codecov.yml and MANIFEST.in, move .coveragerc to pyproject.toml
* remove scripts/pypi_upload.sh
2022-11-01 10:11:55 +05:45
skshetry
c0054fa57e
remove zip-safe ( #8498 )
...
See https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html . `zip_safe` is not required these days.
2022-11-01 07:50:18 +05:45
skshetry
6049494cef
set name so that dependency graph works ( #8497 )
...
See https://github.com/orgs/community/discussions/6456
2022-11-01 07:09:21 +05:45
skshetry
120a5879bb
ci: push package to test.pypi.org ( #8495 )
...
* ci: push package to test.pypi.org
* include dvc.testing and license file
2022-10-31 23:34:00 +05:45
Step Security Bot
c8e39523c3
[StepSecurity] ci: Harden GitHub Actions ( #8496 )
...
Signed-off-by: StepSecurity Bot <[email protected] >
2022-10-31 23:27:18 +05:45
skshetry
7648e715f8
move project config to pyproject.toml ( #8493 )
...
* move config to pyproject.toml
* ci: use pyproject.toml for cache key
* pyproject.toml: use recursive dependencies for dev and all
* Update pyproject.toml
2022-10-31 22:43:48 +05:45
skshetry
ca5ad6457f
ci: cache lint deps, decrease test timeout ( #8494 )
2022-10-31 22:15:54 +05:45
dependabot[bot]
de848d9598
build(deps-dev): Bump pytest-xdist from 2.5.0 to 3.0.2 ( #8474 )
...
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist ) from 2.5.0 to 3.0.2.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases )
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v2.5.0...v3.0.2 )
---
updated-dependencies:
- dependency-name: pytest-xdist
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 21:23:57 +05:45
dependabot[bot]
4330f1a70f
build(deps): Bump pyinstaller from 5.0 to 5.6.1 ( #8475 )
...
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller ) from 5.0 to 5.6.1.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases )
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst )
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.0...v5.6.1 )
---
updated-dependencies:
- dependency-name: pyinstaller
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 21:23:43 +05:45
dependabot[bot]
144e21b552
build(deps-dev): Bump pytest from 7.1.3 to 7.2.0 ( #8479 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.3 to 7.2.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.3...7.2.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 21:20:21 +05:45
dependabot[bot]
7945428e5e
build(deps-dev): Bump pylint from 2.15.4 to 2.15.5 ( #8463 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.4 to 2.15.5.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.4...v2.15.5 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 21:19:58 +05:45
skshetry
6df70d388e
update pre-commit; add some more hooks ( #8492 )
...
* update pre-commit; add some more hooks
* Apply suggestions from code review
2022-10-31 21:04:11 +05:45
skshetry
4ca2158b9d
tests: retry celery queue on timeout ( #8488 )
...
retry celery queue on timeout
2022-10-31 19:38:05 +05:45
Ruslan Kuprieiev
f87e78d754
deps: bump dvc-data to 0.25.2
2022-10-31 14:41:23 +02:00
Ruslan Kuprieiev
5899440b46
deps: bump dvc-data to 0.25.1
2022-10-30 00:59:39 +03:00
Ruslan Kuprieiev
61ce52f259
yappi: add --yappi-separate-threads flag
2022-10-29 21:23:37 +03:00
Ruslan Kuprieiev
475ef3ce65
Delete release-drafter.yml
2022-10-29 19:39:55 +03:00
karajan1001
22eb9051f6
Move the function out of rwlock
2022-10-29 08:53:02 +08:00
karajan1001
9ef1d1d6e6
Move away tempdir related change from basequeue.
2022-10-29 08:53:02 +08:00
karajan1001
d5cc54ad35
dvc exp show auto solve corrupted rwlock info
...
fix : #8450
1. Add a new function check_rwlock to check and autocorrect rwlock info.
2. Add related tests for it.
2022-10-29 08:53:02 +08:00
karajan1001
47ece317a5
Refactor: move get_running_exps to queue
...
Move logic of `get_running_exps` from `repo.experiments` to each queue.
2022-10-29 08:53:02 +08:00
Ruslan Kuprieiev
8f82a421a0
index: support multiple targets within output in IndexView
...
stage_infos might contain the same stage multiple times, but with different
filter_info, so we shouldn't convert it to dict, as that makes us lose all
but one filter_info's.
2022-10-25 13:37:44 +03:00
karajan1001
ed2ccaf54c
Use celery status as the exp show status
...
fix : #8349
`tasks status turned to queued for 1 second before turned into success.`
is because in previous the status is using the output of
`get_running_exps` in `repo.expereiments` and when entering the
collect result progress, the `get_running_exps` will mark the tasks to
be not running because the `info.result` is not None. Here we use the
output of the celery queue as the universal standard for the tasks
status.
1. Use celery status as the exp show status
2022-10-24 14:41:27 +08:00
Ruslan Kuprieiev
23534063ca
push: use build_tree instead of tree_from_index
2022-10-21 17:02:33 +03:00
Ruslan Kuprieiev
d56957416e
index: data: don't forget to set entry.key
2022-10-21 17:02:33 +03:00
dependabot[bot]
269e12287c
build(deps): Bump dvc-data from 0.20.0 to 0.22.0
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.20.0 to 0.22.0.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.20.0...0.22.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-21 17:02:33 +03:00
karajan1001
5413187c2d
Give lock acquiring more time in concurrency situation.
...
fix : #8417
1. Give the executor initialization and result collection more time for
acquiring locks.
2022-10-21 10:18:28 +08:00
karajan1001
d56376c70a
exp show: Use batch call on scm.describe
...
fix : #8451
1. Change the call of scm.describe from individual revision to a
collection of them. Accelerate the run speed of `exp show`
2. Bump scmrepo to 0.1.2
2022-10-20 17:22:25 +08:00
Saugat Pachhai (सौगात)
1d5d15644d
debug: add --show-stack/--ss flag
2022-10-19 17:13:22 +03:00
Peter Rowlands
a0e45cdd5d
index: remove partial_imports in favor of repo.imports view
2022-10-19 17:12:16 +03:00
Peter Rowlands
7fe316b8e8
import-url: only unpartial imports in workspace
2022-10-19 17:12:16 +03:00
Peter Rowlands
3478a7e6a9
import-url: support cloud versioning
2022-10-19 17:12:16 +03:00
Peter Rowlands
d1fa3d2c21
fetch: use data index save() for fetching imports
2022-10-19 17:12:16 +03:00
Peter Rowlands
b594337a69
index/out: add out.get_entry()
2022-10-19 17:12:16 +03:00
Peter Rowlands
36f6f29ac8
index: set source fs/path for import data index entries
2022-10-19 17:12:16 +03:00
skshetry
bbaf57c5b2
_debug: minor refactor on debugtools ( #8454 )
...
* _debug: minor refactor on debugtools
* delete test
2022-10-19 18:01:20 +05:45
David de la Iglesia Castro
61f8478885
tests: Remove test_ssh
...
Moved to dvc-ssh repo in https://github.com/iterative/dvc-ssh/pull/13
2022-10-19 12:35:11 +03:00
dependabot[bot]
4493da0f04
build(deps): Bump dvc-task from 0.1.3 to 0.1.4
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.3...0.1.4 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-19 15:40:56 +08:00
Peter Rowlands
7c225206ab
fetch/push: use dvc-data TransferResult
2022-10-18 19:02:47 +09:00
Peter Rowlands
be5a54bfb4
deps: bump dvc-data to 0.20.0
2022-10-18 19:02:47 +09:00
skshetry
d9ce9b4fef
testing.api_tests: remove comment from fixture ( #8444 )
2022-10-18 15:44:59 +05:45
dependabot[bot] and skshetry
689988592f
build(deps-dev): Bump pylint from 2.15.2 to 2.15.4 ( #8424 )
...
* build(deps-dev): Bump pylint from 2.15.2 to 2.15.4
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.2 to 2.15.4.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.2...v2.15.4 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
* Remove astroid
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2022-10-18 09:27:54 +05:45
dependabot[bot]
1ddfca856a
build(deps): Bump dvc-data from 0.18.0 to 0.19.0 ( #8442 )
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.18.0...0.19.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 09:27:27 +05:45
dependabot[bot]
e451ce7d0b
build(deps-dev): Bump pytest-mock from 3.9.0 to 3.10.0 ( #8402 )
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.9.0...v3.10.0 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 07:52:16 +05:45
pre-commit-ci[bot]
de05659a93
[pre-commit.ci] pre-commit autoupdate ( #8441 )
...
updates:
- [github.com/codespell-project/codespell: v2.2.1 → v2.2.2](https://github.com/codespell-project/codespell/compare/v2.2.1...v2.2.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-18 07:47:20 +05:45
Daniele Trifirò
e9244924d7
plots: allow definition of plots section as list
2022-10-17 12:06:31 +02:00
David de la Iglesia Castro
3bbf8fa7d2
config: ssh: Add passphrase and ask_passphrase options.
...
Bump `dvc-ssh`.
Fixes #8137
2022-10-14 12:11:31 +03:00
Peter Rowlands
ed87c308ba
deps: bump dvc-data to 0.18.0
...
- callbacks: update to dvc-data 0.18.0 behavior
2022-10-13 20:00:19 +09:00
Peter Rowlands
add28f73f1
brancher: clear repo.index on each branch
2022-10-11 16:12:00 +03:00
Peter Rowlands
2bc693fb4c
index: add IndexView and Index.targets_view()
2022-10-11 16:12:00 +03:00
Peter Rowlands
ac57fa53fe
index: cache target collection
2022-10-11 16:12:00 +03:00
Peter Rowlands
0ca0d94cb2
output: mypy fixes
2022-10-11 16:12:00 +03:00
David de la Iglesia Castro
c12deaa62c
exp show: Preserve full branch and tag names.
...
Closes #7933
2022-10-11 19:55:36 +09:00
pre-commit-ci[bot]
5606608867
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/ambv/black: 22.8.0 → 22.10.0](https://github.com/ambv/black/compare/22.8.0...22.10.0 )
2022-10-11 14:43:51 +08:00
Ruslan Kuprieiev
6711b653a5
tests: add tests for dvcignore.walk
2022-10-10 21:43:44 +03:00
Ruslan Kuprieiev
faef8eec2c
tests: ignore: use dvcignore.find directly
2022-10-10 21:43:44 +03:00
Ruslan Kuprieiev
11766c8839
ignore: walk: support detail=True
2022-10-10 21:43:44 +03:00
Peter Rowlands
1180a2f051
deps: bump dvc-data to 0.17.1
2022-10-10 16:25:07 +09:00
Ronan Lamy
f59a99d442
Skip some tests on FSs that don't support dirs (like http)
2022-10-07 19:03:57 +03:00
Ronan Lamy
d5f5e14183
make get-url testable with the dvc plugins
2022-10-07 19:03:57 +03:00
Ronan Lamy
10f60bed58
make get-url consistent with ls-url
...
Also, move parse_external_url() to dvc.fs as it's now used both by
ls_url() and get_url().
2022-10-07 19:03:57 +03:00
Ronan Lamy
6a0d7f9c51
Extract Output.download() into a function
...
Also, move the method to Dependency, since it's only used there.
2022-10-07 19:03:57 +03:00
dependabot[bot]
8640beb998
build(deps): Bump dvc-render from 0.0.11 to 0.0.12
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.11 to 0.0.12.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.11...0.0.12 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-06 17:30:35 +02:00
karajan1001
884182f6f2
Add "status" to replace "running" and "queued" in output of exp show
...
fix : #7986
1. Add two new flags `--hide-queued` and `--hide-failed` to `exp show`
2. Allow `exp show` to show failed experiments.
3. Add unit test for the failed experiments shown.
4. Add name support for failed exp
5. Add error msg to the `exp show` output
2022-10-06 17:20:03 +08:00
Peter Rowlands
7393ebdcb4
logger: init logging config before colorama
2022-10-04 21:27:24 +03:00
David de la Iglesia Castro
cf651c52a1
hydra: Fix append and remove sweeps.
...
Closes #8376
2022-10-04 19:05:12 +02:00
Ronan Lamy
a3f20eb6f4
ls-url: make config and recursive kwarg-only
2022-10-04 14:37:29 +03:00
Ronan Lamy
d60edcd88e
ls-url: fix doc URL
2022-10-04 14:37:29 +03:00
Ronan Lamy
a6cdb9efd2
ls-url: remove redundant tests
2022-10-04 14:37:29 +03:00
Ronan Lamy
4a558edc59
ls-url: remove now unused _ls_url()
2022-10-04 14:37:29 +03:00
Ronan Lamy
8ff92cc7b0
ls-url: refactor tests so they work with all supported plugins.
...
Add `config` argument to ls_url() (only used in testing) to be able
to set up the FSs that do require it.
2022-10-04 14:37:29 +03:00
Ronan Lamy
bd88000e2f
ls-url: add ls-url tests for dvc plugins
2022-10-04 14:37:29 +03:00
Ronan Lamy
4da4c69985
ls-url: chain exceptions and simplify exc handling
2022-10-04 14:37:29 +03:00
Ronan Lamy
8a1c757497
fix test on Windows
2022-10-04 14:37:29 +03:00
Ronan Lamy
22655fa46d
ls-url: update command test for --recursive
2022-10-04 14:37:29 +03:00
Ronan Lamy
103a0e2523
ls-url: simplify parse_external_url()
2022-10-04 14:37:29 +03:00
Ronan Lamy
0d025e5943
ls-url: add --recursive option
2022-10-04 14:37:29 +03:00
Ronan Lamy
b01c4f8b05
ls-url: call get_cloud_fs() directly
...
Note: removes a spurious check on whether the target is a dvc file.
2022-10-04 14:37:29 +03:00
Ronan Lamy
c27125d9c0
Replace Output with a local copy and remove all unused code
2022-10-04 14:37:29 +03:00
Ronan Lamy
71734a3d09
ls-url: fix test_file() on Windows and add another case
2022-10-04 14:37:29 +03:00
Ronan Lamy
fa7619dfee
ls-url: create basic version of dvc ls-url command
...
For now, this only takes a URL (or local path) and lists its contents
if the protocol supports it. The command fails if the target doesn't
exist and returns the (absolute) path to the target if it's not a
directory.
2022-10-04 14:37:29 +03:00
dependabot[bot]
67aaf6a192
build(deps-dev): Bump mypy from 0.981 to 0.982
...
Bumps [mypy](https://github.com/python/mypy ) from 0.981 to 0.982.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.981...v0.982 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-04 12:02:42 +09:00
Daniele Trifirò
3adede8427
repo: use realpath to in _get_filepath when loading stages
2022-10-03 15:29:01 +02:00
Daniele Trifirò
a686dded15
repo: fix crash while collecting stages with symlinks
...
closes #8345
2022-10-03 15:29:01 +02:00
Daniele Trifirò
8b1e61d3c5
update: update -help
2022-10-03 14:25:50 +02:00
Daniele Trifirò
4594087786
import: fix rev lock and pull with --no-download
2022-10-03 14:25:50 +02:00
Daniele Trifirò
5d69f57abf
tests: add test_partial_import_pull
2022-10-03 14:25:50 +02:00
dependabot[bot]
53c886e407
build(deps-dev): Bump mypy from 0.971 to 0.981
...
Bumps [mypy](https://github.com/python/mypy ) from 0.971 to 0.981.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.971...v0.981 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-10-02 12:44:42 +09:00
Ruslan Kuprieiev
890fbf3a6e
deps: bump dvc-data to 0.14.0
2022-10-01 21:56:49 +03:00
skshetry
81abf2e412
dvcfs tests: copy pytest param instead of in-place update ( #8388 )
...
The param was being modified in-place, due to which successive runs would fail.
2022-10-01 14:07:38 +05:45
Ronan Lamy
3a9d0244b5
test: rename dvc.testing.test_*.py so pytest doesn't handle them as test files
2022-10-01 01:03:09 +03:00
dberenbaum
423166cb0f
cli: remove foreach-group from help text
2022-09-30 19:54:03 +02:00
Peter Rowlands
4904286307
config: wrap UnicodeDecodeErrors on load
2022-09-30 11:45:43 +09:00
dependabot[bot]
e556c632b3
build(deps-dev): Bump pytest-mock from 3.8.2 to 3.9.0
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.8.2 to 3.9.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.8.2...v3.9.0 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-29 14:37:06 +09:00
dependabot[bot]
db0c6e9086
build(deps-dev): Bump pytest-cov from 3.0.0 to 4.0.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/pytest-dev/pytest-cov/releases )
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v3.0.0...v4.0.0 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-29 13:48:47 +09:00
dependabot[bot]
4177a5dc9e
build(deps): Bump dvc-task from 0.1.2 to 0.1.3
...
Bumps [dvc-task](https://github.com/iterative/dvc-task ) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/iterative/dvc-task/releases )
- [Commits](https://github.com/iterative/dvc-task/compare/0.1.2...0.1.3 )
---
updated-dependencies:
- dependency-name: dvc-task
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-29 13:47:49 +09:00
Ronan Lamy
04af944e22
fs: test and slightly refactor get_fs_config()
2022-09-28 22:06:40 +03:00
pre-commit-ci[bot]
13b2ac3bd1
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/ambv/black: 22.6.0 → 22.8.0](https://github.com/ambv/black/compare/22.6.0...22.8.0 )
2022-09-28 17:07:09 +09:00
Paweł Redzyński
25ea5f35ec
plots: pass all types of plots in --json option
...
Related: iterative/vscode-dvc#1757
2022-09-27 14:23:42 +02:00
karajan1001
6bd14b21ef
Move infofile operation to executor and
...
Currently infofile dump was spread in both executor and queue classes.
put them all into executor to make them more managable. Move all ending
dump operations to the cleanup function, because the collect_result progress
might failed because of git operations, in which can guarantee them to
be run in a `finally` scope.
2022-09-26 16:25:47 +08:00
karajan1001
c2829f4ce8
Make executor info compatible with old versions.
2022-09-26 16:25:47 +08:00
karajan1001
d8a4ecd68f
Remove the stale manager code
2022-09-26 16:25:47 +08:00
karajan1001
7fb9dcec12
Add tests for executor status
...
1. Move some basic test script from function tests to unit test.
2. Add success/failed tests for the status change of `tempdir`, `celery`, `workspace` running case.
2022-09-26 16:25:47 +08:00
karajan1001
f23bc71eea
Use task status to replace collected.
...
fix : #8088
1. Use status to replace collected.
2. Make status show more accurate.
Fix lint
2022-09-26 16:25:47 +08:00
karajan1001
8b326137c6
Add a new attribute status to ExecutorInfo file
...
1. Add a new attribute status to ExecutorInfo file
2. Update running status to the executor infofile.
2022-09-26 16:25:47 +08:00
karajan1001
90109bccd7
Refactor seperate the initialization of executor and setup environment
...
Reason:
1. Need some more granular control over initialization progress of
executor.
What done:
1. Seperate `init_git` and `init_cache` progress out from setup_executor
2. Move `set_ref` into `init_git`
2022-09-26 16:25:47 +08:00
Ruslan Kuprieiev
8c484645fa
cloud-versioning: better handling for directories
2022-09-26 02:54:17 +03:00
dberenbaum
c039e9a6e7
merge-driver: support removes and changes
2022-09-23 23:22:08 +03:00
Ruslan Kuprieiev
10cfa0d5d7
fetch: use md5() before save()
2022-09-23 15:12:19 +03:00
dependabot[bot]
ecab4a22fe
build(deps): Bump dvc-data from 0.10.1 to 0.12.0
...
Bumps [dvc-data](https://github.com/iterative/dvc-data ) from 0.10.1 to 0.12.0.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/0.10.1...0.12.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-23 15:12:19 +03:00
dberenbaum
4f354f5333
pull: hide glob option
2022-09-23 14:13:25 +03:00
skshetry
f6b1f01a5c
aiohttp: remove AIOHTTP_NO_EXTENSIONS envvar ( #8353 )
...
* aiohttp: remove AIOHTTP_NO_EXTENSIONS envvar
aiohttp now provides wheel for 3.11
* advertise 3.11 support
2022-09-23 16:23:37 +05:45
Saugat Pachhai (सौगात)
6d17bcce93
cli: add help for foreach
2022-09-23 13:36:34 +03:00
karajan1001
8da04c7c81
Solve the on_diverged function not executed error.
...
fix : #8348
2022-09-23 17:20:31 +08:00
Paweł Redzyński and pre-commit-ci[bot]
c617769a1d
deps: bump codespell ( #8199 )
...
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/codespell-project/codespell: v2.1.0 → v2.2.1](https://github.com/codespell-project/codespell/compare/v2.1.0...v2.2.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-22 19:31:24 +05:45
Daniele Trifirò
69c3c83833
import/import-url: ignore outs when using --no-download
2022-09-22 00:29:46 +03:00
David de la Iglesia Castro
122a68398e
hydra: Fix sweeps on Defaults List.
...
Defaults List overrides (`defaults/foo=1,2`) were not working because of the inclusion of the `/` character.
Fixed it by updating how we construct the `merged_overrides` and added a regression test.
2022-09-21 15:48:19 +02:00
Martino Mensio
748c015638
fixed link to "get started: pipelines" docs
2022-09-21 13:45:39 +03:00
skshetry
ba1ab86078
document dvcfs ( #8332 )
2022-09-21 11:30:15 +05:45
skshetry
aaa467a96b
fs.callback.RichCallback: add transient support ( #8335 )
2022-09-20 17:03:17 +05:45
Daniele Trifirò
ed15e59115
deps: bump dvc-http to 2.27.2
2022-09-20 13:18:18 +03:00
skshetry
e63cb31a66
dvcfs: remove get-file implementation, make dvcfs non-cachable ( #8331 )
...
dvcfs: remove get-file implementation
2022-09-20 15:24:44 +05:45
Peter Rowlands
4c1f172132
deps: bump dvc-data to 0.10.1
2022-09-20 18:30:35 +09:00