Skip to content

Commit

Permalink
[0.8] skip TestIntegration/TestStargzLazyPull
Browse files Browse the repository at this point in the history
It's failing on go1.18 bullseye, and this branch is only used for vendoring in
moby/moby, which doesn't use this.

```
=== CONT  TestIntegration/TestStargzLazyPull/worker=containerd-snapshotter-stargz
    client_test.go:2158:
        	Error Trace:	client_test.go:2158
        	            				run.go:171
        	Error:      	Received unexpected error:
        	            	rpc error: code = Unknown desc = executor failed running [/bin/touch /foo]: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:60: mounting "/tmp/bktest_buildkitd4012827731/containerd-stargz/resolv.conf" to rootfs at "/tmp/bktest_containerd3597200052/state/io.containerd.runtime.v2.task/buildkit/h77dkpz3tip7tkyazfjvvoyug/rootfs/etc/resolv.conf" caused: open /tmp/bktest_containerd3597200052/state/io.containerd.runtime.v2.task/buildkit/h77dkpz3tip7tkyazfjvvoyug/rootfs/etc/resolv.conf: function not implemented: unknown
        	            	github.com/moby/buildkit/util/stack.Enable
        	            		/src/util/stack/stack.go:77
        	            	github.com/moby/buildkit/util/grpcerrors.FromGRPC
        	            		/src/util/grpcerrors/grpcerrors.go:188
        	            	github.com/moby/buildkit/util/grpcerrors.UnaryClientInterceptor
        	            		/src/util/grpcerrors/intercept.go:41
        	            	google.golang.org/grpc.(*ClientConn).Invoke
        	            		/src/vendor/google.golang.org/grpc/call.go:35
        	            	github.com/moby/buildkit/api/services/control.(*controlClient).Solve
        	            		/src/api/services/control/control.pb.go:1321
        	            	github.com/moby/buildkit/client.(*Client).solve.func2
        	            		/src/client/solve.go:201
        	            	golang.org/x/sync/errgroup.(*Group).Go.func1
        	            		/src/vendor/golang.org/x/sync/errgroup/errgroup.go:57
        	            	runtime.goexit
        	            		/usr/local/go/src/runtime/asm_amd64.s:1571
        	            	failed to solve
        	            	github.com/moby/buildkit/client.(*Client).solve.func2
        	            		/src/client/solve.go:214
        	            	golang.org/x/sync/errgroup.(*Group).Go.func1
        	            		/src/vendor/golang.org/x/sync/errgroup/errgroup.go:57
        	            	runtime.goexit
        	            		/usr/local/go/src/runtime/asm_amd64.s:1571
        	Test:       	TestIntegration/TestStargzLazyPull/worker=containerd-snapshotter-stargz
    run.go:166:
        	Error Trace:	run.go:166
        	            				panic.go:482
        	            				testing.go:864
        	            				client_test.go:2158
        	            				run.go:171
        	Error:      	Received unexpected error:
        	            	openfdat /tmp/bktest_containerd_stargz_grpc2440934492/root/snapshotter/snapshots/1/fs: transport endpoint is not connected
        	Test:       	TestIntegration/TestStargzLazyPull/worker=containerd-snapshotter-stargz
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Sep 4, 2022
1 parent c06d946 commit 2b24432
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2111,6 +2111,7 @@ func testBuildPushAndValidate(t *testing.T, sb integration.Sandbox) {
}

func testStargzLazyPull(t *testing.T, sb integration.Sandbox) {
t.Skip("Failing on 0.8 branch with Go 1.18; see https://github.com/moby/buildkit/pull/3079")
skipDockerd(t, sb)
requiresLinux(t)

Expand Down Expand Up @@ -3104,7 +3105,7 @@ func testSourceMapFromRef(t *testing.T, sb integration.Sandbox) {

frontend := func(ctx context.Context, c gateway.Client) (*gateway.Result, error) {
st := llb.Scratch().File(
llb.Mkdir("foo/bar", 0600), //fails because /foo doesn't exist
llb.Mkdir("foo/bar", 0600), // fails because /foo doesn't exist
sm.Location([]*pb.Range{{Start: pb.Position{Line: 3, Character: 1}}}),
)

Expand Down

0 comments on commit 2b24432

Please sign in to comment.