* [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.
build_script:
- make -j2 -sk
tests_script:
- - make -j2 -sk check
+ - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check
- /checks/check-built-plugins.sh
###
build_script:
- make -j2 -sk
tests_script:
- - make -j2 -sk check
+ - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check
- /checks/check-built-plugins.sh
build_script:
- make -j2 -sk
tests_script:
- - make -j2 -sk check
+ - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check
# build against libstatgrab, should always pass
- env:
build_script:
- make -j2 -sk
tests_script:
- - make -j2 -sk check
+ - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check
###
# Build using a range of compilers, available in debian/unstable. NB: might
build_script:
- make -j2 -sk
tests_script:
- - make -j2 -sk check
+ - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j2 -sk check
- buster_amd64
- stretch_amd64
- stretch_i386
- - trusty_amd64
+ # Ubuntu
- xenial_amd64
+ - bionic_amd64
+ - focal_amd64
# RedHat family
- el8_x86_64
- el7_x86_64
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
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