Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output: dont rely on the default hash type #4466

Merged
merged 1 commit into from
Aug 25, 2020
Merged

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Aug 25, 2020

Prerequisite for #4144 and #3069

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Comment on lines +45 to +47
item.info = get_in(checksums, [key, path], {})
item.info = item.info.copy()
item.info.pop("path", None)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the record: Discussed with @skshetry that we really need to move serialization/loading to specific deps/outputs (e.g. in a form of custom loaders/dumpers). So this is a temporary workaround.

@efiop efiop changed the title serialization: dont rely on the default hash type dvc: dont rely on the default hash type Aug 25, 2020
@efiop efiop changed the title dvc: dont rely on the default hash type output: dont rely on the default hash type Aug 25, 2020
)


def test_dump_multiple_hashes(dvc):
Copy link
Contributor Author

@efiop efiop Aug 25, 2020

Choose a reason for hiding this comment

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

We don't use this actively right now, but this is a result of us treating loading out.info as a leftover of unparsed values, which needs symmetry on dumping as well. Could've put a few asserts to check that there is only one hash in info, though...

@efiop efiop changed the title output: dont rely on the default hash type [WIP] output: dont rely on the default hash type Aug 25, 2020
@efiop efiop changed the title [WIP] output: dont rely on the default hash type output: dont rely on the default hash type Aug 25, 2020
@efiop efiop merged commit 718c9c9 into iterative:master Aug 25, 2020
@skshetry skshetry added the refactoring Factoring and re-factoring label Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Factoring and re-factoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants