-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Update Golang 1.13.8, start testing on Go 1.14 #2239
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
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0afdd63
Dockerfile: use build-args to allow overriding versions
thaJeztah 97ae4e6
Dockerfile: set DEBIAN_FRONTEND=noninteractive
thaJeztah 01663d3
Dockerfile: sort dependencies, and cleanup apt cache
thaJeztah 89c2aa1
Dockerfile: prevent busting build-cache for busybox rootfs
thaJeztah 93e7d78
Dockerfile: switch to "buster" variant (current stable)
thaJeztah 6217cf3
Update Golang 1.13.8, start testing on Go 1.14
thaJeztah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,19 @@ | ||
| dist: bionic | ||
| language: go | ||
| go: | ||
| - 1.11.x | ||
| - 1.12.x | ||
| - 1.13.x | ||
| - 1.14.x | ||
| - tip | ||
|
|
||
| matrix: | ||
| include: | ||
| - go: 1.12.x | ||
| - go: 1.13.x | ||
| env: | ||
| - RUNC_USE_SYSTEMD=1 | ||
| script: | ||
| - make BUILDTAGS="${BUILDTAGS}" all | ||
| - sudo PATH="$PATH" make localintegration RUNC_USE_SYSTEMD=1 | ||
| - go: 1.12.x | ||
| - go: 1.13.x | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One thing I don't understand here (maybe just because it's slow Saturday) is why there is only a single versoin of go (such as |
||
| env: | ||
| - VIRTUALBOX_VERSION=6.0 | ||
| - VAGRANT_VERSION=2.2.6 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
To avoid having to update this every time, we should have a
1.xentry so we're always testing the latest release.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.
Not sure. That way we wouldn't be testing "latest - 1", would that be an issue? (go supports last two versions, and not everyone may be on latest on day 1)
Also it would mean CI "silently" switching to a new Go version, which could be confusing why things all of a sudden start to fail
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.
we already have
tipto test on the latest version, no need to have1.x.Uh oh!
There was an error while loading. Please reload this page.
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.
tiptests the latest build of Go master, not the latest released version. This would be like testing against nightly in the Rust world (useful, but not as useful as testing against the latest release).I wasn't saying to remove the
latest - 1line (annoyingly Travis doesn't support this concept), I was just saying we should add1.x.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.
I just found they actually do! Travis is using
gimme(https://github.com/travis-ci/gimme) for installing go versions, and this is what it gives to meI also learned that
tipmeans "get go it from git and compile" and I am not sure we want it.So, since golang supports two versions, we can use
stableandoldstableand catch the problems early. I think @thaJeztah would say that specifying versions explicitly is always better because we know what we use, and it won't break suddenly because of golang 1.23 (or whatever) is released. To that, I'd say (1) we have to support supported go releases, and if something breaks we need to take care ASAP (2) it is not ideal, but better than the current situation then we test everything on two unsupported go releases.Uh oh!
There was an error while loading. Please reload this page.
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.
👍 to using
oldstableandstable.Yup, that was what I was trying to say earlier.
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.
OK, the bad news is for some reason
oldstableis not working for Travis CI (which uses the very same version ofgimmethat I did above so I'm not sure why).Reported earlier (perhaps to a wrong place)
travis-ci/gimme#179
I have reported it as well (hopefully to the right place)
https://travis-ci.community/t/cant-specify-oldstable-as-go-version-in-travis-yml/7670
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.
Also filed travis-ci/gimme#185.
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.
This is finally allegedly fixed, so #2538