bake: test empty attribute #4706
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:33457/library/busybox:latest
time="2024-11-28T09:54:55Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:33457"
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:33457/library/alpine:latest
time="2024-11-28T09:54:55Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:33457"
run.go:272: copied docker.io/moby/buildkit:buildx-stable-1 to local mirror localhost:33457/moby/buildkit:buildx-stable-1
--- FAIL: TestIntegration (0.01s)
|
Generate annotations:
tests/bake.go#L123
=== RUN TestIntegration/TestBakePrint/[email protected]
=== PAUSE TestIntegration/TestBakePrint/[email protected]
=== CONT TestIntegration/TestBakePrint/[email protected]
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)(0xc0014e6ac8), (*buildflags.CacheOptionsEntry)(0xc0014e6ae0), (*buildflags.CacheOptionsEntry)(0xc0014e6af8)}
actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0014e6930), (*buildflags.CacheOptionsEntry)(0xc0014e6960), (*buildflags.CacheOptionsEntry)(0xc0014e6990)}
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"
}
@@ -15,4 +18,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"
+ }
})
Test: TestIntegration/TestBakePrint/[email protected]
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 09:57:01.055427369 +0000 UTC m=+126.042919766 /opt/docker-alt-26/dockerd --data-root /tmp/integration2119191968/dxf2i5ra2maw0/root --exec-root /tmp/dxr/dxf2i5ra2maw0 --pidfile /tmp/integration2119191968/dxf2i5ra2maw0/docker.pid --containerd-namespace dxf2i5ra2maw0 --containerd-plugins-namespace dxf2i5ra2maw0p --host unix:///tmp/docker-integration/dxf2i5ra2maw0.sock --config-file /tmp/integration2119191968/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-11-28T09:57:01.083156764Z" level=info msg="Starting up"
sandbox.go:138: time="2024-11-28T09:57:01.084176776Z" level=warning msg="could not change group /tmp/docker-integration/dxf2i5ra2maw0.sock to docker: group docker not found"
sandbox.go:138: time="2024-11-28T09:57:01.084294776Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dxf2i5ra2maw0.sock)"
sandbox.go:138: time="2024-11-28T09:57:01.084313351Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-11-28T09:57:01.084839945Z" level=info msg="started new containerd process" address=/tmp/dxr/dxf2i5ra2maw0/containerd/containerd.sock module=libcontainerd pid=19493
|
Test
Process completed with exit code 1.
|
Loading