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
Cache Cargo dependencies for fuzzing targets in CI #2107
base: main
Are you sure you want to change the base?
Conversation
I don't think this quite works as-is. I tried triggering a re-run of the afl target to see if it would use the cache, and it seems to have both downloaded/re-compiled all the dependencies and then failed saying:
|
EDIT: I think caching dependencies does work with |
I'm not sure how to get caching to work for The current build times for |
Other people seem to experience long Changing this line seems to help a little: - cargo fuzz run "$format" -- -runs=0;
+ RUSTFLAGS="-C codegen-units=16" cargo fuzz run "$format" -- -runs=0; (I picked In the end, if the goal is to reduce CI time, I am no longer sure that caching dependencies is the way to go. Since the |
We could switch to a specific, pinned nightly version to mitigate that. |
I imagine we'd then have to periodically bump the pinned version when it got too old and CI started failing. Not sure that's worth it |
Addresses #2091.