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
Allow to override build date with SOURCE_DATE_EPOCH #2643
Conversation
|
Hi @bmwiedemann. Thanks for your PR. I'm waiting for a cri-o or openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
|
Hi @bmwiedemann. Thanks for your PR. I'm waiting for a cri-o or openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/assign @rhatdan |
Codecov Report
@@ Coverage Diff @@
## master #2643 +/- ##
=======================================
Coverage 53.11% 53.11%
=======================================
Files 82 82
Lines 6979 6979
=======================================
Hits 3707 3707
Misses 2911 2911
Partials 361 361 |
|
/ok-to-test |
|
Hey @bmwiedemann |
in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. This renames BUILD_INFO to the standard name so that distributions do not have to discover the BUILD_INFO variable. Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
/test integration_rhel |
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.
LGTM
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bmwiedemann, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1 similar comment
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bmwiedemann, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
|
/test integration_rhel |
|
/test integration_rhel |
|
hmm, does the integration test rely on BUILD_INFO somehow? |
No, we have some flakes in the integration tests which we will tackle in the future |
in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. This renames BUILD_INFO to the standard name so that distributions do not have to discover the BUILD_INFO variable, similar to cri-o/cri-o#2643 Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. This renames BUILD_INFO to the standard name so that distributions do not have to discover the BUILD_INFO variable, similar to cri-o/cri-o#2643 Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de> Closes: #1805 Approved by: rhatdan
- What I did
Make cri-o build reproducibly by default.
- How I did it
Default
BUILD_INFOtoSOURCE_DATE_EPOCH, if available.- How to verify it
export SOURCE_DATE_EPOCH=123456taskset 1(needed because of some go parallelism bug) and compare/usr/bin/crio- should have identical content between builds.- Description for the changelog
Allow to override build date with SOURCE_DATE_EPOCH
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
While it is already possible to do reproducible builds without
this patch, this patch makes it the default,
so that distributions do not have to discover the BUILD_INFO variable.
Without this patch,
/usr/bin/criodiffers in ELF section .note.go.buildidSigned-off-by: Bernhard M. Wiedemann bwiedemann@suse.de