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

refactor: improve cargo build reproducibility #1647

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

jtguibas
Copy link
Contributor

merged dev into #1639

huitseeker and others added 2 commits October 13, 2024 16:24
- Added a '-Ztrim-paths' argument to the 'build_args' vector.
- Added a provisional solution to enable 'trim-paths', linking the associated Rust issue for context.

This ensures more reproducible builds through trimming the prefixes of debug paths.
See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-trim-paths-option
Copy link

SP1 Performance Test Results

Branch: john/cargo-build-reproducibility
Commit: 2e681de6
Author: jtguibas

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 0.18 2.95 0.46 25s
ssz-withdrawals 2757356 10.52 118.28 38.57 1m12s
tendermint 12593597 5.19 234.23 105.34 2m2s

@jtguibas jtguibas merged commit ad3a034 into dev Oct 16, 2024
8 checks passed
@jtguibas jtguibas deleted the john/cargo-build-reproducibility branch October 16, 2024 03:46
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.

2 participants