-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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: introduce support for reproducible builds #1995
Conversation
Reproducible builds is an initiative to create an independently-verifiable path from source to binary code [1]. This can be done by: - Make all archive tasks in gradle reproducible by ignoring timestamp on files [2] - Preserve the order in side the archives [2] - Ensure GlobalBuildInfoPlugin.java use [SOURCE_DATE_EPOCH] when available [SOURCE_DATE_EPOCH]: https://reproducible-builds.org/docs/source-date-epoch/ [1]: https://reproducible-builds.org/ [2]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives Signed-off-by: Leonidas Spyropoulos <[email protected]>
Can one of the admins verify this patch? |
Signed-off-by: Leonidas Spyropoulos <[email protected]>
Another recurrence of #1957 |
start gradle check |
Please rebase the latest on main to hopefully mitigate the failing test |
Hey @inglor! I understand in abstract why reproducible builds might be useful, but can you explain the reason for adding it to OpenSearch now? Do you have a specific use case that requires this? If there is more discussion necessary or if this effort will require additional work feel free to open an issue. Thanks! |
Hi @andrross, thanks for the review! I'm one of the package maintainers of OpenSearch in Arch Linux 1 and part of our effords is to have reproducible builds of our packages 2. Currently OpenSearch fails to be reproducible 3 and hopefully this will make it green. Slightly unrelated to this PR but the reference of the Arch Linux artifacts on the project site are not merged yet 4 Cheers, |
Hello, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what the delay was here. I think this is good as-is. LGTM and thank you for doing this!
Reproducible builds is an initiative to create an independently-verifiable path from source to binary code [1]. This can be done by: - Make all archive tasks in gradle reproducible by ignoring timestamp on files [2] - Preserve the order in side the archives [2] - Ensure GlobalBuildInfoPlugin.java use [SOURCE_DATE_EPOCH] when available [SOURCE_DATE_EPOCH]: https://reproducible-builds.org/docs/source-date-epoch/ [1]: https://reproducible-builds.org/ [2]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives Signed-off-by: Leonidas Spyropoulos <[email protected]> (cherry picked from commit 6da253b)
Reproducible builds is an initiative to create an independently-verifiable path from source to binary code [1]. This can be done by: - Make all archive tasks in gradle reproducible by ignoring timestamp on files [2] - Preserve the order in side the archives [2] - Ensure GlobalBuildInfoPlugin.java use [SOURCE_DATE_EPOCH] when available [SOURCE_DATE_EPOCH]: https://reproducible-builds.org/docs/source-date-epoch/ [1]: https://reproducible-builds.org/ [2]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives Signed-off-by: Leonidas Spyropoulos <[email protected]> (cherry picked from commit 6da253b) Co-authored-by: Leonidas Spyropoulos <[email protected]>
Hey @inglor Coming to this from my present comment opensearch-project/opensearch-plugin-template-java#38 (comment) ;) |
Description
Add support for reproducible builds
Reproducible builds is an initiative to create an independently-verifiable path from source to binary code 1. This can be done by:
Issues Resolved
N/A
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.