feat: Cue spec validation #170
Draft
Annotations
10 errors
test/builld.go#L155
=== RUN TestMariner2
=== PAUSE TestMariner2
=== CONT TestMariner2
--- FAIL: TestMariner2 (71.15s)
builld.go:155: #7 DONE 0.0s
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 CACHED
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 CACHED
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 CACHED
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 CACHED
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 CACHED
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 CACHED
|
test/builld.go#L155
=== RUN TestSourceHTTP
=== PAUSE TestSourceHTTP
=== CONT TestSourceHTTP
builld.go:155: #1 [internal] load .dockerignore
builld.go:155: #1 transferring context: 134B done
builld.go:155: #1 DONE 0.0s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.0s
builld.go:155:
builld.go:155: #3 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #3 DONE 0.1s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.1s
builld.go:155:
builld.go:155: #4 local://dockerfile
builld.go:155: #4 transferring dockerfile: 32B done
builld.go:155: #4 DONE 0.0s
builld.go:155:
builld.go:155: #5 [internal] load metadata for mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #5 DONE 0.0s
builld.go:155:
builld.go:155: #6 [go 1/1] FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #6 resolve mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c done
builld.go:155: #6 DONE 0.0s
builld.go:155:
builld.go:155: #7 [internal] load build context
builld.go:155: #7 transferring context: 5.02kB 0.0s done
builld.go:155: #7 DONE 0.0s
builld.go:155:
builld.go:155: #8 [frontend-build 1/3] WORKDIR /build
builld.go:155: #8 CACHED
builld.go:155:
builld.go:155: #9 [frontend-build 2/3] COPY . .
builld.go:155: #9 CACHED
builld.go:155:
builld.go:155: #10 [frontend-build 3/3] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build go build -o /frontend ./cmd/frontend && go build -o /dalec-redirectio ./cmd/dalec-redirectio
builld.go:155: #10 CACHED
builld.go:155:
builld.go:155: #11 [frontend 1/2] COPY --from=frontend-build /frontend /frontend
builld.go:155: #11 CACHED
builld.go:155:
builld.go:155: #12 [frontend 2/2] COPY --from=frontend-build /dalec-redirectio /dalec-redirectio
builld.go:155: #12 CACHED
source_test.go:213: expected digest mismatch, got: error loading spec: error validating spec with cue: sources.test: 2 errors in empty disjunction:
sources.test.http: field not allowed
sources.test.http.digest: field not allowed
builld.go:155:
builld.go:155: #13 mkfile /Dockerfile
builld.go:155: #13 DONE 0.0s
builld.go:155:
builld.go:155: #14 exporting to GitHub Actions Cache
builld.go:155: #14 preparing build cache for export
builld.go:155: #14 preparing build cache for export 0.1s done
builld.go:155: #14 DONE 0.1s
--- FAIL: TestSourceHTTP (0.60s)
|
test/builld.go#L155
=== RUN TestMariner2/test_systemd_unit
=== PAUSE TestMariner2/test_systemd_unit
=== CONT TestMariner2/test_systemd_unit
builld.go:155: #1 [internal] load .dockerignore
builld.go:155: #1 transferring context: 134B done
builld.go:155: #1 DONE 0.0s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.1s
builld.go:155:
builld.go:155: #3 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #3 DONE 0.1s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.2s
builld.go:155:
builld.go:155: #4 [go 1/1] FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #4 resolve mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c done
builld.go:155: #4 DONE 0.0s
builld.go:155:
builld.go:155: #5 local://dockerfile
builld.go:155: #5 transferring dockerfile: 32B done
builld.go:155: #5 DONE 0.0s
builld.go:155:
builld.go:155: #6 [internal] load metadata for mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #6 DONE 0.0s
builld.go:155:
builld.go:155: #7 [internal] load build context
builld.go:155: #7 transferring context: 5.02kB 0.0s done
builld.go:155: #7 DONE 0.0s
buildx.go:262: failed to solve: error loading spec: error validating spec with cue: artifacts.systemd: field not allowed
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 CACHED
--- FAIL: TestMariner2/test_systemd_unit (0.52s)
|
test/buildx.go#L262
=== RUN TestMariner2/test_systemd_unit_multiple_components
=== PAUSE TestMariner2/test_systemd_unit_multiple_components
=== CONT TestMariner2/test_systemd_unit_multiple_components
builld.go:155: #1 [internal] load .dockerignore
builld.go:155: #1 transferring context: 134B done
builld.go:155: #1 DONE 0.0s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #2 DONE 0.1s
builld.go:155:
builld.go:155: #3 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #3 DONE 0.1s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #2 DONE 0.2s
builld.go:155:
builld.go:155: #4 [go 1/1] FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #4 resolve mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c done
builld.go:155: #4 DONE 0.0s
builld.go:155:
builld.go:155: #5 local://dockerfile
builld.go:155: #5 transferring dockerfile: 32B done
builld.go:155: #5 DONE 0.0s
builld.go:155:
builld.go:155: #6 [internal] load metadata for mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #6 DONE 0.0s
builld.go:155:
builld.go:155: #7 [internal] load build context
builld.go:155: #7 transferring context: 5.02kB 0.0s done
builld.go:155: #7 DONE 0.0s
buildx.go:262: failed to solve: error loading spec: error validating spec with cue: artifacts.systemd: field not allowed
--- FAIL: TestMariner2/test_systemd_unit_multiple_components (0.47s)
|
test/builld.go#L155
=== RUN TestWindows
=== PAUSE TestWindows
=== CONT TestWindows
--- FAIL: TestWindows (46.38s)
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 DONE 0.0s
|
test/buildx.go#L262
=== RUN TestMariner2/docs_and_licenses_are_handled_correctly
=== PAUSE TestMariner2/docs_and_licenses_are_handled_correctly
=== CONT TestMariner2/docs_and_licenses_are_handled_correctly
builld.go:155: #1 [internal] load .dockerignore
builld.go:155: #1 transferring context: 134B done
builld.go:155: #1 DONE 0.0s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #2 DONE 0.1s
builld.go:155:
builld.go:155: #3 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #3 DONE 0.1s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #2 DONE 0.4s
builld.go:155:
builld.go:155: #4 [go 1/1] FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #4 resolve mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c done
builld.go:155: #4 DONE 0.0s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #2 DONE 0.4s
builld.go:155:
builld.go:155: #5 local://dockerfile
builld.go:155: #5 transferring dockerfile: 32B done
builld.go:155: #5 DONE 0.0s
builld.go:155:
builld.go:155: #6 [internal] load metadata for mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #6 DONE 0.0s
builld.go:155:
builld.go:155: #7 [internal] load build context
builld.go:155: #7 transferring context: 5.02kB 0.0s done
builld.go:155: #7 DONE 0.0s
buildx.go:262: failed to solve: unable to build package with doc files as expected error loading spec: error validating spec with cue: artifacts.docs: field not allowed
--- FAIL: TestMariner2/docs_and_licenses_are_handled_correctly (0.81s)
|
test/buildx.go#L262
=== RUN TestAzlinux3/test_systemd_with_only_config_dropin
=== PAUSE TestAzlinux3/test_systemd_with_only_config_dropin
=== CONT TestAzlinux3/test_systemd_with_only_config_dropin
builld.go:155: #1 [internal] load .dockerignore
builld.go:155: #1 transferring context: 134B done
builld.go:155: #1 DONE 0.0s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.1s
builld.go:155:
builld.go:155: #3 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #3 DONE 0.1s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.2s
builld.go:155:
builld.go:155: #4 [go 1/1] FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #4 resolve mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c done
builld.go:155: #4 DONE 0.0s
builld.go:155:
builld.go:155: #5 local://dockerfile
builld.go:155: #5 transferring dockerfile: 32B done
builld.go:155: #5 DONE 0.0s
builld.go:155:
builld.go:155: #6 [internal] load metadata for mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #6 DONE 0.0s
builld.go:155:
builld.go:155: #7 [internal] load build context
builld.go:155: #7 transferring context: 5.02kB 0.0s done
builld.go:155: #7 DONE 0.0s
buildx.go:262: failed to solve: error loading spec: error validating spec with cue: artifacts.systemd: field not allowed
--- FAIL: TestAzlinux3/test_systemd_with_only_config_dropin (0.54s)
|
test/builld.go#L155
=== RUN TestAzlinux3/test_directory_creation
=== PAUSE TestAzlinux3/test_directory_creation
=== CONT TestAzlinux3/test_directory_creation
builld.go:155: #1 [internal] load .dockerignore
builld.go:155: #1 transferring context: 134B done
builld.go:155: #1 DONE 0.0s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.1s
builld.go:155:
builld.go:155: #3 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #3 DONE 0.1s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.2s
builld.go:155:
builld.go:155: #4 [go 1/1] FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #4 resolve mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c done
builld.go:155: #4 DONE 0.0s
builld.go:155:
builld.go:155: #5 local://dockerfile
builld.go:155: #5 transferring dockerfile: 32B done
builld.go:155: #5 DONE 0.0s
builld.go:155:
builld.go:155: #6 [internal] load metadata for mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #6 DONE 0.0s
builld.go:155:
builld.go:155: #7 [internal] load build context
builld.go:155: #7 transferring context: 5.02kB 0.0s done
builld.go:155: #7 DONE 0.0s
buildx.go:262: failed to solve: error loading spec: error validating spec with cue: artifacts.createDirectories: field not allowed
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 DONE 0.0s
--- FAIL: TestAzlinux3/test_directory_creation (0.46s)
|
test/buildx.go#L262
=== RUN TestMariner2/test_systemd_with_only_config_dropin
=== PAUSE TestMariner2/test_systemd_with_only_config_dropin
=== CONT TestMariner2/test_systemd_with_only_config_dropin
builld.go:155: #1 [internal] load .dockerignore
builld.go:155: #1 transferring context: 134B done
builld.go:155: #1 DONE 0.0s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.1s
builld.go:155:
builld.go:155: #3 resolve image config for docker-image://docker.io/library/golang:1.21
builld.go:155: #3 DONE 0.2s
builld.go:155:
builld.go:155: #2 resolve image config for docker-image://docker.io/library/golang:1.22
builld.go:155: #2 DONE 0.2s
builld.go:155:
builld.go:155: #4 [go 1/1] FROM mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #4 resolve mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c done
builld.go:155: #4 DONE 0.0s
builld.go:155:
builld.go:155: #5 local://dockerfile
builld.go:155: #5 transferring dockerfile: 32B done
builld.go:155: #5 DONE 0.0s
builld.go:155:
builld.go:155: #6 [internal] load metadata for mcr.microsoft.com/oss/go/microsoft/golang:1.21@sha256:ac43b1ed13ad1315cffa2690fc037aebc947837d296f5245a2770e68414d282c
builld.go:155: #6 DONE 0.0s
builld.go:155:
builld.go:155: #7 [internal] load build context
builld.go:155: #7 transferring context: 5.02kB 0.0s done
builld.go:155: #7 DONE 0.0s
buildx.go:262: failed to solve: error loading spec: error validating spec with cue: artifacts.systemd: field not allowed
--- FAIL: TestMariner2/test_systemd_with_only_config_dropin (0.62s)
|
test/builld.go#L155
=== RUN TestAzlinux3
=== PAUSE TestAzlinux3
=== CONT TestAzlinux3
--- FAIL: TestAzlinux3 (50.13s)
builld.go:155: #8 DONE 0.0s
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 DONE 0.0s
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 CACHED
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 DONE 0.0s
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 DONE 0.0s
builld.go:155:
builld.go:155: #8 mkfile /Dockerfile
builld.go:155: #8 DONE 0.0s
|
This job failed
Loading