Mr. Outis
8492786ae4
logger: refactor, remove dead code ( #3306 )
...
* Remove dead code
* Rename _walk_exc to _causes, simplify it
* Split up stack trace and remove extra \n
* Import traceback only when needed
2020-02-17 03:19:37 +02:00
Saugat Pachhai
46e5053705
update: support specifying revision when updating ( #3337 )
...
* update: work with rev
* completion: update --rev completion scripts
* test: fix unit test assumption
* test: use fspath_py35
2020-02-15 17:55:41 +02:00
Ruslan Kuprieiev
8a2699dfbb
schema: use a more flexible hash schema ( #3333 )
...
Fixes #3331
2020-02-15 01:13:45 +02:00
Casper da Costa-Luis
276a2b02a3
ui: make progress bars respect --quiet ( #3316 )
...
* ui: default no_progress_bar=None instead of False
Fixes #3314
* ui: catch remaining missing auto-quiet progress
* progress: treat disable=False as None
* test: progress.Tqdm(disable=False)
* revert no_progress_bar=None <= False
partially reverts e0342a8641f0101d
2020-02-15 00:53:52 +02:00
Saugat Pachhai
17c7b72cb0
logger: log datetime when on debug mode ( #3325 )
2020-02-14 13:58:15 +02:00
Alexander Schepanovski
6ccae711fe
dvc: refactor config ( #3298 )
...
* dvc: refactor config
Advantages:
- read like a dict
- modify as a dict for testing or manipulation purposes
- wrap modifications into context manager to save them:
with config.edit("local") as conf:
conf["core"]["remote"] = "new-default"
Design decisions:
- dropped string constants
- remote sections are parsed into a simple subdict upon load
- remote config schema is now defined by url scheme
- relative paths are handled transparently upon load/save
- user config and remote manipulations are moved to commands
- same dev manipulations are done by simply modifying a config dict
* test: do not set cache.type for remotes that doesn't support it
* dvc: fix windows absolute paths validation in config
* test: fix windows separate drive test
* dvc: stylistic fixes in config
2020-02-13 19:35:37 +02:00
Guro Bokum
7e6e8ee169
api: add list command ( #3246 )
...
Close #2509
2020-02-12 22:10:48 +02:00
Mr. Outis
753aef4910
black: bump version 19.3b0 -> 19.10b0 ( #3307 )
2020-02-12 02:41:24 +02:00
Ruslan Kuprieiev
2361bceb70
repro: fix bug in _get_active_graph ( #3301 )
...
We are currently removing all of the deps stages from the DAG even if
those deps are referenced by some parallel branches of execution.
The new approach is to remove edges and then gradually remove nodes if
there are no more `in` edges left.
Discord context:
https://discordapp.com/channels/485586884165107732/485596304961962003/676464313942409265
2020-02-11 01:45:43 +02:00
Ruslan Kuprieiev
0c8897949e
diff: use rev instead of ref ( #3299 )
...
Fixes #3245
2020-02-11 00:13:23 +02:00
Casper da Costa-Luis
3d5b8ecdd5
add: auto convert absolute_path => relative ( #2975 )
...
* add: auto convert absolute_path => relative
- fixes #2955
* use path_isin
* catch-all absolute paths in repo
* unneeded leftover
* revert realtive imports for later
* output: move abs2relpath from Base to Local
* output:local:fix parse_path
* remove path_info
* test:local versus base abs2relpath
* test:fix remaining abs2relpath test
* output: local path relative to wdir
* output: local: modify path before inheritance
* output: local: minor inheritance fix
* test: local: split output test
* test: local: positively explicit
2020-02-10 18:35:24 +02:00
Ruslan Kuprieiev
d305803015
analytics: ignore request.post errors ( #3292 )
...
Users have been complaining about dvc analytics errors when they are not
connected to the internet.
2020-02-10 01:41:42 +02:00
Ruslan Kuprieiev
2786a4e59b
logger: allow exc_info in all record types ( #3290 )
...
This better reflects the original logger formatter.
This also fixes annoying redundant newline between traceback and "need
any help" footer.
2020-02-09 22:22:20 +02:00
Alexander Schepanovski
e28371f53a
Fix blockers list in rwlock error message ( #3285 )
2020-02-06 16:25:17 +02:00
Mr. Outis and @dmpetrov
e5145e6c55
diff: format summary to make it more human readable
...
Co-authored-by: @dmpetrov
2020-01-30 13:15:49 -06:00
Mr. Outis
793a069644
tests/diff: order dictionary (second try)
2020-01-30 10:00:56 -06:00
Mr. Outis
e9bd9599a2
tests/diff: dont care about sorted jsons
2020-01-30 09:26:35 -06:00
Mr. Outis
e501549bd7
diff: add a summary at the bottom
2020-01-29 18:54:45 -06:00
Mr. Outis
8e9d8145cd
diff: remove deadcode, replace diffable with dicts
2020-01-29 17:42:35 -06:00
Mr. Outis
423a6163bc
diff: make --checksums work with --json-show
2020-01-27 14:10:37 -06:00
Mr. Outis
fced1718cc
diff: --json -> --show-json
2020-01-27 12:53:24 -06:00
Mr. Outis
2370cb12b3
diff: use logger instead of print
2020-01-27 12:33:24 -06:00
Ruslan Kuprieiev
49039968f7
Merge pull request #3208 from fabiosantoscode/feature/3198-remove-spy-method
...
tests: replace spy() with pytest-mock spy
2020-01-23 10:52:43 +02:00
Fábio Santos
fc92266114
address comments
2020-01-22 17:31:46 +00:00
Fábio Santos
bdf665a34a
don't use patch.object()
2020-01-21 20:52:48 +00:00
Fábio Santos
5dfcda54f9
tests: replace spy() with pytest-mock spy
...
Fixes #3198
2020-01-21 14:47:49 +00:00
Ruslan Kuprieiev
e848bcb9d6
gdrive: allow configuring no_traverse
2020-01-20 23:49:49 +02:00
Paweł Redzyński
cf08529362
utils: add tests for resolve out
2020-01-17 09:51:07 +01:00
Saugat Pachhai and Paweł Redzyński
98f6d56e8c
test: refactor, apply suggestion from @pared
...
Co-Authored-By: Paweł Redzyński <[email protected] >
2020-01-16 22:59:58 +05:45
Saugat Pachhai
02a73a0d9b
unit: test: check output of get --show-url command
2020-01-16 22:52:35 +05:45
Saugat Pachhai
eb252e055b
get: split command for getting url and getting files from url functions
2020-01-16 19:28:14 +05:45
Saugat Pachhai
4509f82bc3
get: implement --show-url to display only url/path to remote
2020-01-16 19:28:14 +05:45
Guro Bokum
4918c56ca3
remote: config checksum_jobs
...
Close #2920
2020-01-15 22:23:09 +08:00
Ruslan Kuprieiev
b865a48b92
Merge pull request #3146 from pared/2896_fs_repo
...
fs: tests: remove repo_dir
2020-01-14 16:49:23 +02:00
Ruslan Kuprieiev
9c934c8abf
Merge pull request #3147 from pared/2896_ssh_utils
...
ssh: test: unit, utils: test: unit: remove repo_dir
2020-01-14 16:38:08 +02:00
pawel
cb5b5ed334
ssh: test: unit, utils: test: unit: remove repo_dir
2020-01-14 15:32:48 +01:00
pawel
144f10d8cb
fs: tests: remove repo_dir
2020-01-14 15:25:55 +01:00
pawel
acd60ac1cf
connection: test: unit: remove repo_dir
2020-01-14 14:52:31 +01:00
Ruslan Kuprieiev
88fb097275
Merge pull request #3138 from pared/2896_repro_cmd
...
tests: repro: unit: migrate to dir helpers
2020-01-14 15:29:03 +02:00
Ruslan Kuprieiev
6869ee65e0
Merge pull request #3139 from pared/2896_run_cmd
...
tests: run: unit: migrate to dir helpers
2020-01-14 15:28:56 +02:00
Ruslan Kuprieiev
63a3c678cf
Merge pull request #3141 from pared/2896_update_cmd
...
update: tests: unit: migrate to dir helpers
2020-01-14 15:28:47 +02:00
Ruslan Kuprieiev
e7626b8500
Merge pull request #3140 from pared/2896_stage_unit
...
stage: tests: unit: migrate to dir helpers
2020-01-14 15:27:14 +02:00
pawel
26c4845157
tests: run: unit: migrate to dir helpers
2020-01-14 14:02:26 +01:00
pawel
ba63900b29
tests: repro: unit: migrate to dir helpers
2020-01-14 13:56:56 +01:00
pawel
cabe619d97
update: tests: unit: migrate to dir helpers
2020-01-14 13:55:02 +01:00
pawel
8e756f0452
stage: tests: unit: migrate to dir helpers
2020-01-14 13:51:40 +01:00
pawel
de9ff82b9c
tests: local: unit: migrate to dir helpers
2020-01-14 13:40:44 +01:00
Ruslan Kuprieiev
9cafef1fdd
Merge pull request #3051 from efiop/2995
...
metrics: introduce `diff`
2020-01-14 14:18:40 +02:00
Mr. Outis
2c9b763906
version: decode correctly commands output
2020-01-13 12:36:47 -06:00
Saugat Pachhai
141f308a6a
test: refactor ssh related functions in SSH and SSHMocked test helpers
2020-01-13 14:23:42 +05:45