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
2.51.0
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