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
Switch gitVersion format to non-abbreviated hash #99377
Conversation
Are we going to have surprises when this doesn't match the version in other aspects of the build? |
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.
/triage accepted
/sig release
it already doesn't... the build pins to a 14-character abbreviated hash: kubernetes/hack/lib/version.sh Lines 68 to 69 in 9d7d3eb
|
ha, and the build script bit which does honor git archive substitution was already using %H: kubernetes/hack/lib/version.sh Lines 40 to 54 in 9d7d3eb
|
we're hitting I/O throttling in CI again, xref: kubernetes/test-infra#20966 (comment) |
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.
/hold
(for others to review)
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
/cc @justaugustus @saschagrunert
/retest |
/test pull-kubernetes-e2e-kind |
plan to unhold tomorrow if there are no other comments |
/approve sounds like a plan @liggitt |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder, dims, hasheddan, liggitt 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 |
/hold cancel |
What type of PR is this?
/kind bug
Which issue(s) this PR fixes:
Fixes #99376
Ensures that source archives for a given sha/tag remain consistent over time, even if sha collisions require the abbreviated hash to grow in the future.
Does this PR introduce a user-facing change?
Not really sure who to target this at, but maybe @kubernetes/sig-release for review? The artifacts we build don't even make use of the git archive mechanism, and our binaries override the variable using build flags.