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

test for integrity remove #17628

Open
wants to merge 2 commits into
base: develop2
Choose a base branch
from

Conversation

memsharded
Copy link
Member

Changelog: Omit
Docs: Omit

Close #17622

Comment on lines +45 to +53
t.run("create . --name pkg1 --version 1.0")
t.run("create . --name pkg2 --version=2.0")
layout = t.exported_layout()
manifest = os.path.join(layout.export(), "conanmanifest.txt")
os.remove(manifest)

t.run("cache check-integrity *", assert_error=True)
assert "pkg1/1.0: Integrity checked: ok" in t.out
assert "ERROR: pkg2/2.0#4d670581ccb765839f2239cc8dff8fbd: Manifest missing" in t.out
Copy link
Member

Choose a reason for hiding this comment

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

I'd like for this to remove pkg1's manifest, to show that we still iterate the rest of them even after the first error

Comment on lines +64 to +73
t.run("create . --name pkg2 --version=2.0")
layout = t.created_layout()
manifest = os.path.join(layout.package(), "conanmanifest.txt")
os.remove(manifest)

t.run("cache check-integrity *", assert_error=True)
assert "pkg1/1.0: Integrity checked: ok" in t.out
assert "ERROR: pkg2/2.0#4d670581ccb765839f2239cc8dff8fbd" \
":da39a3ee5e6b4b0d3255bfef95601890afd80709" \
"#0ba8627bd47edc3a501e8f0eb9a79e5e: Manifest missing" in t.out
Copy link
Member

Choose a reason for hiding this comment

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

Same here if possible?

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.

[bug] Corrupted packages in local cache
2 participants