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

build: make zip file exports deterministic #2098

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Mar 5, 2025

Description of Changes

As long as the zip files are exported from the same git commit, the resulting archives should be byte-for-byte identical. Having fully reproducible builds will require comprehensive dependency pinning, e.g. via nix flake or similar, to ensure that the wasm artifacts are built identically, but for now, simply clobbering the timestamps of the exported asset files provides decent reproducibility.

Related Issue

No request in an issue, simply making opportunistic improvements, as with #2056. Was motivated to try this while updating the bundled assets in penumbra-zone/penumbra#5119.

Checklist Before Requesting Review

  • I have ensured that any relevant minifront changes do not cause the existing extension to break.

^ N/A, as this script only makes changes to build scripts, not to app code.

As long as the zip files are exported from the same git commit, the
resulting archives should be byte-for-byte identical. Having fully
reproducible builds will require comprehensive dependency pinning,
e.g. via nix flake or similar, to ensure that the wasm artifacts are
built identically, but for now, simply clobbering the timestamps of the
exported asset files provides decent reproducibility.
@conorsch conorsch requested review from cronokirby and TalDerei March 5, 2025 21:35
Copy link

changeset-bot bot commented Mar 5, 2025

⚠️ No Changeset found

Latest commit: da49af5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@TalDerei TalDerei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reproducibility is good 👍

@conorsch conorsch merged commit 1c79c6b into main Mar 5, 2025
6 checks passed
@conorsch conorsch deleted the ci-script-for-bundling-assets branch March 5, 2025 23:29
turbocrime pushed a commit that referenced this pull request Mar 6, 2025
As long as the zip files are exported from the same git commit, the
resulting archives should be byte-for-byte identical. Having fully
reproducible builds will require comprehensive dependency pinning,
e.g. via nix flake or similar, to ensure that the wasm artifacts are
built identically, but for now, simply clobbering the timestamps of the
exported asset files provides decent reproducibility.
TalDerei pushed a commit that referenced this pull request Mar 6, 2025
As long as the zip files are exported from the same git commit, the
resulting archives should be byte-for-byte identical. Having fully
reproducible builds will require comprehensive dependency pinning,
e.g. via nix flake or similar, to ensure that the wasm artifacts are
built identically, but for now, simply clobbering the timestamps of the
exported asset files provides decent reproducibility.
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