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

Tidy up the warnings from integration tests #279

Conversation

portersrc
Copy link
Member

When looking at the "Files changed" in recent PRs, there are many extraneous warnings in image-rs/tests (e.g. "unused import"). The two main causes seem to be:
(1) the appropriate annotation for an integration test is not always applied to the respective import statement, variable, etc.
(2) not all integration tests use all of the common support from image-rs/tests/common/mod.rs

This PR tries to resolve the warnings. Annotations are added to solve (1). For (2), I've added pub mod common to the integration tests, which could lead to actual dead code that won't get caught by warnings. This seems to be a reasonable workaround, however, due to this issue.

Copy link
Member

@arronwy arronwy left a comment

Choose a reason for hiding this comment

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

Thanks @portersrc LGTM!

@Xynnn007 Xynnn007 merged commit 97d07fd into confidential-containers:main Jul 13, 2023
Xynnn007 added a commit to Xynnn007/guest-components that referenced this pull request Jul 13, 2023
@portersrc portersrc deleted the tidy-unchanged-files-with-check-annot branch July 13, 2023 18:36
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.

3 participants