From 4b4698a4f3b5c71a77c72d4a31e680bffd24487a Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Mon, 20 May 2024 15:41:23 +0200 Subject: [PATCH] test: remove pointless validation step This validation was not caused in CI, and it can't really be in it's current form, since the hugo_stats.json contains a lot of false-positives, meaning that the file can easily become outdated without it actually impacting anything. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- Dockerfile | 11 ----------- docker-bake.hcl | 12 +----------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/Dockerfile b/Dockerfile index e200af948a..52d29d884a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,17 +34,6 @@ RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL FROM scratch AS release COPY --from=build /out / -FROM scratch AS update-stats -COPY --from=build /src/hugo_stats.json /hugo_stats.json - -FROM build AS validate-stats -RUN <&2 'ERROR: hugo_stats.json differs. Update with `docker buildx bake update-stats`' - exit 1 -fi -EOF - FROM davidanson/markdownlint-cli2:v0.12.1 AS lint USER root RUN --mount=type=bind,target=. \ diff --git a/docker-bake.hcl b/docker-bake.hcl index 0a8a444a6d..71036457da 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -27,7 +27,7 @@ target "release" { } group "validate" { - targets = ["lint", "test", "validate-stats"] + targets = ["lint", "test"] } target "test" { @@ -172,13 +172,3 @@ target "validate-upstream" { target = "validate-upstream" output = ["type=cacheonly"] } - -target "update-stats" { - target = "update-stats" - output = ["."] -} - -target "validate-stats" { - target = "validate-stats" - output = ["type=cacheonly"] -}