Merge pull request #1668 from prihoda/patch-1

Log computed stage MD5 in verbose mode
This commit is contained in:
Ruslan Kuprieiev
2019-03-01 15:27:47 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -564,9 +564,9 @@ class Stage(object):
# NOTE: excluding parameters that don't affect the state of the
# pipeline. Not excluding `OutputLOCAL.PARAM_CACHE`, because if
# it has changed, we might not have that output in our cache.
return dict_md5(
d, exclude=[self.PARAM_LOCKED, OutputLOCAL.PARAM_METRIC]
)
m = dict_md5(d, exclude=[self.PARAM_LOCKED, OutputLOCAL.PARAM_METRIC])
logger.debug("Computed stage '{}' md5: '{}'".format(self.relpath, m))
return m
def save(self):
for dep in self.deps:
+1 -1
View File
@@ -5,7 +5,7 @@ from dvc.stage import Stage
class TestStageChecksum(TestCase):
def test(self):
stage = Stage(None)
stage = Stage(None, "path")
outs = [{"path": "a", "md5": "123456789"}]
deps = [{"path": "b", "md5": "987654321"}]
d = {"md5": "123456", "cmd": "mycmd", "outs": outs, "deps": deps}