Skip to content

run-cache: skip unhashable stages#5185

Merged
efiop merged 1 commit into
treeverse:masterfrom
efiop:repo_config
Dec 31, 2020
Merged

run-cache: skip unhashable stages#5185
efiop merged 1 commit into
treeverse:masterfrom
efiop:repo_config

Conversation

@efiop
Copy link
Copy Markdown
Contributor

@efiop efiop commented Dec 31, 2020

Fixes #5182

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

Comment thread tests/unit/stage/test_cache.py Outdated
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too lazy to mock this out perfectly (as in many other tests). We need some nice factory for stages to use in tests 🙁

Comment thread dvc/stage/cache.py Outdated
Copy link
Copy Markdown
Contributor Author

@efiop efiop Dec 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better approach here would be to try to checkout/pull anything that is up-to-date(e.g. dvc added files and always_changed stages, but that needs to be done on a higher level as well as here. Will be resolved in #4742

@efiop efiop changed the title run-cache: skip unhashable stages [WIP] run-cache: skip unhashable stages Dec 31, 2020
@efiop efiop changed the title [WIP] run-cache: skip unhashable stages run-cache: skip unhashable stages Dec 31, 2020
@efiop efiop merged commit 9486337 into treeverse:master Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

run-cache: restore does not check if stage has outs or not

1 participant