From a1863006695908fc936d79404c1d121db20b7e7c Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Fri, 15 Dec 2023 08:58:27 -0800 Subject: [PATCH] how about this Signed-off-by: Takeshi Yoneda --- .github/workflows/integration.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 0e7c87d260..ce71ab2fec 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -522,8 +522,10 @@ jobs: run: | echo "Running $(find ~/tests -name *.test | wc -l) test binaries" + # Skip tests that are hideously slow (mostly compilation time) for running inside QEMU. + skip_targets="src_encoding_json|src_runtime|src_os_exec|src_math_big|src_encoding_gob|src_time|src_archive_tar|src_math_rand|src_expvar|src_testing|src_os" # Go tests often look for files relative to the source. Change to the corresponding directory. - for bin in ~/tests/*.test; do + for bin in $(find ~/tests -name "*.test" | grep -vE "$skip_targets"); do dir=$(basename $bin); dir=${dir%.test}; dir=${dir//_/\/} pushd $(go env GOROOT)/$dir # Mount / as /ROOT in docker and then remount /ROOT as / in wazero; $bin is now in /ROOT/$bin.