bake: test empty attribute #4715
Annotations
3 errors
Generate annotations:
tests/run.go#L272
=== RUN TestIntegration
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:35815/library/alpine:latest
time="2024-11-28T15:50:34Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:35815"
run.go:272: copied docker.io/moby/buildkit:buildx-stable-1 to local mirror localhost:35815/moby/buildkit:buildx-stable-1
time="2024-11-28T15:50:37Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:35815"
run.go:272: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:35815/library/busybox:latest
--- FAIL: TestIntegration (0.01s)
|
Generate annotations:
tests/bake.go#L123
=== RUN TestIntegration/TestBakePrint/worker=docker+containerd
=== PAUSE TestIntegration/TestBakePrint/worker=docker+containerd
=== CONT TestIntegration/TestBakePrint/worker=docker+containerd
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)(0xc00099ade0), (*buildflags.CacheOptionsEntry)(0xc00099adf8), (*buildflags.CacheOptionsEntry)(0xc00099ae10)}
actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00099ac48), (*buildflags.CacheOptionsEntry)(0xc00099ac78), (*buildflags.CacheOptionsEntry)(0xc00099aca8)}
Diff:
--- Expected
+++ Actual
@@ -3,4 +3,5 @@
Type: (string) (len=3) "gha",
- Attrs: (map[string]string) (len=1) {
- (string) (len=5) "scope": (string) (len=5) "build"
+ Attrs: (map[string]string) (len=2) {
+ (string) (len=5) "scope": (string) (len=5) "build",
+ (string) (len=5) "token": (string) (len=3) "baz"
}
@@ -9,5 +10,7 @@
Type: (string) (len=2) "s3",
- Attrs: (map[string]string) (len=2) {
+ Attrs: (map[string]string) (len=4) {
+ (string) (len=13) "access_key_id": (string) (len=3) "foo",
(string) (len=6) "bucket": (string) (len=8) "mybucket",
- (string) (len=6) "region": (string) (len=9) "eu-west-1"
+ (string) (len=6) "region": (string) (len=9) "eu-west-1",
+ (string) (len=17) "secret_access_key": (string) (len=3) "bar"
}
Test: TestIntegration/TestBakePrint/worker=docker+containerd
sandbox.go:135: stdout: /usr/bin/dockerd
sandbox.go:135: stderr: /usr/bin/dockerd
sandbox.go:138: > startCmd 2024-11-28 15:50:55.554793276 +0000 UTC m=+21.308171718 /usr/bin/dockerd --data-root /tmp/integration34720131/d9kka8hpwrn5w/root --exec-root /tmp/dxr/d9kka8hpwrn5w --pidfile /tmp/integration34720131/d9kka8hpwrn5w/docker.pid --containerd-namespace d9kka8hpwrn5w --containerd-plugins-namespace d9kka8hpwrn5wp --host unix:///tmp/docker-integration/d9kka8hpwrn5w.sock --config-file /tmp/integration34720131/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-11-28T15:50:55.572703914Z" level=info msg="Starting up"
sandbox.go:138: time="2024-11-28T15:50:55.573760805Z" level=warning msg="could not change group /tmp/docker-integration/d9kka8hpwrn5w.sock to docker: group docker not found"
sandbox.go:138: time="2024-11-28T15:50:55.573879526Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/d9kka8hpwrn5w.sock)"
sandbox.go:138: time="2024-11-28T15:50:55.573897310Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-11-28T15:50:55.574466306Z" level=info msg="started new containerd process" address=/tmp/dxr/d9kka8hpwrn5w/containerd/containerd.sock module=libcontainerd pid=10641
sandbox.go:138: time="2024-11-28T15:50:55.574835343Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/d9kka8hpwrn5w/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-11-28T15:50:55.574998059Z" level=debug msg="2024/11/28 15:50:55 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/d9kka8hpwrn5w/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networkt
|
Test
Process completed with exit code 1.
|
Loading