From 0d0441b9c71f17075a6e4aa53f80398c7d812e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 24 Feb 2023 12:41:32 +0200 Subject: [PATCH] ci/test: show how bad the artifact situation is --- ci/test | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/ci/test b/ci/test index 8cad4cd..5efb5b2 100755 --- a/ci/test +++ b/ci/test @@ -16,14 +16,13 @@ bazel build "$@" \ # then test everything else with the standard sandbox bazel test "$@" ... -# TODO: Go 1.20 regressed this. Find a way to re-enable. See README. -# $BAZEL_ZIG_CC_CACHE_PREFIX should be empty for the test below to be valid. # Ensure that github.com/ziglang/zig/issues/13050 does not regress -#find "$BAZEL_ZIG_CC_CACHE_PREFIX" -name mutex_destructor.o -execdir file '{}' \; | \ -# sort | uniq -c | sort -rn > /tmp/got_cache -# -#diff -u ci/testdata/want_cache /tmp/got_cache || { -# >&2 echo "ERROR: unexpected artifacts." -# >&2 echo "Was $BAZEL_ZIG_CC_CACHE_PREFIX empty before the test?" -# exit 1 -#} +find "$BAZEL_ZIG_CC_CACHE_PREFIX" -name mutex_destructor.o -execdir file '{}' \; | \ + sort | uniq -c | sort -rn > /tmp/got_cache + +diff -u ci/testdata/want_cache /tmp/got_cache || { + >&2 echo "ERROR: unexpected artifacts. This is TODO." + # TODO: Go 1.20 regressed this. Find a way to re-enable. See README. + #exit 1 + exit 0 +}