Skip to content

Fix issues that allow use of asserts in hyperlight_host release builds #488

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

Merged
merged 1 commit into from
May 13, 2025

Conversation

simongdavies
Copy link
Contributor

The clippy lints that enforce the prevention of use of asserts in release code do not work correctly in hyperlight_host.

There are a couple of issues:

  • clippy.toml was not in the correct location so the disallow of the assert* macros was not being enforced in hyperlight_host.

  • After moving clippy.toml to the correct location the lints started to fail as there are asserts in the integration tests and examples that were not being excluded from the linting rules.

  • There was a case of an assert! in the windows hypervisor implementation.

With this change the prevention of asserts is enforced correctly

Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
@simongdavies simongdavies changed the title Fix issues allowing use of assert Fix issues that allow use of asserts in hyperlight_host release builds May 13, 2025
@simongdavies simongdavies added kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. kind/bugfix For PRs that fix bugs and removed kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. labels May 13, 2025
@simongdavies simongdavies merged commit a8f1d65 into hyperlight-dev:main May 13, 2025
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bugfix For PRs that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants