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
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
b6d8c07d4d
studio: Ensure studio_repo_url works with exp run --queue.
...
Closes #9349
2023-04-21 21:04:48 +02: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
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
870935ebdc
import-url: make version-aware and to-remote exclusive
2023-04-15 23:46:47 +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
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
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
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
skshetry
1b9d40960f
utils.studio: reduce verbosity on exception logging ( #9284 )
2023-03-30 12:55:19 +05:45