From: Emma Foley Date: Tue, 15 Feb 2022 07:46:21 +0000 (+0000) Subject: Fix CI failures caused by unsupported distros and updates to dependencies (#3975) X-Git-Tag: 6.0.0-rc0~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e28f097627395f4f1b0cd8c41595981c5c4b2473;p=thirdparty%2Fcollectd.git Fix CI failures caused by unsupported distros and updates to dependencies (#3975) * [ci][gha] Replace trusy with Bionic and Focal Ubuntu 14.04 (Trusty) is out of standard support [1]. ``make check`` fails for test_capabilities, as noted in [2]. [3] indicates that the cause is glibc, but that updates are not expected to the version in trusty. This PR replaces trusty with Ubuntu 18.04 (Bionic) and 20.04 (Focal). [1] https://wiki.ubuntu.com/Releases [2] #3936 [3] #3927 (comment) * [ci][cirrus] Make Valgrind error on defininte memory leaks only Valgrind gives errors when it find possible leaks; update the options to only error on definite leaks. This is done using the VALGRIND_OPTS env var, which is used by valgrind when it is invoked. * [ci][gha] Make Valgrind error on defininte memory leaks only Valgrind gives errors when it find possible leaks; update the options to only error on definite leaks. This is done using the VALGRIND_OPTS env var, which is used by valgrind when it is invoked. --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f544465e2..cf6d0baad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,8 +26,10 @@ jobs: - buster_amd64 - stretch_amd64 - stretch_i386 - - trusty_amd64 + # Ubuntu - xenial_amd64 + - bionic_amd64 + - focal_amd64 # RedHat family - el8_x86_64 - el7_x86_64 @@ -37,6 +39,8 @@ jobs: env: MAKEFLAGS: "-j 2" CONFIGURE_FLAGS: ${{ matrix.config_flags }} + # this env var picked up by valgrind during make check phase + VALGRIND_OPTS: "--errors-for-leak-kinds=definite" steps: - uses: actions/checkout@v2 - run: type pkg-config @@ -84,6 +88,7 @@ jobs: CFLAGS: ${{ matrix.cflags }} CPPFLAGS: ${{ matrix.cppflags }} CONFIGURE_FLAGS: ${{ matrix.config_flags }} + VALGRIND_OPTS: "--errors-for-leak-kinds=definite" steps: - uses: actions/checkout@v2 - run: type pkg-config