versions: Bump golang from 1.8.3 to 1.9.7#643
Conversation
|
/cc @chavafg. |
grahamwhaley
left a comment
There was a problem hiding this comment.
lgtm
@chavafg @jodh-intel - do we need to tweak our Travis setup - I think we have a 1.8 job there?
|
grep isn't finding that in https://github.com/kata-containers/ci, but does memory serve that Travis installs the packaged version of go (which might be 1.8.x) and we then install the correct version using https://github.com/kata-containers/tests/blob/master/.ci/install_go.sh @chavafg? |
|
Ah, it may be in travis.yml in other repos that means I've seen it on the Travis reports: |
|
This repo appears to Travis only 1.10, and that is reflected for instance in the relevant link for this PR I guess the question is, are we setting 1.9.x as the base for all the repos? I suspect the answer will be yes. |
|
ok great, so no further changes required for this repo though :) |
Codecov Report
@@ Coverage Diff @@
## master #643 +/- ##
=======================================
Coverage 65.35% 65.35%
=======================================
Files 85 85
Lines 9879 9879
=======================================
Hits 6456 6456
Misses 2766 2766
Partials 657 657 |
|
Build failed (third-party-check pipeline) integration testing with
|
|
@jodh-intel Thanks for raising this. Is this version yaml used to build kata packages we ship? If so, I would suggest that we use the latest stable go compiler instead. Newer compilers have a lot of improvements that can benefit kata users. For old go compilers, we can do a simply sanity check by building with them. travis-ci can be a good place to play such compile only tests. |
|
Hi @bergwolf - see kata-containers/packaging#147 regarding the version of golang we use for package builds. I do wonder if we want to re-assess whether we need to specify two go versions in @jcvenegas, @chavafg - wdyt? Is |
|
@jodh-intel Thanks for the pointers. I think we can:
I don't remember we have any dependency on golang versions yet. If we do, we can declare a minimal go version to support (like WDYT? |
|
PSS Measurement: Memory inside container: |
|
lgtm I see that tests, proxy shim... repositories have different go versions in their For jenkins we use the I agree that we can stick to only one version. |
|
"not ok 2 Running within memory constraints" |
I agree with @bergwolf , this looks reasonable |
|
Hi @bergwolf,
I'm not quite clear what you mean here - do you mean we should build each component with a range of go versions (like we do in some of the
Ah - so presumably you mean we should run all CI + packaging using the same version (latest stable) - sounds good to me.
I had thought there was a reason we standardised on 1.8.3. Maybe clearcontainers/runtime@c5569a5 but @sboeuf may remember more :)
I might be misunderstanding, but that's the intention of this PR - to update the minimum version we will use for CI + packaging. |
|
Hi @jodh-intel , today I debugged a bit and find that it may need little change to fix golang 1.8.3 build, so I raised another PR #662 to address this, I think it's better to fix the build issue though 1.8.3 is not stable anymore. What do you think? This PR is still valid despite of #662 so we can still merge it. |
golang version 1.8.3 is old and the runtime cannot even be built with it now it seems. Since it is no longer considered a stable version [1], move to the oldest official stable version (version 1.9.7). Fixes kata-containers#642. [1] - https://golang.org/dl/ Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2cc20d5 to
d814bc5
Compare
|
Build failed (third-party-check pipeline) integration testing with
|
|
PSS Measurement: Memory inside container: |
|
@jodh-intel How about update golang to latest stable 1.11? |
|
Sounds like a good idea. But I'm still not clear on the best approach here. Your recent #662 suggests folk do still care about older versions of go, but should we leave such PRs up to those in the community that do care, or just constantly follow the "tip" (1.11)? Maybe we should change the diff --git a/versions.yaml b/versions.yaml
index 145e8aa..76c0740 100644
--- a/versions.yaml
+++ b/versions.yaml
@@ -183,9 +183,9 @@ languages:
golang:
description: "Google's 'go' language"
notes: "'version' is the default minimum version used by this project."
- version: "1.8.3"
+ version: "1.11"
meta:
- newest-version: "1.10"
+ oldest-version: "1.8.3"
But if we do that, who / what will ensure that we haven't broken support for Related:
/cc @grahamwhaley, @chavafg, @jcvenegas, @egernst, @bergwolf. |
|
This conversation has to continue and as @jodh-intel mentioned, maybe testing several version of Golang might be a good idea if we have enough CI resources. |
Fixes: #123412345 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
Fixes: #123412345 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
Fixes: #123412345 Depends-on: github.com/kata-containers/packaging#643 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
…bridVsock protocols/client: support hybrid vsocks
golang version 1.8.3 is old and the runtime cannot even be built with
it now it seems.
Since it is no longer considered a stable version [1], move to the
oldest official stable version (version 1.9.7).
Fixes #642.
[1] - https://golang.org/dl/
Signed-off-by: James O. D. Hunt james.o.hunt@intel.com