question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

diff: Stats reported by dvc not correct

See original GitHub issue

Description

When tracking a directory using DVC, the stats reported by dvc diff are not correct. For example, in a small test repository, the directory test is being tracked by DVC. When running dvc diff between two commits, the following is reported:

$ dvc diff f722af7 91cdc34

dvc diff from f722af74ec372073d04847a3c77ff7e7a154a21b to 91cdc345625ded08cb50f5616f41cee73b198bb6

diff for 'test'
-test with md5 cd5a9abdb72acc541fecb818c8280d5c.dir
+test with md5 3d681d1fe5b39802f663c9a82600d219.dir

0 files not changed, 0 files modified, 0 files added, 0 files deleted, size was increased by 3 Bytes

It should say that 1 file was modified, but instead only reports the size change correctly.

Information about setup

$ dvc --version
0.35.5

DVC installed via pip.

$ python3 --version
Python 3.6.7
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
GildedHonourcommented, Aug 1, 2019

I fetched those fixes and created a PR.

1reaction
shchekleincommented, Jul 30, 2019

@GildedHonour “0 files not changed”. Yes, I think this is the only difference. We need to fix that. Feel free to fix not changed part so it’s less confusing. We will need to update the docs if needed and write a test for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

status | Data Version Control - DVC
If no differences are detected, dvc status prints Data and pipelines are up to date , or Cache and remote 'myremote' are in...
Read more >
Disney ROFR DVC Stats for September 2022
It's time to rally the Disney ROFR DVC stats for last month and go over the numbers. The statistics discussed below are based...
Read more >
DVC Right of First Refusal Report (ROFR): January '22
Buy Back Rates for Disney Vacation Club Resorts in 2022. The table below shows the percentage of buybacks for all 12 different resorts...
Read more >
Math Placement Options - Diablo Valley College
DVC Assessment office, math placement options. ... Note that this class is different from Math 192 because it does not include trigonometry ...
Read more >
How to use DVC to experiment with data and annotated datasets
DVC can already be useful even in the exploration phase: while you are trying out different models, you are probably also building a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found