-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Include Go version, platform, and other build info in version string #19905
Conversation
Labelling this PR as size/S |
GCE e2e build/test failed for commit 20032d42acbc11c50e323581fae2a996ee0ab943. |
20032d4
to
95c3004
Compare
GCE e2e build/test failed for commit 95c3004b3c17ac45162e26c738aff45251b15906. |
GCE e2e test build/test passed for commit 95c3004b3c17ac45162e26c738aff45251b15906. |
Will this make |
@luxas it's been unclear to me if anyone wants it... |
@k8s-bot test this please, issue #IGNORE (Jenkins got stuck at some point?) |
wouldn't edit: read the description, which called that out. still think that's less than ideal. |
GCE e2e build/test passed for commit 95c3004b3c17ac45162e26c738aff45251b15906. |
An argument to fix |
Fortunately matchesServerVersion doesn't have to be backwards compatible
|
heh, true |
I think the go version skew between client & server is a) hard to get in practice b) worth noting when it happens. So I think this is probably net good. LGTM |
So what's the consensus here? Do we want to update |
38c25e3
to
e53bb95
Compare
I'd like to ignore the go version and base the decision on whether server and client were built from the same code. |
I vote for it being fine as-is. I think client & server built with On Thu, Mar 3, 2016 at 5:01 AM, David Eads notifications@github.com wrote:
|
The way it is is certainly less work for me. :) Otherwise I will probably need to clear out the client and server Go versions in (It's also possible there's code elsewhere that compares versions, which would also need to account for Go versions? I can do another pass to see. It's kinda unfortunate that |
If the platform isn't in the go version then I'm good with it the way it On Thu, Mar 3, 2016 at 4:17 PM, Jeff Grafton notifications@github.com
|
@lavalamp what the version looks like now (from the most recent e2e run of this PR):
So no platform info. |
It seems go1.5.3 doesn't like spaces in the ldflag value, so I switched to using the ISO8601 format for the build date. |
GCE e2e build/test passed for commit 2baff5e7e4cf5a3e24b2f302f92fa3864573e229. |
GCE e2e build/test passed for commit 38e7d9bd30bcc789be93f5511c73afd0f61d9cd7. |
lgtm |
apply the label once you squash. |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
Additionally update MatchesServerVersion to only check GitVersion, GitCommit, and GitTreeState.
Sorry for the noise. Interactive rebased a bit too far, but fixed now. Thanks for review. |
GCE e2e build/test passed for commit dda45ab030cde5d1a9b3c6c1da1923cf733c2703. |
GCE e2e build/test passed for commit fb663f2. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit fb663f2. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
Tracking down the root cause of #17524 probably would've been easier if we'd more readily exposed the Go version used to build Kubernetes, so this PR adds it to the version string exported.
This is fairly similar to the build information contained in Linux's version string or the command
docker version
.Note that this will make
MatchesServerVersion
fail if the client/server were built at the same git hash but with a different version of Go. I'm not sure if this is something to worry about.I don't think this is likely to break anything, but I'm not entirely confident on that.
(I also considered whether we want to add a build timestamp, like Linux and Docker have, but then we'd definitely want to ignore it in
MatchesServerVersion
, so I left that out for now.)