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

ci: enforce that getrandom does not contain potential panics #515

Merged
merged 10 commits into from
Oct 14, 2024
Merged

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
55 checks passed
@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.
1 participant