1533 Commits
Author SHA1 Message Date
Ruslan Kuprieiev 64da1b126f dvc: bump to 0.12.0
Signed-off-by: Ruslan Kuprieiev <[email protected]>
0.12.0
2018-07-14 18:00:05 +03:00
Ruslan Kuprieiev f7cb4afd33 Merge pull request #883 from efiop/master
add `dvc pipeline show`
2018-07-14 11:29:29 +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 794dcc2a58 dvc: avoid collecting stages twice
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-14 10:49:32 +03:00
Ruslan Kuprieiev c636581699 test: gc: catch OSError 0.11.0 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 e6e11ef015 Merge pull request #880 from efiop/master
test: check if we need to test RemoteAzure with _should_test_azure
2018-07-12 09:21:23 +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
Ruslan Kuprieiev 3946463551 dvc: bump to 0.11.0 2018-07-12 08:31:38 +03:00
Ruslan Kuprieiev 774e635e60 Merge pull request #879 from efiop/master
remote: s3: properly delete key
2018-07-11 23:21:44 +03:00
Ruslan Kuprieiev 9fedecdf55 remote: s3: properly delete key
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-11 23:07:50 +03:00
Ruslan Kuprieiev 69f5ea3f3a Merge pull request #878 from efiop/master
gc: introduce -c|--cloud
2018-07-11 22:54:13 +03:00
Ruslan Kuprieiev d63d1db5b6 gc: introduce -c|--cloud
Fixes #876

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-11 22:27:13 +03:00
Ruslan Kuprieiev d71df35f63 gc: take into account local cache
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-11 22:27:13 +03:00
Ruslan Kuprieiev 716c554b93 remote: allow AZURE cache
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-11 22:27:13 +03:00
Ruslan Kuprieiev d24457c14f gc: choose which cache to process inside the drivers
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-11 22:27:13 +03:00
Ruslan Kuprieiev 5f8b2f3b91 Merge pull request #875 from CatalystCode/azure-integration-tests
Add integration tests for Azure Remote
2018-07-11 16:57:32 +03:00
Ruslan Kuprieiev bb5f1de79f Merge pull request #877 from efiop/master
dvc: sort dir cache by relpath
2018-07-11 16:36:13 +03:00
Clemens Wolff 8f36587805 Set up Azurite on AppVeyor 2018-07-11 09:25:45 -04:00
Ruslan Kuprieiev 5b674c910d dvc: sort dir cache by relpath
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-11 14:01:49 +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 8a32292f46 Fix tests on Python 2 2018-07-10 16:44:28 -04:00
Clemens Wolff 97dfc88647 Flag skipped tests during test run 2018-07-10 16:44:28 -04:00
Clemens Wolff fcd0e34269 Enable Azure integration test on Travis CI
Note: the tests are run against the Azurite [1] local emulator for Azure
Blob Storage and not against a live service.

[1] https://github.com/azure/azurite
2018-07-10 16:33:53 -04:00
Clemens Wolff a438f77db2 Move to list-then-check exists implementation 2018-07-10 16:33:52 -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
Ruslan Kuprieiev 3e08cd503c Merge pull request #874 from efiop/master
utils: copyfile: properly join paths
2018-07-10 21:50:36 +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
Clemens Wolff 581132bbe0 Fix environment variable name 2018-07-10 13:54:49 -04:00
Ruslan Kuprieiev e051964a1b Merge pull request #873 from efiop/master
collect: skip if cache dir doesn't exist
2018-07-10 20:09:44 +03:00
Ruslan Kuprieiev 2aa9288f55 collect: skip if cache dir doesn't exist
Related to #872

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-10 19:22:18 +03:00
Ruslan Kuprieiev 6996d0a9e6 Merge pull request #870 from efiop/master
remote: add comments for s3/azure exists() method
2018-07-09 23:49:48 +03:00
Ruslan Kuprieiev 1f30d29b57 remote: add comments for s3/azure exists() method
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-09 23:40:56 +03:00
Ruslan Kuprieiev abee5f07bb Merge pull request #869 from CatalystCode/code-climate
Fix CodeClimate inspections
2018-07-09 23:21:02 +03:00
Clemens Wolff afd46e1a8a Fix CodeClimate inspections 2018-07-09 16:06:10 -04:00
Ruslan Kuprieiev 1bcd7408ec Merge pull request #868 from CatalystCode/azure-blob-storage-remote
Add Azure Blob Storage remote
2018-07-09 23:01:07 +03: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 50ea36e740 dvc: bump to 0.10.2 0.10.2 2018-07-08 01:13:21 +03:00
Ruslan Kuprieiev c7ed95f5ba Merge pull request #867 from efiop/master
metrics bugfixes
2018-07-08 01:11:03 +03:00
Ruslan Kuprieiev 5d3a009886 metrics: require ply>=3.9 to avoid bug on binary windows package
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-08 01:02:26 +03:00
Ruslan Kuprieiev 6683f13b4e metric: print error if unable to read
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-08 01:02:26 +03:00
Ruslan Kuprieiev 3f73ef057a dvc: bump to 0.10.1 0.10.1 2018-07-07 03:43:16 +03:00
Ruslan Kuprieiev 961bf8b34c Merge pull request #866 from efiop/master
metrics: show: don't print branch if all_branches=False
2018-07-07 03:41:39 +03:00
Ruslan Kuprieiev 11de88fcd4 metrics: show: don't print branch if all_branches=False
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-07 03:31:42 +03:00
Ivan Shcheklein e83dd1c972 fix README tutorial link 2018-07-05 20:51:25 -07:00
Ruslan Kuprieiev 62cd68af77 Merge pull request #864 from efiop/master
updater: don't forget to convert to int
2018-07-06 06:31:45 +03:00