Skip to content

[18.09] bump docker/engine - #2100

Merged
andrewhsu merged 3 commits into
docker:18.09from
kolyshkin:18.09-revendor-d-d
Oct 23, 2019
Merged

[18.09] bump docker/engine#2100
andrewhsu merged 3 commits into
docker:18.09from
kolyshkin:18.09-revendor-d-d

Conversation

@kolyshkin

@kolyshkinkolyshkin commented Sep 23, 2019

Copy link
Copy Markdown
Contributor
  1. Bump docker/engine to include [18.09 backport] Fix client version not being pinned when set, and some refactoring docker-archive/engine#188
  2. Bump prometheus/* and swarmkit to match docker/engine's vendor.conf

@kolyshkin

Copy link
Copy Markdown
ContributorAuthor

@andrewhsu@thaJeztah PTAL (related to docker-archive/engine#188)

@andrewhsu

Copy link
Copy Markdown
Contributor

Hmm...something about unmount:

# github.com/docker/cli/vendor/github.com/docker/docker/pkg/mount
vendor/github.com/docker/docker/pkg/mount/mount.go:126:9: undefined: unmount
vendor/github.com/docker/docker/pkg/mount/mount.go:144:9: undefined: unmount

@kolyshkin

Copy link
Copy Markdown
ContributorAuthor

Hmm...something about unmount:

Ughm, I always forget to do git add after running vndr. Should be fixed now.

@andrewhsu

Copy link
Copy Markdown
Contributor

Closer. Just PR check for ci/circleci: crossfailing:

# github.com/docker/cli/vendor/github.com/docker/docker/pkg/mount
vendor/github.com/docker/docker/pkg/mount/unmount_unix.go:7:6: unmount redeclared in this block
previous declaration at vendor/github.com/docker/docker/pkg/mount/mounter_unsupported.go:9:39

@kolyshkin

kolyshkin commented Sep 24, 2019

Copy link
Copy Markdown
ContributorAuthor

Error while building build/docker-darwin-amd64

# github.com/docker/cli/vendor/github.com/docker/docker/pkg/mount
vendor/github.com/docker/docker/pkg/mount/unmount_unix.go:7:6: unmount redeclared in this block
previous declaration at vendor/github.com/docker/docker/pkg/mount/mounter_unsupported.go:9:39

Hmm, I remember we have fixed this in upstream moby/moby. Yes, this is moby/moby#38372 which apparently needs to be backported to 18.09. Stay tuned... docker-archive/engine#379

@kolyshkinkolyshkin changed the title [18.09] bump docker/engineWIP [18.09] bump docker/engineSep 24, 2019
@kolyshkin

Copy link
Copy Markdown
ContributorAuthor

Marked as WIP as this needs docker-archive/engine#379 to be merged and then a re-vendor

Bump github.com/docker/engine to include
docker-archive/engine#188
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkinkolyshkin changed the title WIP [18.09] bump docker/engine[18.09] bump docker/engineSep 24, 2019
@kolyshkin

Copy link
Copy Markdown
ContributorAuthor

@thaJeztah PTAL. Also, does this actually fix a bug in the client?

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #2100 into 18.09 will not change coverage.
The diff coverage is n/a.

@@ Coverage Diff @@## 18.09 #2100 +/- ##
=======================================
Coverage 54.28% 54.28% =======================================
Files 291 291 Lines 19459 19459 =======================================
Hits 10563 10563 Misses 8215 8215 Partials 681 681

@thaJeztahthaJeztah added this to the 18.09.10 milestone Sep 24, 2019
@kolyshkin

kolyshkin commented Sep 24, 2019

Copy link
Copy Markdown
ContributorAuthor

I have checked all the docker/engine's vendor.conf bumps that appeared in this PR and compared the new versions to those in cli's vendor.conf. It looks like all the components (changed in docker/engine vendor.conf) are of the same version in cli vendor.conf, except:

These ones are newer in cli: scratch that, the swarmkit in CLI is from 2018

componentversion in engine's vendor.confversion in cli's vendor.conf
docker/swarmkitmoby/swarmkit@142a737 (Jul 29 2019)moby/swarmkit@cfa742c (Aug 19 2018)

These ones are older in CLI, and I'm going to bump those:

github.com/prometheus/*

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin

Copy link
Copy Markdown
ContributorAuthor

Updated with github.com/prometheus/* bumps to match those in docker/engine

... to match the version in docker/engine.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin

kolyshkin commented Sep 24, 2019

Copy link
Copy Markdown
ContributorAuthor

I wrote a half-assed script to figure out the differences in vendoring between the two; here is the script:

#!/bin/bashset -u
get_sha() {
ifecho -n $1| grep -qE '^[0-9a-f]{40}$';thenecho$1returnfi# figure it out the hard way#	go get -u $2 > /dev/null 2>&1
(cd $GOPATH/src/$2&& git rev-list -n 1 $1)
}
md_print() {
# alas this only works for githublocal url=https://$1local rc=$url/commit/$2local lc=$url/commit/$3echo"| "$rc" | "$lc" |"
}
echo"| version in docker/engine | version in cli |"echo"|---|---|"forPin$(grep -vE '^#|^$' vendor.conf | awk '{print $1}');do
V=$(grep -E "^$P[[:space:]]" vendor/github.com/docker/docker/vendor.conf | awk '{print $2}')
[ -z"$V" ] &&continue
LV=$(grep -E "^$P[[:space:]]" vendor.conf | awk '{print $2}')
[ "$V"="$LV" ] &&continue# versions might differ
V=$(get_sha $V$P)
LV=$(get_sha $LV$P)
[ "$V"="$LV" ] &&continue# versions differ
md_print $P$V$LVdone

and the results (alas links only work for github.com packages)

packageversion in docker/engineversion in cli
github.com/containerd/containerdcontainerd/containerd@9754871containerd/containerd@bb0f83a
github.com/containerd/continuitycontainerd/continuity@004b464containerd/continuity@d8fb858
github.com/containerd/typeurlcontainerd/typeurl@a93fcdbcontainerd/typeurl@f694355
github.com/gogo/googleapisgogo/googleapis@08a7655gogo/googleapis@b235787
github.com/gogo/protobufgogo/protobuf@1adfc12gogo/protobuf@636bf03
github.com/gorilla/contextgorilla/context@1ea2538gorilla/context@08b5f42
github.com/gorilla/muxgorilla/mux@0eeaf83gorilla/mux@e3702be
github.com/matttproud/golang_protobuf_extensionsmatttproud/golang_protobuf_extensions@3247c84matttproud/golang_protobuf_extensions@c12348c
github.com/Microsoft/go-winiomicrosoft/go-winio@97e4973microsoft/go-winio@78a0846
github.com/Microsoft/hcsshimmicrosoft/hcsshim@5b3eff5microsoft/hcsshim@44c0601
github.com/opencontainers/runcopencontainers/runc@96ec217opencontainers/runc@20aff4f
github.com/opencontainers/runtime-specopencontainers/runtime-spec@5684b8aopencontainers/runtime-spec@4e3b926
github.com/pkg/errorspkg/errors@645ef00pkg/errors@839d9e9
github.com/spf13/pflagspf13/pflag@583c0c0spf13/pflag@4cb166e
golang.org/x/sysgolang/sys@ac767d6golang/sys@1b2967e
google.golang.org/genprotogoogleapis/go-genproto@694d95bgoogleapis/go-genproto@02b4e95
gotest.toolsgotestyourself/gotest.tools@b6e20afgotestyourself/gotest.tools@1083505

@thaJeztahthaJeztah modified the milestones: 18.09.10, 18.09.11Oct 10, 2019

@andrewhsuandrewhsu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SGTM

@andrewhsu
andrewhsu merged commit 50c4621 into docker:18.09Oct 23, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@kolyshkin@andrewhsu@codecov-io@thaJeztah@GordonTheTurtle