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

Fix inconsistent behaviour of compute_metafile_hashes_length #1695

Conversation

ivanayov
Copy link
Collaborator

Previously when compute_metafile_hashes_length was set to False
update_timestamp did not set the hash and length values to None
as expected. This change fixes that, so they are not None when
compute_metafile_hashes_length=True and None when
compute_metafile_hashes_length=False

Fixes #1651

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • [n/a] Docs have been added for the bug fix or new feature

@coveralls
Copy link

coveralls commented Nov 24, 2021

Pull Request Test Coverage Report for Build 1536041178

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.581%

Totals Coverage Status
Change from base Build 1534603791: 0.0%
Covered Lines: 4032
Relevant Lines: 4116

💛 - Coveralls

@ivanayov ivanayov force-pushed the repository_simulator_inconsistent_metafile_hashes branch from e9ac81c to 2dc00ee Compare November 25, 2021 14:55
tests/test_updater_top_level_update.py Show resolved Hide resolved
tests/test_updater_top_level_update.py Outdated Show resolved Hide resolved
@ivanayov ivanayov force-pushed the repository_simulator_inconsistent_metafile_hashes branch 2 times, most recently from 479874e to 68d788d Compare December 2, 2021 14:59
Previously when `compute_metafile_hashes_length` was set to `False`
`update_timestamp` did not set the hash and length values to `None`
as expected. This change fixes that, so they are not `None` when
`compute_metafile_hashes_length=True` and `None` when
`compute_metafile_hashes_length=False`

Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
@ivanayov ivanayov force-pushed the repository_simulator_inconsistent_metafile_hashes branch from 68d788d to 71a7f11 Compare December 3, 2021 16:19
Copy link
Member

@jku jku left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@jku jku merged commit 9ff5bfc into theupdateframework:develop Dec 7, 2021
@lukpueh lukpueh mentioned this pull request Dec 13, 2021
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.

RepositorySimulator: inconsistent behaviour of compute_metafile_hashes_length
4 participants