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

fix(sdk): Asset evidence computation reproducibility fix #3958

Merged
merged 8 commits into from
Oct 22, 2024

Conversation

Sawchord
Copy link
Contributor

@Sawchord Sawchord commented Oct 22, 2024

Description

This PR fixes an issue with non-reproducibility with regards to asset uploading.
When using zlib-ng backend of flate2, we have the problem that the gzip archives generated on x86 and ARM are not the same.
Since we hash those archives into the evidence when doing an asset upload, this creates a different evidence string when running from x86 vs. ARM.

This PR removes the zlib-ng feature from flate2 altogether. The speedup provided by zlib-ng is not noticeable given that our assets are on the order of megabytes.

How Has This Been Tested?

This branch has been used inside dfx-orbit for a while now, and it fixed the issue.

Checklist:

@Sawchord Sawchord requested a review from a team as a code owner October 22, 2024 13:38
@Sawchord Sawchord marked this pull request as draft October 22, 2024 13:42
@Sawchord Sawchord marked this pull request as ready for review October 22, 2024 14:44
@Sawchord Sawchord enabled auto-merge (squash) October 22, 2024 15:15
@Sawchord Sawchord merged commit d65717b into master Oct 22, 2024
296 checks passed
@Sawchord Sawchord deleted the leon/asset_repro_fix branch October 22, 2024 16:03
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