From f61fd6e5576ed6ff7904fa695905e580ece2e3e5 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Jan 21 2020 16:16:53 +0000 Subject: tests.yml: Add a test to check size of libLLVM.so There is a bug in the build system that can cause binary stripping to fail without failing the build, so add a check to ensure that libLLVM.so is stripped. https://bugzilla.redhat.com/show_bug.cgi?id=1793250 --- diff --git a/tests/tests.yml b/tests/tests.yml index f620568..e17357f 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -14,6 +14,15 @@ - rust-sanity: dir: ./ run: cargo new hello && cd hello && cargo run + # There is a bug in the build process when it runs out of disk space + # while stripping binaries, which causes the strip to fail, but does + # not fail the build. This results in a libLLVM.so that is over 2GB + # which breaks the nightly compose. So this test checks that libLLVM.so + # is less than 100MB to ensure it was successfully stripped. + # https://bugzilla.redhat.com/show_bug.cgi?id=1793250 + - libllvm-size: + dir: ./ + run: test `stat -L -c %s /usr/lib64/libLLVM.so` -lt 100000000 # This test ensures that the spec file still builds correctly with # %global compat_build 1 # FIXME: This fails, because the CI system has a hard-coded timeout of 4