-
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
Apply reproducible builds to plugins #4746
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Can we have a rudimentary test for this, please? You also need an entry in CHANGELOG. |
As per gradle [docs] add support to remove timestamps and package with same order which is required from [reproducible] builds This is a result of the discussion in opensearch-project/opensearch-plugin-template-java#38 to apply for all plugins going forward. [docs]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives [reproducible]: https://reproducible-builds.org/ Signed-off-by: Leonidas Spyropoulos <[email protected]>
ced83fd
to
20f3dfa
Compare
Added a basic test and included the change in Changelog :) |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #4746 +/- ##
============================================
+ Coverage 70.69% 70.75% +0.05%
+ Complexity 57732 57724 -8
============================================
Files 4687 4687
Lines 277290 277293 +3
Branches 40376 40376
============================================
+ Hits 196042 196186 +144
+ Misses 64947 64718 -229
- Partials 16301 16389 +88
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-4746-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e44158d4d10d4f8905895ffa50bf9398b8550667
# Push it to GitHub
git push --set-upstream origin backport/backport-4746-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x Then, create a pull request where the |
As per gradle [docs] add support to remove timestamps and package with same order which is required from [reproducible] builds This is a result of the discussion in opensearch-project/opensearch-plugin-template-java#38 to apply for all plugins going forward. [docs]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives [reproducible]: https://reproducible-builds.org/ Signed-off-by: Leonidas Spyropoulos <[email protected]> Signed-off-by: Leonidas Spyropoulos <[email protected]> Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]>
As per gradle [docs] add support to remove timestamps and package with same order which is required from [reproducible] builds This is a result of the discussion in opensearch-project/opensearch-plugin-template-java#38 to apply for all plugins going forward. [docs]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives [reproducible]: https://reproducible-builds.org/ Signed-off-by: Leonidas Spyropoulos <[email protected]> Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]> (cherry picked from commit e44158d)
I opened the backport manually since the automatic way failed due to changelog.md conflicts. |
As per gradle [docs] add support to remove timestamps and package with same order which is required from [reproducible] builds This is a result of the discussion in opensearch-project/opensearch-plugin-template-java#38 to apply for all plugins going forward. [docs]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives [reproducible]: https://reproducible-builds.org/ Signed-off-by: Leonidas Spyropoulos <[email protected]> Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]> (cherry picked from commit e44158d)
Description
As per gradle docs apply gradle configuration to remove timestamps and package with same order for all plugins. This is required from reproducible builds
Issues Resolved
This PR is a result of opensearch-project/opensearch-plugin-template-java#38 discussion.
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.