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
skshetry
48ff332f4a
tests: remove old cleanup handler for Windows subprocess ( #8508 )
2022-11-01 13:57:50 +05:45
skshetry
f6849d2f06
chore: remove bin dir and simplify tests.__main__ ( #8507 )
2022-11-01 13:05:53 +05:45
skshetry
5e883bc00c
tests: remove TestDir ( #8502 )
...
remove TestDir
2022-11-01 11:28:09 +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
5899440b46
deps: bump dvc-data to 0.25.1
2022-10-30 00:59:39 +03: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
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
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
Peter Rowlands
3478a7e6a9
import-url: support cloud versioning
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
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
David de la Iglesia Castro
c12deaa62c
exp show: Preserve full branch and tag names.
...
Closes #7933
2022-10-11 19:55:36 +09: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
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
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
David de la Iglesia Castro
cf651c52a1
hydra: Fix append and remove sweeps.
...
Closes #8376
2022-10-04 19:05:12 +02:00
Ronan Lamy
a6cdb9efd2
ls-url: remove redundant tests
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
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
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
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
Daniele Trifirò
3adede8427
repo: use realpath to in _get_filepath when loading stages
2022-10-03 15:29:01 +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
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
Peter Rowlands
4904286307
config: wrap UnicodeDecodeErrors on load
2022-09-30 11:45:43 +09:00
Ronan Lamy
04af944e22
fs: test and slightly refactor get_fs_config()
2022-09-28 22:06:40 +03: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
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