-
Notifications
You must be signed in to change notification settings - Fork 650
update etcd to v3.6.5 #3221
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
update etcd to v3.6.5 #3221
Conversation
826c09d to
6fadb9c
Compare
| module github.com/moby/swarmkit/v2 | ||
|
|
||
| go 1.21.0 | ||
| go 1.24.0 |
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.
1.24 required since etcd 3.6: https://github.com/etcd-io/etcd/blob/52b2948ec21815a307649c4dfe5b11d3bd03ff56/go.mod#L3
e174ab2 to
84686de
Compare
swarmd/go.mod
Outdated
| k8s.io/klog/v2 v2.90.1 // indirect | ||
| ) | ||
|
|
||
| replace github.com/moby/swarmkit/v2 => github.com/crazy-max/swarmkit/v2 v2.0.0-20251106153346-84686debe4aa // etcd-update |
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.
https://github.com/moby/swarmkit/actions/runs/19140979041/job/54705663625?pr=3221#step:4:266
#19 39.64 + cd swarmd
#19 39.64 + golangci-lint run --config /go/src/github.com/docker/swarmkit/.golangci.yml ./...
#19 47.56 level=error msg="Running error: context loading failed: no go files to analyze: running `go mod tidy` may solve the problem"
https://github.com/moby/swarmkit/actions/runs/19140978994/job/54705757861?pr=3221#step:5:89
# github.com/moby/swarmkit/swarmd/cmd/swarm-rafttool
/go/pkg/mod/google.golang.org/[email protected]/status/status.go:35:2: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules:
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 (/go/pkg/mod/google.golang.org/[email protected]/googleapis/rpc/status)
google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/[email protected]/status)
# github.com/moby/swarmkit/swarmd/cmd/swarm-rafttool
/go/pkg/mod/go.etcd.io/etcd/api/[email protected]/etcdserverpb/rpc.pb.go:19:2: ambiguous import: found package google.golang.org/genproto/googleapis/api/annotations in multiple modules:
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 (/go/pkg/mod/google.golang.org/[email protected]/googleapis/api/annotations)
google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/[email protected]/annotations)
# github.com/moby/swarmkit/swarmd/cmd/swarm-rafttool
cmd/swarm-rafttool/common.go:15:2: no required module provides package go.etcd.io/etcd/server/v3/wal/walpb; to add it:
go get go.etcd.io/etcd/server/v3/wal/walpb
FAIL github.com/moby/swarmkit/swarmd/cmd/swarm-rafttool [setup failed]
# github.com/moby/swarmkit/swarmd/cmd/swarmctl
/go/pkg/mod/google.golang.org/[email protected]/status/status.go:35:2: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules:
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 (/go/pkg/mod/google.golang.org/[email protected]/googleapis/rpc/status)
google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/[email protected]/status)
FAIL github.com/moby/swarmkit/swarmd/cmd/swarmctl [setup failed]
# github.com/moby/swarmkit/swarmd/cmd/swarmctl/cluster
/go/pkg/mod/google.golang.org/[email protected]/status/status.go:35:2: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules:
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 (/go/pkg/mod/google.golang.org/[email protected]/googleapis/rpc/status)
google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb (/go/pkg/mod/google.golang.org/genproto/googleapis/[email protected]/status)
FAIL github.com/moby/swarmkit/swarmd/cmd/swarmctl/cluster [setup failed]
Didn't find another way to fix this, go.work does not make things easy when running linter and go test. I would have preferred this simple replace directive:
replace github.com/moby/swarmkit/v2 => ../
instead of using go work but seems this is a prerequisite on this repo. cc @thaJeztah @corhere
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.
Hum it seems go test when running in a go workspace will use it instead of go.mod and same with golangci-lint
655b7be to
24b0ba8
Compare
This comment was marked as resolved.
This comment was marked as resolved.
24b0ba8 to
2165cf5
Compare
|
https://github.com/moby/swarmkit/actions/runs/19143203825/job/54713856103?pr=3221#step:5:76 |
Signed-off-by: Tonis Tiigi <[email protected]>
2165cf5 to
f658780
Compare
172682a to
98e8ba8
Compare
|
I updated the conditions for the failing test. The difference is in swarmkit/manager/state/raft/storage/walwrap.go Lines 177 to 188 in 9c8dba4
both versions call in v3.5.6 next iteration hit irrepairable case
while in v3.6 next read doesn't error and clean break out of the loop happens in
In transport pkg, the difference is that snapshot is now pointer instead of inline struct. The test can probably be made to work but iiuc the issue is that this test assumes specific memory sizes and struct layout, what probably isn't the safest way to write tests. |
In etcd v3.6 implementation has changed and now returns successful raipair for the test conditions. Signed-off-by: Tonis Tiigi <[email protected]>
e6b9898 to
599b35b
Compare
Signed-off-by: CrazyMax <[email protected]>
599b35b to
711ee6f
Compare
|
https://github.com/moby/swarmkit/actions/runs/19164853654/job/54783119616?pr=3221#step:5:161 We have invalid snapshot data, wonder if this relates to etcd-io/raft#149 Any idea @dperny? |
Signed-off-by: Tonis Tiigi <[email protected]>
7466ca0 to
8839531
Compare
Signed-off-by: Tonis Tiigi <[email protected]>
thaJeztah
left a comment
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.
LGTM
needs #3220carry and closes #3217