Commit Graph
48 Commits
Author SHA1 Message Date
Ruslan Kuprieiev e4b8cf2e0e scm: fix LD_LIBRARY_PATH if running from a bundle
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-08-07 04:27:35 +03:00
Ruslan Kuprieiev 77b2e45a64 dvc: fix LD_LIBRARY_PATH on binaries
Fixes #965

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-08-07 03:22:16 +03:00
Ruslan Kuprieiev 8be51b6056 dvc: additional progress info
Fixes #957

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-08-02 21:15:04 +03:00
Ruslan Kuprieiev a9114d57a5 dvc: print info when computing md5 of a large file
Fixes #958

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-08-01 15:39:05 +03:00
Ruslan Kuprieiev 0e9774a3f8 RFC: follow flake8 rules
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-25 17:28:58 +03:00
Ruslan Kuprieiev e9377dd65d utils: copyfile: properly join paths
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-10 21:39:46 +03:00
Ruslan Kuprieiev fba1d8c181 dvc: use heuristics to detect binary files
Fixes #859

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-06 01:32:14 +03:00
Ruslan Kuprieiev 468f4beee7 dvc: properly save symlinks
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-05 20:00:58 +03:00
Ruslan Kuprieiev c51d8d8e93 utils: remove unused code
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-30 07:44:11 +03:00
Ruslan Kuprieiev 555e802ed2 RFC/perf: data cloud logic
Properly splitting jobs between thread workers and removing unnecessary logic.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-30 07:44:11 +03:00
Ruslan Kuprieiev a2767cc54f cloud: use hash in the progress bar, not path
Fixes #530

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-20 19:42:33 +03:00
Ruslan Kuprieiev b57f829b1b utils: read in binary mode when converting CRLF -> LF
Fixes #773

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-14 23:37:10 +03:00
Franciszek Piszcz e380a4a858 Fix bottlenecks related to large number of files. 2018-06-10 16:35:49 +02:00
Ruslan Kuprieiev 2b7d75d389 utils: file_md5: don't forget to decode data on python 2
Fixes #686

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-05-16 14:38:15 +03:00
Ruslan Kuprieiev 0a049c232b cache: configurable cache dir and cache type
From now on we allow specifying standalone cache dirs as well as
specifying linking method(copy, symlink, hardlink, reflink) for it.
If 'cache type' is not specified in the config, dvc will try all of
them starting from reflink all the way down to copy.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-28 21:50:49 +03:00
Ruslan Kuprieiev 9f8f9ab550 progress: don't print new line
Fixes #444

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-15 11:52:59 +03:00
Ruslan Kuprieiev f30e6e53c5 utils: convert to unix format when calculating md5
Fixes #619

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-14 22:07:29 +03:00
Ruslan Kuprieiev fed22d3ab9 utils: use dict_md5
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-14 22:07:29 +03:00
Ruslan Kuprieiev 3748164ddb cloud: aws: migrate to boto3
This allows us to abandon our own additional config parameters for
aws cloud(like region) and use the ones from .aws/config by default.
Plus, boto3 automatically switches to multipartupload if file is bigger
than a certain limit, allowing us to remove a lot of our own code.

Fixes #650
Fixes #636
Fixes #601

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-13 06:06:52 +03:00
Ruslan Kuprieiev 8839e72f07 dvc: stop using checksumdir and use our own way of checksuming a dir
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-10 01:56:06 +03:00
Ruslan Kuprieiev bd6688ff57 cloud: add ssh driver
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-08 22:26:18 +03:00
Ruslan Kuprieiev 5a7bee4508 dvc: fix progress bar
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-03-10 18:41:09 +02:00
Ruslan Kuprieiev bdb55cce7c utils: remove unused parse_target_metrics
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-02-27 04:20:32 +02:00
Ruslan Kuprieiev 576ba96e25 Revert "cloud: process targets one-by-one"
This reverts commit 61b469144e.
2018-02-18 23:10:59 +02:00
Ruslan Kuprieiev 61b469144e cloud: process targets one-by-one
In all operations we're dealing with a single stream,
so there is no good reason to process targets in parallel
as they all use the same resource to pull\push data to.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-02-17 19:36:51 +02:00
Ruslan Kuprieiev 14fdc18948 dvc: chain exceptions
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-02-06 18:38:29 +02:00
Ruslan Kuprieiev e4d9755a7e dvc: cloud RFC add support for directories
Fixes #367

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-01-22 03:19:29 +02:00
Ruslan Kuprieiev a130a25e39 dvc: refactor data_cloud
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-01-15 21:11:25 +02:00
Ruslan Kuprieiev 9c10a643a7 win: enable unit tests
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-01-02 13:03:06 +02:00
Ruslan Kuprieiev f47a2c7585 dvc: initial unittests
Initial unittests for new design.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-01-01 16:52:06 +02:00
Ruslan Kuprieiev 927d58cfad dvc: introduce stage files instead of state files
These describe single stage of pipeline and are allowed to
be placed anywhere in current or parent directories(up to
project's root) of the data file.

By default, 'dvc run' writes stage file to ./stage.dvc, but
it can be changed by using '-f' option(see functest/test-repro.py).

For now we're traversing project tree to find needed stage files for
specific data files. This is very wasteful and not optimal, but will
do for now, as this patch is aimed at stabilizing design of our repo
files.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-12-07 22:52:18 +02:00
Dmitry 868c4d1c34 Python 2-3 unification: do not return iterators 2017-11-28 19:03:21 -08:00
Dmitry 86a933ea71 dvc find command 2017-11-16 01:11:07 -08:00
Ruslan Kuprieiev 17f0c0de10 RFC: find and fix errors and some warning reported by pylint
Fixes #219

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-09-17 19:25:03 +03:00
Ruslan Kuprieiev ecbdd50542 status: error-out when cloud.status doesn't match expectations
Fixes #190

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-09-03 02:37:30 +03:00
Ruslan Kuprieiev ec76c1aa8a utils: collect return value from map
Zip it together with the targets list and return back
to the caller so he can use it if he wants.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-08-19 20:10:24 +03:00
Dmitry Petrov 2eae3d1af8 Clean data cloud code. Utils logger bugfix 2017-07-31 02:38:18 -07:00
Ruslan Kuprieiev 27bf57f415 sync: handle exceptions
I.e. if network is gone for some reason, report that we're
able to sync some targets instead of just throwing exceptions
about broken pipe or something.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-07-03 02:12:54 +03:00
Ruslan Kuprieiev 76db9db5c2 dvc: introduce --jobs option and use map_progress
It replaces POOL_SIZE constant and by default equals to the
number of cpus available.

map_progress is a helper for 'sync' and 'import' commands to
run in a multi-threaded mode.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-06-25 04:04:19 +03:00
Ruslan Kuprieiev 7c6765c196 import/sync: add progress bar for local copy
Currently progress bar is only supported for downloading
from web(aws,http* etc), but now it is also supported for
local files(i.e. LOCAL for 'data sync' and just local files
for 'import')

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-06-25 02:03:46 +03:00
Dmitry Petrov b706f60959 Windows symlink: exec cmd as shell option; small os.path.join() test fix 2017-04-08 17:57:16 -07:00
Dmitry Petrov 4ce1e43041 Revert "Windows symlink: extract rmfile() to utils"
This reverts commit 9b52063279.
2017-04-08 17:44:03 -07:00
Dmitry Petrov 9b52063279 Windows symlink: extract rmfile() to utils 2017-04-08 17:14:44 -07:00
Dmitry Petrov f42e4840e8 Windows symlink: rmtree() and small fixes 2017-04-07 21:26:39 -07:00
Dmitry Petrov 5f3c53603f Refactoring: extract Settings from BaseCmd; move path_factory to Settings 2017-04-05 23:08:40 -07:00
Dmitry Petrov 42c40306d2 Rename nlx exception to dvc 2017-03-25 20:19:08 -07:00
Dmitry Petrov 9fd1fb54fe Extract run() to utils 2017-03-25 17:41:01 -07:00
Dmitry Petrov 4b4bf15a8f Refactoring: DataFileObj to DvcPath and DataPath 2017-03-22 01:03:09 -07:00