Skip to content

GH-46336: [Release][Packaging] Add support for Reproducible Builds for source archive - #46342

Merged
kou merged 7 commits into
apache:mainfrom
kou:release-source-reproducible
Jul 1, 2025
Merged

kou merged 7 commits into
apache:mainfrom
kou:release-source-reproducible

Conversation

@kou

@kou kou commented May 7, 2025 •

Copy link
Copy Markdown
Member

Rationale for this change

See https://reproducible-builds.org/ for Reproducible Builds.

Automated Release Signing requires this:
https://infra.apache.org/release-signing.html#automated-release-signing

What changes are included in this PR?

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@kou
kou requested review from assignUser, jonkeane and raulcd as code owners May 7, 2025 07:28
@github-actions

github-actions Bot commented May 7, 2025

Copy link
Copy Markdown

⚠️ GitHub issue #46336 has been automatically assigned in GitHub to PR creator.

@kou

kou commented May 7, 2025

Copy link
Copy Markdown
Member Author

Ah, https://infra.apache.org/release-signing.html#automated-release-signing includes the following:

The release procedure contains a validation step where all artifacts are reproduced on trusted hardware before publication to pages intended for end users

We need to add a reproducible check to dev/release/verify-release-candidate.sh for it.

@kou

kou commented May 7, 2025

Copy link
Copy Markdown
Member Author

We need to add a reproducible check to dev/release/verify-release-candidate.sh for it.

Implemented.

@kou

kou commented May 8, 2025

Copy link
Copy Markdown
Member Author

@assignUser @raulcd Do you want to review this before we request a review from INFRA?

@raulcd raulcd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this looks great to me, thanks @kou ! And thanks for adding the possibility of running this not only for tags. Just a minor comment about something I don't understand

@kou

kou commented May 9, 2025

Copy link
Copy Markdown
Member Author

I asked INFRA to review and enable automatic release signing for source arhicve: https://issues.apache.org/jira/browse/INFRA-26808

@assignUser

Copy link
Copy Markdown
Member

Sorry, I didn't have time to have a look so far, but this is great!

@pitrou pitrou May 15, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I was hoping we can use something like https://salsa.debian.org/reproducible-builds/strip-nondeterminism but it might not have support for tar files.

@kou kou May 15, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wow, I didn't know the tool. It's introduced in https://reproducible-builds.org/docs/stripping-unreproducible-information/ .

The approaches used here are listed in https://reproducible-builds.org/docs/archives/ .

Let's use GNU tar for now because strip-nondeterminism doesn't have tar support.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

OK. I've added.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why don't we use SOURCE_DATE_EPOCH?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I didn't know SOURCE_DATE_EPOCH.
I used it with tar not here.

@kou

kou commented Jun 19, 2025 •

Copy link
Copy Markdown
Member Author

@kou

kou commented Jun 23, 2025 •

Copy link
Copy Markdown
Member Author

I'm waiting an answer from INFRA because INFRA might set typo-ed secret variable name.

If there is no answer in this week, I'll merge this without an answer from INFRA.

@kou

kou commented Jun 23, 2025

Copy link
Copy Markdown
Member Author

There is a typo in secret variable name. I'll merge this after the typo is fixed by INFRA.

@kou

kou commented Jul 1, 2025

Copy link
Copy Markdown
Member Author

The typo was fixed: https://issues.apache.org/jira/browse/INFRA-26808?focusedCommentId=17986958&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17986958

I'll merge this to try this in 21.0.0 release.

@kou
kou merged commit a4d735a into apache:main Jul 1, 2025
@kou
kou deleted the release-source-reproducible branch July 1, 2025 02:16
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit a4d735a.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

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.

4 participants