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
kubernetes-1.24.0 reproducible builds: kubelet binary varies #110928
Comments
|
@bmwiedemann: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
|
/sig release |
|
@bmwiedemann can you please post a link to the full logs from the build? |
|
@saschagrunert any news on this? Haven't heard from @bmwiedemann (context: we worked to fix this a couple of times in #70131) |
|
Unfortunately not, @bmwiedemann is this something we can fix on the OBS side? If the go build timestamp ( |
|
It would be good if |
|
@dims full logs from the build: https://rb.zq1.de/temp/kubernetes1.24-build-log.txt |
|
@bmwiedemann can you please try setting GOCACHE=off when you run the build? I am suspecting that the temp directory is being generated here: (or add an export in hack/lib/golang.sh for that env var) |
|
I added |
|
So i built golang from source, peppered it with changes to track down where this is getting created and found that it is coming from: I don't know yet how to fix it. will dig more when i can (travelling for the next few days) |
|
Would it work to override the Ref: https://reproducible-builds.org/docs/build-path/ Edit: Probably not, we may make it configurable in golang |
|
this is so tricky @saschagrunert :( will dig more when i get back from my event this week |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
|
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
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. |
What happened?
While working on reproducible builds for openSUSE, I found that our kubernetes1.24 package stopped to produce bit-identical results on 2 fresh builds.
The first chunk is likely just the hash of the remainder, so can be ignored.
The other chunks indicate that a random build temporary path is used for
_cgo_gotypes.goWhat did you expect to happen?
Sources should be able to reproduce bit-identical binaries e.g. for SLSA level4
How can we reproduce it (as minimally and precisely as possible)?
On Debian or openSUSE do
Anything else we need to know?
No response
Kubernetes version
$ kubectl versionWARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-05T00:00:00Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
NAME="openSUSE Tumbleweed"
VERSION="20220701"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20220701"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20220701"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: