skshetry
bfa5b1a0c3
repro: make stages run in order of the graph ( #9675 )
...
* repro: make stages run in order of the graph.
In case of --single-item, this means it'll run in the order of arguments passed.
For --downstream, this fixes running of stage out of order when multiple arguments are passed.
For normal case, this enforces the same logic, so that they are never run out-of-order.
* add tests
* tests: repro: add test for --single-item with multiple targets
* graph: support when no nodes are provided
2023-07-03 11:44:51 +05:45
Oded Messer
a750a75016
Stable experiment range sorting ( #9660 )
...
* secondary sorting by rev alphanumerically. to introduce determinism
* add UT
2023-06-26 10:53:39 +09:00
Ruslan Kuprieiev
cf976f17ae
data: status: use ui.progress instead of ui.status ( #9662 )
...
With all fetch and checkout related things that we've done in the recent past,
we now have all the mechanisms necessary to provide actual progress (no total,
but still better than spinner) during `dvc data status` operations.
2023-06-26 00:10:44 +03:00
Peter Rowlands
e995492095
output: check legacy hash name in output.add()
2023-06-22 22:21:34 +09:00
skshetry
fd4696cc50
Revert "drop stage-level vars" ( #9647 )
...
Revert "drop stage-level vars (#9556 )"
This reverts commit 358c5e0c39 .
2023-06-22 18:44:51 +05:45
Peter Rowlands
90b9193250
output: preserve legacy hash_name on save() for unchanged data
2023-06-22 16:20:56 +09:00
Dave Berenbaum and Ruslan Kuprieiev
f28d5ee9e0
output: set remove to recursive=false ( #9574 )
...
* output: set remove to recursive=false
* try to make test pass on windows
* Update dvc/output.py
---------
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2023-06-21 01:33:04 +03:00
Ruslan Kuprieiev
621fe07a3b
checkout: friendlier UI when tryint to remove uncached files
...
Related #9618
2023-06-20 21:09:00 +03:00
dberenbaum
04b50c5cd0
exp push/pull: default to head rev
2023-06-20 15:53:46 +09:00
dberenbaum
bf2f08da09
exp list: fix ui for tags/branches
2023-06-20 15:52:18 +09:00
Ruslan Kuprieiev
1835c8c6e9
tests: unit: explicitly ask for dvc repo
...
Currently these rely on the root of the repo being in the dvc repo.
2023-06-19 03:44:10 +03:00
Ruslan Kuprieiev
33e7645603
tests: odb: index: simplify test
...
For some unknown reason the mock in this test leaks into the outside tests.
I wasn't able to determine why in the reasonable amount of time, so instead just
simplifying it to not use mocker at all.
That whole file should really be migrated to dvc-data, but that needs some time.
2023-06-18 18:58:30 +03:00
Ruslan Kuprieiev
c827654fe7
tests: use mocker instead of unittest.mock where possible
...
Had the "pleasure" of finding a mocker.patch leak into other tests and one
of the suspicions is that mixing unittest.mock and mocker might be somehow
related.
In any case, we should use mocker where possible anyway.
2023-06-18 17:10:45 +03:00
Ruslan Kuprieiev
0433565f1f
api: add config support for open/read
...
Fixes #9610
2023-06-15 18:30:14 +03:00
Ruslan Kuprieiev
a6e49a72de
diff: handle revisions pointing to the same sha
...
Fixes #9604
2023-06-14 18:48:18 +03:00
daavoo
d0aa1ce776
repro: Check for hash mismatch bewteen deleted dependencies and upstream outputs.
...
Only if `--allow-missing` is passed.
- Create `tests/func/repro` and extract `pull` and `allow_missing` to separate test files.
Closes #9530
2023-06-13 15:46:34 +03:00
Ruslan Kuprieiev
2ed677057d
fetch: cache collected
...
This avoids recollecting the cache files over and over again.
For example, `dvc fetch` noop in `dvc-bench` went from ~30sec down to ~10sec
for me.
Next step is to also cache remote index, so we don't have to waste those
~10sec checking files in the remote.
Related https://github.com/iterative/dvc-data/pull/376
2023-06-12 04:31:37 +03:00
Ruslan Kuprieiev
4c0bb8d316
fetch: use index fetch
2023-06-10 21:18:57 +03:00
Ruslan Kuprieiev
c96795dcfb
tests: checkout: fix test_checkout_relink_protected on windows
2023-06-09 22:36:33 +03:00
Ruslan Kuprieiev
8f768addf9
checkout: don't validate cache
...
Part of #9561
2023-06-09 18:41:19 +03:00
Ruslan Kuprieiev
af1fb722c8
dvc: drop cached external outputs
...
Fixes #9531
Docs https://github.com/iterative/dvc.org/pull/4574 Kudos @dberenbaum
2023-06-09 18:34:36 +03:00
Ruslan Kuprieiev
262419ef35
deps: bump dvc-data to >=1.0.2
...
Related https://github.com/iterative/dvc/issues/9566
2023-06-09 16:26:31 +03:00
Peter Rowlands
2cd33e10ac
output: serialize 3.x hash name in 'hash' field
2023-06-09 15:49:44 +03:00
Peter Rowlands
603f5fdba1
cache: move 3.x data objects into files/md5/ prefix
2023-06-09 15:49:44 +03:00
Dave Berenbaum
528eab0418
import: drop --file ( #9562 )
2023-06-09 10:03:32 +05:45
Saugat Pachhai (सौगात)
21a2504bcb
dvc.utils.pkg: move PKG to top-level dvc
...
PKG has to be specified in dvc/_build.py now, and can be
imported using:
from dvc import PKG
This is done to avoid importing from dvc/utils pkg which can
be expensive.
Also it's not an utility, so it is better that it remains at
the top-level namespace.
Note that we may have to fix the path for a few packages that we build,
like conda/snap/chocolatey.
2023-06-08 00:31:00 +03:00
skshetry
358c5e0c39
drop stage-level vars ( #9556 )
...
drop stage-level vars support
2023-06-07 11:10:08 +05:45
skshetry
9d7fba5c61
fix tests ( #9555 )
2023-06-07 10:28:54 +05:45
skshetry
a1e339b4fa
.dvc file: remove cmd support ( #9554 )
2023-06-07 09:30:13 +05:45
skshetry
6c58d438b3
tests: remove single_stage tests from repro/run tests ( #9553 )
2023-06-07 09:25:08 +05:45
skshetry
0c709b6ec1
.dvc file: remove metrics/plots support ( #9552 )
2023-06-06 20:42:09 +05:45
skshetry
46f3157f43
add: rename jobs to remote_jobs to mirror CLI; move validation to CLI ( #9550 )
...
- Follow up on https://github.com/iterative/dvc/pull/9522 , renames jobs kwarg to remote_jobs
to mirror CLI.
- Also moves validation logic to CLI.
2023-06-06 19:30:39 +05:45
skshetry
36fd69be21
add: remove file ( #9548 )
...
* add: remove `file`
Follow up to #9547 .
* Update add.py
* fix tests
2023-06-06 18:44:19 +05:45
skshetry
3759535d43
tests: remove single_stage stage runs ( #9549 )
2023-06-06 18:38:07 +05:45
dberenbaum
2c4365513e
add: deprecate --file
2023-06-06 14:57:07 +03:00
skshetry
26152292aa
remove support for reading and generating Dvcfile ( #9546 )
2023-06-06 15:29:10 +05:45
Ruslan Kuprieiev
78637713cf
checkout: use index checkout
...
Needed for https://github.com/iterative/dvc/pull/9424
2023-06-04 23:27:01 +03:00
Ruslan Kuprieiev
bce3b5d2a1
update: make sure we update hashes/checksums on --to-remote ( #9536 )
...
Discovered in #9444
2023-06-04 19:36:54 +03:00
Dave Berenbaum
6ace5ed380
add: tweak stage overlap error message ( #9514 )
...
* add: tweak stage overlap error message
* add: instructions for how to fix overlap error
2023-06-02 00:46:55 +03:00
Ruslan Kuprieiev
6543580100
dvcfs: don't use datafs isout/isdvc
2023-05-31 23:14:28 +03:00
Dave Berenbaum
3a85326df3
add: rename jobs to remote-jobs ( #9522 )
2023-05-31 01:14:30 +03:00
skshetry
355ebc72eb
add: remove --recursive, rename fname to file ( #9513 )
...
add: remove --recursive
2023-05-26 12:07:13 +05:45
daavoo
5a6f834088
repro: Skip pulling run cache if no-run-cache was passed.
2023-05-25 16:35:30 +02:00
daavoo
e98bf38d4c
repro: Continue on RunCacheNotSupported
...
Closes #9470
2023-05-25 16:35:30 +02:00
skshetry
0e38525d8d
cli: remove dvc run ( #9508 )
...
Note that `Repo.run()` API still exists, which will be removed in
successive PRs. A lot of tests depend on it that it'll take time
before removing it.
2023-05-25 16:27:14 +05:45
Dave Berenbaum
8acd943d52
exp list: show experiment shas ( #9501 )
...
* exp list: include sha; still needs remote support
* exp list: ignore rev for remotes
* exp list: update output format
* refactor
2023-05-25 15:05:12 +09:00
David de la Iglesia Castro
25313f5d82
exp: Drop checkpoints ( #9271 )
...
exp: Drop `checkpoints`.
Closes #9221
2023-05-23 11:32:18 +05:45
David de la Iglesia Castro
182728d674
exp run / repro: Drop --metrics. ( #9458 )
...
* exp run / repro: Drop `--metrics`.
* exp run: Rename `-M` to `-m`.
2023-05-22 19:13:22 +05:45
David de la Iglesia Castro
f245567613
exp: Drop gc. ( #9273 )
...
Closes #7991
2023-05-22 16:08:25 +05:45
skshetry
6532258e4a
drop top-level plots definition as mapping support ( #9486 )
2023-05-22 15:08:22 +05:45