Commit Graph
284 Commits
Author SHA1 Message Date
Ruslan Kuprieiev 6c7bf390c6 metrics: check that specified path is a text file and not a directory or binary file
Fixes #911

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-18 12:25:11 +03:00
Ruslan Kuprieiev 5565ece1f8 metrics: add support for csv and hcsv
Fixes #910
Fixes #909

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-18 12:15:59 +03:00
Ruslan Kuprieiev ebecc9996b tests: use 0.3 sec as a max startup time 2018-07-18 11:39:24 +03:00
Ruslan Kuprieiev 3410f8048a dvc: optimize imports to speedup startup time
Speeds up `time dvc` from 1.2 seconds to <0.2 seconds.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-18 11:20:05 +03:00
Ruslan Kuprieiev f54428d5ed test: properly check for hadoop availability
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-18 10:12:49 +03:00
Ivan Shcheklein 2d9b062fc4 minor: remove a temporary file in tests 2018-07-17 16:00:30 -07:00
Ruslan Kuprieiev 870d98bc18 test: fix expected number of stages 2018-07-17 15:57:31 +03:00
Ruslan Kuprieiev dc5fec6a75 test: remove unused add() call 2018-07-17 15:47:38 +03:00
Ruslan Kuprieiev 805eb908d0 import: support external urls
Fixes #891

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-17 12:00:12 +03:00
Ruslan Kuprieiev f1a28c3812 dvc: support dvc add for external files
Fixes #890

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-16 16:34:16 +03:00
Ruslan Kuprieiev 6d120f474e dvc: handle double dvc init
Fixes #889

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-16 13:43:46 +03:00
Ruslan Kuprieiev fef8ea4602 dvc: add confirmation for dvc destroy
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-15 19:18:01 +03:00
Ruslan Kuprieiev 71d9fb44fc dvc: add dvc pipeline show
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-14 10:49:32 +03:00
Ruslan Kuprieiev c636581699 test: gc: catch OSError 2018-07-12 10:41:34 +03:00
Ruslan Kuprieiev 4668c10e6e test: gs: catch WinError 2018-07-12 10:32:34 +03:00
Ruslan Kuprieiev 9be161de54 test: use IOError instead of FileNotFoundError 2018-07-12 10:25:40 +03:00
Ruslan Kuprieiev 79826b21a4 test: gcp: handle FileNotFoundError 2018-07-12 10:14:15 +03:00
Ruslan Kuprieiev f476143c52 test: check if we need to test RemoteAzure with _should_test_azure
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-12 09:13:07 +03:00
Clemens Wolff 7897dd8c45 Make tests more verbose
This helps verify in the CI that the environment variables for the
integration tests are set up correctly since we can see exactly which
tests are being executed and which ones are being skipped.
2018-07-10 16:44:29 -04:00
Clemens Wolff 97dfc88647 Flag skipped tests during test run 2018-07-10 16:44:28 -04:00
Clemens Wolff fcbc6d115c Wire-up Azure in TestDataCloud 2018-07-10 16:33:52 -04:00
Clemens Wolff 1b1ca68b64 Fix inspections 2018-07-10 16:33:52 -04:00
Clemens Wolff 9724bd94aa Replace os.system with subprocess.check_output
It is generally recommended to use the subprocess module instead of the
os module to run subshell commands given since the former makes it
easier to comunicate with the process, has an improved security model,
etc. More information is available in [1].

Note that this change uses `check_output` instead of `check_call` to
prevent the command output from being printed to stdout.

This change also introduces two additional enhancements:
- Skip the hadoop test if the hadoop binary is not available.
- Skip the ssh test if the ssh binary is not available.

[1] https://docs.python.org/3/library/subprocess.html#replacing-os-system
2018-07-10 16:33:14 -04:00
Clemens Wolff 581132bbe0 Fix environment variable name 2018-07-10 13:54:49 -04:00
Clemens Wolff 6882a781a4 Add Azure Blob Storage remote
This change adds a new cloud remote based on Azure Blob Storage [1] and
the azure-storage-blob SDK [2].

The implementation closely follows the patterns laid out by the existing
cloud remotes (AWS and GCP). Notable differences include:

- No use of a lock in the progress-bar callback and no requirement to
  look up total transfer size ahead of time: the Azure Storage SDK
  provides the total transfer bytes and current transfer offset in its
  progress callback.

- When `exists` is called, check the existence of every blob instead of
  listing the entire container. Container list operations can be
  expensive so unless the number of checked files is very large, making
  separate requests is likely going to be more efficient.

- For increased flexibility, access credentials for the Azure Storage
  backend can be provided either connection-string style via the remote
  URL or via environment variables. The Azure Storage backend can be
  emulated via Azurite [3].

[1] https://azure.microsoft.com/en-us/services/storage/blobs/
[2] https://github.com/Azure/azure-storage-python
[3] https://github.com/Azure/azurite

This change was created together with @EricSchles.
2018-07-09 14:47:40 -04:00
Ruslan Kuprieiev b952e599bf debug: add a few more sleep()s to test_repro 2018-07-03 02:43:01 +03:00
Ruslan Kuprieiev 71d03b5a43 test: add sleep() calls
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-03 01:33:13 +03:00
Ruslan Kuprieiev f471f7714b dvc: uptimize add/checkout/state
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-03 00:33:05 +03:00
Ruslan Kuprieiev d37828c4e3 state: save collected dir to cache
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-02 20:41:35 +03:00
Ruslan Kuprieiev 67e0c24ced tests: add test_updater
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 23:29:07 +03:00
Ruslan Kuprieiev f634bc1916 test: remote: add basic test for remove() and checkout()
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 22:34:48 +03:00
Ruslan Kuprieiev f274a745a0 tests: checkout: test CLI for single files
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 21:02:43 +03:00
Ruslan Kuprieiev e8818ef67a test: add basic test from dvc import cmd
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 21:02:43 +03:00
Ruslan Kuprieiev 449d4880d1 tests: add test for double install
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 21:02:43 +03:00
Ruslan Kuprieiev 7c90cbab79 test: test root
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 21:02:43 +03:00
Ruslan Kuprieiev bd254c15ab test: remove updater test 2018-07-01 20:38:10 +03:00
Ruslan Kuprieiev 8d662e4402 test: del CI env when testing updater 2018-07-01 20:33:19 +03:00
Ruslan Kuprieiev 6219b28be6 test: add test for Updater
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 20:13:27 +03:00
Ruslan Kuprieiev 95f3b49db8 test: add basic test for metrics
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 20:07:00 +03:00
Ruslan Kuprieiev a392289cbf travis: run hdfs test only on Linux
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 10:02:43 +03:00
Ruslan Kuprieiev 591cd90583 travis: enable hdfs test
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 09:44:42 +03:00
Ruslan Kuprieiev fa9a79008b test: use gauth 2018-07-01 03:01:16 +03:00
Ruslan Kuprieiev 432fa56315 test: don't set gs env when running a command 2018-07-01 02:58:30 +03:00
Ruslan Kuprieiev 24d44695f7 test: fix typo 2018-07-01 02:45:02 +03:00
Ruslan Kuprieiev fde11a3b7f test: use GOOGLE_APPLICATION_CREDENTIALS when running GS repro test
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 02:36:22 +03:00
Ruslan Kuprieiev fb4fc72642 tests: try enable GS test on CI
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 02:08:06 +03:00
Ruslan Kuprieiev 12edcbaa04 remote: support HDFS for push/pull/status from local repo
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-30 22:54:49 +03:00
Ruslan Kuprieiev 5d85b19e77 test: enable ssh test on osx
Fixes #798

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-30 16:56:17 +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 50578a5923 gc: support s3/gs/ssh/hdfs
Fixes #738

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-28 21:32:57 +03:00