Skip to content

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

@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