Skip to content

Update to Golang 1.13.4#3620

Merged
mxpv merged 1 commit intocontainerd:masterfrom
thaJeztah:update_go_1.13
Nov 10, 2019
Merged

Update to Golang 1.13.4#3620
mxpv merged 1 commit intocontainerd:masterfrom
thaJeztah:update_go_1.13

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Sep 4, 2019

go1.13.4 (released 2019/10/31) includes fixes to the net/http and syscall
packages. It also fixes an issue on macOS 10.15 Catalina where the non-
notarized installer and binaries were being rejected by Gatekeeper.
See the Go 1.13.4 milestone on the issue tracker for details:
https://github.com/golang/go/issues?q=milestone%3AGo1.13.4

Update to Golang 1.13.3:

go1.13.3 (released 2019/10/17) includes fixes to the go command, the toolchain,
the runtime, syscall, net, net/http, and crypto/ecdsa packages. See the Go
1.13.3 milestone on the issue tracker for details:
https://github.com/golang/go/issues?q=milestone%3AGo1.13.3

Update to Golang 1.13.2:

go1.13.2 (released 2019/10/17) includes security fixes to the crypto/dsa
package and the compiler. See the Go 1.13.2 milestone on the issue tracker
for details:

https://github.com/golang/go/issues?q=milestone%3AGo1.13.2

update to Golang 1.13.1

go1.13.1 (released 2019/09/25) includes security fixes to the
net/http and net/textproto packages. See the Go 1.13.1 milestone
on the issue tracker for details:

https://github.com/golang/go/issues?q=milestone%3AGo1.13.1

update to Golang 1.13.0

Full diff: golang/go@go1.12.9...go1.13
Milestone: https://github.com/golang/go/milestone/83?closed=1

Today the Go team is very happy to announce the release of Go 1.13. You can get it
from the download page.

Some of the highlights include:

For the complete list of changes and more information about the improvements above,
see the Go 1.13 release notes: https://golang.org/doc/go1.13

@thaJeztah
Copy link
Copy Markdown
Member Author

Probably want to wait until after the 1.3.0 release, but opening to see if everything works smoothly on the new version (thought I already opened a PR to test that, but apparently forgot 😥)

@thaJeztah
Copy link
Copy Markdown
Member Author

(FWIW, on the Moby repository we ran into some weird stuff (as usual) when testing against 1.13 moby/moby#39549)

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 4, 2019

Build succeeded.

@thaJeztah
Copy link
Copy Markdown
Member Author

thaJeztah commented Sep 4, 2019

Ah, interesting;

$ if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make integration ; fi
+ integration
flag provided but not defined: -test.parallel
Usage of /tmp/go-build542105590/b001/containerd.test:
  -address string
    	The address to the containerd socket for use in the tests (default "/run/containerd-test/containerd.sock")
  -no-criu
    	Do not run the checkpoint tests
  -no-daemon
    	Do not start a dedicated daemon for the tests
  -test.root
    	enable tests that require root
exit status 2
FAIL	github.com/containerd/containerd	0.032s
Makefile:171: recipe for target 'integration' failed
make: *** [integration] Error 1
The command "if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH make integration ; fi" exited with 2.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 4, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Sep 4, 2019

Codecov Report

Merging #3620 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3620      +/-   ##
==========================================
- Coverage   41.99%   41.98%   -0.02%     
==========================================
  Files         130      130              
  Lines       14577    14577              
==========================================
- Hits         6122     6120       -2     
- Misses       7542     7543       +1     
- Partials      913      914       +1
Flag Coverage Δ
#linux 45.42% <ø> (-0.02%) ⬇️
#windows 36.94% <ø> (ø) ⬆️
Impacted Files Coverage Δ
snapshots/btrfs/btrfs.go 57.39% <0%> (-0.9%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40ac923...608791b. Read the comment docs.

Comment thread Makefile Outdated
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a regression in Go 1.13 (at least a change in behaviour)

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 4, 2019

Build succeeded.

@thaJeztah
Copy link
Copy Markdown
Member Author

Looks like I found it; looks like it fails if -race is enabled and flags.Parse() is called;

mkdir 113_regression && cd 113_regression

cat > repro_test.go <<EOF
package main

import "flag"
import "testing"

func init() { flag.Parse() }

func TestHello(t *testing.T) {}
EOF

On Go 1.12

go get golang.org/dl/go1.12.9 && go1.12.9 download

go1.12.9 test -race -test.parallel 8

# PASS
# ok  	_/go/113_regression	1.009s

On Go 1.13, running the test fails

go get golang.org/dl/go1.13 && go1.13 download

go1.13 test -race -test.parallel 8

# flag provided but not defined: -test.parallel
# Usage of /tmp/go-build008991056/b001/113_regression.test:
# exit status 2
# FAIL	_/go/113_regression	0.008s

The problem looks related to calling flag.Parse(). Trying an example on Go 1.13 on a test without flag.Parse()

cat > repro_test.go <<EOF
package main

import "testing"

func TestHello(t *testing.T) {}
EOF


go1.13 test -race -test.parallel 8

# PASS
# ok  	_/go/113_regression	1.009s

@thaJeztah
Copy link
Copy Markdown
Member Author

Reported an issue golang/go#34073

@thaJeztah
Copy link
Copy Markdown
Member Author

Apparently this was a known change in behavior; see golang/go#31859

@jterry75
Copy link
Copy Markdown
Contributor

jterry75 commented Sep 4, 2019

@kevpar - FYI

@jterry75
Copy link
Copy Markdown
Contributor

jterry75 commented Sep 4, 2019

Love it! Lets see how it does

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 4, 2019

Build succeeded.

Comment thread client_test.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flag variables are used before testContext is called and in some cases when testContext is not called at all. Is this Parse even necessary still? Is it possible to do this change in master in a way that works with 1.12 and 1.13.

@crosbymichael
Copy link
Copy Markdown
Member

Can you rebase this one now that 1.3 is out?

@thaJeztah thaJeztah changed the title Update to Golang 1.13.0 Update to Golang 1.13.1 Oct 11, 2019
@thaJeztah
Copy link
Copy Markdown
Member Author

Rebased, and updated to Go 1.13.1. I dropped the second commit, as it was merged in #3744

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 11, 2019

Build succeeded.

@tao12345666333
Copy link
Copy Markdown
Contributor

After this has been merged we could update to Golang 1.13.3 for CVE-2019-17596.

@thaJeztah
Copy link
Copy Markdown
Member Author

Let me open a quick PR to update to Go 1.12.12 first, in case we want to backport that to existing release branches where we may not want to bump to Go 1.13 immediately.

@thaJeztah
Copy link
Copy Markdown
Member Author

Opened #3760

@AkihiroSuda
Copy link
Copy Markdown
Member

needs rebase

@thaJeztah thaJeztah changed the title Update to Golang 1.13.1 Update to Golang 1.13.4 Nov 8, 2019
@thaJeztah
Copy link
Copy Markdown
Member Author

rebased, and updated to go 1.13.4

Comment thread .travis.yml Outdated
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this to be an explicit version as well; thought that if we'd have to update the AppVeyor config anyway, so might as well pin both travis and appveyor to use an explicit version

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Nov 8, 2019

Build succeeded.

@thaJeztah
Copy link
Copy Markdown
Member Author

Also opened #3806 to bump master to Go 1.12.13; we may want to merge that one first if we want that to be cherry-picked into existing release branches

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Nov 8, 2019

Build succeeded.

@thaJeztah
Copy link
Copy Markdown
Member Author

Arf. Looks like it's failing on some go mod issue;

go: github.com/golangci/[email protected]: invalid version: unknown revision 3540c026601b

@thaJeztah
Copy link
Copy Markdown
Member Author

Probably need to either disable go mod, or work outside of go path

go1.13.4 (released 2019/10/31) includes fixes to the net/http and syscall
packages. It also fixes an issue on macOS 10.15 Catalina where the non-
notarized installer and binaries were being rejected by Gatekeeper.
See the Go 1.13.4 milestone on the issue tracker for details:
https://github.com/golang/go/issues?q=milestone%3AGo1.13.4

Update to Golang 1.13.3:

go1.13.3 (released 2019/10/17) includes fixes to the go command, the toolchain,
the runtime, syscall, net, net/http, and crypto/ecdsa packages. See the Go
1.13.3 milestone on the issue tracker for details:
https://github.com/golang/go/issues?q=milestone%3AGo1.13.3

Update to Golang 1.13.2:

go1.13.2 (released 2019/10/17) includes security fixes to the crypto/dsa
package and the compiler. See the Go 1.13.2 milestone on the issue tracker
for details:

https://github.com/golang/go/issues?q=milestone%3AGo1.13.2

Update to Golang 1.13.1:

go1.13.1 (released 2019/09/25) includes security fixes to the
net/http and net/textproto packages. See the Go 1.13.1 milestone
on the issue tracker for details:

https://github.com/golang/go/issues?q=milestone%3AGo1.13.1

Update to Golang 1.13.0:

Full diff: golang/go@go1.12.9...go1.13
Milestone: https://github.com/golang/go/milestone/83?closed=1

Today the Go team is very happy to announce the release of Go 1.13. You can get it
from the download page.

Some of the highlights include:

- The go command now downloads and authenticates modules using the Go module
  mirror and Go checksum database by default (https://golang.org/doc/go1.13#introduction)
- Improvements to number literals (https://golang.org/doc/go1.13#language)
- Error wrapping (https://golang.org/doc/go1.13#error_wrapping)
- TLS 1.3 on by default (https://golang.org/doc/go1.13#tls_1_3)
- Improved modules support (https://golang.org/doc/go1.13#modules)

For the complete list of changes and more information about the improvements above,
see the Go 1.13 release notes: https://golang.org/doc/go1.13

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Nov 8, 2019

Build succeeded.

@crosbymichael
Copy link
Copy Markdown
Member

i vote disable gomod

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@mxpv mxpv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mxpv mxpv merged commit d1bcb4b into containerd:master Nov 10, 2019
@thaJeztah thaJeztah deleted the update_go_1.13 branch November 10, 2019 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants