bake: handle derived attributes #4708
Annotations
3 errors
Generate annotations:
tests/run.go#L272
=== RUN TestIntegration
run.go:272: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:36565/library/busybox:latest
time="2024-11-28T10:52:50Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:36565"
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:36565/library/alpine:latest
time="2024-11-28T10:52:50Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:36565"
run.go:272: copied docker.io/moby/buildkit:buildx-stable-1 to local mirror localhost:36565/moby/buildkit:buildx-stable-1
--- FAIL: TestIntegration (0.01s)
|
Generate annotations:
tests/bake.go#L123
=== RUN TestIntegration/TestBakePrint/worker=docker+containerd@26.1
=== PAUSE TestIntegration/TestBakePrint/worker=docker+containerd@26.1
=== CONT TestIntegration/TestBakePrint/worker=docker+containerd@26.1
bake.go:123:
Error Trace: /src/tests/bake.go:123
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:97
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211
Error: Not equal:
expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0010122c0), (*buildflags.CacheOptionsEntry)(0xc0010122e0), (*buildflags.CacheOptionsEntry)(0xc001012300)}
actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001012020), (*buildflags.CacheOptionsEntry)(0xc001012040), (*buildflags.CacheOptionsEntry)(0xc001012140)}
Diff:
--- Expected
+++ Actual
@@ -17,4 +17,6 @@
(*buildflags.CacheOptionsEntry)({
- Type: (string) (len=15) "user/repo:cache",
- Attrs: (map[string]string) <nil>,
+ Type: (string) (len=8) "registry",
+ Attrs: (map[string]string) (len=1) {
+ (string) (len=3) "ref": (string) (len=15) "user/repo:cache"
+ },
ImplicitAttrs: (map[string]string) <nil>
Test: TestIntegration/TestBakePrint/worker=docker+containerd@26.1
sandbox.go:135: stdout: /opt/docker-alt-26/dockerd
sandbox.go:135: stderr: /opt/docker-alt-26/dockerd
sandbox.go:138: > startCmd 2024-11-28 10:54:57.149491215 +0000 UTC m=+127.154038914 /opt/docker-alt-26/dockerd --data-root /tmp/integration2249841061/dquifp3y162x8/root --exec-root /tmp/dxr/dquifp3y162x8 --pidfile /tmp/integration2249841061/dquifp3y162x8/docker.pid --containerd-namespace dquifp3y162x8 --containerd-plugins-namespace dquifp3y162x8p --host unix:///tmp/docker-integration/dquifp3y162x8.sock --config-file /tmp/integration2249841061/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-11-28T10:54:57.173903158Z" level=info msg="Starting up"
sandbox.go:138: time="2024-11-28T10:54:57.175596795Z" level=warning msg="could not change group /tmp/docker-integration/dquifp3y162x8.sock to docker: group docker not found"
sandbox.go:138: time="2024-11-28T10:54:57.175755769Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dquifp3y162x8.sock)"
sandbox.go:138: time="2024-11-28T10:54:57.175773522Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-11-28T10:54:57.177050171Z" level=info msg="started new containerd process" address=/tmp/dxr/dquifp3y162x8/containerd/containerd.sock module=libcontainerd pid=19509
sandbox.go:138: time="2024-11-28T10:54:57.177675319Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dquifp3y162x8/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-11-28T10:54:57.177862599Z" level=debug msg="2024/11/28 10:54:57 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dquifp3y162x8/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dquifp3y162x8/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-11-28T10:54:57.188860879Z" level=info msg="starting containerd" revision=926c9586fe4a6236699318391cd44976a98e31f1 version=v1.7.15
sandbox.go:138: time="2024-11-28T10:54:57.202215489Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-11-2
|
Test
Process completed with exit code 1.
|
Loading