Ruslan Kuprieiev
b6f2a8e653
tests: remove redundant remote tests
...
With introduction of https://github.com/iterative/dvc-plugins ,
all important tests are being ran there, so there is no need
for dvc repo to run them again.
This PR also removes some redundant/broken remote tests.
2021-12-03 22:45:41 +02:00
Ruslan Kuprieiev
024f06d672
gdrive: fix path operations
2021-12-02 18:52:18 +02:00
Ruslan Kuprieiev
8dd3b28729
gdrive: fix typo
2021-12-02 17:22:47 +02:00
Ruslan Kuprieiev
d4178c080b
gdrive: don't forget bucket when generating a url
2021-12-02 17:21:51 +02:00
Ruslan Kuprieiev
302f5b07f6
gdrive: fix typo
2021-12-02 17:19:12 +02:00
karajan1001 and Peter Rowlands
7d68863ba2
proc: implement process signaling( #7062 )
...
fix : #7062
1. Add `send_signal`, `kill`, `terminate` to processManager.
2. Add tests for each of them.
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2021-12-02 16:39:41 +09:00
Ruslan Kuprieiev
09f48a5aaa
tests: introduce dvc.testing
...
This is a very early version of test utils for dvc plugins. This module
consists of existing tests with minimal changes and is going to evolve
a lot as our plugins are getting filled in and pytest-test-utils matures.
2021-12-02 09:08:40 +02:00
dependabot[bot]
004e15c2c0
build(deps-dev): Bump types-requests from 2.26.0 to 2.26.1
...
Bumps [types-requests](https://github.com/python/typeshed ) from 2.26.0 to 2.26.1.
- [Release notes](https://github.com/python/typeshed/releases )
- [Commits](https://github.com/python/typeshed/commits )
---
updated-dependencies:
- dependency-name: types-requests
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2021-11-29 20:24:26 +05:45
dependabot[bot]
382edfc382
build(deps-dev): Bump dvclive[image] from 0.4.3 to 0.4.5
...
Bumps [dvclive[image]](https://github.com/iterative/dvclive ) from 0.4.3 to 0.4.5.
- [Release notes](https://github.com/iterative/dvclive/releases )
- [Commits](https://github.com/iterative/dvclive/compare/0.4.3...0.4.5 )
---
updated-dependencies:
- dependency-name: dvclive[image]
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2021-11-29 17:17:46 +05:45
Peter Rowlands
dd535f617b
proc: initial ProcessManager skeleton
2021-11-29 07:00:38 +02:00
Peter Rowlands
15eb326188
proc: initial ManagedProcess implementation
...
- supports running (backgrounded) processes with redirected output
2021-11-29 07:00:38 +02:00
dependabot[bot]
34f402659c
build(deps): Bump scmrepo from 0.0.1 to 0.0.2
...
Bumps [scmrepo](https://github.com/iterative/scmrepo ) from 0.0.1 to 0.0.2.
- [Release notes](https://github.com/iterative/scmrepo/releases )
- [Commits](https://github.com/iterative/scmrepo/compare/0.0.1...0.0.2 )
---
updated-dependencies:
- dependency-name: scmrepo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2021-11-26 09:36:57 +05:45
dependabot[bot]
3e808b6f37
build(deps-dev): Bump pylint from 2.11.1 to 2.12.1
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.11.1 to 2.12.1.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.11.1...v2.12.1 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2021-11-26 09:36:25 +05:45
Saugat Pachhai (सौगात)
ea52ab2260
remove dvc.scm and dvc.fs.git module; rename dvc.fs.scm to dvc.fs.git
2021-11-25 19:09:58 +02:00
Paweł Redzyński
57c6b1036f
gha: allow builds for new 3.9 versions
...
Closes : #6975
2021-11-25 14:40:40 +02:00
Saugat Pachhai
950b576cbd
packages: build binary pkgs with Python 3.9
2021-11-25 14:40:11 +02:00
Saugat Pachhai (सौगात)
2cbe25ac90
scm: move warning on unsupported index to scmcontext
...
Also makes `Repo.init` avoid using `scm.add` directly.
2021-11-25 12:29:50 +02:00
Saugat Pachhai (सौगात)
c9cd4a8c51
scm: remove dvc specific message; add client kwarg
...
This commit removes dvc specific message hardcoded in
scm.detach_head. Now that we are decoupling scm, we are
adding `client=` kwarg to be set by the caller.
2021-11-25 12:05:25 +02:00
Saugat Pachhai (सौगात)
95c726b297
fs.git: refactor GitFileSystem to be fsspec compliant
...
Also adds a wrapper for DVC to use as GitFileSystem in dvc.fs.scm.
This is temporary, and will be renamed back to dvc.fs.git after the
split.
Note that this filesystem is not fully compliant, it's only
meant to be compatible with our previous implementation.
2021-11-25 08:32:20 +05:45
Saugat Pachhai (सौगात)
281b97c8ef
scm: remove dependency from dvc's utils in scm
...
This removes dependency from dvc.utils and dvc.types from DVC.
Some utils like fix_env, is_binary have been reimplemented.
Regarding fix_env and is_binary, I think eventually this
should be a responsibility of DVC itself to set.
relpath implementation in DVC also works with paths in
different drives in Windows. I have changed this to use
os.path.relpath for now.
2021-11-24 17:00:12 +02:00
Saugat Pachhai (सौगात)
a282e0e48c
scm: restructure scm
...
Makes it easier to decouple, we'd only need to rename
dvc/scm/__init__.py to dvc/scm.py.
2021-11-24 11:46:40 +05:45
Saugat Pachhai (सौगात)
48581715b6
scm: remove exp related behaviours from scm.resolve_rev
2021-11-24 11:39:39 +05:45
dependabot[bot]
13ca959e98
build(deps): Bump actions/cache from 2.1.6 to 2.1.7
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2021-11-24 08:47:13 +05:45
Saugat Pachhai (सौगात)
a0f4e12fb4
scm: unified progress reporting in a structured way
...
This adds a support for reporting progress from Git in a structured
format. The gitpython already provides somewhat structured progress
reporting, dulwich on the other hand only provides git-like line
messages.
As gitpython uses git binary, it already parse this line format
in a structured way. This PR makes dulwich use the same machinery
to unify progress reporting for both dulwich and gitpython python.
This does add a dependency on gitpython even on dulwich backend,
so I am iffy if we should do this.
The alternative is to translate gitpython's progress reports to
string, and just use string messages as progress reports on both
dulwich and gitpython.
2021-11-23 19:50:12 +02:00
Saugat Pachhai (सौगात)
d95dd27773
scm: map internal SCMError to DVC's exception type
2021-11-23 19:21:51 +02:00
Saugat Pachhai (सौगात)
f76ef84c88
exceptions: migrate other scm exceptions to internal
2021-11-23 19:21:51 +02:00
Saugat Pachhai (सौगात)
f2f4227656
exceptions: migrate RevError
2021-11-23 19:21:51 +02:00
Saugat Pachhai (सौगात)
7ca8fbbc82
exceptions: migrate CloneError
2021-11-23 19:21:51 +02:00
Saugat Pachhai (सौगात)
8ec1ff44de
exceptions: move AuthError and InvalidRemote errors
2021-11-23 19:21:51 +02:00
Saugat Pachhai (सौगात)
c19a11152a
scm: move FileNotInRepoError and MergeConflictError to scm.exceptions
2021-11-23 19:21:51 +02:00
Saugat Pachhai (सौगात)
cab60b54f8
live: import webbrowser lazily; only patch webbrowser.open
2021-11-23 22:08:21 +05:45
David de la Iglesia Castro
fc7caa487f
tests: Patch webbrowser.open on session level
...
Closes #7014
2021-11-23 22:08:21 +05:45
Saugat Pachhai (सौगात)
568abb3e28
scm: remove dependency from DvcException
2021-11-23 13:19:41 +02:00
Kwon-Young Choi and Peter Rowlands
3e7cff3e35
exp: respect repo hardlink_lock config for the exp scm lock
...
- Will fix #7029
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2021-11-23 19:51:42 +09:00
Saugat Pachhai (सौगात)
7dc5420548
metrics/params diff: catch NoSCMError instead of a broad exception
...
instead of catching broad exception, NoSCMError should work here.
2021-11-23 13:21:15 +05:45
pre-commit-ci[bot]
644e9ede92
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/ambv/black: 21.10b0 → 21.11b1](https://github.com/ambv/black/compare/21.10b0...21.11b1 )
2021-11-22 21:36:19 +02:00
Paweł Redzyński
a9512e8585
plots: collect: return callable instead of data
...
Related to: #6923 , iterative/viewer#2657
2021-11-22 21:31:20 +02:00
Saugat Pachhai (सौगात)
00e53c5c32
tests: fix black
2021-11-22 17:33:12 +05:45
Saugat Pachhai (सौगात)
0aaf96bce4
exp init: show 'n to omit' on --explicit mode
2021-11-22 17:20:16 +05:45
Saugat Pachhai (सौगात)
e07b99ed33
tests: increase timeout to 2 second for prompts test
2021-11-22 15:10:55 +05:45
Saugat Pachhai (सौगात)
7bc906011f
tests: timeout only on functions, excluding tests fixtures
...
Sometimes, `tmp_dir` fixtures take longer than a second. Using `func_only`
makes it only consider duration of test function run, excluding fixtures
duration.
2021-11-22 15:10:55 +05:45
Saugat Pachhai (सौगात)
b84227db89
scm: remove ignore list
2021-11-22 07:16:54 +02:00
David de la Iglesia Castro
318b269ad1
live: Call webbrowser.open.
...
Use `funcy.once_per_args` decorator to prevent opening the html multiple times if user closes first time.
Closes iterative/dvclive#180
2021-11-22 03:35:23 +02:00
Ruslan Kuprieiev
1176b6d875
Update setup.cfg
2021-11-22 03:31:23 +02:00
dependabot[bot]
ee6539292b
build(deps): Bump adlfs from 2021.9.1 to 2021.10.0
...
Bumps [adlfs](https://github.com/dask/adlfs ) from 2021.9.1 to 2021.10.0.
- [Release notes](https://github.com/dask/adlfs/releases )
- [Changelog](https://github.com/dask/adlfs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/dask/adlfs/compare/2021.09.1...2021.10.0 )
---
updated-dependencies:
- dependency-name: adlfs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
2021-11-22 03:31:23 +02:00
Saugat Pachhai (सौगात)
bf313d92aa
exp init: timeout prompts' test
...
The `exp init` tests may just keep waiting on the prompts blocking tests.
The blocking of prompts is likely a failure in tests setup or a bug
in the implementation. It's hard to find out these failures or avoid it.
If they take longer than 1 second, they most likely have failed as
most of test takes 0.1 second at max.
2021-11-22 03:27:16 +02:00
Saugat Pachhai (सौगात)
46289182d2
tests: run on Windows with Python 3.10
...
pygit2 wheels should be now available.
Had to skip pytest-docker for Windows + Python 3.10 due to
a dependency issue with it's dependency, see:
https://github.com/docker/docker-py/issues/2902 .
2021-11-20 18:52:31 +02:00
Saugat Pachhai (सौगात)
cb941a836d
tests: cover exp init
2021-11-19 18:58:23 +05:45
Gustavo José de Sousa
a70b3087b4
build: bump sshfs from 2021.8.1 to 2021.11.2
...
This version uses bumps asyncssh to a version that supports ProxyJump.
2021-11-18 23:58:57 +02:00
Ruslan Kuprieiev
c9dd137426
fs: BaseFileSystem -> FileSystem
...
Following fsspec conventions and new object conventions.
2021-11-18 19:58:23 +02:00