Ackee Trident fuzz tests#21
Open
lukacan wants to merge 4 commits into
Open
Conversation
fa1ad2d to
a38e4f5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains fuzz tests for the Solana World ID program and the Solana World ID on-chain template. Additionally, a pipeline to run the desired fuzz tests has been added. The fuzz tests are a result of the work done in parallel with the audit performed by Ackee Blockchain Security.
To enable the execution of fuzz tests, some dependencies had to be added, and
AccountsSnapshotsneeded to be derived for each account context. The generated source code from theAccountsSnapshotsis gated with thetrident-fuzzingfeature, so by default, the source code does not contain the generated parts. This feature flag is activated only for the fuzz tests.The Trident dependencies are pinned to a specific git commit, as we are currently working on Trident and may introduce breaking changes. Therefore, we have pinned the Trident dependency to this specific commit. Additionally, Trident installed within the GitHub pipeline is also pinned to this commit (the commit is eb8f647104209323b53e3637d3d3c5b7d140d368 ).
In order to run desired fuzz test execute:
In order to check (and debug) a crashfile
For more info check the Trident documentation