test(futarchy): add fuzz testing suite - #496
Open
hyckomatej wants to merge 2 commits into
Open
hyckomatej wants to merge 2 commits into
hyckomatej wants to merge 2 commits into
Conversation
| ~/.cache/uv/ | ||
| target/ | ||
| ${{ runner.temp }}/wake-sol/target/ | ||
| key: futarchy-fuzz-build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}-${{ github.run_id }}-${{ github.run_attempt }} |
There was a problem hiding this comment.
Run-specific caches accumulate
The cache key includes both github.run_id and github.run_attempt, so every invocation creates a distinct cache even when Cargo.lock is unchanged. GitHub caches are immutable: the restore prefix can reuse an older entry, but the workflow will still save another copy of the Cargo, build, and Wake artifacts. Repeated fuzz runs will consume the cache quota and eventually evict useful entries. A stable, content-based key would allow these build caches to be reused without creating a duplicate for every run.
Suggested change
| key: futarchy-fuzz-build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}-${{ github.run_id }}-${{ github.run_attempt }} | |
| key: futarchy-fuzz-build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
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.
Summary
Adds a Wake.sol fuzz testing suite for the Futarchy program.
The suite includes:
The PR appears safe to merge, with a non-blocking workflow cache-key issue that should be corrected to avoid wasting cache storage and degrading future build-cache effectiveness.
Findings
Summary
This PR adds a comprehensive Wake.sol stateful fuzzing harness for Futarchy, including generated bindings, instruction-level flows, accounting and lifecycle invariants, deterministic setup utilities, documentation, and a manually dispatched GitHub Actions campaign.
Reviews (1) · Last reviewed commit: "Update cu limit"