Skip to content

Conversation

@newpavlov
Copy link
Member

@newpavlov newpavlov commented Oct 14, 2024

The check is done by compiling cdylib which exposes getrandom_uninit and checking that the result does not contain any strings with "panic".

For now CI only checks linux_android_with_fallback, linux_android, rdrand, wasi, and getentropy backends. Other backend checks could be added in future PRs.

Closes #435

@newpavlov newpavlov requested a review from josephlr October 14, 2024 15:25
@newpavlov
Copy link
Member Author

newpavlov commented Oct 14, 2024

The above commits demonstrate that CI successfully detects potential panics.

@newpavlov newpavlov changed the title Add no-panic check ci: enforce that getrandom does not contain potential panics Oct 14, 2024
@newpavlov newpavlov merged commit 140876b into master Oct 14, 2024
@newpavlov newpavlov deleted the nopanic branch October 14, 2024 17:16
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.

Document and Test that getrandom() never panics.

2 participants