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 )
2.52.0
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