[18.09] Bump Golang to 1.11.12#302
Conversation
go1.11.12 (released 2019/07/08) includes fixes to the compiler and the linker. See the Go 1.11.12 milestone on our issue tracker for details: https://github.com/golang/go/issues?q=milestone%3AGo1.11.12 Full diff: golang/go@go1.11.11...go1.11.12 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
|
Need to cherry-pick some other changes
|
|
ping @kolyshkin ^^ |
As of Alpine Linux 3.3 (or 3.2?) there exists a new --no-cache option for apk. It allows users to install packages with an index that is updated and used on-the-fly and not cached locally. This avoids the need to use --update and remove /var/cache/apk/* when done installing packages. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commit 3b44dd6) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The fastly cdn mirror we're using also mirrors the debian security repository; ``` Welcome to deb.debian.org (fastly instance)! This is deb.debian.org. This service provides mirrors for the following Debian archive repositories: /debian/ /debian-debug/ /debian-ports/ /debian-security/ The server deb.debian.org does not have packages itself, but the name has SRV records in DNS that let apt in stretch and later find places. ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit c8f43b5) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Conflicts: * Dockerfile (GO_VERSION value differs, and CROSS (moby#39010) is absent) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
|
Also
|
|
@thaJeztah PTAL |
|
Is this the failure? |
|
I think we need this cherry-picked to the 18.09 codeline: moby@bd5c537 |
|
I've added the environment variable |
|
Looks like this one is ready to merge, except I don't know how to restart janky CI |
b585383 to
b12b108
Compare
|
Janky failure is
Did we really broke something? |
This allows overriding the version of Go without making modifications in the
source code, which can be useful to test against multiple versions.
For example:
make GO_VERSION=1.13beta1 shell
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit c6281bc)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Conflicts:
* Dockerfile, Dockerfile.e2e, Dockerfile.simple, Dockerfile.windows:
(due to Go version difference, missing CROSS etc.)
This was an oversight when changing the Dockerfile to use a build-arg; the Windows Dockerfile downloads the Go binaries, which never have a trailing `.0`. This patch makes sure that the trailing zero (if any) is removed. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit c5bd6e3) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This check was used to make sure we don't bump Go versions independently
(Linux/Windows). The Dockerfile switched to using a build-arg to allow
overriding the Go version, which rendered this check non-functional.
It also fails if Linux versions use a specific variant of the image;
08:41:31 ERROR: Failed 'ERROR: Mismatched GO versions between Dockerfile and Dockerfile.windows. Update your PR to ensure that both files are updated and in sync. ${GO_VERSION}-stretch ${GO_VERSION}' at 07/20/2019 08:41:31
08:41:31 At C:\gopath\src\github.com\docker\docker\hack\ci\windows.ps1:448 char:9
08:41:31 + Throw "ERROR: Mismatched GO versions between Dockerfile and D ...
08:41:31 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This patch fixes the check by looking for the value of `GO_VERSION` instead
of looking at the `FROM` line (which is harder to parse).
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 4fa57a8)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The Golang base images switch to buster, which causes some breakage in networking and packages that are no longer available; (`btrfs-tools` is now an empty package, and `libprotobuf-c0-dev` is gone). Some of out tests also start faiilng on stretch, and will have to be investigated further; ``` 15:13:06 --- FAIL: TestRenameAnonymousContainer (3.37s) 15:13:06 rename_test.go:168: assertion failed: 0 (int) != 1 (inspect.State.ExitCode int): container a7fe866d588d65f353f42ffc5ea5288e52700384e1d90850e9c3d4dce8657666 exited with the wrong exitcode: 15:13:38 --- FAIL: TestHostnameDnsResolution (2.23s) 15:13:38 run_linux_test.go:128: assertion failed: 15:13:38 --- ← 15:13:38 +++ → 15:13:38 @@ -1 +1,2 @@ 15:13:38 +ping: bad address 'foobar' 15:13:38 15:13:38 15:13:38 run_linux_test.go:129: assertion failed: 0 (int) != 1 (res.ExitCode int) ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit ed672bb) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
b12b108 to
3c1bc29
Compare
|
Yes we did, looks like commit 697cd3d85dbfb73c68a7b0c7646b6b85a665799e changes |
|
Only failures are https://jenkins.dockerproject.org/job/Docker-PRs-experimental/46361/console experimental: Janky https://jenkins.dockerproject.org/job/Docker-PRs/55270/console |
Bump Go to 1.11.12
go1.11.12 (released 2019/07/08) includes fixes to the compiler and the linker.
See the Go 1.11.12 milestone on our issue tracker for details:
Full diff: golang/go@go1.11.11...go1.11.12
Misc Dockerfile improvements